{"openapi":"3.1.0","info":{"title":"Zuora API","version":"1.0.0"},"paths":{"/oauth/token":{"post":{"operationId":"oAuth_createToken","summary":"Create an OAuth token","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","tags":["oAuth"],"parameters":[{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","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","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/tokenResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"description":"Any type"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"type":"string","minLength":36,"maxLength":36,"description":"The Client ID of the OAuth client.\n"},"client_secret":{"type":"string","maxLength":42,"description":"The Client Secret that was displayed when the OAuth client was created.\n"},"grant_type":{"$ref":"#/components/schemas/OauthTokenPostRequestBodyContentApplicationXWwwFormUrlencodedSchemaGrantType","description":"The OAuth grant type that will be used to generate the token. The value of this parameter must be `client_credentials`.\n"}},"required":["client_id","client_secret","grant_type"]}}}}}},"/commerce/charges":{"post":{"operationId":"commerce_createProductRatePlanChargeWithDynamicPricing","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","tags":["commerce"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChargeResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChargeRequest"}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"commerce_updateProductRatePlanChargeWithDynamicPricing","summary":"Update a product rate plan charge with Dynamic Pricing","description":"Update an existing product rate plan charge (PRPC). Use this API to update default pricing and/or conditional rate cards.\n","tags":["commerce"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChargeResponse"}}}},"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"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateChargeRequest"}}}},"security":[{"bearerAuth":[]}]}},"/commerce/charges/query":{"post":{"operationId":"commerce_queryProductRatePlanChargeWithDynamicPricing","summary":"Query a product rate plan charge with Dynamic Pricing","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","tags":["commerce"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChargeResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryChargeRequest"}}}},"security":[{"bearerAuth":[]}]}},"/commerce/products":{"post":{"operationId":"commerce_createProduct","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","tags":["commerce"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductRequest"}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"commerce_updateProduct","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","tags":["commerce"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProductResponse"}}}},"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"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProductRequest"}}}},"security":[{"bearerAuth":[]}]}},"/commerce/plans":{"post":{"operationId":"commerce_createPlan","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","tags":["commerce"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePlanResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePlanRequest"}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"commerce_updateProductRatePlan","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","tags":["commerce"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePlanResponse"}}}},"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"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePlanRequest"}}}},"security":[{"bearerAuth":[]}]}},"/commerce/plans/query":{"post":{"operationId":"commerce_queryCommerceProductRatePlans","summary":"Query product rate plan details","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","tags":["commerce"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChargeResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryChargeRequest"}}}},"security":[{"bearerAuth":[]}]}},"/commerce/plans/list":{"post":{"operationId":"commerce_queryCommercePlansList","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","tags":["commerce"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPlansResponse"}}}},"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"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPlansRequest"}}}},"security":[{"bearerAuth":[]}]}},"/commerce/products/{product_key}":{"post":{"operationId":"commerce_getProductByKey","summary":"Retrieve a product by key","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","tags":["commerce"],"parameters":[{"name":"product_key","in":"path","description":"The unique number or ID of the product to be retrieved.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProductByKeyResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"expand":{"$ref":"#/components/schemas/CommerceProductsProductKeyPostRequestBodyContentApplicationJsonSchemaExpand","description":"Controls which related objects are expanded and included in the response.\n"}}}}}},"security":[{"bearerAuth":[]}]}},"/commerce/legacy/products/list":{"post":{"operationId":"commerce_queryLegacyProducts","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","tags":["commerce"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Successful query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductListLegacyResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductListLegacyRequest"}}}},"security":[{"bearerAuth":[]}]}},"/commerce/tiers":{"put":{"operationId":"commerce_updateTier","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","tags":["commerce"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTierResponse"}}}},"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"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTierRequest"}}}},"security":[{"bearerAuth":[]}]}},"/commerce/purchase-options/list":{"post":{"operationId":"commerce_queryPurchaseOptionsbyPRPID","summary":"Query purchase options by PRP ID","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","tags":["commerce"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOptionResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseOptionRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounts":{"post":{"operationId":"accounts_POST_Account","summary":"Create an account","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","tags":["accounts"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTAccountResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTAccountType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounts/{account-key}":{"get":{"operationId":"accounts_GET_Account","summary":"Retrieve an account","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","tags":["accounts"],"parameters":[{"name":"account-key","in":"path","description":"Account number or account ID.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAccountType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"accounts_PUT_Account","summary":"Update an account","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","tags":["accounts"],"parameters":[{"name":"account-key","in":"path","description":"Account number or account ID.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTAccountType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"accounts_DELETE_Account","summary":"Delete an account","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","tags":["accounts"],"parameters":[{"name":"account-key","in":"path","description":"Account number or account ID.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounts/{account-key}/payment-methods":{"get":{"operationId":"accounts_GET_AcountPaymentMethods","summary":"List payment methods of an account","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","tags":["accounts"],"parameters":[{"name":"account-key","in":"path","description":"Account number or account ID.","required":true,"schema":{"type":"string"}},{"name":"isDefaultOnly","in":"query","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.","required":false,"schema":{"type":"boolean"}},{"name":"isActiveOnly","in":"query","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.","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAccountPaymentMethodType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounts/{account-key}/payment-methods/cascading":{"get":{"operationId":"accounts_GetAccountPaymentMethodCascading","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","tags":["accounts"],"parameters":[{"name":"account-key","in":"path","description":"Account ID.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCascadingPaymentMethodsConfigurationResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"accounts_PutAccountPaymentMethodCascading","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","tags":["accounts"],"parameters":[{"name":"account-key","in":"path","description":"Account ID.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutCascadingPaymentMethodsConfigurationRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounts/{account-key}/payment-methods/default":{"get":{"operationId":"accounts_GET_AcountDefaultPaymentMethod","summary":"Retrieve the default payment method of an account","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> ","tags":["accounts"],"parameters":[{"name":"account-key","in":"path","description":"Account number or account ID.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentMethodResponseForAccount"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounts/{account-key}/summary":{"get":{"operationId":"accounts_GET_AccountSummary","summary":"Retrieve an account summary","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","tags":["accounts"],"parameters":[{"name":"account-key","in":"path","description":"Account number or account ID.","required":true,"schema":{"type":"string"}},{"name":"excludeUsage","in":"query","description":"Indicate whether to exclude usage information in the response. The default value is `false`.","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAccountSummaryType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/contacts":{"post":{"operationId":"contacts_POST_CreateContact","summary":"Create a contact","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","tags":["contacts"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTContactType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/contacts/{contactId}":{"get":{"operationId":"contacts_GET_Contact","summary":"Retrieve a contact","description":"Retrieves detailed information about a specific contact.\n","tags":["contacts"],"parameters":[{"name":"contactId","in":"path","description":"The ID of the contact that you want to retrieve.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"contacts_PUT_Contact","summary":"Update a contact","description":"Updates a contact for a specified account.\n\nYou can update contacts for cancelled accounts.\n","tags":["contacts"],"parameters":[{"name":"contactId","in":"path","description":"The ID of the contact that you want to update.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTContactType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"contacts_DELETE_Contact","summary":"Delete a contact","description":"Deletes a contact.\n","tags":["contacts"],"parameters":[{"name":"contactId","in":"path","description":"The ID of the contact that you want to delete.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/contacts/{contactId}/transfer":{"put":{"operationId":"contacts_transferContent","summary":"Transfer a contact","description":"This operation transfers contacts of the accounts within the Customer Hierarchy when removing the account.\n","tags":["contacts"],"parameters":[{"name":"contactId","in":"path","description":"The ID of the contact that you want to scrub sensitive data from.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTTransferContact"}}}},"security":[{"bearerAuth":[]}]}},"/v1/contacts/{contactId}/scrub":{"put":{"operationId":"contacts_PUT_ScrubContact","summary":"Scrub a contact","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","tags":["contacts"],"parameters":[{"name":"contactId","in":"path","description":"The ID of the contact that you want to scrub sensitive data from.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/contact-snapshots/{contact-snapshot-id}":{"get":{"operationId":"contactSnapshots_GET_ContactSnapshot","summary":"Retrieve a contact snapshot","description":"Retrieves detailed information about the snapshot of a contact, either a bill-to contact or sold-to contact.\n","tags":["contactSnapshots"],"parameters":[{"name":"contact-snapshot-id","in":"path","description":"The unique ID of the contact snapshot to be retrieved. For example, 2c92c8955bd63cc1015bd7c151af02ab.\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETContactSnapshotResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/sign-up":{"post":{"operationId":"signUp_POST_SignUp","summary":"Sign up","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","tags":["signUp"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Accept","in":"header","description":"Expressed as MIME types that the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the `Content-Type` response header. The possible response MIME types are `application/json-seq` compatible with http://jsonlines.org/, and `text/csv` compatible with RFC 4180. `application/json-seq` is the default response MIME type. If the `Accept` header is not sepecified, or set */*, the response body is returned in application/json-seq MIME type.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUpResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUpRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/preview":{"post":{"operationId":"orders_POST_PreviewOrder","summary":"Preview an order","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","tags":["orders"],"parameters":[{"name":"summarizeInvoiceItem","in":"query","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","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostOrderPreviewResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTOrderPreviewRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/async/orders/preview":{"post":{"operationId":"orders_POST_PreviewOrderAsynchronously","summary":"Preview an order asynchronously","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","tags":["orders"],"parameters":[{"name":"summarizeInvoiceItem","in":"query","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","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Orders_POST_PreviewOrderAsynchronously_Response_202"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTOrderPreviewAsyncRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders":{"get":{"operationId":"orders_GET_AllOrders","summary":"List orders","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","tags":["orders"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"dateFilterOption","in":"query","description":"The date type to filter on. This field value can be orderDate or updatedDate. Default is orderDate.\n","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","description":"The result will only contain the orders with the date of dateFilterOption later than or equal to this date.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","description":"The result will only contains orders with the date of dateFilterOption earlier than or equal to this date.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"status","in":"query","description":"The status of orders.","required":false,"schema":{"$ref":"#/components/schemas/V1OrdersGetParametersStatus"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAllOrdersResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"orders_POST_Order","summary":"Create an order","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.","tags":["orders"],"parameters":[{"name":"returnIds","in":"query","description":"Specify whether to return IDs associated with the numbers returned in the \"Create an order\" operation.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostOrderResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTOrderRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/async/orders":{"post":{"operationId":"orders_POST_CreateOrderAsynchronously","summary":"Create an order asynchronously","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","tags":["orders"],"parameters":[{"name":"returnIds","in":"query","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","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Orders_POST_CreateOrderAsynchronously_Response_200"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTOrderAsyncRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/{orderNumber}":{"get":{"operationId":"orders_GET_Order","summary":"Retrieve an order","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","tags":["orders"],"parameters":[{"name":"orderNumber","in":"path","description":"The order number to be retrieved.","required":true,"schema":{"type":"string","format":"string"}},{"name":"getAccountDetails","in":"query","description":"Retrieves the invoice owner account details and subscription owner account details in the Order.","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrderResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"orders_PUT_Order","summary":"Update an order","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","tags":["orders"],"parameters":[{"name":"orderNumber","in":"path","description":"Order number of a order in which you are to update.","required":true,"schema":{"type":"string","format":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutOrderResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTOrderRequestType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"orders_DELETE_Order","summary":"Delete an order","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","tags":["orders"],"parameters":[{"name":"orderNumber","in":"path","description":"The number of the order to be deleted.","required":true,"schema":{"type":"string","format":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/async/orders/{orderNumber}":{"delete":{"operationId":"orders_deleteOrderAsynchronously","summary":"Delete an order asynchronously","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","tags":["orders"],"parameters":[{"name":"orderNumber","in":"path","description":"The number of the order to be deleted.","required":true,"schema":{"type":"string","format":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteOrderAsyncResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/async-jobs/{jobId}":{"get":{"operationId":"orders_GET_JobStatusAndResponse","summary":"Retrieve the status and response of a job","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","tags":["orders"],"parameters":[{"name":"jobId","in":"path","description":"UUID of the asynchronous job created by an asynchronous API operation.","required":true,"schema":{"type":"string","format":"UUID"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAsyncOrderJobResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/subscriptionOwner/{accountNumber}":{"get":{"operationId":"orders_GET_OrdersBySubscriptionOwner","summary":"List orders of a subscription owner","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","tags":["orders"],"parameters":[{"name":"accountNumber","in":"path","description":"The subscription owner account number.","required":true,"schema":{"type":"string","format":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"dateFilterOption","in":"query","description":"The date type to filter on.\nThis field value can be 'orderDate' or 'updatedDate'. Default is orderDate.\n","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","description":"The result will only contain the orders with the date of 'dateFilterOption' later than or equal to this date.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","description":"The result will only contain the orders with the date of 'dateFilterOption' earlier than or equal to this date.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrdersResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/subscription/{subscriptionNumber}":{"get":{"operationId":"orders_GET_OrdersBySubscriptionNumber","summary":"List orders by subscription number","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","tags":["orders"],"parameters":[{"name":"subscriptionNumber","in":"path","description":"The subscription number.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"dateFilterOption","in":"query","description":"The date type to filter on. This field value can be 'orderDate' or 'updatedDate'. Default is orderDate.\n","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","description":"The result will only contain the orders with the date of 'dateFilterOption' later than or equal to this date.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","description":"The result will only contain the orders with the date of 'dateFilterOption' earlier than or equal to this date.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"status","in":"query","description":"The status of orders.","required":false,"schema":{"$ref":"#/components/schemas/V1OrdersSubscriptionSubscriptionNumberGetParametersStatus"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrdersResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/invoiceOwner/{accountNumber}":{"get":{"operationId":"orders_GET_OrdersByInvoiceOwner","summary":"List orders of an invoice owner","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","tags":["orders"],"parameters":[{"name":"accountNumber","in":"path","description":"The invoice owner account number.","required":true,"schema":{"type":"string","format":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"dateFilterOption","in":"query","description":"The date type to filter on. This field value can be orderDate or updatedDate. Default is orderDate.\n","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","description":"The result will only contain the orders with the date of dateFilterOption later than or equal to this date.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","description":"The result will only contain the orders with the date of dateFilterOption earlier than or equal to this date.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"status","in":"query","description":"The status of orders.","required":false,"schema":{"$ref":"#/components/schemas/V1OrdersInvoiceOwnerAccountNumberGetParametersStatus"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrdersResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/{orderNumber}/customFields":{"put":{"operationId":"orders_PUT_UpdateOrderCustomFields","summary":"Update order custom fields","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","tags":["orders"],"parameters":[{"name":"orderNumber","in":"path","description":"The order number.","required":true,"schema":{"type":"string","format":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTOrderPatchRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscriptionNumber}/customFields":{"put":{"operationId":"orders_PUT_UpdateSubscriptionCustomFields","summary":"Update subscription custom fields","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","tags":["orders"],"parameters":[{"name":"subscriptionNumber","in":"path","description":"The subscription number to be updated.","required":true,"schema":{"type":"string","format":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSubscriptionPatchRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/{orderNumber}/triggerDates":{"put":{"operationId":"orders_PUT_OrderTriggerDates","summary":"Update order action trigger dates","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","tags":["orders"],"parameters":[{"name":"orderNumber","in":"path","description":"Order number of a pending order in which you are to update an order action's triggering dates.","required":true,"schema":{"type":"string","format":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTOrderTriggerDatesResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTOrderActionTriggerDatesRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/{orderNumber}/activate":{"put":{"operationId":"orders_PUT_OrderActivate","summary":"Activate an order","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","tags":["orders"],"parameters":[{"name":"orderNumber","in":"path","description":"Order number of a order in which you are to activate.","required":true,"schema":{"type":"string","format":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostOrderResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/{orderNumber}/cancel":{"put":{"operationId":"orders_PUT_OrderCancel","summary":"Cancel an order","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. ","tags":["orders"],"parameters":[{"name":"orderNumber","in":"path","description":"The order number of the draft order you wish to cancel.","required":true,"schema":{"type":"string","format":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutOrderCancelResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"cancelReason":{"type":"string","description":"The reason for cancelling the order."}}}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/subscription/{subscription-key}/pending":{"get":{"operationId":"orders_GET_PendingOrdersBySubscriptionNumber","summary":"List pending orders by subscription number","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","tags":["orders"],"parameters":[{"name":"subscription-key","in":"path","description":"Subscription number. For example, A-S00000135.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAllOrdersResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/orderActions/{id}":{"put":{"operationId":"orderActions_PUT_OrderActions","summary":"Update an order action","description":"Updates the change reason and custom fields for an order action.","tags":["orderActions"],"parameters":[{"name":"id","in":"path","description":"The id of the Order Action to update.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTOrderActionsRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/order-line-items/{itemId}":{"get":{"operationId":"orderLineItems_GET_OrderLineItem","summary":"Retrieve an order line item","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","tags":["orderLineItems"],"parameters":[{"name":"itemId","in":"path","description":"The id of the Order Line Item to retrieve.","required":true,"schema":{"type":"string","format":"UUID"}},{"name":"fulfillment","in":"query","description":"Return the related fulfillments or not.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrderLineItemResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"orderLineItems_PUT_OrderLineItem","summary":"Update an order line item","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","tags":["orderLineItems"],"parameters":[{"name":"itemId","in":"path","description":"The id of the Order Line Item to update.","required":true,"schema":{"type":"string","format":"UUID"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutOrderLineItemResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTOrderLineItemRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/order-line-items/bulk":{"post":{"operationId":"orderLineItems_Post_OrderLineItems","summary":"Update order line items","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","tags":["orderLineItems"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrderLineItemResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostOrderLineItemsRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/fulfillments":{"post":{"operationId":"fulfillments_Create_Fulfillment","summary":"Create fulfillments","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","tags":["fulfillments"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFulfillmentsResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFulfillmentsRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/fulfillments/{key}":{"get":{"operationId":"fulfillments_GET_Fulfillment","summary":"Retrieve a fulfillment","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","tags":["fulfillments"],"parameters":[{"name":"key","in":"path","description":"The id or fulfillment number of the Fulfillment to retrieve.","required":true,"schema":{"type":"string","format":"UUID"}},{"name":"fulfillment-items","in":"query","description":"Return the related fulfillment items or not.","required":false,"schema":{"type":"boolean","default":false}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFulfillmentResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"fulfillments_PUT_Fulfillment","summary":"Update a fulfillment","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","tags":["fulfillments"],"parameters":[{"name":"key","in":"path","description":"The id or fulfillment number of the Fulfillment to update.","required":true,"schema":{"type":"string","format":"UUID"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutFulfillmentRequestType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"fulfillments_Delete_Fulfillment","summary":"Delete a fulfillment","description":"Deletes a specified fulfillment. A fulfillment can only be deleted when it is in the `Executing` state.\n","tags":["fulfillments"],"parameters":[{"name":"key","in":"path","description":"The id or fulfillment number of the Fulfillment to delete.","required":true,"schema":{"type":"string","format":"UUID"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/fulfillment-items":{"post":{"operationId":"fulfillments_Create_FulfillmentItem","summary":"Create fulfillment items","description":"Creates one or multiple fulfillment items.\n","tags":["fulfillments"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFulfillmentItemsResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostFulfillmentItemsRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/fulfillment-items/{id}":{"get":{"operationId":"fulfillments_GET_FulfillmentItem","summary":"Retrieve a fulfillment item","description":"Retrieves the detailed information about a specified fulfillment item. \n","tags":["fulfillments"],"parameters":[{"name":"id","in":"path","description":"The id of the Fulfillment Item to retrieve.","required":true,"schema":{"type":"string","format":"UUID"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFulfillmentItemResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"fulfillments_PUT_FulfillmentItem","summary":"Update a fulfillment item","description":"Updates a specified fulfillment item. \n","tags":["fulfillments"],"parameters":[{"name":"id","in":"path","description":"The id of the Fulfillment Item to update.","required":true,"schema":{"type":"string","format":"UUID"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutFulfillmentItemRequestType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"fulfillments_Delete_FulfillmentItem","summary":"Delete a fulfillment item","description":"Deletes a specified fulfillment item.\n","tags":["fulfillments"],"parameters":[{"name":"id","in":"path","description":"The id of the Fulfillment Item to delete.","required":true,"schema":{"type":"string","format":"UUID"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/ramps/{rampNumber}":{"get":{"operationId":"ramps_GET_RampByRampNumber","summary":"Retrieve a ramp","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","tags":["ramps"],"parameters":[{"name":"rampNumber","in":"path","description":"The automatically generated number of a ramp. For example, R-00000268.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRampByRampNumberResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/ramps/{rampNumber}/ramp-metrics":{"get":{"operationId":"ramps_GET_RampMetricsByRampNumber","summary":"List all ramp metrics of a ramp","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","tags":["ramps"],"parameters":[{"name":"rampNumber","in":"path","description":"The automatically generated number of a ramp. For example, R-00000268.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRampMetricsByRampNumberResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscriptionKey}/ramps":{"get":{"operationId":"ramps_GET_RampsBySubscriptionKey","summary":"Retrieve a ramp by subscription key","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","tags":["ramps"],"parameters":[{"name":"subscriptionKey","in":"path","description":"The ID or number of an existing subscription.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRampsBySubscriptionKeyResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscriptionKey}/ramp-metrics":{"get":{"operationId":"ramps_GET_RampMetricsBySubscriptionKey","summary":"List ramp metrics by subscription key","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","tags":["ramps"],"parameters":[{"name":"subscriptionKey","in":"path","description":"The ID or number of an existing subscription.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRampMetricsBySubscriptionKeyResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/orders/{orderNumber}/ramp-metrics":{"get":{"operationId":"ramps_GET_RampMetricsByOrderNumber","summary":"List ramp metrics by order number","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","tags":["ramps"],"parameters":[{"name":"orderNumber","in":"path","description":"The number of the existing order.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRampMetricsByOrderNumberResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/preview":{"post":{"operationId":"subscriptions_POST_PreviewSubscription","summary":"Preview a subscription","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","tags":["subscriptions"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTSubscriptionPreviewResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTSubscriptionPreviewType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscription-key}/preview":{"post":{"operationId":"subscriptions_PreviewExistingSubscription","summary":"Preview a subscription by subscription key","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","tags":["subscriptions"],"parameters":[{"name":"subscription-key","in":"path","description":"Subscription number or ID","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","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","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewExistingSubscriptionResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewExistingSubscriptionRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions":{"post":{"operationId":"subscriptions_POST_Subscription","summary":"Create a subscription","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","tags":["subscriptions"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTSubscriptionResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTSubscriptionType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/accounts/{account-key}":{"get":{"operationId":"subscriptions_GET_SubscriptionsByAccount","summary":"List subscriptions by account key","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","tags":["subscriptions"],"parameters":[{"name":"account-key","in":"path","description":"\nPossible values are:\n* an account number\n* an account ID\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"charge-detail","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"as-of-date","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"exclude-rate-plans-with-no-charges","in":"query","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","required":false,"schema":{"type":"boolean"}},{"name":"getDetailedMetrics","in":"query","description":" If the `getDetailedMetrics` field is `true`, `contractedNetMrr`, `asOfDayGrossMrr`, `asOfDayNetMrr`, and `netTotalContractedValue` will be in the response.\nThe default value is `false`. ","required":false,"schema":{"type":"boolean","default":false}},{"name":"asOfDay","in":"query","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. ","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETSubscriptionWrapper"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscription-key}":{"get":{"operationId":"subscriptions_GET_SubscriptionsByKey","summary":"Retrieve a subscription by key","description":"This REST API reference describes how to retrieve detailed information\nabout a specified subscription in the latest version.\n","tags":["subscriptions"],"parameters":[{"name":"subscription-key","in":"path","description":"Possible values are:\n  * a subscription number\n  * a subscription ID\n","required":true,"schema":{"type":"string"}},{"name":"charge-detail","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"as-of-date","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"exclude-rate-plans-with-no-charges","in":"query","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","required":false,"schema":{"type":"boolean"}},{"name":"getDetailedMetrics","in":"query","description":" If the `getDetailedMetrics` field is `true`, `contractedNetMrr`, `asOfDayGrossMrr`, `asOfDayNetMrr`, and `netTotalContractedValue` will be in the response.\nThe default value is `false`. ","required":false,"schema":{"type":"boolean","default":false}},{"name":"asOfDay","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"getInvoiceOwnerDetails","in":"query","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. ","required":false,"schema":{"type":"boolean"}},{"name":"getSubscriptionOwnerDetails","in":"query","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. ","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETSubscriptionByKeyWithSuccess"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"subscriptions_PUT_Subscription","summary":"Update a subscription","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","tags":["subscriptions"],"parameters":[{"name":"subscription-key","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSubscriptionResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSubscriptionType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscription-key}/versions/{version}":{"get":{"operationId":"subscriptions_GET_SubscriptionsByKeyAndVersion","summary":"Retrieve a subscription by key and version","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","tags":["subscriptions"],"parameters":[{"name":"subscription-key","in":"path","description":"Subscription number. For example, A-S00000135.\n","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","description":"Subscription version. For example, 1.\n","required":true,"schema":{"type":"string"}},{"name":"charge-detail","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"as-of-date","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"exclude-rate-plans-with-no-charges","in":"query","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","required":false,"schema":{"type":"boolean"}},{"name":"getDetailedMetrics","in":"query","description":" If the `getDetailedMetrics` field is `true`, `contractedNetMrr`, `asOfDayGrossMrr`, `asOfDayNetMrr`, and `netTotalContractedValue` will be in the response.\nThe default value is `false`. ","required":false,"schema":{"type":"boolean","default":false}},{"name":"asOfDay","in":"query","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. ","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETSubscriptionTypeWithSuccess"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscription-key}/renew":{"put":{"operationId":"subscriptions_PUT_RenewSubscription","summary":"Renew a subscription","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","tags":["subscriptions"],"parameters":[{"name":"subscription-key","in":"path","description":"Subscription number or ID","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTRenewSubscriptionResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTRenewSubscriptionType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscription-key}/cancel":{"put":{"operationId":"subscriptions_PUT_CancelSubscription","summary":"Cancel a subscription","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","tags":["subscriptions"],"parameters":[{"name":"subscription-key","in":"path","description":"Subscription number or ID. Subscription status must be `Active`.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTSubscriptionCancellationResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTSubscriptionCancellationType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscription-key}/resume":{"put":{"operationId":"subscriptions_PUT_ResumeSubscription","summary":"Resume a subscription","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","tags":["subscriptions"],"parameters":[{"name":"subscription-key","in":"path","description":"Subscription number or ID. Subscription status must be Suspended.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSubscriptionResumeResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSubscriptionResumeType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscription-key}/suspend":{"put":{"operationId":"subscriptions_PUT_SuspendSubscription","summary":"Suspend a subscription","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.  The response will be different if Orders is enabled in tenant and examples of the response can be found in [Create an Order](https://developer.zuora.com/v1-api-reference/api/orders/post_order) call response samples. Also, more examples can be found in the [Order Basics for Developers](https://developer.zuora.com/docs/get-started/api-tutorials/orders-tutorials/order-basics) tutorial as well as the [Error handling code](https://developer.zuora.com/docs/guides/error-handling).  If Orders is enabled in your tenant, you must plan for refactoring this API operation and the corresponding orders API operation.\n","tags":["subscriptions"],"parameters":[{"name":"subscription-key","in":"path","description":"Subscription number or ID. Subscription status must be Active.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSubscriptionSuspendResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSubscriptionSuspendType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscription-key}/delete":{"put":{"operationId":"subscriptions_PUT_DeleteSubscription","summary":"Delete a subscription by number","description":"This REST API reference describes how to delete a subscription of the specified subscription number.\n","tags":["subscriptions"],"parameters":[{"name":"subscription-key","in":"path","description":"Subscription number","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTDeleteSubscriptionResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/{subscriptionNumber}/versions/{version}/customFields":{"put":{"operationId":"subscriptions_PUT_UpdateSubscriptionCustomFieldsOfASpecifiedVersion","summary":"Update subscription custom fields of a subscription version","description":"Updates the custom fields of a specified subscription version.\n","tags":["subscriptions"],"parameters":[{"name":"subscriptionNumber","in":"path","description":"The subscription number to be updated.","required":true,"schema":{"type":"string","format":"string"}},{"name":"version","in":"path","description":"The subscription version to be updated.","required":true,"schema":{"type":"string","format":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSubscriptionPatchSpecificVersionRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/subscriptions/subscription-metrics":{"get":{"operationId":"subscriptions_GetMetricsBySubscriptionNumbers","summary":"List subscription metrics by subscription numbers","description":"Lists subscription metrics for the subscriptions that you specify by subscription numbers.\n","tags":["subscriptions"],"parameters":[{"name":"asOfDay","in":"query","description":"The date for the metrics. The date should be in the format `YYYY-MM-DD`. The default value is the current date.","required":false,"schema":{"type":"string"}},{"name":"subscriptionNumbers[]","in":"query","description":"The subscription numbers of existing subscriptions.","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETMetricsBySubscriptionNumbersResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/omni-channel-subscriptions":{"post":{"operationId":"omnichannelSubscriptions_postOmnichannelSubscription","summary":"Create an omnichannel subscription","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","tags":["omnichannelSubscriptions"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOmniChannelSubscriptionResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOmniChannelSubscriptionRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/omni-channel-subscriptions/{subscriptionKey}":{"get":{"operationId":"omnichannelSubscriptions_getOmnichannelSubscription","summary":"Retrieve an omnichannel subscription","description":"Retrieves the information about a specific omnichannel subscription. ","tags":["omnichannelSubscriptions"],"parameters":[{"name":"subscriptionKey","in":"path","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.","required":true,"schema":{"type":"string"}},{"name":"getAccountDetails","in":"query","description":"Retrieves the details of an account.","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOmniChannelSubscriptionResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"omnichannelSubscriptions_deleteOmnichannelSubscription","summary":"Delete an omnichannel subscription","description":"Deletes a specified omnichannel subscription. ","tags":["omnichannelSubscriptions"],"parameters":[{"name":"subscriptionKey","in":"path","description":"The key of the omnichannel subscription to be deleted.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/rateplans/{ratePlanId}":{"get":{"operationId":"ratePlans_GET_RatePlan","summary":"Retrieve a rate plan","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","tags":["ratePlans"],"parameters":[{"name":"ratePlanId","in":"path","description":"The ID of the subscription rate plan to be retrieved.","required":true,"schema":{"type":"string","format":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrderActionRatePlanResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/commitments":{"get":{"operationId":"commitments_getCommitments","summary":"List commitments for an account","description":"Retrieves a paginated list of commitments for a commitment owner account.","tags":["commitments"],"parameters":[{"name":"accountNumber","in":"query","description":"Account number to fetch commitments for.","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","description":"Filter commitments by type.","required":false,"schema":{"$ref":"#/components/schemas/CommitmentsGetParametersType"}},{"name":"page","in":"query","description":"Page number for pagination.","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"Page size for pagination.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCommitmentsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/commitments/{commitmentKey}":{"get":{"operationId":"commitments_getCommitmentByKey","summary":"Retrieve a commitment","description":"Retrieves the details of a specific commitment using its ID or number.","tags":["commitments"],"parameters":[{"name":"commitmentKey","in":"path","description":"The unique identifier (ID or number) of the commitment.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCommitmentResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/commitments/periods":{"get":{"operationId":"commitments_getCommitmentPeriods","summary":"List periods for a commitment","description":"Lists periods of the commitment. You can paginate the results using `page` and `pageSize` query parameters.\n","tags":["commitments"],"parameters":[{"name":"commitmentKey","in":"query","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.","required":false,"schema":{"type":"string"}},{"name":"startDate","in":"query","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`.","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","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`.","required":false,"schema":{"type":"string","format":"date"}},{"name":"accountNumber","in":"query","description":"Account number to which the commitment belongs to. Required if `commitmentKey` is not provided. Must be used together with `startDate` and `endDate`.\n","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Page number for pagination.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"Page size for pagination.\n","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCommitmentPeriodsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/commitments/{commitmentId}/balancepreview":{"get":{"operationId":"commitments_getCommitmentBalancePreview","summary":"Preview the balance for a commitment","description":"Preview the balance for a commitment for current and past periods.\nFuture 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","tags":["commitments"],"parameters":[{"name":"commitmentId","in":"path","description":"The unique identifier of the commitment.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Page number for pagination.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"Page size for pagination.\n","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCommitmentBalanceResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/commitments/{commitmentKey}/schedules":{"get":{"operationId":"commitments_listCommitmentSchedules","summary":"List schedules for a commitment","description":"Retrieves all the schedules for a specific commitment.\n","tags":["commitments"],"parameters":[{"name":"commitmentKey","in":"path","description":"The unique identifier (ID or number) of the commitment.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Page number for pagination.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"Page size for pagination.\n","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCommitmentScheduleResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/prepayments/{prepaymentId}/expire":{"put":{"operationId":"commitments_expirePrepayment","summary":"Expire a commitment-linked prepayment","description":"Expires a single commitment-linked prepayment and returns the updated prepayment state.\n\nAfter the prepayment is expired, it does not participate in future drawdown. \n","tags":["commitments"],"parameters":[{"name":"prepaymentId","in":"path","description":"The identifier of the prepayment to expire.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpirePrepaymentResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/commitments/{commitmentKey}/commitmentChanges":{"get":{"operationId":"commitments_listCommitmentHistoricalChanges","summary":"List the change history for a commitment","description":"Lists the historical changes made to a specific commitment, ordered by the most recent changes first.\n","tags":["commitments"],"parameters":[{"name":"commitmentKey","in":"path","description":"The unique identifier (ID or number) of the commitment.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Page number for pagination.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"Page size for commitment.\n","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCommitmentHistoricalChangesResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/ppdd/reverse-rollover":{"post":{"operationId":"prepaidWithDrawdown_POST_ReverseRollover","summary":"Reverse fund rollover","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","tags":["prepaidWithDrawdown"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTReverseRolloverResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTReverseRolloverRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/ppdd/rollover":{"post":{"operationId":"prepaidWithDrawdown_POST_Rollover","summary":"Trigger fund rollover","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","tags":["prepaidWithDrawdown"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTTriggerRolloverResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTTriggerRolloverRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/prepaid-balance-funds/deplete":{"post":{"operationId":"prepaidWithDrawdown_DepleteFunds","summary":"Deplete funds","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. ","tags":["prepaidWithDrawdown"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTDepleteFundResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTDepleteFundRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/usage":{"post":{"operationId":"usage_POST_Usage","summary":"Upload a usage file","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","tags":["usage"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTUsageResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The usage data to import. The supported formats are excel, csv, and zip.\n"}},"required":["file"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/invoice-item/{invoice-item-id}/usage-rate-detail":{"get":{"operationId":"usage_GET_Usage_Rate_Detail_By_Invoice_Item","summary":"Retrieve usage rate detail for an invoice item","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","tags":["usage"],"parameters":[{"name":"invoice-item-id","in":"path","description":"Invoice item ID. For example, `402880e57f725d85017f7267c4ad002b`. Available through Data Source export.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETUsageRateDetailWrapper"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/usage":{"post":{"operationId":"usage_Object_POSTUsage","summary":"CRUD: Create a usage record","description":"Creates a usage record.","tags":["usage"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateOrModifyResponse"}}}},"400":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}},"401":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateUsage"}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/usage/{id}":{"get":{"operationId":"usage_Object_GETUsage","summary":"CRUD: Retrieve a usage record","description":"Retrieve a usage record.","tags":["usage"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"fields","in":"query","description":"Object fields to return","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyGetUsage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyNoDataResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"usage_Object_PUTUsage","summary":"CRUD: Update a usage record","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.","tags":["usage"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateOrModifyResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyModifyUsage"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"usage_Object_DELETEUsage","summary":"CRUD: Delete a usage record","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.","tags":["usage"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyDeleteResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/meters/run/{meterId}/{version}":{"post":{"operationId":"meters_runSpecificVersionOfMeter","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\n**Note on long-running meters and timeouts:** \nFor large meters with many operators, this API call might take longer to return and, in some cases, can time out even though the meter run has been successfully triggered.\nTo safely handle this, provide a `uniqueKey` field in the request body.\nIf the operation times out, retry the same request with the same `uniqueKey`.\nIf the original run already exists, the API returns a 400 error indicating a duplicate `uniqueKey` instead of creating a new run. \n","tags":["meters"],"parameters":[{"name":"meterId","in":"path","description":"The ID of the meter to run. You can find this ID in the Zuora Mediation UI URL when viewing a meter.","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","description":"The version of the meter to run. Currently, the only supported value is `0.0.1` for all meters. Always pass `0.0.1` in this path parameter.","required":true,"schema":{"$ref":"#/components/schemas/MetersRunMeterIdVersionPostParametersVersion"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Successful meter run","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunMeterVersionResponse"}}}},"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"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunMeterVersionRequest"}}}},"security":[{"bearerAuth":[]}]}},"/meters/debug/{meterId}/{version}":{"post":{"operationId":"meters_testSpecificVersionOfMeter","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.","tags":["meters"],"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":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"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"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestSpecificMeterRequest"}}}},"security":[{"bearerAuth":[]}]}},"/meters/{meterId}/summary":{"post":{"operationId":"meters_retrieveMeterSummaryData","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.","tags":["meters"],"parameters":[{"name":"meterId","in":"path","description":"The ID of the meter.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSpecificMeterSummaryResponse"}}}},"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"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSpecificMeterSummaryRequest"}}}},"security":[{"bearerAuth":[]}]}},"/meters/{meterId}/{version}/runStatus":{"get":{"operationId":"meters_getRunStatusOfSpecificMeterVersion","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.","tags":["meters"],"parameters":[{"name":"meterId","in":"path","description":"ID of the meter.","required":true,"schema":{"type":"integer"}},{"name":"version","in":"path","description":"Version of the meter.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"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"}}}}},"security":[{"bearerAuth":[]}]}},"/meters/export/{meterId}":{"get":{"operationId":"meters_exportSpecificMeter","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","tags":["meters"],"parameters":[{"name":"meterId","in":"path","description":"ID of the meter to export.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"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"}}}}},"security":[{"bearerAuth":[]}]}},"/meters/import":{"post":{"operationId":"meters_importMeterDefinition","summary":"Import a meter definition","description":"Import a meter definition into Zuora Mediation using a file exported from the Export Meter API.\n","tags":["meters"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"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"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"Meter definition file, should match format from Export Meter API"},"globalId":{"type":"string","description":"If present and matches an existing meter, updates it. Else, creates a new meter with this globalId."}},"required":["file"]}}}},"security":[{"bearerAuth":[]}]}},"/meters/files":{"post":{"operationId":"dataIngestion_uploadMeteringFile","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","tags":["dataIngestion"],"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"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","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"}},"required":["file"]}}}},"security":[{"bearerAuth":[]}]}},"/usage/bulk/{meterGlobalId}":{"post":{"operationId":"dataIngestion_ingestUsageEvents","summary":"Ingest usage events for a meter","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","tags":["dataIngestion"],"parameters":[{"name":"meterGlobalId","in":"path","description":"The global ID of the meter.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"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"}}}}},"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.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data_Ingestion_ingestUsageEvents_Request"}}}},"security":[{"bearerAuth":[]}]}},"/meters/{meterId}/auditTrail/entries":{"get":{"operationId":"auditTrail_getAuditTrailEntriesForMeter","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.","tags":["auditTrail"],"parameters":[{"name":"meterId","in":"path","description":"ID of the meter.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"exportType","in":"query","description":"Type of the export. `SAMPLE` indicates an export of success records, `ERROR` indicates an export of error records.","required":true,"schema":{"$ref":"#/components/schemas/MetersMeterIdAuditTrailEntriesGetParametersExportType"}},{"name":"runType","in":"query","description":"Specifies the type of run. `DEBUG` indicates a test run, `NORMAL` indicates a live run.","required":true,"schema":{"$ref":"#/components/schemas/MetersMeterIdAuditTrailEntriesGetParametersRunType"}},{"name":"sessionId","in":"query","description":"A specific session ID.\n","required":false,"schema":{"type":"string"}},{"name":"queryFromTime","in":"query","description":"The minimum timestamp of the audit trail data. The value must be an ISO 8601 timestamp with a numeric timezone offset in the format `YYYY-MM-DDTHH:MM:SS±HHMM`. For UTC, use `+0000`.\n","required":true,"schema":{"type":"string"}},{"name":"queryToTime","in":"query","description":"The maximum timestamp of the audit trail data. The value must be an ISO 8601 timestamp with a numeric timezone offset in the format `YYYY-MM-DDTHH:MM:SS±HHMM`. For UTC, use `+0000`.\n","required":true,"schema":{"type":"string"}},{"name":"operatorId","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Page size for pagination.\n","required":false,"schema":{"type":"integer","maximum":500,"default":30}},{"name":"cursor","in":"query","description":"nextPage token from previous response.\n","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAuditTrailResponse"}}}},"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"}}}}},"security":[{"bearerAuth":[]}]}},"/meters/{meterId}/auditTrail/export":{"get":{"operationId":"auditTrail_getAuditTrailExportJobs","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.\nYou can filter the results by export type and session IDs using the `exportType` and `sessionIds`\nquery parameters. Use the returned `status` and `fileList` fields on each job to determine whether\na job is complete and which files to download. Then use the \"Retrieve the presigned URL for an\nexport job\" operation with each `fileKey` in `fileList` to obtain the download URLs.\n","tags":["auditTrail"],"parameters":[{"name":"meterId","in":"path","description":"ID of the meter.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"exportType","in":"query","description":"Type of the export. `SAMPLE` indicates an export of success records, `ERROR` indicates an export of error records.","required":false,"schema":{"$ref":"#/components/schemas/MetersMeterIdAuditTrailExportGetParametersExportType"}},{"name":"sessionIds","in":"query","description":"The session IDs of the meter run. For example, `R-000001, R-000002`.\n","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"pageSize","in":"query","description":"Page size for pagination.\n","required":false,"schema":{"type":"integer","maximum":100,"default":30}},{"name":"page","in":"query","description":"The page number.\n","required":false,"schema":{"type":"integer","default":1}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAuditTrailExportResponse"}}}},"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"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"auditTrail_createAuditTrailExportJob","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.","tags":["auditTrail"],"parameters":[{"name":"meterId","in":"path","description":"The ID of the meter.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"exportType","in":"query","description":"Type of the export. `SAMPLE` indicates an export of success records, `ERROR` indicates an export of error records.","required":true,"schema":{"$ref":"#/components/schemas/MetersMeterIdAuditTrailExportPostParametersExportType"}},{"name":"runType","in":"query","description":"Specifies the type of run. `DEBUG` indicates a test run, `NORMAL` indicates a live run.","required":true,"schema":{"$ref":"#/components/schemas/MetersMeterIdAuditTrailExportPostParametersRunType"}},{"name":"sessionIds","in":"query","description":"A list of specific run IDs to export. For example, `R-000001, R-000002`.\n","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"runStatuses","in":"query","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","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"operatorIds","in":"query","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","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"queryFromTime","in":"query","description":"The minimum timestamp for the data to be exported. The standard used is ISO 8601 with timezones.\n","required":true,"schema":{"type":"string"}},{"name":"queryToTime","in":"query","description":"The maximum timestamp for the data to be exported. The standard used is ISO 8601 with timezones.\n","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","description":"Required format for the exported data. \n\nSupported values are:\n- `csv`: Row-based CSV output\n- `parquet`: Columnar Parquet output\n- `avro`: Avro output\n\nIf omitted, `csv` is used by default for backward compatibility.\n","required":false,"schema":{"$ref":"#/components/schemas/MetersMeterIdAuditTrailExportPostParametersFormat","default":"csv"}},{"name":"compression","in":"query","description":"Optional compression algorithm applied to the exported file(s).\n\nSupported values are:\n- `none`: No compression (default)\n- `gzip`: GZIP compression\n- `lz4`: LZ4 compression\n- `zstd`: Zstandard compression\n\nIf omitted, `none` is used and the export produces an uncompressed\nfile. When a compression value other than `none` is specified, the\ngenerated export files are stored in compressed form and must be\ndecompressed by the client after download.\n","required":false,"schema":{"$ref":"#/components/schemas/MetersMeterIdAuditTrailExportPostParametersCompression","default":"none"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportAuditTrailResponse"}}}},"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"}}}}},"security":[{"bearerAuth":[]}]}},"/meters/auditTrail/presignedUrl":{"get":{"operationId":"auditTrail_getPresignedURLForMeterExport","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.","tags":["auditTrail"],"parameters":[{"name":"fileKey","in":"query","description":"The file key of the export file to download.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPresignedURLResponse"}}}},"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"}}}}},"security":[{"bearerAuth":[]}]}},"/meters/{meterId}/prefetchAudit":{"get":{"operationId":"auditTrail_listPrefetchAuditRecords","summary":"List prefetch audit records","description":"List audit records for prefetch operations by processor ID with filtering and cursor-based pagination.","tags":["auditTrail"],"parameters":[{"name":"meterId","in":"path","description":"The ID of the meter.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"operatorId","in":"query","description":"Unique identifier for the processor.","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","description":"Start date for filtering audit records (inclusive) in YYYY-MM-DD format. If not provided, defaults to 7 days before today (UTC).","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"endDate","in":"query","description":"End date for filtering audit records (inclusive) in YYYY-MM-DD format. If not provided, defaults to today (UTC).","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"triggerType","in":"query","description":"Filter by trigger type.","required":false,"schema":{"$ref":"#/components/schemas/MetersMeterIdPrefetchAuditGetParametersTriggerType"}},{"name":"status","in":"query","description":"Filter by job status. Repeat this parameter to specify multiple values.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/MetersMeterIdPrefetchAuditGetParametersStatusSchemaItems"}}},{"name":"pageSize","in":"query","description":"Number of records to return per page.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","description":"Cursor for pagination (obtained from `nextPage` or `previousPage` in the response).","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPrefetchAuditResponse"}}}},"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"}}}}},"security":[{"bearerAuth":[]}]}},"/meters/events/bulkDelete":{"post":{"operationId":"eventStore_bulkDeleteEventsFromEventStore","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","tags":["eventStore"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"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"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The file that contains the event IDs to delete."},"storeId":{"type":"integer","description":"ID of the event store to delete events from."}},"required":["file","storeId"]}}}},"security":[{"bearerAuth":[]}]}},"/meters/events/stores/{eventStoreId}/jobs/latest":{"get":{"operationId":"eventStore_getLatestQueryJobOfSpecificEventStore","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 (for example, DELETE), status, record counts, and timestamps.","tags":["eventStore"],"parameters":[{"name":"eventStoreId","in":"path","description":"ID of the event store.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"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"}}}}},"security":[{"bearerAuth":[]}]}},"/meters/events/stores/{eventStoreId}/truncate":{"post":{"operationId":"eventStore_truncateEventStore","summary":"Truncate all data from an event store","description":"Truncates (deletes) all events from a specific event store in Zuora Mediation.\n\nThis operation runs asynchronously and returns a query job identifier that\nyou can use with the Event Store query job APIs to monitor status.\n","tags":["eventStore"],"parameters":[{"name":"eventStoreId","in":"path","description":"ID of the event store to truncate.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK - Truncation job successfully submitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TruncateEventStoreResponse"}}}},"400":{"description":"Bad Request - Invalid eventStoreId parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediationTruncateErrorResponse"}}}},"404":{"description":"Not Found - Event Store does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediationTruncateErrorResponse"}}}},"409":{"description":"Conflict - Event Store is in a non-modifiable state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediationTruncateErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/meters/event-store-queries":{"post":{"operationId":"eventStore_submitEventStoreQuery","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.","tags":["eventStore"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitEventStoreQueryResponse"}}}},"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"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitEventStoreQueryRequest"}}}},"security":[{"bearerAuth":[]}]}},"/meters/event-store-queries/{queryId}":{"get":{"operationId":"eventStore_getQueryResultsForEventStore","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.","tags":["eventStore"],"parameters":[{"name":"queryId","in":"path","description":"ID of the query.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Page size for page-based pagination of query results.\nMust be used together with the `page` parameter. Maximum 50.\n","required":false,"schema":{"type":"integer","maximum":50,"default":20}},{"name":"page","in":"query","description":"1-based page index for page-based pagination of query results.\nCombine with `pageSize` and the `data` > `totalCount` field in the response\nto iterate through all matching rows.\n","required":false,"schema":{"type":"integer","default":1}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetQueryResultsResponse"}}}},"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"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/adjustments":{"get":{"operationId":"deliveryAdjustments_GET_Subscription_Adjustments","summary":"List all delivery adjustments of a subscription","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","tags":["deliveryAdjustments"],"parameters":[{"name":"subscription-number","in":"query","description":"A subscription number.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAdjustmentsBySubscriptionNumberResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"deliveryAdjustments_Create_Adjustment","summary":"Create a delivery adjustment","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","tags":["deliveryAdjustments"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAdjustmentsResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTCreateBillingAdjustmentRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/adjustments/preview":{"post":{"operationId":"deliveryAdjustments_Preview_Adjustment","summary":"Preview a delivery adjustment","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","tags":["deliveryAdjustments"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAdjustmentsResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPreviewBillingAdjustmentRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/adjustments/{adjustment-key}":{"get":{"operationId":"deliveryAdjustments_GET_Adjustment","summary":"Retrieve a delivery adjustment","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","tags":["deliveryAdjustments"],"parameters":[{"name":"adjustment-key","in":"path","description":"The delivery adjustment ID or number to retrieve.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAdjustmentByIdResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/adjustments/{adjustmentId}/cancel":{"put":{"operationId":"deliveryAdjustments_PUT_CancelAdjustment","summary":"Cancel a delivery adjustment","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","tags":["deliveryAdjustments"],"parameters":[{"name":"adjustmentId","in":"path","description":"The ID of the delivery adjustment to cancel.\n","required":true,"schema":{"type":"string","format":"UUID"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCancelAdjustmentResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBillingAdjustmentRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/billing-documents":{"get":{"operationId":"billingDocuments_GET_BillingDocuments","summary":"List billing documents for an account","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","tags":["billingDocuments"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"accountId","in":"query","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","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"accountNumber","in":"query","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","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"documentDate","in":"query","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","required":false,"schema":{"type":"string","format":"date"}},{"name":"status","in":"query","description":"The status of the billing document.\n","required":false,"schema":{"$ref":"#/components/schemas/V1BillingDocumentsGetParametersStatus"}},{"name":"sort","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDocumentQueryResponseElementType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounts/billing-documents/files/deletion-jobs":{"post":{"operationId":"billingDocuments_POST_BillingDocumentFilesDeletionJob","summary":"Create a job to hard delete billing document files","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","tags":["billingDocuments"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTBillingDocumentFilesDeletionJobResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTBillingDocumentFilesDeletionJobRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounts/billing-documents/files/deletion-jobs/{jobId}":{"get":{"operationId":"billingDocuments_GET_BillingDocumentFilesDeletionJob","summary":"Retrieve a job of hard deleting billing document files","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","tags":["billingDocuments"],"parameters":[{"name":"jobId","in":"path","description":"The unique ID of a billing document file deletion job. For example, 2c92c8f83dc4f752013dc72c24ee016c.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETBillingDocumentFilesDeletionJobResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounts/{key}/billing-documents/generate":{"post":{"operationId":"billingDocuments_POST_GenerateBillingDocuments","summary":"Generate billing documents by account ID","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","tags":["billingDocuments"],"parameters":[{"name":"key","in":"path","description":"The ID or number of the customer account that billing documents are generated for. For example, 8a8082e65b27f6c3015ba3e326b26419 or AC0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateBillingDocumentResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostGenerateBillingDocumentType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices":{"post":{"operationId":"invoices_POST_StandaloneInvoice","summary":"Create a standalone invoice","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","tags":["invoices"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostInvoiceResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostInvoiceType"}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"invoices_PUT_BatchUpdateInvoices","summary":"Update invoices","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","tags":["invoices"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutBatchInvoiceType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/batch":{"post":{"operationId":"invoices_POST_StandaloneInvoices","summary":"Create standalone invoices","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","tags":["invoices"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBatchInvoiceResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBatchInvoicesType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/bulk-post":{"post":{"operationId":"invoices_POST_PostInvoices","summary":"Post invoices","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","tags":["invoices"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicesBatchPostResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTInvoicesBatchPostType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/pdf-status":{"get":{"operationId":"invoices_GetInvoicePdfStatus","summary":"Retrieve the PDF file generation status of invoices","description":"Retrieves the PDF generation statuses of a batch of invoices. ","tags":["invoices"],"parameters":[{"name":"invoiceKeys","in":"query","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.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetInvoicePdfStatusBatchResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}":{"get":{"operationId":"invoices_Get_GetInvoice","summary":"Retrieve an invoice","description":"Retrieves a specific invoice.\n","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetInvoiceResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"invoices_PUT_UpdateInvoice","summary":"Update an invoice","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","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutInvoiceResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutInvoiceType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"invoices_DELETE_DeleteInvoice","summary":"Delete an invoice","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","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice to be deleted. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteInvoiceResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/cancel":{"put":{"operationId":"invoices_cancelInvoice","summary":"Cancel an invoice","description":"Cancel the invoice synchronously or asynchronously based on the number of invoice \nitems it contains. By default, Zuora cancels invoices with fewer than 1,000 invoice \nitems synchronously and cancels invoices with 1,000 or more invoice items asynchronously. \n\n\nFor invoices with more than 1,000 invoice items, use the `jobStatus` field in the response \nto determine whether the operation is still in progress or has completed. If `jobStatus` is \n`Completed`, the operation has finished. If `jobStatus` is `Pending`, the operation is still \nin progress, and you must check the job status later to confirm completion. \n\n\n**Note:** To change this threshold, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>\n","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelInvoiceResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/application-parts":{"get":{"operationId":"invoices_GET_InvoiceApplicationParts","summary":"List all application parts of an invoice","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","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetInvoiceApplicationPartCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/emails":{"post":{"operationId":"invoices_POST_EmailInvoice","summary":"Email an invoice","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","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostInvoiceEmailRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/files":{"get":{"operationId":"invoices_GET_InvoiceFiles","summary":"List all files of an invoice","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","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The unique ID or number of an invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV00000001.\n","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETInvoiceFilesResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"invoices_POST_UploadFileForInvoice","summary":"Upload a file for an invoice","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","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice that you want to upload a PDF file for. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTUploadFileResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The PDF file to upload for the invoice.\n"}}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/items":{"get":{"operationId":"invoices_GET_InvoiceItems","summary":"List all items of an invoice","description":"Retrieves the information about all items of a specified invoice. \n","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The unique ID or number of an invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV00000001.\n","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETInvoiceItemsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/items/{itemId}/taxation-items":{"get":{"operationId":"invoices_GET_TaxationItemsOfInvoiceItem","summary":"List all taxation items of an invoice item","description":"Retrieves information about the taxation items of a specific invoice item. \n","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The unique ID or number of an invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV00000001.\n","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","description":"The unique ID of an invoice item. For example, 2c86c8955bd63cc1015bd7c151af02ef.\n","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETInvoiceTaxationItemsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/reverse":{"put":{"operationId":"invoices_PUT_ReverseInvoice","summary":"Reverse an invoice","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 If the specified invoice was created through invoice splitting, reversing that  invoice also reverses all split invoices that were generated from the same original invoice.  The original parent invoice remains in `Split` status and is not reversed. \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","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutReverseInvoiceResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutReverseInvoiceType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/split":{"put":{"operationId":"invoices_splitInvoice","summary":"Split an invoice","description":"Splits a draft invoice into 2 to 20 invoices based on specified amounts or percentages.  The source invoice must be in Draft status. For amount-based splits, the sum of all split  amounts must exactly equal the original invoice total, and each split amount must be at least  the minimum currency unit. For percentage-based splits, the sum of all split percentages must  be exactly 100, up to 9 decimal places. Zuora distributes charges, discounts, tax amounts, and  tax-exempt amounts proportionally across split invoices and uses a Largest Remainder algorithm  to ensure precise rounding at both the line and invoice levels.\n\nIn exclusive-tax mode, split amounts can be specified excluding tax, with tax calculated at posting,  or including tax when draft tax is calculated. In inclusive-tax mode, split amounts always represent  tax-inclusive invoice totals, with embedded tax distributed proportionally.\n\nFor invoices with a large number of invoice items, this operation might be processed asynchronously. Use the  `jobStatus` field in the response to determine the job status:\n- If `jobStatus` is `Completed`, the operation has finished and the response contains the result.\n- If `jobStatus` is `Pending`, the operation is still in progress, and you must retrieve the job status later  to confirm completion.","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitInvoiceResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitInvoiceRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/taxation-items":{"post":{"operationId":"invoices_POST_INV_TaxationItems","summary":"Create taxation items for an invoice","description":"Creates taxation items for an invoice.\n","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The unique ID or number of an invoice. For example, 8a8082e65b27f6c3015ba45ff82c7172 or INV00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETTaxationItemListType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTTaxationItemList"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/write-off-async":{"post":{"operationId":"invoices_writeOffInvoiceAsync","summary":"Write off an invoice asynchronously","description":"Asynchronously writes off a posted invoice.\\n\\nBy writing\\ \\ off an invoice, a credit memo is created and applied to the invoice. If the\\ \\ invoice contains more than 2,000 items, this operation is performed asynchronously.\\ \\ Use the [Retrieve invoice write-off async job](https://developer.zuora.com/v1-api-reference/api/invoices/retrieveinvoicewriteoffasyncjob) \\ operation to track the status of the async job.\\n\\n**Note:** This operation is only available if you have <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/adjust-invoice-amounts/invoice-settlement/get-started-with-invoice-settlement/invoice-settlement-overview\" 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://docs.zuora.com/en/zuora-billing/bill-your-customer/adjust-invoice-amounts/invoice-settlement/invoice-settlement-migration-checklist-and-guide\" target=“_blank”>Invoice Settlement Enablement and Checklist Guide</a>\\ \\ for more information.\\n\n","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"The value is in the `Bearer {token}` format where {token} is a valid OAuth token generated by calling [Create an OAuth token](https://developer.zuora.com/api-references/api/operation/createToken).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteOffInvoiceAsyncJobResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteOffInvoiceRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/write-off-async-jobs/{asyncJobId}":{"get":{"operationId":"invoices_retrieveInvoiceWriteOffAsyncJob","summary":"Retrieve an invoice write-off async job","description":"Retrieves information about a specific asynchronous\\ \\ invoice write-off job.\\n\\n**Note:** This operation is only available if you have <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/adjust-invoice-amounts/invoice-settlement/get-started-with-invoice-settlement/invoice-settlement-overview\" 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://docs.zuora.com/en/zuora-billing/bill-your-customer/adjust-invoice-amounts/invoice-settlement/invoice-settlement-migration-checklist-and-guide\" target=“_blank”>Invoice Settlement Enablement and Checklist Guide</a>\\ \\ for more information.\\n\n","tags":["invoices"],"parameters":[{"name":"asyncJobId","in":"path","description":"The unique ID of the invoice write-off async job. For example, 8a92ade496140e830196141f6cfa0001.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"The value is in the `Bearer {token}` format where {token} is a valid OAuth token generated by calling [Create an OAuth token](https://developer.zuora.com/api-references/api/operation/createToken).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteOffInvoiceAsyncJobResponse"}}}},"400":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/write-off":{"put":{"operationId":"invoices_PUT_WriteOffInvoice","summary":"Write off an invoice","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","tags":["invoices"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTWriteOffInvoiceResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTWriteOffInvoiceRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos":{"get":{"operationId":"creditMemos_GET_CreditMemos","summary":"List credit memos","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","tags":["creditMemos"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"accountId","in":"query","description":"This parameter filters the response based on the `accountId` field.\n","required":false,"schema":{"type":"string"}},{"name":"accountNumber","in":"query","description":"This parameter filters the response based on the `accountNumber` field.\n","required":false,"schema":{"type":"string"}},{"name":"amount","in":"query","description":"This parameter filters the response based on the `amount` field. \n","required":false,"schema":{"type":"number","format":"double"}},{"name":"appliedAmount","in":"query","description":"This parameter filters the response based on the `appliedAmount` field. \n","required":false,"schema":{"type":"number","format":"double"}},{"name":"autoApplyUponPosting","in":"query","description":"This parameter filters the response based on the `autoApplyUponPosting` field. \n","required":false,"schema":{"type":"boolean"}},{"name":"createdById","in":"query","description":"This parameter filters the response based on the `createdById` field. \n","required":false,"schema":{"type":"string"}},{"name":"createdDate","in":"query","description":"This parameter filters the response based on the `createdDate` field. \n","required":false,"schema":{"type":"string"}},{"name":"creditMemoDate","in":"query","description":"This parameter filters the response based on the `creditMemoDate` field. \n","required":false,"schema":{"type":"string","format":"date"}},{"name":"currency","in":"query","description":"This parameter filters the response based on the `currency` field. \n","required":false,"schema":{"type":"string"}},{"name":"excludeFromAutoApplyRules","in":"query","description":"This parameter filters the response based on the `excludeFromAutoApplyRules` field. \n","required":false,"schema":{"type":"boolean"}},{"name":"number","in":"query","description":"This parameter filters the response based on the `number` field. \n","required":false,"schema":{"type":"string"}},{"name":"referredInvoiceId","in":"query","description":"This parameter filters the response based on the `referredInvoiceId` field. \n","required":false,"schema":{"type":"string"}},{"name":"refundAmount","in":"query","description":"This parameter filters the response based on the `refundAmount` field. \n","required":false,"schema":{"type":"number","format":"double"}},{"name":"sourceId","in":"query","description":"This parameter filters the response based on the `sourceId` field. \n","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"This parameter filters the response based on the `status` field. \n","required":false,"schema":{"$ref":"#/components/schemas/V1CreditMemosGetParametersStatus"}},{"name":"targetDate","in":"query","description":"This parameter filters the response based on the `targetDate` field. \n","required":false,"schema":{"type":"string","format":"date"}},{"name":"taxAmount","in":"query","description":"This parameter filters the response based on the `taxAmount` field. \n","required":false,"schema":{"type":"number","format":"double"}},{"name":"totalTaxExemptAmount","in":"query","description":"This parameter filters the response based on the `totalTaxExemptAmount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"transferredToAccounting","in":"query","description":"This parameter filters the response based on the `transferredToAccounting` field. \n","required":false,"schema":{"$ref":"#/components/schemas/V1CreditMemosGetParametersTransferredToAccounting"}},{"name":"unappliedAmount","in":"query","description":"This parameter filters the response based on the `unappliedAmount` field. \n","required":false,"schema":{"type":"number","format":"double"}},{"name":"updatedById","in":"query","description":"This parameter filters the response based on the `updatedById` field. \n","required":false,"schema":{"type":"string"}},{"name":"updatedDate","in":"query","description":"This parameter filters the response based on the `updatedDate` field.\n","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"creditMemos_POST_CreditMemoFromPrpc","summary":"Create a credit memo from a charge","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","tags":["creditMemos"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditMemoFromChargeRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/bulk":{"post":{"operationId":"creditMemos_POST_CreateCreditMemos","summary":"Create credit memos","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","tags":["creditMemos"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreditMemosResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTBulkCreditMemosRequestType"}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"creditMemos_PUT_UpdateCreditMemos","summary":"Update credit memos","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","tags":["creditMemos"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreditMemosResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTBulkCreditMemosRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/pdf-status":{"get":{"operationId":"creditMemos_Get_CreditMemoPdfStatus","summary":"Retrieve the PDF file generation status of credit memos","description":"Retrieves the PDF generation statuses of a batch of credit memos.\n","tags":["creditMemos"],"parameters":[{"name":"creditMemoKeys","in":"query","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. ","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCreditMemoPdfStatusBatchResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoId}/items/{cmitemid}/taxation-items":{"get":{"operationId":"creditMemos_GET_TaxationItemsOfCreditMemoItem","summary":"List all taxation items of a credit memo item","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","tags":["creditMemos"],"parameters":[{"name":"cmitemid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"creditMemoId","in":"path","description":"The unique ID of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETTaxationItemsOfCreditMemoItemType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoId}/write-off":{"put":{"operationId":"creditMemos_PUT_WriteOffCreditMemo","summary":"Write off a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoId","in":"path","description":"The unique ID of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTCreditMemoWriteOffResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTCreditMemoWriteOff"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}":{"get":{"operationId":"creditMemos_GET_CreditMemo","summary":"Retrieve a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"creditMemos_PUT_UpdateCreditMemo","summary":"Update a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTCreditMemoType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"creditMemos_DELETE_CreditMemo","summary":"Delete a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/apply":{"put":{"operationId":"creditMemos_PUT_ApplyCreditMemo","summary":"Apply a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyCreditMemoType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/cancel":{"put":{"operationId":"creditMemos_PUT_CancelCreditMemo","summary":"Cancel a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/emails":{"post":{"operationId":"creditMemos_POST_EmailCreditMemo","summary":"Email a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The ID or number of a posted credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCreditMemoEmailRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/files":{"get":{"operationId":"creditMemos_GET_CreditMemoFiles","summary":"List all files of a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of an credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoFilesResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"creditMemos_POST_UploadFileForCreditMemo","summary":"Upload a file for a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The ID or number of the credit memo that you want to upload a PDF file for. For example, 402890555a7e9791015a879f064a0054 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTUploadFileResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The PDF file to upload for the credit memo.\n"}}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/items":{"get":{"operationId":"creditMemos_GET_CreditMemoItems","summary":"List credit memo items","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"amount","in":"query","description":"This parameter filters the response based on the `amount` field. \n","required":false,"schema":{"type":"number","format":"double"}},{"name":"appliedAmount","in":"query","description":"This parameter filters the response based on the `appliedAmount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"createdById","in":"query","description":"This parameter filters the response based on the `createdById` field. \n","required":false,"schema":{"type":"string"}},{"name":"createdDate","in":"query","description":"This parameter filters the response based on the `createdDate` field. \n","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"id","in":"query","description":"This parameter filters the response based on the `id` field. \n","required":false,"schema":{"type":"string"}},{"name":"refundAmount","in":"query","description":"This parameter filters the response based on the `refundAmount` field. \n","required":false,"schema":{"type":"number","format":"double"}},{"name":"serviceEndDate","in":"query","description":"This parameter filters the response based on the `serviceEndDate` field. \n","required":false,"schema":{"type":"string","format":"date"}},{"name":"serviceStartDate","in":"query","description":"This parameter filters the response based on the `serviceStartDate` field. \n","required":false,"schema":{"type":"string","format":"date"}},{"name":"sku","in":"query","description":"This parameter filters the response based on the `sku` field. \n","required":false,"schema":{"type":"string"}},{"name":"skuName","in":"query","description":"This parameter filters the response based on the `skuName` field. \n","required":false,"schema":{"type":"string"}},{"name":"sourceItemId","in":"query","description":"This parameter filters the response based on the `sourceItemId` field. \n","required":false,"schema":{"type":"string"}},{"name":"subscriptionId","in":"query","description":"This parameter filters the response based on the `subscriptionId` field.\n","required":false,"schema":{"type":"string"}},{"name":"updatedById","in":"query","description":"This parameter filters the response based on the `updatedById` field. \n","required":false,"schema":{"type":"string"}},{"name":"updatedDate","in":"query","description":"This parameter filters the response based on the `updatedDate` field.\n","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"sort","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoItemsListType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/items/{cmitemid}":{"get":{"operationId":"creditMemos_GET_CreditMemoItem","summary":"Retrieve a credit memo item","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","tags":["creditMemos"],"parameters":[{"name":"cmitemid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoItemType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/parts":{"get":{"operationId":"creditMemos_GET_CreditMemoParts","summary":"List all parts of a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoPartsCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/parts/{partid}":{"get":{"operationId":"creditMemos_GET_CreditMemoPart","summary":"Retrieve a credit memo part","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","tags":["creditMemos"],"parameters":[{"name":"partid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoPartType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/pdfs":{"post":{"operationId":"creditMemos_POST_CreditMemoPDF","summary":"Generate a credit memo PDF file","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTMemoPdfResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/post":{"put":{"operationId":"creditMemos_PUT_PostCreditMemo","summary":"Post a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/refund":{"post":{"operationId":"creditMemos_POST_RefundCreditMemo","summary":"Refund a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The ID or number of the credit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRefundCreditMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostNonRefRefundType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/reverse":{"put":{"operationId":"creditMemos_PUT_ReverseCreditMemo","summary":"Reverse a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The ID or number of the credit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutReverseCreditMemoResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutReverseCreditMemoType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/taxation-items":{"post":{"operationId":"creditMemos_POST_CM_TaxationItems","summary":"Create taxation items for a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETTaxationItemListType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTTaxationItemListForCMType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/unapply":{"put":{"operationId":"creditMemos_PUT_UnapplyCreditMemo","summary":"Unapply a credit memo","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnapplyCreditMemoType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/unpost":{"put":{"operationId":"creditMemos_PUT_UnpostCreditMemo","summary":"Unpost a credit memo","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).","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/invoice/{invoiceKey}":{"post":{"operationId":"creditMemos_POST_CreditMemoFromInvoice","summary":"Create a credit memo from an invoice","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","tags":["creditMemos"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of an invoice that you want to create a credit memo from. For example, 2c93808457d787030157e030d10f3f64 or INV00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCreditMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditMemoFromInvoiceRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/unapply-async-jobs/{unapplyAsyncJobId}":{"get":{"operationId":"creditMemos_getUnapplyCreditMemoAsyncJob","summary":"Retrieve an async unapply credit memo job by ID","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.  ","tags":["creditMemos"],"parameters":[{"name":"unapplyAsyncJobId","in":"path","description":"The unique ID of a Credit Memo Async Unapply Job Id. For example, 8a92ade496140e830196148cd0af000a.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/apply-async-jobs/{applyAsyncJobId}":{"get":{"operationId":"creditMemos_getApplyCreditMemoAsyncJob","summary":"Retrieve an async unapply credit memo job by ID","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.  ","tags":["creditMemos"],"parameters":[{"name":"applyAsyncJobId","in":"path","description":"The unique ID of a Credit Memo Async Apply Job Id. For example, 8a92ade496140e830196141f6cfa0001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/apply-async":{"put":{"operationId":"creditMemos_applyCreditMemoAsync","summary":"Apply a credit memo aysnchronously","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncApplyCreditMemoRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/unapply-async":{"put":{"operationId":"creditMemos_unapplyCreditMemoAsync","summary":"Unapply a credit memo asynchronously","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","tags":["creditMemos"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AsyncUnapplyCreditMemoRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos":{"get":{"operationId":"debitMemos_GET_DebitMemos","summary":"List debit memos","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","tags":["debitMemos"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"accountId","in":"query","description":"This parameter filters the response based on the `accountId` field.\n","required":false,"schema":{"type":"string"}},{"name":"accountNumber","in":"query","description":"This parameter filters the response based on the `accountNumber` field.\n","required":false,"schema":{"type":"string"}},{"name":"amount","in":"query","description":"This parameter filters the response based on the `amount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"balance","in":"query","description":"This parameter filters the response based on the `balance` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"beAppliedAmount","in":"query","description":"This parameter filters the response based on the `beAppliedAmount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"createdById","in":"query","description":"This parameter filters the response based on the `createdById` field.\n","required":false,"schema":{"type":"string"}},{"name":"createdDate","in":"query","description":"This parameter filters the response based on the `createdDate` field.\n","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","description":"This parameter filters the response based on the `currency` field.\n","required":false,"schema":{"type":"string"}},{"name":"debitMemoDate","in":"query","description":"This parameter filters the response based on the `debitMemoDate` field.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"dueDate","in":"query","description":"This parameter filters the response based on the `dueDate` field.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"number","in":"query","description":"This parameter filters the response based on the `number` field.\n","required":false,"schema":{"type":"string"}},{"name":"referredInvoiceId","in":"query","description":"This parameter filters the response based on the `referredInvoiceId` field.\n","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"This parameter filters the response based on the `status` field.\n","required":false,"schema":{"$ref":"#/components/schemas/V1DebitMemosGetParametersStatus"}},{"name":"targetDate","in":"query","description":"This parameter filters the response based on the `targetDate` field.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"taxAmount","in":"query","description":"This parameter filters the response based on the `taxAmount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"totalTaxExemptAmount","in":"query","description":"This parameter filters the response based on the `totalTaxExemptAmount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"updatedById","in":"query","description":"This parameter filters the response based on the `updatedById` field.\n","required":false,"schema":{"type":"string"}},{"name":"updatedDate","in":"query","description":"This parameter filters the response based on the `updatedDate` field.\n","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"debitMemos_POST_DebitMemoFromPrpc","summary":"Create a debit memo from a charge","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","tags":["debitMemos"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebitMemoFromChargeRequest"}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"debitMemos_PUT_UpdateDebitMemosDueDates","summary":"Update due dates for debit memos","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","tags":["debitMemos"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTBatchDebitMemosRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/bulk":{"post":{"operationId":"debitMemos_POST_CreateDebitMemos","summary":"Create debit memos","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","tags":["debitMemos"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDebitMemosResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTBulkDebitMemosRequestType"}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"debitMemos_PUT_UpdateDebitMemos","summary":"Update debit memos","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","tags":["debitMemos"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDebitMemosResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTBulkDebitMemosRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/pdf-status":{"get":{"operationId":"debitMemos_Get_DebitMemoPdfStatus","summary":"Retrieve the PDF file generation status of debit memos","description":"Retrieves the PDF generation statuses of a batch of debit memos.\n","tags":["debitMemos"],"parameters":[{"name":"debitMemoKeys","in":"query","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. ","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDebitMemoPdfStatusBatchResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoId}/application-parts":{"get":{"operationId":"debitMemos_GET_DebitMemoApplicationParts","summary":"List all application parts of a debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoId","in":"path","description":"The unique ID of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDebitMemoApplicationPartCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoId}/items/{dmitemid}/taxation-items":{"get":{"operationId":"debitMemos_GET_TaxationItemsOfDebitMemoItem","summary":"List all taxation items of a debit memo item","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","tags":["debitMemos"],"parameters":[{"name":"dmitemid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"debitMemoId","in":"path","description":"The unique ID of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e.\n","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETTaxationItemsOfDebitMemoItemType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}":{"get":{"operationId":"debitMemos_GET_DebitMemo","summary":"Retrieve a debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"debitMemos_PUT_DebitMemo","summary":"Update a debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTDebitMemoType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"debitMemos_DELETE_DebitMemo","summary":"Delete a debit memo","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.","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000003.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/cancel":{"put":{"operationId":"debitMemos_PUT_CancelDebitMemo","summary":"Cancel a debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000003.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/collect":{"post":{"operationId":"debitMemos_POST_DebitMemoCollect","summary":"Collect a posted debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The ID or number of a posted debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebitMemoCollectResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebitMemoCollectRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/emails":{"post":{"operationId":"debitMemos_POST_EmailDebitMemo","summary":"Email a debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The ID or number of a posted debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDebitMemoEmailType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/files":{"get":{"operationId":"debitMemos_GET_DebitMemoFiles","summary":"List all files of a debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique ID or number of an debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoFilesResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"debitMemos_POST_UploadFileForDebitMemo","summary":"Upload a file for a debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The ID or number of the debit memo that you want to upload a PDF file for. For example, 402890555a87d7f5015a8919e4fe002e or DM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTUploadFileResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The PDF file to upload for the debit memo.\n"}}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/items":{"get":{"operationId":"debitMemos_GET_DebitMemoItems","summary":"List debit memo items","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"amount","in":"query","description":"This parameter filters the response based on the `amount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"beAppliedAmount","in":"query","description":"This parameter filters the response based on the `beAppliedAmount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"createdById","in":"query","description":"This parameter filters the response based on the `createdById` field.\n","required":false,"schema":{"type":"string"}},{"name":"createdDate","in":"query","description":"This parameter filters the response based on the `createdDate` field.\n","required":false,"schema":{"type":"string"}},{"name":"id","in":"query","description":"This parameter filters the response based on the `id` field.\n","required":false,"schema":{"type":"string"}},{"name":"serviceEndDate","in":"query","description":"This parameter filters the response based on the `serviceEndDate` field.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"serviceStartDate","in":"query","description":"This parameter filters the response based on the `serviceStartDate` field.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"sku","in":"query","description":"This parameter filters the response based on the `sku` field.\n","required":false,"schema":{"type":"string"}},{"name":"skuName","in":"query","description":"This parameter filters the response based on the `skuName` field.\n","required":false,"schema":{"type":"string"}},{"name":"sourceItemId","in":"query","description":"This parameter filters the response based on the `sourceItemId` field.\n","required":false,"schema":{"type":"string"}},{"name":"subscriptionId","in":"query","description":"This parameter filters the response based on the `subscriptionId` field.\n","required":false,"schema":{"type":"string"}},{"name":"updatedById","in":"query","description":"This parameter filters the response based on the `updatedById` field.\n","required":false,"schema":{"type":"string"}},{"name":"updatedDate","in":"query","description":"This parameter filters the response based on the `updatedDate` field.\n","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoItemCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/items/{dmitemid}":{"get":{"operationId":"debitMemos_GET_DebitMemoItem","summary":"Retrieve a debit memo item","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","tags":["debitMemos"],"parameters":[{"name":"dmitemid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"debitMemoKey","in":"path","description":"The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoItemType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/pdfs":{"post":{"operationId":"debitMemos_POST_DebitMemoPDF","summary":"Generate a debit memo PDF file","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTMemoPdfResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/post":{"put":{"operationId":"debitMemos_PUT_PostDebitMemo","summary":"Post a debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/taxation-items":{"post":{"operationId":"debitMemos_POST_DM_TaxationItems","summary":"Create taxation items for a debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETTaxationItemListType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTTaxationItemListForDMType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/unpost":{"put":{"operationId":"debitMemos_PUT_UnpostDebitMemo","summary":"Unpost a debit memo","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).","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/invoice/{invoiceKey}":{"post":{"operationId":"debitMemos_POST_DebitMemoFromInvoice","summary":"Create a debit memo from an invoice","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","tags":["debitMemos"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of an invoice that you want to create a debit memo from. For example, 2c93808457d787030157e030d10f3f64 or INV00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebitMemoFromInvoiceRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/write-off":{"put":{"operationId":"debitMemos_PUT_WriteOffDebitMemo","summary":"Write off a debit memo","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","tags":["debitMemos"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTWriteOffDebitMemoResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTWriteOffDebitMemoRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/einvoice/service-providers":{"get":{"operationId":"eInvoicing_GET_EInvoicingServiceProviders","summary":"List e-invoicing service providers","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","tags":["eInvoicing"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEInvoicingServiceProvidersResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"eInvoicing_POST_EInvoicingServiceProvider","summary":"Create an e-invoicing service provider","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","tags":["eInvoicing"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEInvoicingServiceProviderResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEInvoicingServiceProviderRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/einvoice/service-providers/{key}":{"get":{"operationId":"eInvoicing_GET_EInvoicingServiceProvider","summary":"Retrieve an e-invoicing service provider","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","tags":["eInvoicing"],"parameters":[{"name":"key","in":"path","description":"The unique ID or number of the e-invoicing service provider that you want to retrieve information about.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEInvoicingServiceProviderResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"eInvoicing_PUT_UpdateEInvoicingServiceProvider","summary":"Update an e-invoicing service provider","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","tags":["eInvoicing"],"parameters":[{"name":"key","in":"path","description":"The unique ID or number of the e-invoicing service provider that you want to update.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEInvoicingServiceProviderResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEInvoicingServiceProviderRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"eInvoicing_DELETE_EInvoicingServiceProvider","summary":"Delete an e-invoicing service provider","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","tags":["eInvoicing"],"parameters":[{"name":"key","in":"path","description":"The unique ID or number of the e-invoicing service provider that you want to \n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/einvoice/business-regions":{"get":{"operationId":"eInvoicing_GET_EInvoicingBusinessRegions","summary":"List e-invoicing business regions","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","tags":["eInvoicing"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEInvoicingBusinessRegionsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"eInvoicing_POST_CreateEInvoicingBusinessRegion","summary":"Create an e-invoicing business region","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","tags":["eInvoicing"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEInvoicingBusinessRegionResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEInvoicingBusinessRegionRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/einvoice/business-regions/{key}":{"get":{"operationId":"eInvoicing_GET_EInvoicingBusinessRegion","summary":"Retrieve an e-invoicing business region","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","tags":["eInvoicing"],"parameters":[{"name":"key","in":"path","description":"The unqiue ID or number of the e-invoicing business region that you want to retrieve information about.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEInvoicingBusinessRegionResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"eInvoicing_PUT_UpdateEInvoicingBusinessRegion","summary":"Update an e-invoicing business region","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","tags":["eInvoicing"],"parameters":[{"name":"key","in":"path","description":"The unqiue ID or number of the e-invoicing business region that you want to update.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEInvoicingBusinessRegionResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEInvoicingBusinessRegionRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"eInvoicing_DELETE_EInvoicingBusinessRegion","summary":"Delete an e-invoicing business region","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","tags":["eInvoicing"],"parameters":[{"name":"key","in":"path","description":"The unqiue ID or number of the e-invoicing business region that you want to delete.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/e-invoice/mandates":{"get":{"operationId":"eInvoicing_getEinvoiceMandates","summary":"List mandates for downloading files","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","tags":["eInvoicing"],"parameters":[{"name":"countryCode","in":"query","description":"2-digit country code.\n","required":false,"schema":{"type":"string"}},{"name":"processType","in":"query","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","required":false,"schema":{"$ref":"#/components/schemas/V1EInvoiceMandatesGetParametersProcessType"}},{"name":"provider","in":"query","description":"The service provider that is associated with the country and process type.","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EinvoiceFetchMandates"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/e-invoice/mandate":{"get":{"operationId":"eInvoicing_getEinvoiceMandateOnInvoice","summary":"Retrieve a mandate for downloading a file","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","tags":["eInvoicing"],"parameters":[{"name":"invoiceKey","in":"path","description":"The unique number or ID of the invoice.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EinvoiceInvoiceFetchMandate"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/e-invoice/mandate":{"get":{"operationId":"eInvoicing_getEinvoiceCreditMemoMandate","summary":"Retrieve a mandate for downloading a credit memo","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","tags":["eInvoicing"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique number or ID of the Credit Memo.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditMemosEinvoiceMandate"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/e-invoice/mandate":{"get":{"operationId":"eInvoicing_getEinvoiceDebitMemoMandate","summary":"Retrieve a mandate for downloading a debit memo","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","tags":["eInvoicing"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique number or ID of the Debit Memo.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebitMemosEinvoiceMandate"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/e-invoice/download":{"get":{"operationId":"eInvoicing_downloadEinvoiceOfSpecifiedFormat","summary":"Download a file in the specified file format","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","tags":["eInvoicing"],"parameters":[{"name":"invoiceKey","in":"path","description":"The unique number or ID of the e-invoice.\n","required":true,"schema":{"type":"string"}},{"name":"fileFormat","in":"query","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","required":false,"schema":{"$ref":"#/components/schemas/V1InvoicesInvoiceKeyEInvoiceDownloadGetParametersFileFormat"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EinvoiceDownload"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/e-invoice/download":{"get":{"operationId":"eInvoicing_downloadCreditMemoEinvoice","summary":"Download a credit memo in the specified file format","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","tags":["eInvoicing"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The unique number or ID of Credit Memo.\n","required":true,"schema":{"type":"string"}},{"name":"fileFormat","in":"query","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","required":false,"schema":{"$ref":"#/components/schemas/V1CreditMemosCreditMemoKeyEInvoiceDownloadGetParametersFileFormat"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditMemosEinvoiceDownload"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/e-invoice/download":{"get":{"operationId":"eInvoicing_downloadDebitMemoEinvoice","summary":"Download a debit memo in the specified file format","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","tags":["eInvoicing"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The unique number or ID of Debit Memo.","required":true,"schema":{"type":"string"}},{"name":"fileFormat","in":"query","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","required":false,"schema":{"$ref":"#/components/schemas/V1DebitMemosDebitMemoKeyEInvoiceDownloadGetParametersFileFormat"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DebitMemosEinvoiceDownload"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/e-invoice/cancel":{"put":{"operationId":"eInvoicing_cancelEInvoiceByInvoiceKey","summary":"Cancel the e-invoice file for an invoice","description":"Cancels the E-Invoice for the given billing document","tags":["eInvoicing"],"parameters":[{"name":"invoiceKey","in":"path","description":"Invoice Id or Number","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"The value is in the `Bearer {token}` format where {token} is a valid OAuth token generated by calling [Create an OAuth token](https://developer.zuora.com/api-references/api/operation/createToken).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutCancelEInvoiceRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/einvoice/templates":{"get":{"operationId":"eInvoicing_GET_EInvoiceFileTemplates","summary":"List e-invoice file templates","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","tags":["eInvoicing"],"parameters":[{"name":"country","in":"query","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","required":true,"schema":{"type":"string"}},{"name":"documentType","in":"query","description":"The type of billing documents for which the e-invoice file template is intended.\n","required":true,"schema":{"$ref":"#/components/schemas/V1EinvoiceTemplatesGetParametersDocumentType"}},{"name":"provider","in":"query","description":"The name of the e-invoicing service provider that assists in generating e-invoice files. \n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEInvoiceFileTemplatesResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"eInvoicing_POST_CreateEInvoiceFileTemplate","summary":"Create an e-invoice file template","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","tags":["eInvoicing"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEInvoiceFileTemplateResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEInvoiceFileTemplateRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/einvoice/templates/{key}":{"get":{"operationId":"eInvoicing_GET_EInvoiceFileTemplate","summary":"Retrieve an e-invoice file template","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","tags":["eInvoicing"],"parameters":[{"name":"key","in":"path","description":"The unique number or ID of the e-invoice file template that you want to retrieve information about.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEInvoiceFileTemplateResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"eInvoicing_PUT_EInvoiceFileTemplate","summary":"Update an e-invoice file template","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","tags":["eInvoicing"],"parameters":[{"name":"key","in":"path","description":"The unique number or ID of the e-invoice file template that you want to update.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEInvoiceFileTemplateResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEInvoiceFileTemplateRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"eInvoicing_DELETE_EInvoiceFileTemplate","summary":"Delete an e-invoice file template","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","tags":["eInvoicing"],"parameters":[{"name":"key","in":"path","description":"The unique ID or number of the e-invoice file template that you want to delete.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/e-invoice/sync-status":{"put":{"operationId":"eInvoicing_updateInvoiceInvokeSyncStatus","summary":"Sync the e-Invoice status of an invoice","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","tags":["eInvoicing"],"parameters":[{"name":"invoiceKey","in":"path","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.","required":true,"schema":{"type":"string"}},{"name":"shouldIncludeAcknowledged","in":"query","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","required":false,"schema":{"type":"boolean","default":false}},{"name":"transactionId","in":"query","description":"The **Provider Document ID** of the billing document in the e-invoicing service provider. If specified, Zuora uses this value when resyncing the e-invoice status.\n\n**Note:** This parameter is supported for both Sovos and Avalara.\n","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInvoiceInvokeSyncStatusRequestClientRequestError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/e-invoice/sync-status":{"put":{"operationId":"eInvoicing_updateDebitMemoInvokeSyncStatus","summary":"Sync the e-Invoice status of a debit memo","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","tags":["eInvoicing"],"parameters":[{"name":"debitMemoKey","in":"path","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.","required":true,"schema":{"type":"string"}},{"name":"shouldIncludeAcknowledged","in":"query","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","required":false,"schema":{"type":"boolean","default":false}},{"name":"transactionId","in":"query","description":"The **Provider Document ID** of the billing document in the e-invoicing service provider. If specified, Zuora uses this value when resyncing the e-invoice status. \n\n**Note:** This parameter is supported for both Sovos and Avalara.\n","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDebitMemoInvokeSyncStatusRequestClientRequestError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/e-invoice/sync-status":{"put":{"operationId":"eInvoicing_updateCreditMemoInvokeSyncStatus","summary":"Sync the e-Invoice status of a credit memo","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","tags":["eInvoicing"],"parameters":[{"name":"creditMemoKey","in":"path","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.","required":true,"schema":{"type":"string"}},{"name":"shouldIncludeAcknowledged","in":"query","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","required":false,"schema":{"type":"boolean","default":false}},{"name":"transactionId","in":"query","description":"The **Provider Document ID** of the billing document in the e-invoicing service provider. If specified, Zuora uses this value when resyncing the e-invoice status. \n\n**Note:** This parameter is supported for both Sovos and Avalara.\n","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCreditMemoInvokeSyncStatusRequestClientRequestError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoices/{invoiceKey}/einvoice/generate":{"put":{"operationId":"eInvoicing_PUT_GenerationEInvoiceGenerationForInvoices","summary":"Generate an e-invoice file for an invoice","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","tags":["eInvoicing"],"parameters":[{"name":"invoiceKey","in":"path","description":"The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/credit-memos/{creditMemoKey}/e-invoice/generate":{"put":{"operationId":"eInvoicing_PUT_GenerateEInvoiceFileForCreditMemo","summary":"Generate an e-invoice file for a credit memo","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","tags":["eInvoicing"],"parameters":[{"name":"creditMemoKey","in":"path","description":"The ID or number of the credit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab or CM-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/debit-memos/{debitMemoKey}/e-invoice/generate":{"put":{"operationId":"eInvoicing_PUT_GenerateEInvoiceFileForDebitMemo","summary":"Generate an e-invoice file for a debit memo","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.  ","tags":["eInvoicing"],"parameters":[{"name":"debitMemoKey","in":"path","description":"The ID or number of the debit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab or DM-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoice-schedules":{"post":{"operationId":"invoiceSchedules_POST_CreateInvoiceSchedule","summary":"Create an invoice schedule","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","tags":["invoiceSchedules"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceScheduleResponses"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTCreateInvoiceScheduleRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoice-schedules/{scheduleKey}":{"get":{"operationId":"invoiceSchedules_GET_InvoiceSchedule","summary":"Retrieve an invoice schedule","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","tags":["invoiceSchedules"],"parameters":[{"name":"scheduleKey","in":"path","description":"The unique ID or number of the invoice schedule to be retrieved. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceScheduleResponses"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"invoiceSchedules_PUT_UpdateInvoiceSchedule","summary":"Update an invoice schedule","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","tags":["invoiceSchedules"],"parameters":[{"name":"scheduleKey","in":"path","description":"The unique ID or number of the invoice schedule to be updated. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceScheduleResponses"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTUpdateInvoiceScheduleRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"invoiceSchedules_DELETE_InvoiceSchedule","summary":"Delete an invoice schedule","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","tags":["invoiceSchedules"],"parameters":[{"name":"scheduleKey","in":"path","description":"The unique ID or number of the invoice schedule to be deleted. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoice-schedules/{scheduleKey}/execute":{"post":{"operationId":"invoiceSchedules_POST_ExecuteInvoiceSchedule","summary":"Execute an invoice schedule","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","tags":["invoiceSchedules"],"parameters":[{"name":"scheduleKey","in":"path","description":"The unique ID or number of the schedule to be executed. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteInvoiceScheduleBillRunResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTExecuteInvoiceScheduleRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoice-schedules/{scheduleKey}/pause":{"put":{"operationId":"invoiceSchedules_PUT_PauseInvoiceSchedule","summary":"Pause an invoice schedule","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","tags":["invoiceSchedules"],"parameters":[{"name":"scheduleKey","in":"path","description":"The unique ID or number of the schedule to be paused. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceScheduleResponses"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoice-schedules/{scheduleKey}/resume":{"put":{"operationId":"invoiceSchedules_PUT_ResumeInvoiceSchedule","summary":"Resume an invoice schedule","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","tags":["invoiceSchedules"],"parameters":[{"name":"scheduleKey","in":"path","description":"The unique ID or number of the schedule to be resumed. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceScheduleResponses"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoice-schedules/{scheduleKey}/detach":{"put":{"operationId":"invoiceSchedules_detachChargesFromInvoiceSchedule","summary":"Detach charges from an invoice schedule","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","tags":["invoiceSchedules"],"parameters":[{"name":"scheduleKey","in":"path","description":"The unique ID or number of the invoice schedule to detach charges from. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachInvoiceScheduleRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/invoice-schedules/{scheduleKey}/attach":{"put":{"operationId":"invoiceSchedules_attachChargesToInvoiceSchedule","summary":"Attach charges to an invoice schedule","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","tags":["invoiceSchedules"],"parameters":[{"name":"scheduleKey","in":"path","description":"The unique ID or number of the invoice schedule to attach charges to. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachInvoiceScheduleRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/taxation-item":{"post":{"operationId":"taxationItems_Object_POSTTaxationItem","summary":"CRUD: Create a taxation item","description":"Creates a Taxation Item object.","tags":["taxationItems"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateOrModifyResponse"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateTaxationItem"}}}},"security":[{"bearerAuth":[]}]}},"/v1/taxation-items/{id}":{"get":{"operationId":"taxationItems_GET_TaxationItem","summary":"Retrieve a taxation item\n","description":"Retrieves the information about a specific taxation item by ID.\n","tags":["taxationItems"],"parameters":[{"name":"id","in":"path","description":"The unique ID of a taxation item.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETTaxationItemType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"taxationItems_PUT_TaxationItem","summary":"Update a taxation item","description":"Updates a specific taxation item by ID.\n","tags":["taxationItems"],"parameters":[{"name":"id","in":"path","description":"The unique ID of a taxation item.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETTaxationItemType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTTaxationItemType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"taxationItems_DELETE_TaxationItem","summary":"Delete a taxation item","description":"Deletes a specific taxation item by ID.\n","tags":["taxationItems"],"parameters":[{"name":"id","in":"path","description":"The unique ID of a taxation item.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/sequence-sets":{"get":{"operationId":"sequenceSets_GET_SequenceSets","summary":"List sequence sets","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","tags":["sequenceSets"],"parameters":[{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","default":20}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"name","in":"query","description":"The name or number of a specific sequence set.\n","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETSequenceSetsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"sequenceSets_POST_SequenceSets","summary":"Create sequence sets","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","tags":["sequenceSets"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTSequenceSetsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTSequenceSetsRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/sequence-sets/{id}":{"get":{"operationId":"sequenceSets_GET_SequenceSet","summary":"Retrieve a sequence set","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","tags":["sequenceSets"],"parameters":[{"name":"id","in":"path","description":"The ID or number of the sequence set to retrieve information about.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETSequenceSetResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"sequenceSets_PUT_SequenceSet","summary":"Update a sequence set","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","tags":["sequenceSets"],"parameters":[{"name":"id","in":"path","description":"The ID or number of the sequence set to update.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSequenceSetResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSequenceSetRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"sequenceSets_DELETE_SequenceSet","summary":"Delete a sequence set","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","tags":["sequenceSets"],"parameters":[{"name":"id","in":"path","description":"The ID or number of the sequence set to delete.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/operations/billing-preview":{"post":{"operationId":"operations_POST_BillingPreview","summary":"Generate a billing preview","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","tags":["operations"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPreviewResult"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBillingPreviewParam"}}}},"security":[{"bearerAuth":[]}]}},"/v1/operations/invoice-collect":{"post":{"operationId":"operations_POST_TransactionInvoicePayment","summary":"Invoice and collect","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","tags":["operations"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTInvoiceCollectResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTInvoiceCollectType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/operations/jobs/{jobId}":{"get":{"operationId":"operations_GET_OperationJob","summary":"Retrieve an operation job","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","tags":["operations"],"parameters":[{"name":"jobId","in":"path","description":"The ID of the operation job to retrieve information about. For example, 2c92c8955bd63cc1015bd7c151af02ab.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOperationJobResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/operations/bulk-pdf":{"post":{"operationId":"operations_Create_BulkPDFToZIPGeneration","summary":"Export bulk PDF files","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","tags":["operations"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTBulkPdfGenerationJobResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTBulkPdfGenerationJobRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/operations/bulk-pdf/{jobId}":{"get":{"operationId":"operations_Get_BulkPDFToZIPGeneration","summary":"Retrieve information of a bulk PDF file generation job","description":"Retrieves information about the job which includes its status, message, and downloadable ZIP file URL link.","tags":["operations"],"parameters":[{"name":"jobId","in":"path","description":"The ID of the job for which information needs to be retrieved. For example, 2c92c8955bd63cc1015bd7c151af02ab","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETBulkpdfGenerationJobResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/summary-statement-runs":{"post":{"operationId":"summaryStatements_createSummaryStatementRun","summary":"Create a summary statement run","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","tags":["summaryStatements"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryStatementRunResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryStatementRunRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/summary-statements/{summaryStatementKey}":{"delete":{"operationId":"summaryStatements_deleteSummaryStatement","summary":"Delete a summary statement","description":"Deletes a specific summary statement.\n\nYou can delete a summary statement only when both the summary statement and its\nparent summary statement run are in terminal states.\n\nAllowed summary statement statuses:\n  - `Completed`\n  - `Canceled`\n  - `Error`\n  - `Previewing` (for temporary preview statements)\n\nAllowed parent summary statement run statuses:\n  - `Completed`\n  - `Error`\n  - `Terminated`\n\nError scenarios:\n  - Returns `400 INVALID_VALUE` if the summary statement status is `Pending` or `Processing`\n  - Returns `400 INVALID_VALUE` if the parent summary statement run status is `Pending` or `Processing`\n  - Returns `404 NOT_FOUND` if the summary statement does not exist\n","tags":["summaryStatements"],"parameters":[{"name":"summaryStatementKey","in":"path","description":"The ID or number of the summary statement to delete.\nFor example, `2c92c8955bd63cc1015bd7c151af02ab` or `SS-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"The value is in the `Bearer {token}` format where {token} is a valid OAuth token generated by calling [Create an OAuth token](https://developer.zuora.com/api-references/api/operation/createToken).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/bill-runs":{"post":{"operationId":"billRun_POST_CreateBillRun","summary":"Create a bill run","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  - When you use the `in` operator in an Account, Subscription, or Charge filter in `billRunFilters`, you can specify a maximum of 500 values in the list. If any `in` condition contains more than 500 values, the request fails validation,   an error is returned, and the Bill Run is not started. This limit applies only to the `in` operator   in Advanced Filters and does not limit the total number of accounts, subscriptions, or charges that   the Bill Run can process.","tags":["billRun"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBillRunResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTCreateBillRunRequestType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/bill-runs/{billRunId}":{"get":{"operationId":"billRun_GET_BillRun","summary":"Retrieve a bill run","description":"Retrieves the information about a specific bill run.\n","tags":["billRun"],"parameters":[{"name":"billRunId","in":"path","description":"The unique ID of a bill run.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBillRunResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"billRun_DELETE_DeleteBillRun","summary":"Delete a bill run","description":"Deletes a bill run. You can only delete bill runs in `Canceled` or `Error` status. \n","tags":["billRun"],"parameters":[{"name":"billRunId","in":"path","description":"The unique ID of a bill run.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBillRunResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/bill-runs/{billRunId}/cancel":{"put":{"operationId":"billRun_PUT_CancelBillRun","summary":"Cancel a bill run","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","tags":["billRun"],"parameters":[{"name":"billRunId","in":"path","description":"The unique ID of a bill run.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBillRunResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"cancelOnce":{"type":"boolean","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"}}}}}},"security":[{"bearerAuth":[]}]}},"/v1/bill-runs/{billRunId}/post":{"put":{"operationId":"billRun_PUT_PostBillRun","summary":"Post a bill run","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","tags":["billRun"],"parameters":[{"name":"billRunId","in":"path","description":"The unique ID of a bill run.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBillRunResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"invoiceDate":{"type":"string","format":"date","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"}},"required":["invoiceDate"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/bill-runs/{billRunKey}/emails":{"post":{"operationId":"billRun_POST_EmailBillingDocumentsfromBillRun","summary":"Email billing documents generated from a bill run","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","tags":["billRun"],"parameters":[{"name":"billRunKey","in":"path","description":"The ID or number of the bill run. For example, 2c92c8f95d0c886e015d11287a8f0f8b or BR-00000001.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTEmailBillingDocfromBillRunType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/billing-preview-runs":{"post":{"operationId":"billingPreviewRun_POST_BillingPreviewRun","summary":"Create a billing preview run","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","tags":["billingPreviewRun"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing_Preview_Run_POST_BillingPreviewRun_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBillingPreviewRunParam"}}}},"security":[{"bearerAuth":[]}]}},"/v1/billing-preview-runs/{billingPreviewRunId}":{"get":{"operationId":"billingPreviewRun_GET_BillingPreviewRun","summary":"Retrieve a billing preview run","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","tags":["billingPreviewRun"],"parameters":[{"name":"billingPreviewRunId","in":"path","description":"Id of the billing preview run.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBillingPreviewRunResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods":{"post":{"operationId":"paymentMethods_POST_PaymentMethods","summary":"Create a payment method","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","tags":["paymentMethods"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentMethodResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentMethodRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/decryption":{"post":{"operationId":"paymentMethods_POST_PaymentMethodsDecryption","summary":"Create an Apple Pay payment method","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","tags":["paymentMethods"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentMethodResponseDecryption"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentMethodDecryption"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/{payment-method-id}":{"get":{"operationId":"paymentMethods_GET_PaymentMethod","summary":"Retrieve a payment method","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","tags":["paymentMethods"],"parameters":[{"name":"payment-method-id","in":"path","description":"Unique ID of the payment method to update.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentMethodResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"paymentMethods_PUT_PaymentMethod","summary":"Update a payment method","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","tags":["paymentMethods"],"parameters":[{"name":"payment-method-id","in":"path","description":"Unique ID of the payment method to update.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPaymentMethodResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPaymentMethodRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"paymentMethods_DELETE_PaymentMethods","summary":"Delete a payment method","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","tags":["paymentMethods"],"parameters":[{"name":"payment-method-id","in":"path","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.)","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/{payment-method-id}/verify":{"put":{"operationId":"paymentMethods_PUT_VerifyPaymentMethods","summary":"Verify a payment method","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","tags":["paymentMethods"],"parameters":[{"name":"payment-method-id","in":"path","description":"The ID of the payment method to be verified.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTVerifyPaymentMethodResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTVerifyPaymentMethodType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/{payment-method-id}/scrub":{"put":{"operationId":"paymentMethods_PUT_ScrubPaymentMethods","summary":"Scrub a payment method","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. \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","tags":["paymentMethods"],"parameters":[{"name":"payment-method-id","in":"path","description":"The ID of the payment method where you want to scrub the sensitive data.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/{payment-method-id}/balance":{"get":{"operationId":"paymentMethods_getBankAccountBalance","summary":"Retrieve the balance of a bank account","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","tags":["paymentMethods"],"parameters":[{"name":"payment-method-id","in":"path","description":"The unique ID of the payment method, such as `40289f3291d2587b0191d280fa20012g`.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBankAccountBalanceResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/{payment-method-id}/profiles":{"get":{"operationId":"paymentMethods_GET_StoredCredentialProfiles","summary":"List stored credential profiles of a payment method","description":"Retrieves the stored credential profiles within a payment method.\n","tags":["paymentMethods"],"parameters":[{"name":"payment-method-id","in":"path","description":"ID of a payment method.\n","required":true,"schema":{"type":"string"}},{"name":"includeAll","in":"query","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","required":false,"schema":{"type":"boolean","default":false}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetStoredCredentialProfilesResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"paymentMethods_POST_CreateStoredCredentialProfile","summary":"Create a stored credential profile","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","tags":["paymentMethods"],"parameters":[{"name":"payment-method-id","in":"path","description":"ID of a payment method.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifiedStoredCredentialProfileResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStoredCredentialProfileRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/{payment-method-id}/profiles/{profile-number}/cancel":{"post":{"operationId":"paymentMethods_POST_CancelStoredCredentialProfile","summary":"Cancel a stored credential profile","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","tags":["paymentMethods"],"parameters":[{"name":"payment-method-id","in":"path","description":"ID of a payment method.\n","required":true,"schema":{"type":"string"}},{"name":"profile-number","in":"path","description":"Number that identifies a stored credential profile within the payment method.\n","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifiedStoredCredentialProfileResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/{payment-method-id}/profiles/{profile-number}/expire":{"post":{"operationId":"paymentMethods_POST_ExpireStoredCredentialProfile","summary":"Expire a stored credential profile","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","tags":["paymentMethods"],"parameters":[{"name":"payment-method-id","in":"path","description":"ID of a payment method.\n","required":true,"schema":{"type":"string"}},{"name":"profile-number","in":"path","description":"Number that identifies a stored credential profile within the payment method.\n","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifiedStoredCredentialProfileResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/wallet/domains":{"get":{"operationId":"paymentMethods_getWalletDomains","summary":"List registered domains","description":"Use this operation to retreive list of registered domains.\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","tags":["paymentMethods"],"parameters":[{"name":"domainName","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"walletType","in":"query","description":"The type of digital wallet for the domain registration. This field is required and determines which wallet-specific domain management flow is executed.","required":true,"schema":{"$ref":"#/components/schemas/V1PaymentMethodsWalletDomainsGetParametersWalletType"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETListApplePayDomainsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"paymentMethods_registerWalletDomain","summary":"Register a wallet domain","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","tags":["paymentMethods"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTRegisterApplePayDomainResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTRegisterApplePayDomainRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/wallet/domains/{id}":{"delete":{"operationId":"paymentMethods_deleteUnregisterWalletDomain","summary":"Unregister a wallet domain","description":"Use this operation to unregister a wallet domain.\n","tags":["paymentMethods"],"parameters":[{"name":"id","in":"path","description":"The ID of the domain, such as `402881a38924ff1001892502da090021`.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DELETEUnresigerApplePayDomainResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/web-payments/sessions":{"post":{"operationId":"paymentMethods_POST_CreatePaymentSession","summary":"Create a payment session","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","tags":["paymentMethods"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTCreatePaymentSessionResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTCreatePaymentSessionRequest"}}}},"security":[{"bearerAuth":[]}]}},"/open-payment-method-types":{"post":{"operationId":"customPaymentMethodTypes_POST_CreateDraftOpenPaymentMethodType","summary":"Create a draft custom payment method type","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","tags":["customPaymentMethodTypes"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTCreateOpenPaymentMethodTypeResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTCreateOpenPaymentMethodTypeRequest"}}}},"security":[{"bearerAuth":[]}]}},"/open-payment-method-types/publish/{paymentMethodTypeName}":{"put":{"operationId":"customPaymentMethodTypes_PUT_PublishOpenPaymentMethodType","summary":"Publish a custom payment method type","description":"Publish the latest draft revision of a specific custom payment method type.\n","tags":["customPaymentMethodTypes"],"parameters":[{"name":"paymentMethodTypeName","in":"path","description":"The API name of the custom payment method type, such as `AmazonPay__c_12368`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPublishOpenPaymentMethodTypeResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/open-payment-method-types/{paymentMethodTypeName}":{"put":{"operationId":"customPaymentMethodTypes_PUT_UpdateOpenPaymentMethodType","summary":"Update a custom payment method type","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","tags":["customPaymentMethodTypes"],"parameters":[{"name":"paymentMethodTypeName","in":"path","description":"The API name of the custom payment method type, such as `AmazonPay__c_12368`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTUpdateOpenPaymentMethodTypeResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTUpdateOpenPaymentMethodTypeRequest"}}}},"security":[{"bearerAuth":[]}]}},"/open-payment-method-types/{paymentMethodTypeName}/draft/{revisionNumber}":{"get":{"operationId":"customPaymentMethodTypes_GET_OpenPaymentMethodTypeRevision","summary":"Retrieve a specific draft revision of a custom payment method type","description":"Retrieves a specific draft revision of a custom payment method type.\n","tags":["customPaymentMethodTypes"],"parameters":[{"name":"paymentMethodTypeName","in":"path","description":"The API name of the custom payment method type, such as `AmazonPay__c_12368`.\n","required":true,"schema":{"type":"string"}},{"name":"revisionNumber","in":"path","description":"The revision number of the draft revision to be retrieved.\n","required":true,"schema":{"type":"integer"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETOpenPaymentMethodTypeRevisionResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/open-payment-method-types/{paymentMethodTypeName}/published":{"get":{"operationId":"customPaymentMethodTypes_GET_OpenPaymentMethodTypePublish","summary":"Retrieve a published custom payment method type","description":"Retrieves a published custom payment method type.\n","tags":["customPaymentMethodTypes"],"parameters":[{"name":"paymentMethodTypeName","in":"path","description":"The API name of the custom payment method type, such as `AmazonPay__c_12368`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETOpenPaymentMethodTypeRevisionResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-method-updaters":{"get":{"operationId":"paymentMethodUpdater_GET_PaymentMethodUpdaterInstances","summary":"List Payment Method Updater instances","description":"Retrieves the detailed information of all Payment Method Updater (PMU) instances on your tenant, except for American Express (AMEX).\n","tags":["paymentMethodUpdater"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentMethodUpdaterInstancesResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-method-updaters/batches":{"post":{"operationId":"paymentMethodUpdater_POST_PaymentMethodUpdaterBatch","summary":"Create a Payment Method Updater batch asynchronously","description":"Creates a Payment Method Updater (PMU) batch asynchronously. PMU for American Express (AMEX) is not supported.\n","tags":["paymentMethodUpdater"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentMethodUpdaterResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentMethodUpdaterBatchRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/payment-method-snapshot/{id}":{"get":{"operationId":"paymentMethodSnapshots_Object_GETPaymentMethodSnapshot","summary":"CRUD: Retrieve a payment method snapshot","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","tags":["paymentMethodSnapshots"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"fields","in":"query","description":"Object fields to return","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyGetPaymentMethodSnapshot"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyNoDataResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/payment-method-transaction-log/{id}":{"get":{"operationId":"paymentMethodTransactionLogs_Object_GETPaymentMethodTransactionLog","summary":"CRUD: Retrieve a payment method transaction log","description":"Retrieves a Payment Method Transaction Log object.","tags":["paymentMethodTransactionLogs"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"fields","in":"query","description":"Object fields to return","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyGetPaymentMethodTransactionLog"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyNoDataResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/hostedpages":{"get":{"operationId":"hostedPages_Get_HostedPages","summary":"List hosted pages","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","tags":["hostedPages"],"parameters":[{"name":"versionNumber","in":"query","description":"Version of the Payment Pages for which you want to retrieve the configuration information. Specify 2 for Payment Pages 2.0.\n","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHostedPagesType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/rsa-signatures":{"post":{"operationId":"rsaSignatures_POST_RSASignatures","summary":"Generate an RSA signature","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","tags":["rsaSignatures"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTRSASignatureResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTRSASignatureType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/rsa-signatures/decrypt":{"post":{"operationId":"rsaSignatures_POST_DecryptRSASignatures","summary":"Decrypt an RSA signature","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","tags":["rsaSignatures"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTDecryptResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTDecryptionType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/{payment-method-id}/authorize":{"post":{"operationId":"paymentAuthorization_POST_CreateAuthorization","summary":"Create authorization","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","tags":["paymentAuthorization"],"parameters":[{"name":"payment-method-id","in":"path","description":"The unique ID of the payment method where the authorization is created.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTAuthorizeResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTDelayAuthorizeCapture"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-methods/{payment-method-id}/voidAuthorize":{"post":{"operationId":"paymentAuthorization_POST_CancelAuthorization","summary":"Cancel authorization","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","tags":["paymentAuthorization"],"parameters":[{"name":"payment-method-id","in":"path","description":"The unique ID of the payment method where the authorization is cancelled.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTVoidAuthorizeResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTVoidAuthorize"}}}},"security":[{"bearerAuth":[]}]}},"/v1/paymentgateways":{"get":{"operationId":"paymentGateways_GET_Paymentgateways","summary":"List all payment gateways","description":"Retrieves the basic information about all the payment gateways.\n","tags":["paymentGateways"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentGatwaysResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-gateways/pre-debit-notification":{"post":{"operationId":"paymentGateways_triggerPreDebitNotification","summary":"Trigger a pre-debit notification","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","tags":["paymentGateways"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostTriggerPreDebitNotificationResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostTriggerPreDebitNotificationRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/gateway-settlement/payments/{payment-key}/chargeback":{"post":{"operationId":"paymentGatewayReconciliation_POST_ReversePayment","summary":"Reverse a payment","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","tags":["paymentGatewayReconciliation"],"parameters":[{"name":"payment-key","in":"path","description":"The payment number starting with \"P-\" or the unique payment ID.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTReversePaymentResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTReversePaymentRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/gateway-settlement/payments/{payment-key}/reject":{"post":{"operationId":"paymentGatewayReconciliation_POST_RejectPayment","summary":"Reject a payment","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","tags":["paymentGatewayReconciliation"],"parameters":[{"name":"payment-key","in":"path","description":"The payment number starting with \"P-\" or the unique payment ID.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTRejectPaymentResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTRejectPaymentRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/gateway-settlement/payments/{payment-key}/settle":{"post":{"operationId":"paymentGatewayReconciliation_POST_SettlePayment","summary":"Settle a payment","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","tags":["paymentGatewayReconciliation"],"parameters":[{"name":"payment-key","in":"path","description":"The payment number starting with \"P-\" or the unique payment ID.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTSettlePaymentResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTSettlePaymentRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/refunds/{refund-key}/reconcile":{"post":{"operationId":"paymentGatewayReconciliation_POST_ReconcileRefund","summary":"Reconcile a refund","description":"Reconciles a refund when receiving the gateway reconciliation request or event.\n","tags":["paymentGatewayReconciliation"],"parameters":[{"name":"refund-key","in":"path","description":"The refund number starting with “R-” or the unique refund ID.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTReconcileRefundResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTReconcileRefundRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments":{"get":{"operationId":"payments_GET_RetrieveAllPayments","summary":"List payments","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","tags":["payments"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"accountId","in":"query","description":"This parameter filters the response based on the `accountId` field.\n","required":false,"schema":{"type":"string"}},{"name":"amount","in":"query","description":"This parameter filters the response based on the `amount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"appliedAmount","in":"query","description":"This parameter filters the response based on the `appliedAmount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"createdById","in":"query","description":"This parameter filters the response based on the `createdById` field.\n","required":false,"schema":{"type":"string"}},{"name":"createdDate","in":"query","description":"This parameter filters the response based on the `createdDate` field.\n","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"creditBalanceAmount","in":"query","description":"This parameter filters the response based on the `creditBalanceAmount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"currency","in":"query","description":"This parameter filters the response based on the `currency` field.\n","required":false,"schema":{"type":"string"}},{"name":"effectiveDate","in":"query","description":"This parameter filters the response based on the `effectiveDate` field.\n","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"number","in":"query","description":"This parameter filters the response based on the `number` field.\n","required":false,"schema":{"type":"string"}},{"name":"refundAmount","in":"query","description":"This parameter filters the response based on the `refundAmount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"status","in":"query","description":"This parameter filters the response based on the `status` field.\n","required":false,"schema":{"$ref":"#/components/schemas/V1PaymentsGetParametersStatus"}},{"name":"type","in":"query","description":"This parameter filters the response based on the `type` field.\n","required":false,"schema":{"$ref":"#/components/schemas/V1PaymentsGetParametersType"}},{"name":"unappliedAmount","in":"query","description":"This parameter filters the response based on the `unappliedAmount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"updatedById","in":"query","description":"This parameter filters the response based on the `updatedById` field.\n","required":false,"schema":{"type":"string"}},{"name":"updatedDate","in":"query","description":"This parameter filters the response based on the `updatedDate` field.\n","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"sort","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentCollectionResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"payments_POST_CreatePayment","summary":"Create a payment","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","tags":["payments"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETARPaymentTypeWithPaymentOption"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}":{"get":{"operationId":"payments_GET_Payment","summary":"Retrieve a payment","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","tags":["payments"],"parameters":[{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETARPaymentType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"payments_PUT_UpdatePayment","summary":"Update a payment","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","tags":["payments"],"parameters":[{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1` or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETARPaymentType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePaymentType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"payments_DELETE_Payment","summary":"Delete a payment","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","tags":["payments"],"parameters":[{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}/apply":{"put":{"operationId":"payments_PUT_ApplyPayment","summary":"Apply a payment","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","tags":["payments"],"parameters":[{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETARPaymentType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyPaymentType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}/cancel":{"put":{"operationId":"payments_PUT_CancelPayment","summary":"Cancel a payment","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","tags":["payments"],"parameters":[{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETARPaymentType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}/parts":{"get":{"operationId":"payments_GET_PaymentParts","summary":"List all parts of a payment","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","tags":["payments"],"parameters":[{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentPartsCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}/parts/{partid}":{"get":{"operationId":"payments_GET_PaymentPart","summary":"Retrieve a payment part","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","tags":["payments"],"parameters":[{"name":"partid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentPartType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}/parts/{partid}/item-parts":{"get":{"operationId":"payments_GET_PaymentItemParts","summary":"List all payment part items","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","tags":["payments"],"parameters":[{"name":"partid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentItemPartCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}/parts/{partid}/item-parts/{itempartid}":{"get":{"operationId":"payments_GET_PaymentItemPart","summary":"Retrieve a payment part item","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","tags":["payments"],"parameters":[{"name":"partid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"itempartid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentItemPartType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}/refunds":{"post":{"operationId":"payments_POST_RefundPayment","summary":"Refund a payment","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","tags":["payments"],"parameters":[{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRefundPaymentType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostRefundType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}/refunds/unapply":{"post":{"operationId":"payments_POST_RefundPaymentwithAutoUnapply","summary":"Refund a payment with auto-unapplying","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>.","tags":["payments"],"parameters":[{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRefundPaymentTypeAutoUnapply"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostRefundwithAutoUnapplyType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}/transfer":{"put":{"operationId":"payments_PUT_TransferPayment","summary":"Transfer a payment","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","tags":["payments"],"parameters":[{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.          \n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETARPaymentType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferPaymentType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payments/{paymentKey}/unapply":{"put":{"operationId":"payments_PUT_UnapplyPayment","summary":"Unapply a payment","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","tags":["payments"],"parameters":[{"name":"paymentKey","in":"path","description":"The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETARPaymentType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnapplyPaymentType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/payment-transaction-log/{id}":{"get":{"operationId":"paymentTransactionLogs_Object_GETPaymentTransactionLog","summary":"CRUD: Retrieve a payment transaction log","description":"Retrieves information about a specific payment transaction log.\n","tags":["paymentTransactionLogs"],"parameters":[{"name":"id","in":"path","description":"The ID of a payment transaction log.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyGetPaymentTransactionLog"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyNoDataResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-runs":{"get":{"operationId":"paymentRuns_GET_PaymentRuns","summary":"List payment runs","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","tags":["paymentRuns"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"createdById","in":"query","description":"This parameter filters the response based on the `createdById` field.\n","required":false,"schema":{"type":"string"}},{"name":"createdDate","in":"query","description":"This parameter filters the response based on the `createdDate` field.\n","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"status","in":"query","description":"This parameter filters the response based on the `status` field.\n","required":false,"schema":{"$ref":"#/components/schemas/V1PaymentRunsGetParametersStatus"}},{"name":"targetDate","in":"query","description":"This parameter filters the response based on the `targetDate` field.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"updatedById","in":"query","description":"This parameter filters the response based on the `updatedById` field.\n","required":false,"schema":{"type":"string"}},{"name":"updatedDate","in":"query","description":"This parameter filters the response based on the `updatedDate` field.\n","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"sort","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentRunCollectionType"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"paymentRuns_POST_PaymentRun","summary":"Create a payment run","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","tags":["paymentRuns"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentRunType"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentRunRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-runs/{paymentRunKey}":{"get":{"operationId":"paymentRuns_GET_PaymentRun","summary":"Retrieve a payment run","description":"Retrives the information about a specific payment run.\n","tags":["paymentRuns"],"parameters":[{"name":"paymentRunKey","in":"path","description":"The unique ID of a payment run or the payment run number. For example, 402890245f097f39015f0f074a2e0566.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentRunType"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"paymentRuns_PUT_PaymentRun","summary":"Update a payment run","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","tags":["paymentRuns"],"parameters":[{"name":"paymentRunKey","in":"path","description":"The unique ID of a payment run or the payment run number. For example, 402890245f097f39015f0f074a2e0566.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentRunType"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPaymentRunRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"paymentRuns_DELETE_PaymentRun","summary":"Delete a payment run","description":"Deletes a payment run. Only payment runs with the Canceled or Error status can be deleted.\n","tags":["paymentRuns"],"parameters":[{"name":"paymentRunKey","in":"path","description":"The unique ID of a payment run or the payment run number. For example, 402890245f097f39015f0f074a2e0566.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-runs/{paymentRunKey}/data":{"get":{"operationId":"paymentRuns_GET_PaymentRunData","summary":"Retrieve payment run data","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","tags":["paymentRuns"],"parameters":[{"name":"paymentRunKey","in":"path","description":"The unique ID of a payment run or the payment run number. For example, 402890245f097f39015f0f074a2e0566.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentRunDataArrayResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-runs/{paymentRunKey}/summary":{"get":{"operationId":"paymentRuns_GET_PaymentRunSummary","summary":"Retrieve a payment run summary","description":"Retrives the summary of a payment run.\n","tags":["paymentRuns"],"parameters":[{"name":"paymentRunKey","in":"path","description":"The unique ID of a payment run or the payment run number. For example, 402890245f097f39015f0f074a2e0566.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentRunSummaryResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedule-items/retry-payment":{"post":{"operationId":"paymentSchedules_POST_RetryPaymentScheduleItem","summary":"Retry failed payment schedule items","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","tags":["paymentSchedules"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTRetryPaymentScheduleItemResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTRetryPaymentScheduleItemRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedule-items/{item-id}/cancel":{"put":{"operationId":"paymentSchedules_PUT_CancelPaymentScheduleItem","summary":"Cancel a payment schedule item","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","tags":["paymentSchedules"],"parameters":[{"name":"item-id","in":"path","description":"The unique ID of a payment schedule item.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPaymentScheduleItemResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedule-items/{item-id}/skip":{"put":{"operationId":"paymentSchedules_PUT_SkipPaymentScheduleItem","summary":"Skip a payment schedule item","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","tags":["paymentSchedules"],"parameters":[{"name":"item-id","in":"path","description":"The unique ID of a payment schedule item.   \n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTSkipPaymentScheduleItemResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedule-items/{psi-id}":{"get":{"operationId":"paymentSchedules_GET_PaymentScheduleItem","summary":"Retrieve a payment schedule item","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","tags":["paymentSchedules"],"parameters":[{"name":"psi-id","in":"path","description":"The unique ID of a payment schedule item.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentScheduleItemResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"paymentSchedules_PUT_PaymentScheduleItem","summary":"Update a payment schedule item","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","tags":["paymentSchedules"],"parameters":[{"name":"psi-id","in":"path","description":"The unique ID of a payment schedule item.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPaymentScheduleItemResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPaymentScheduleItemRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"paymentSchedules_deletePaymentScheduleItem","summary":"Delete a payment schedule item","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","tags":["paymentSchedules"],"parameters":[{"name":"psi-id","in":"path","description":"The unique ID of a payment schedule item.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedules":{"get":{"operationId":"paymentSchedules_GET_PaymentSchedules","summary":"List payment schedules by customer account","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","tags":["paymentSchedules"],"parameters":[{"name":"lastProcessedItems","in":"query","description":"Number of the most recent processed payment schedules dispalyed in the response body.\n","required":false,"schema":{"type":"integer"}},{"name":"nextPendingItems","in":"query","description":"Number of next pending payment schedule items displayed in the response body.\n","required":false,"schema":{"type":"integer"}},{"name":"accountId","in":"query","description":"The ID of the customer account. If neither `accountId` nor `accountNumber` is specified, all payment schedules will be returned. \n","required":false,"schema":{"type":"string"}},{"name":"accountNumber","in":"query","description":"The number of the customer account. If neither `accountId` nor `accountNumber` is specified, all payment schedules will be returned. \n","required":false,"schema":{"type":"integer"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentSchedulesResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"paymentSchedules_POST_PaymentSchedule","summary":"Create a payment schedule","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","tags":["paymentSchedules"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentScheduleResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentScheduleRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedules/batch":{"post":{"operationId":"paymentSchedules_POST_PaymentSchedules","summary":"Create multiple payment schedules at once","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","tags":["paymentSchedules"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentSchedulesResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPaymentSchedulesRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedules/statistics/{yyyy-mm-dd}":{"get":{"operationId":"paymentSchedules_GET_PaymentScheduleStatistic","summary":"Retrieve payment schedule statistic of a date","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","tags":["paymentSchedules"],"parameters":[{"name":"yyyy-mm-dd","in":"path","description":"Specifies the date of the payment schedule statistic you want to view. \n","required":true,"schema":{"type":"string","format":"date"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentScheduleStatisticResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedules/{paymentScheduleKey}":{"get":{"operationId":"paymentSchedules_GET_PaymentSchedule","summary":"Retrieve a payment schedule","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","tags":["paymentSchedules"],"parameters":[{"name":"paymentScheduleKey","in":"path","description":"The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.\n","required":true,"schema":{"type":"string"}},{"name":"nextPendingItems","in":"query","description":"Number of next pending payment schedule items displayed in the response body.\n","required":false,"schema":{"type":"integer"}},{"name":"lastProcessedItems","in":"query","description":"Number of the most recent processed payment schedule items dispalyed in the response body.\n","required":false,"schema":{"type":"integer"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentScheduleResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"paymentSchedules_PUT_PaymentSchedule","summary":"Update a payment schedule","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","tags":["paymentSchedules"],"parameters":[{"name":"paymentScheduleKey","in":"path","description":"The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentScheduleResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPaymentScheduleRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"paymentSchedules_deletePaymentSchedule","summary":"Delete a payment schedule","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","tags":["paymentSchedules"],"parameters":[{"name":"paymentScheduleKey","in":"path","description":"The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be` or `PS-00000007`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedules/{paymentScheduleKey}/cancel":{"put":{"operationId":"paymentSchedules_PUT_CancelPaymentSchedule","summary":"Cancel a payment schedule","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","tags":["paymentSchedules"],"parameters":[{"name":"paymentScheduleKey","in":"path","description":"The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentScheduleResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTCancelPaymentScheduleRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedules/{paymentScheduleKey}/items":{"post":{"operationId":"paymentSchedules_POST_AddItemsToCustomPaymentSchedule","summary":"Add payment schedule items to a custom payment schedule","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","tags":["paymentSchedules"],"parameters":[{"name":"paymentScheduleKey","in":"path","description":"The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentScheduleResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTAddItemsToPaymentScheduleRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-schedules/{paymentScheduleKey}/preview":{"put":{"operationId":"paymentSchedules_PUT_PaymentScheduleUpdatePreview","summary":"Preview the result of payment schedule updates","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","tags":["paymentSchedules"],"parameters":[{"name":"paymentScheduleKey","in":"path","description":"The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPaymentScheduleResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPreviewPaymentScheduleRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/refunds":{"get":{"operationId":"refunds_GET_Refunds","summary":"List refunds","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","tags":["refunds"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"accountId","in":"query","description":"This parameter filters the response based on the `accountId` field.\n","required":false,"schema":{"type":"string"}},{"name":"amount","in":"query","description":"This parameter filters the response based on the `amount` field.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"createdById","in":"query","description":"This parameter filters the response based on the `createdById` field.\n","required":false,"schema":{"type":"string"}},{"name":"createdDate","in":"query","description":"This parameter filters the response based on the `createdDate` field.\n","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"methodType","in":"query","description":"This parameter filters the response based on the `methodType` field.\n","required":false,"schema":{"$ref":"#/components/schemas/V1RefundsGetParametersMethodType"}},{"name":"number","in":"query","description":"This parameter filters the response based on the `number` field.\n","required":false,"schema":{"type":"string"}},{"name":"paymentId","in":"query","description":"This parameter filters the response based on the `paymentId` field.\n","required":false,"schema":{"type":"string"}},{"name":"refundDate","in":"query","description":"This parameter filters the response based on the `refundDate` field.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"status","in":"query","description":"This parameter filters the response based on the `status` field.\n","required":false,"schema":{"$ref":"#/components/schemas/V1RefundsGetParametersStatus"}},{"name":"type","in":"query","description":"This parameter filters the response based on the `type` field.\n","required":false,"schema":{"$ref":"#/components/schemas/V1RefundsGetParametersType"}},{"name":"updatedById","in":"query","description":"This parameter filters the response based on the `updatedById` field.\n","required":false,"schema":{"type":"string"}},{"name":"updatedDate","in":"query","description":"This parameter filters the response based on the `updatedDate` field.\n","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"sort","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRefundCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/refunds/{refundKey}":{"get":{"operationId":"refunds_GET_Refund","summary":"Retrieve a refund","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","tags":["refunds"],"parameters":[{"name":"refundKey","in":"path","description":"The unique ID of a refund or the refund number. For example, 4028905f5a87c0ff015a889e590e00c9.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRefundType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"refunds_PUT_UpdateRefund","summary":"Update a refund","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","tags":["refunds"],"parameters":[{"name":"refundKey","in":"path","description":"The unique ID or number of a refund. For example, `4028905f5a87c0ff015a889e590e00c9` or `R-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRefundType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTRefundType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"refunds_DELETE_Refund","summary":"Delete a refund","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","tags":["refunds"],"parameters":[{"name":"refundKey","in":"path","description":"The unique ID of a refund or the refund number. For example, 4028905f5a87c0ff015a889e590e00c9.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/refunds/{refundKey}/cancel":{"put":{"operationId":"refunds_PUT_CancelRefund","summary":"Cancel a refund","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","tags":["refunds"],"parameters":[{"name":"refundKey","in":"path","description":"The unique ID of a refund or the refund number. For example, 4028905f5a87c0ff015a889e590e00c9.      \n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRefundType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/refunds/{refundKey}/parts":{"get":{"operationId":"refunds_GET_RefundParts","summary":"List all parts of a refund","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","tags":["refunds"],"parameters":[{"name":"refundKey","in":"path","description":"The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRefundPartCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/refunds/{refundKey}/parts/{refundpartid}":{"get":{"operationId":"refunds_GET_RefundPart","summary":"Retrieve a refund part","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","tags":["refunds"],"parameters":[{"name":"refundpartid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"refundKey","in":"path","description":"The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundPartResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/refunds/{refundKey}/parts/{refundpartid}/item-parts":{"get":{"operationId":"refunds_GET_RefundItemParts","summary":"List all refund part items","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","tags":["refunds"],"parameters":[{"name":"refundpartid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"refundKey","in":"path","description":"The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRefundItemPartCollectionType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/refunds/{refundKey}/parts/{refundpartid}/item-parts/{itempartid}":{"get":{"operationId":"refunds_GET_RefundItemPart","summary":"Retrieve a refund part item","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","tags":["refunds"],"parameters":[{"name":"itempartid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"refundpartid","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"refundKey","in":"path","description":"The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETRefundItemPartType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/payment-profile":{"put":{"operationId":"paymentProfiles_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":["paymentProfiles"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Payment_Profiles_UpsertPaymentProfiles_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bulkPaymentOptionItems":{"type":"array","items":{"$ref":"#/components/schemas/V1PaymentProfilePutRequestBodyContentApplicationJsonSchemaBulkPaymentOptionItemsItems"},"description":"An array of payment profiles you want to create or update.\n"}}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/payments/active_invoice_cycle_information/{invoice_id}":{"get":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"parameters":[{"name":"invoice_id","in":"path","description":"ID of an invoice.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETActiveInvoiceCycleResponse"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/active_debit_memo_cycle_information/{debit_memo_id}":{"get":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"parameters":[{"name":"debit_memo_id","in":"path","description":"ID of a debit memo.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETActiveDebitMemoCycleResponse"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/active_account_cycle_information/{account_id}":{"get":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"parameters":[{"name":"account_id","in":"path","description":"ID of an account.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETActiveAccountCycleResponse"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/invoice_cycle_history/{invoice_id}":{"get":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"parameters":[{"name":"invoice_id","in":"path","description":"ID of an invoice.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETInvoiceCycleHistoryResponse"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/debit_memo_cycle_history/{debit_memo_id}":{"get":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"parameters":[{"name":"debit_memo_id","in":"path","description":"ID of a debit memo.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDebitMemoCycleHistoryResponse"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/account_cycle_history/{account_id}":{"get":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"parameters":[{"name":"account_id","in":"path","description":"ID of an account.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAccountCycleHistoryResponse"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/execute_invoice_payment/{invoice_id}":{"put":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"parameters":[{"name":"invoice_id","in":"path","description":"ID of an invoice.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configurable_Payment_Retry_putExecuteInvoicePayment_Response_200"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/execute_debit_memo_payment/{debit_memo_id}":{"put":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"parameters":[{"name":"debit_memo_id","in":"path","description":"ID of a debit memo.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configurable_Payment_Retry_putExecuteDebitMemoPayment_Response_200"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/execute_account_payments/{account_id}":{"put":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"parameters":[{"name":"account_id","in":"path","description":"ID of an account.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configurable_Payment_Retry_putExecuteAccountPayments_Response_200"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/execute_payments":{"post":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configurable_Payment_Retry_postExecutePayments_Response_200"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"account_ids":{"type":"array","items":{"type":"string"},"description":"IDs of accounts."},"debit_memo_ids":{"type":"array","items":{"type":"string"},"description":"IDs of debit memos."},"invoice_ids":{"type":"array","items":{"type":"string"},"description":"IDs of invoices."}}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/remove_invoice_from_retry_cycle/{invoice_id}":{"put":{"operationId":"configurablePaymentRetry_putRemoveInoviceFromCycle","summary":"Remove an invoice from retry cycle","description":"Stops any active retry cycles associated with the invoice provided.\n","tags":["configurablePaymentRetry"],"parameters":[{"name":"invoice_id","in":"path","description":"ID of an invoice.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configurable_Payment_Retry_putRemoveInoviceFromCycle_Response_200"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/remove_debit_memo_from_retry_cycle/{debit_memo_id}":{"put":{"operationId":"configurablePaymentRetry_putRemoveDebitMemoFromCycle","summary":"Remove a debit memo from retry cycle","description":"Stops any active retry cycles associated with the debit memo provided.\n","tags":["configurablePaymentRetry"],"parameters":[{"name":"debit_memo_id","in":"path","description":"ID of a debit memo.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configurable_Payment_Retry_putRemoveDebitMemoFromCycle_Response_200"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/remove_account_from_retry_cycle/{account_id}":{"put":{"operationId":"configurablePaymentRetry_putRemoveAccountFromCycle","summary":"Remove an account from retry cycle","description":"Stops any active retry cycles associated with the account provided.\n","tags":["configurablePaymentRetry"],"parameters":[{"name":"account_id","in":"path","description":"ID of an account.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configurable_Payment_Retry_putRemoveAccountFromCycle_Response_200"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/payments/submit_failed_payment":{"post":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configurable_Payment_Retry_postSubmitPaymentToCycle_Response_200"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"payment_id":{"type":"string","description":"ID of a failed payment."}}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/metrics/baseline":{"get":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETBaselineMetricsResponse"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/metrics/amount_recovered":{"get":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAmountRecoveredResponse"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/metrics/customer_group_over_time":{"get":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETDocumentSuccessRateByCustomerGroupResponse"}}}}},"security":[{"basicAuth":[]}]}},"/api/v1/metrics/customer_group":{"get":{"operationId":"configurablePaymentRetry_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":["configurablePaymentRetry"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCustomerGroupMetricsResponse"}}}}},"security":[{"basicAuth":[]}]}},"/object-query/accounts":{"get":{"operationId":"objectQueries_queryAccounts","summary":"List accounts","description":"Lists accounts. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountnumber\n  - balance\n  - batch\n  - billcycleday\n  - billtoid\n  - communicationprofileid\n  - crmid\n  - currency\n  - defaultpaymentmethodid\n  - invoicetemplateid\n  - lastinvoicedate\n  - name\n  - parentid\n  - shiptoid\n  - soldtoid\n  - status","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryAccountsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountnumber\n  - balance\n  - batch\n  - billcycleday\n  - billtoid\n  - communicationprofileid\n  - crmid\n  - currency\n  - defaultpaymentmethodid\n  - invoicetemplateid\n  - lastinvoicedate\n  - name\n  - parentid\n  - shiptoid\n  - soldtoid\n  - status\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryAccounts_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/accounts/{key}":{"get":{"operationId":"objectQueries_queryAccountByKey","summary":"Retrieve an account","description":"Retrieve the details of a specific Account object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryAccountsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedAccount"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/amendments":{"get":{"operationId":"objectQueries_queryAmendments","summary":"List amendments","description":"Lists amendments. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\n\nSupported sortable fields: \n  - id\n  - code\n  - effectivedate\n  - effectivepolicy\n  - name\n  - newrateplanid\n  - removedrateplanid\n  - status\n  - subscriptionid\n  - type\n  - subtype\n  - updateddate","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Amendment object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\nSupported filterable fields: \n  - id\n  - code\n  - effectivedate\n  - effectivepolicy\n  - name\n  - newrateplanid\n  - removedrateplanid\n  - status\n  - subscriptionid\n  - type\n  - subtype\n  - updateddate\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryAmendments_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/amendments/{key}":{"get":{"operationId":"objectQueries_queryAmendmentByKey","summary":"Retrieve an amendment","description":"Retrieve the details of a specific Amendment object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Amendment object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedAmendment"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/billing-runs":{"get":{"operationId":"objectQueries_queryBillingRuns","summary":"List bill runs","description":"Lists bill runs. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - createdbyid\n  - updateddate\n  - billingrunnumber\n  - executeddate\n  - name\n  - numberofaccounts\n  - numberofinvoices\n  - numberofcreditmemos\n  - status\n  - targetdate\n  - batches\n  - repeattype","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Bill Run object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\nSupported filterable fields: \n  - id\n  - createdbyid\n  - updateddate\n  - billingrunnumber\n  - executeddate\n  - name\n  - numberofaccounts\n  - numberofinvoices\n  - numberofcreditmemos\n  - status\n  - targetdate\n  - batches\n  - repeattype\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryBillingRuns_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/billing-runs/{key}":{"get":{"operationId":"objectQueries_queryBillingRunByKey","summary":"Retrieve a bill run","description":"Retrieve the details of a specific Bill Run object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Bill Run object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedBillingRun"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/contacts":{"get":{"operationId":"objectQueries_queryContacts","summary":"List contacts","description":"Lists contacts. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - country\n  - firstname\n  - lastname\n  - personalemail\n  - workemail\n  - workphone\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Contact object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - country\n  - firstname\n  - lastname\n  - personalemail\n  - workemail\n  - workphone\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryContacts_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/contacts/{key}":{"get":{"operationId":"objectQueries_queryContactByKey","summary":"Retrieve a contact","description":"Retrieve the details of a specific Contact object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Contact object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedContact"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/credit-memos":{"get":{"operationId":"objectQueries_queryCreditMemos","summary":"List credit memos","description":"Lists credit memos. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - balance\n  - einvoicestatus\n  - memodate\n  - memonumber\n  - sourcetype\n  - status\n  - totalamount\n  - invoiceid\n  - accountid","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryCreditMemosGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - balance\n  - einvoicestatus\n  - memodate\n  - memonumber\n  - sourcetype\n  - status\n  - totalamount\n  - invoiceid\n  - accountid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryCreditMemos_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/credit-memos/{key}":{"get":{"operationId":"objectQueries_queryCreditMemoByKey","summary":"Retrieve a credit memo","description":"Retrieve the details of a specific Credit Memo object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryCreditMemosKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedCreditMemo"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/credit-memo-applications":{"get":{"operationId":"objectQueries_queryCreditMemoApplications","summary":"List credit memo applications","description":"Lists credit memo applications. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - effectivedate\n  - accountid\n  - applicationgroupid\n  - debitmemoid\n  - invoiceid\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryCreditMemoApplicationsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - effectivedate\n  - accountid\n  - applicationgroupid\n  - debitmemoid\n  - invoiceid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryCreditMemoApplications_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/credit-memo-applications/{key}":{"get":{"operationId":"objectQueries_queryCreditMemoApplicationByKey","summary":"Retrieve a credit memo application","description":"Retrieve the details of a specific Credit Memo Application object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryCreditMemoApplicationsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedCreditMemoApplication"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/credit-memo-items":{"get":{"operationId":"objectQueries_queryCreditMemoItems","summary":"List credit memo items","description":"Lists credit memo items. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - excludeitembillingfromrevenueaccounting\n  - sourceitemtype\n  - chargenumber\n  - subscriptionid\n  - subscriptionnumber\n  - invoiceitemid\n  - rateplanchargeid\n  - creditmemoid\n  \n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryCreditMemoItemsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - excludeitembillingfromrevenueaccounting\n  - fulfillmentid\n  - orderlineitemid\n  - sourceitemtype\n  - chargenumber\n  - subscriptionid\n  - subscriptionnumber\n  - invoiceitemid\n  - rateplanchargeid\n  - creditmemoid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryCreditMemoItems_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/credit-memo-items/{key}":{"get":{"operationId":"objectQueries_queryCreditMemoItemByKey","summary":"Retrieve a credit memo item","description":"Retrieve the details of a specific Credit Memo Item object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryCreditMemoItemsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedCreditMemoItem"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/daily-consumption-summaries":{"get":{"operationId":"objectQueries_queryDailyConsumptionSummaries","summary":"List daily consumption summaries","description":"Lists daily consumption summaries. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\nSupported filterable fields: \n  - id\n  - updateddate","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryDailyConsumptionSummaries_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/daily-consumption-summaries/{key}":{"get":{"operationId":"objectQueries_queryDailyConsumptionSummaryByKey","summary":"Retrieve a daily consumption summary","description":"Retrieve the details of a specific Daily Consumption Summary object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedDailyConsumptionSummary"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/debit-memos":{"get":{"operationId":"objectQueries_queryDebitMemos","summary":"List debit memos","description":"Lists debit memos. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - balance\n  - creditmemoid\n  - einvoicestatus\n  - memodate\n  - memonumber\n  - sourcetype\n  - status\n  - totalamount\n  - invoiceid\n  - accountid      ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryDebitMemosGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - balance\n  - creditmemoid\n  - einvoicestatus\n  - memodate\n  - memonumber\n  - sourcetype\n  - status\n  - totalamount\n  - invoiceid\n  - accountid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryDebitMemos_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/debit-memos/{key}":{"get":{"operationId":"objectQueries_queryDebitMemoByKey","summary":"Retrieve a debit memo","description":"Retrieve the details of a specific Debit Memo object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryDebitMemosKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedDebitMemo"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/debit-memo-items":{"get":{"operationId":"objectQueries_queryDebitMemoItems","summary":"List debit memo items","description":"Lists debit memo items. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - creditmemoitemid\n  - excludeitembillingfromrevenueaccounting\n  - sourceitemtype\n  - chargenumber\n  - subscriptionid\n  - subscriptionnumber\n  - invoiceitemid\n  - productrateplanchargeid\n  - rateplanchargeid\n  - debitmemoid  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryDebitMemoItemsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - creditmemoitemid\n  - excludeitembillingfromrevenueaccounting\n  - sourceitemtype\n  - chargenumber\n  - subscriptionid\n  - subscriptionnumber\n  - invoiceitemid\n  - productrateplanchargeid\n  - rateplanchargeid\n  - debitmemoid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryDebitMemoItems_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/debit-memo-items/{key}":{"get":{"operationId":"objectQueries_queryDebitMemoItemByKey","summary":"Retrieve a debit memo item","description":"Retrieve the details of a specific Debit Memo Item object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryDebitMemoItemsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedDebitMemoItem"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/delivery-adjustments":{"get":{"operationId":"objectQueries_queryDeliveryAdjustments","summary":"List delivery adjustments","description":"Lists Delivery Adjustment objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - adjustmentnumber\n  - creditmemonumber\n  - creditmemoid\n  - debitmemonumber\n - segmentid\n - chargeid\n  - chargenumber\n  - subscriptionid\n - subscriptionnumber\n  - originalsubid\n  - accountid\n  - invoiceowneraccountid\n - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - adjustmentnumber\n  - creditmemonumber\n  - creditmemoid\n  - debitmemonumber\n - segmentid\n - chargeid\n  - chargenumber\n  - subscriptionid\n - subscriptionnumber\n  - originalsubid\n - accountid\n - invoiceowneraccountid\n - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryDeliveryAdjustments_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/delivery-adjustments/{key}":{"get":{"operationId":"objectQueries_queryDeliveryAdjustmentByKey","summary":"Retrieve a delivery adjustment","description":"Retrieves a Delivery Adjustment object. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"ID or number of the delivery adjustment.\n","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields include: \n  - id\n  - adjustmentnumber\n  - creditmemonumber\n  - creditmemoid\n  - debitmemonumber\n - segmentid\n - chargeid\n  - chargenumber\n  - subscriptionid\n - subscriptionnumber\n  - originalsubid\n - accountid\n - invoiceowneraccountid\n - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\n Supported sortable fields include: \n  - id\n  - adjustmentnumber\n  - creditmemonumber\n  - creditmemoid\n  - debitmemonumber\n - segmentid\n - chargeid\n  - chargenumber\n  - subscriptionid\n - subscriptionnumber\n  - originalsubid\n  - accountid\n  - invoiceowneraccountid\n - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedDeliveryAdjustment"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/fulfillments":{"get":{"operationId":"objectQueries_queryFulfillments","summary":"List fulfillments","description":"Lists Fulfillment objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n - updateddate\n  \n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - createddate\n  - updateddate\n  - orderlineitemid - fulfillmentnumber\n - state\n - externalid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryFulfillments_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/fulfillments/{key}":{"get":{"operationId":"objectQueries_queryFulfillmentByKey","summary":"Retrieve a fulfillment","description":"Retrieves a Fulfillment object. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"ID or number of the fulfillment.\n","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n - updateddate\n  \n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - createddate\n  - updateddate\n  - orderlineitemid - fulfillmentnumber\n - state\n - externalid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedFulfillment"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/invoices":{"get":{"operationId":"objectQueries_queryInvoices","summary":"List invoices","description":"Lists invoices. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - amount\n  - balance\n  - duedate\n  - invoicedate\n  - invoicenumber\n  - reversed\n  - sourceid\n  - sourcetype\n  - status\n  - einvoicestatus     \n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryInvoicesGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - amount\n  - balance\n  - duedate\n  - invoicedate\n  - invoicenumber\n  - reversed\n  - sourceid\n  - sourcetype\n  - status\n  - einvoicestatus\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryInvoices_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/invoices/{key}":{"get":{"operationId":"objectQueries_queryInvoiceByKey","summary":"Retrieve an invoice","description":"Retrieve the details of a specific Invoice object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryInvoicesKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedInvoice"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/invoice-items":{"get":{"operationId":"objectQueries_queryInvoiceItems","summary":"List invoice items","description":"Lists invoice items. You can use the query parameters to filter, expand, and sort the returned results.\n\n**Note**: You must specify a `filter[]` query parameter to query invoice items.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - rateplanchargeid\n  - invoiceid\n  - accountingcode\n  - chargedate\n  - chargenumber\n  - excludeitembillingfromrevenueaccounting\n  - servicestartdate\n  - serviceenddate\n  - sourceitemtype\n  - subscriptionid\n  - subscriptionnumber\n  - productrateplanchargeid\n  - bookingreference\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryInvoiceItemsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - rateplanchargeid\n  - invoiceid\n  - accountingcode\n  - chargedate\n  - chargenumber\n  - excludeitembillingfromrevenueaccounting\n  - fulfillmentid\n  - servicestartdate\n  - serviceenddate\n  - sourceitemtype\n  - subscriptionid\n  - subscriptionnumber\n  - productrateplanchargeid\n  - bookingreference\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryInvoiceItems_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/invoice-items/{key}":{"get":{"operationId":"objectQueries_queryInvoiceItemByKey","summary":"Retrieve an invoice item","description":"Retrieve the details of a specific Invoice Item object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryInvoiceItemsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedInvoiceItem"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/invoice-schedules":{"get":{"operationId":"objectQueries_queryInvoiceSchedules","summary":"List invoice schedules","description":"Lists invoice schedules. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - nextrundate\n  - number\n  - accountid\n  - status","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryInvoiceSchedulesGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - nextrundate\n  - number\n  - accountid\n  - status\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryInvoiceSchedules_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/invoice-schedules/{key}":{"get":{"operationId":"objectQueries_queryInvoiceScheduleByKey","summary":"Retrieve an invoice schedule","description":"Retrieves the details of a specific Invoice Schedule object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryInvoiceSchedulesKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedInvoiceSchedule"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/order-actions":{"get":{"operationId":"objectQueries_queryOrderActions","summary":"List order actions","description":"Lists order actions. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - subscriptionversionamendmentid\n  - orderid\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryOrderActionsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - subscriptionversionamendmentid\n  - orderid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryOrderActions_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/order-actions/{key}":{"get":{"operationId":"objectQueries_queryOrderActionByKey","summary":"Retrieve an order action","description":"Retrieve the details of a specific Order Action object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryOrderActionsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedOrderAction"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/order-line-items":{"get":{"operationId":"objectQueries_queryOrderLineItems","summary":"List order line items","description":"Lists order line items. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - itemname\n  - itemnumber\n  - itemstate\n  - itemtype\n  - orderid\n  - ordernumber\n  - productcode\n  - productrateplanchargeid\n  - uom\n  - relatedsubscriptionnumber\n  - inlinediscounttype","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryOrderLineItemsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - itemname\n  - itemnumber\n  - itemstate\n  - itemtype\n  - orderid\n  - ordernumber\n  - productcode\n  - productrateplanchargeid\n  - billtoid\n  - soldto\n  - owneraccountid\n  - invoiceowneraccountid\n  - uom\n  - relatedsubscriptionnumber\n  - originalorderid\n  - originalordernumber\n  - originalorderlineitemid\n  - inlinediscounttype\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryOrderLineItems_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/order-line-items/{key}":{"get":{"operationId":"objectQueries_queryOrderLineItemByKey","summary":"Retrieve an order line item","description":"Retrieve the details of a specific Order Line Item object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryOrderLineItemsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedOrderLineItem"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/orders":{"get":{"operationId":"objectQueries_queryOrders","summary":"List orders","description":"Lists orders. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - orderdate\n  - ordernumber\n  - accountid\n  - status\n  - invoicescheduleid","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\n\n**Note**: For draft and scheduled orders, information on the subscription, rate plan, and rate plan charges is not available nor displayed until the following conditions are met:\n- A scheduled order is executed and its status is changed to `completed`. \n- A draft order is activated and its status is changed to `pending` or `completed`.\n\nFor example, if an order is in the `scheduled` or `draft` status, information on the subscription, rate plan, and rate plan charges is not displayed.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryOrdersGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - orderdate\n  - ordernumber\n  - accountid\n  - status\n  - invoicescheduleid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryOrders_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/orders/{key}":{"get":{"operationId":"objectQueries_queryOrdersByKey","summary":"Retrieve an order","description":"Retrieve the details of a specific Order object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\n\n**Note**: For draft and scheduled orders, information on the subscription, rate plan, and rate plan charges is not available nor displayed until the following conditions are met:\n- A scheduled order is executed and its status is changed to `completed`. \n- A draft order is activated and its status is changed to `pending` or `completed`.\n\nFor example, if an order is in the `scheduled` or `draft` status, information on the subscription, rate plan, and rate plan charges is not displayed.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryOrdersKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\nSupported filterable fields: \n  - id\n  - updateddate\n  - orderdate\n  - ordernumber\n  - accountid\n  - status\n  - invoicescheduleid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedOrders"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payments":{"get":{"operationId":"objectQueries_queryPayments","summary":"List payments","description":"Lists payments. You can use the query parameters to filter, expand, and sort the returned results.  \n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - amount\n  - effectivedate\n  - gatewayorderid\n  - gatewaystate\n  - paymentmethodid\n  - paymentmethodsnapshotid\n  - paymentnumber\n  - referenceid\n  - source\n  - sourcename\n  - status\n  - unappliedamount\n  - createddate\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPaymentsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - amount\n  - effectivedate\n  - gatewayorderid\n  - gatewaystate\n  - paymentmethodid\n  - paymentmethodsnapshotid\n  - paymentnumber\n  - referenceid\n  - source\n  - sourcename\n  - status\n  - unappliedamount\n  - createddate\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryPayments_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payments/{key}":{"get":{"operationId":"objectQueries_queryPaymentByKey","summary":"Retrieve a payment","description":"Retrieve the details of a specific Payment object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPaymentsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedPayment"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-applications":{"get":{"operationId":"objectQueries_queryPaymentApplications","summary":"List payment applications","description":"Lists payment applications. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - effectivedate\n  - accountid\n  - paymentid\n  - applicationgroupid\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPaymentApplicationsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - effectivedate\n  - accountid\n  - paymentid\n  - applicationgroupid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryPaymentApplications_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-applications/{key}":{"get":{"operationId":"objectQueries_queryPaymentApplicationByKey","summary":"Retrieve a payment application","description":"Retrieve the details of a specific Payment Application object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPaymentApplicationsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedPaymentApplication"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-methods":{"get":{"operationId":"objectQueries_queryPaymentMethods","summary":"List payment methods","description":"Lists payment methods. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - achaccountname\n  - achbankname\n  - achcountry\n  - active\n  - issystem\n  - businessidentificationcode\n  - country\n  - creditcardexpirationmonth\n  - creditcardexpirationyear\n  - creditcardmasknumber\n  - lasttransactiondatetime\n  - paypalbaid\n  - type\n        ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPaymentMethodsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - achaccountname\n  - achbankname\n  - achcountry\n  - active\n  - issystem\n  - businessidentificationcode\n  - country\n  - creditcardexpirationmonth\n  - creditcardexpirationyear\n  - creditcardmasknumber\n  - lasttransactiondatetime\n  - paypalbaid\n  - type\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryPaymentMethods_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-methods/{key}":{"get":{"operationId":"objectQueries_queryPaymentMethodByKey","summary":"Retrieve a payment method","description":"Retrieve the details of a specific Payment Method object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPaymentMethodsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedPaymentMethod"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-method-snapshots":{"get":{"operationId":"objectQueries_queryPaymentMethodSnapshots","summary":"List payment method snapshots","description":"Lists payment method snapshots. You can use the query parameters to filter, expand, and sort the returned results.\n\n**Note**: You must specify a `filter[]` query parameter to query payment method snapshots.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - country\n  - creditcardcountry\n  - paymentmethodid","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Payment Method Snapshot object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - country\n  - creditcardcountry\n  - paymentmethodid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryPaymentMethodSnapshots_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-method-snapshots/{key}":{"get":{"operationId":"objectQueries_queryPaymentMethodSnapshotByKey","summary":"Retrieve a payment method snapshot","description":"Retrieve the details of a specific Payment Method Snapshot object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Payment Method Snapshot object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedPaymentMethodSnapshot"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-runs":{"get":{"operationId":"objectQueries_queryPaymentRuns","summary":"List payment runs","description":"Lists payment runs. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - executeddate\n  - numberofpayments\n  - paymentrunnumber\n  - status\n  - targetdate\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Payment Run object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - executeddate\n  - numberofpayments\n  - paymentrunnumber\n  - status\n  - targetdate\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryPaymentRuns_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-runs/{key}":{"get":{"operationId":"objectQueries_queryPaymentRunByKey","summary":"Retrieve a payment run","description":"Retrieve the details of a specific Payment Run object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Payment Run object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedPaymentRun"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-schedules":{"get":{"operationId":"objectQueries_queryPaymentSchedules","summary":"List payment schedules","description":"Lists payment schedules. You can use the query parameters to filter, expand, and sort the returned results.  \n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - number\n  - accountid\n  - invoiceid\n  - debitmemoid\n  - occurrences\n  - status\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Payment Schedule object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - number\n  - accountid\n  - invoiceid\n  - debitmemoid\n  - occurrences\n  - status\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryPaymentSchedules_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-schedules/{key}":{"get":{"operationId":"objectQueries_queryPaymentScheduleByKey","summary":"Retrieve a payment schedule","description":"Retrieve the details of a specific Payment Schedule object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Payment Schedule object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedPaymentSchedule"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-schedule-items":{"get":{"operationId":"objectQueries_queryPaymentScheduleItems","summary":"List payment schedule items","description":"Lists Payment Schedule Item objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - number\n  - accountid\n  - invoiceid\n  - debitmemoid\n  - paymentscheduleid\n  - scheduleddate\n  - status\n  - paymentid\n  - cancellationreason\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Payment Schedule Item object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPaymentScheduleItemsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - number\n  - accountid\n  - invoiceid\n  - debitmemoid\n  - paymentscheduleid\n  - scheduleddate\n  - status\n  - paymentid\n  - cancellationreason\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryPaymentScheduleItems_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/payment-schedule-items/{key}":{"get":{"operationId":"objectQueries_queryPaymentScheduleItemByKey","summary":"Retrieve a payment schedule item","description":"Retrieve the details of a specific Payment Schedule Item object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Payment Schedule Item object does not support expanding any related objects.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPaymentScheduleItemsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedPaymentScheduleItem"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/prepaid-balances":{"get":{"operationId":"objectQueries_queryPrepaidBalances","summary":"List prepaid balances","description":"Lists Prepaid Balance objects. You can use the query parameters to filter, expand, and sort the returned results.  \n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - startdate\n  - accountid\n  - origsubscriptionid\n  - uom","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPrepaidBalancesGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - startdate\n  - accountid\n  - origsubscriptionid\n  - uom\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryPrepaidBalances_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/prepaid-balances/{key}":{"get":{"operationId":"objectQueries_queryPrepaidBalanceByKey","summary":"Retrieve a prepaid balance","description":"Retrieve the details of a specific Prepaid Balance object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPrepaidBalancesKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedPrepaidBalance"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/prepaid-balance-funds":{"get":{"operationId":"objectQueries_queryPrepaidBalanceFunds","summary":"List prepaid balance funds","description":"Lists prepaid balance funds. You can use the query parameters to filter, expand, and sort the returned results.  \n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - enddate\n  - prepaidbalanceid\n  - sourceid\n  - startdate\n  - vpsummaryid\n    ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPrepaidBalanceFundsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - enddate\n  - prepaidbalanceid\n  - sourceid\n  - startdate\n  - vpsummaryid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryPrepaidBalanceFunds_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/prepaid-balance-funds/{key}":{"get":{"operationId":"objectQueries_queryPrepaidBalanceFundByKey","summary":"Retrieve a prepaid balance fund","description":"Retrieve the details of a specific Prepaid Balance Fund object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPrepaidBalanceFundsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedPrepaidBalanceFund"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/prepaid-balance-transactions":{"get":{"operationId":"objectQueries_queryPrepaidBalanceTransactions","summary":"List prepaid balance transactions","description":"Lists prepaid balance transactions. You can use the query parameters to filter, expand, and sort the returned results.  \n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - accountid\n  - prepaidbalanceid\n  - fundid\n  - sourceid\n  - transactiondate\n  - prepaidbalancetransactiontype\n  - createddate\n    ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPrepaidBalanceTransactionsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - accountid\n  - prepaidbalanceid\n  - fundid\n  - sourceid\n  - transactiondate\n  - createddate\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryPrepaidBalanceTransactions_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/prepaid-balance-transactions/{key}":{"get":{"operationId":"objectQueries_queryPrepaidBalanceTransactionByKey","summary":"Retrieve a prepaid balance transaction","description":"Retrieve the details of a Prepaid Balance Transaction object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryPrepaidBalanceTransactionsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedPrepaidBalanceTransaction"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/processed-usages":{"get":{"operationId":"objectQueries_queryProcessedUsages","summary":"List processed usage records","description":"Lists Processed Usage Record objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - usageid\n  - billingperiodenddate\n  - billingperiodstartdate   ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryProcessedUsagesGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - usageid\n  - billingperiodenddate\n  - billingperiodstartdate\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryProcessedUsages_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/processed-usages/{key}":{"get":{"operationId":"objectQueries_queryProcessedUsageByKey","summary":"Retrieve a processed usage record","description":"Retrieve the details of a specific Processed Usage Record object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryProcessedUsagesKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedProcessedUsage"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/products":{"get":{"operationId":"objectQueries_queryProducts","summary":"List products","description":"Lists Product objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - name\n  - effectiveenddate\n  - effectivestartdate\n  - sku\n  - productnumber\n  - category\n  \n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryProductsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - name\n  - effectiveenddate\n  - effectivestartdate\n  - sku\n  - productnumber\n  - category\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryProducts_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/products/{key}":{"get":{"operationId":"objectQueries_queryProductByKey","summary":"Retrieve a product","description":"Retrieve the details of a specific Product object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"ID or SKU of a product.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryProductsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedProduct"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/product-rate-plans":{"get":{"operationId":"objectQueries_queryProductRatePlans","summary":"List product rate plans","description":"Lists Product Rate Plan objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - productid\n  - name\n  - effectivestartdate\n  - effectiveenddate\n  - productrateplannumber\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryProductRatePlansGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - productid\n  - name\n  - effectivestartdate\n  - effectiveenddate\n  - productrateplannumber\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryProductRatePlans_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/product-rate-plans/{key}":{"get":{"operationId":"objectQueries_queryProductRatePlanByKey","summary":"Retrieve a product rate plan","description":"Retrieve the details of a specific Product Rate Plan object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"ID of a product rate plan.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryProductRatePlansKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedProductRatePlan"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/product-rate-plan-charges":{"get":{"operationId":"objectQueries_queryProductRatePlanCharges","summary":"List product rate plan charges","description":"Lists Product Rate Plan Charge objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - billcycleday\n  - chargemodel\n  - productrateplanchargenumber\n  - productrateplanid","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryProductRatePlanChargesGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - billcycleday\n  - chargemodel\n  - chargetype\n  - isprepaid\n  - productrateplanchargenumber\n  - productrateplanid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryProductRatePlanCharges_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/product-rate-plan-charges/{key}":{"get":{"operationId":"objectQueries_queryProductRatePlanChargeByKey","summary":"Retrieve a product rate plan charge","description":"Retrieve the details of a specific Product Rate Plan Charge object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"ID of a product rate plan charge.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryProductRatePlanChargesKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedProductRatePlanCharge"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/product-rate-plan-charge-tiers":{"get":{"operationId":"objectQueries_queryProductRatePlanChargeTiers","summary":"List product rate plan charge tiers","description":"Lists Product Rate Plan Charge Tier objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - productrateplanchargeid\n  - productchargedefinitionid\n   ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryProductRatePlanChargeTiersGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - productrateplanchargeid\n  - productchargedefinitionid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryProductRatePlanChargeTiers_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/product-rate-plan-charge-tiers/{key}":{"get":{"operationId":"objectQueries_queryProductRatePlanChargeTierByKey","summary":"Retrieve a product rate plan charge tier","description":"Retrieve the details of a specific Product Rate Plan Charge Tier object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"ID of a product rate plan charge tier.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryProductRatePlanChargeTiersKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeTier"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/ramps":{"get":{"operationId":"objectQueries_queryRamps","summary":"List ramps","description":"Lists Ramp objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - orderId\n  \n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - orderId\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryRamps_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/ramps/{key}":{"get":{"operationId":"objectQueries_queryRampByKey","summary":"Retrieve a ramp","description":"Retrieve a Ramp object. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"ID or number of the ramp.\n","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - orderId\n  \n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - orderId\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedRamp"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/rate-plans":{"get":{"operationId":"objectQueries_queryRatePlans","summary":"List rate plans","description":"Lists Rate Plan objects. You can use the query parameters to filter, expand, and sort the returned results.  \n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - productid\n  - amendmentid\n  - subscriptionid\n  - subscriptionownerid\n  - externallymanagedplanid\n  - subscriptionrateplannumber","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRatePlansGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - name\n  - updateddate\n  - productid\n  - amendmentid\n  - subscriptionid\n  - subscriptionownerid\n  - invoiceownerid\n  - externallymanagedplanid\n  - originalrateplanid\n  - subscriptionofferid\n  - subscriptionrateplannumber\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryRatePlans_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/rate-plans/{key}":{"get":{"operationId":"objectQueries_queryRatePlanByKey","summary":"Retrieve a rate plan","description":"Retrieve the details of a specific Rate Plan object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"ID of a rate plan.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRatePlansKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedRatePlan"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/rate-plan-charges":{"get":{"operationId":"objectQueries_queryRatePlanCharges","summary":"List rate plan charges","description":"Lists Rate Plan Charge objects. You can use the query parameters to filter, expand, and sort the returned results.\n**Note**: You must specify a `filter[]` query parameter to query rate plan charges.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - rateplanid\n  - chargenumber\n  - invoicescheduleid\n  - isprepaid\n  - originalid\n  - productchargedefinitionid","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRatePlanChargesGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - name\n  - updateddate\n  - rateplanid\n  - billcycleday\n  - chargemodel\n  - chargenumber\n  - chargetype\n  - invoicescheduleid\n  - isprepaid\n  - originalid\n  - subscriptionid\n  - subscriptionownerid\n  - invoiceownerid\n  - productchargedefinitionid\n  - uom\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryRatePlanCharges_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/rate-plan-charges/{key}":{"get":{"operationId":"objectQueries_queryRatePlanChargeByKey","summary":"Retrieve a rate plan charge","description":"Retrieve the details of a specific Rate Plan Charge object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"ID of a rate plan charge.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRatePlanChargesKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedRatePlanCharge"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/rate-plan-charge-tiers":{"get":{"operationId":"objectQueries_queryRatePlanChargeTiers","summary":"List rate plan charge tiers","description":"Lists Rate Plan Charge Tier objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - currency\n  - id\n  - rateplanchargeid\n  - updateddate","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRatePlanChargeTiersGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - currency\n  - id\n  - rateplanchargeid\n  - updateddate","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryRatePlanChargeTiers_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/rate-plan-charge-tiers/{key}":{"get":{"operationId":"objectQueries_queryRatePlanChargeTierByKey","summary":"Retrieve a rate plan charge tier","description":"Retrieve the details of a specific Rate Plan Charge Tier object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"ID of a rate plan charge tier.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - currency\n  - id\n  - rateplanchargeid\n  - updateddate\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRatePlanChargeTiersKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - currency\n  - id\n  - rateplanchargeid\n  - updateddate","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedRatePlanChargeTier"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/rating-results":{"get":{"operationId":"objectQueries_queryRatingResults","summary":"List rating results","description":"Lists Rating Result objects. You can use the query parameters to filter, expand, and sort the returned results.  \n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - subscriptionid\n  - rateplanchargeid\n  - servicestartdate\n  - serviceenddate\n  - status\n  - ispartial\n  - invoiceitemid\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRatingResultsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - subscriptionid\n  - rateplanchargeid\n  - servicestartdate\n  - serviceenddate\n  - status\n  - ispartial\n  - invoiceitemid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryRatingResults_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/rating-results/{key}":{"get":{"operationId":"objectQueries_queryRatingResultByKey","summary":"Retrieve a rating result","description":"Retrieve the details of a specific Rating Result object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRatingResultsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedRatingResult"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/refunds":{"get":{"operationId":"objectQueries_queryRefunds","summary":"List refunds","description":"Lists Refund objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - paymentmethodsnapshotid\n  - amount\n  - paymentmethodid\n  - reasoncode\n  - refunddate\n  - refundnumber\n  - sourcetype\n  - status\n  - type\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRefundsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - paymentmethodsnapshotid\n  - amount\n  - paymentmethodid\n  - reasoncode\n  - refunddate\n  - refundnumber\n  - sourcetype\n  - status\n  - type\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryRefunds_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/refunds/{key}":{"get":{"operationId":"objectQueries_queryRefundByKey","summary":"Retrieve a refund","description":"Retrieve the details of a specific Refund object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRefundsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedRefund"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/refund-applications":{"get":{"operationId":"objectQueries_queryRefundApplications","summary":"List refund applications","description":"Lists Refund Application objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - applicationgroupid\n  - creditmemoid\n  - effectivedate\n  - paymentid\n  - refundid","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRefundApplicationsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - applicationgroupid\n  - creditmemoid\n  - effectivedate\n  - paymentid\n  - refundid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryRefundApplications_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/refund-applications/{key}":{"get":{"operationId":"objectQueries_queryRefundApplicationByKey","summary":"Retrieve a refund application","description":"Retrieve the details of a specific Refund Application object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRefundApplicationsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedRefundApplication"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/refund-application-items":{"get":{"operationId":"objectQueries_queryRefundApplicationItems","summary":"List refund application items","description":"Lists Refund Application Item objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\n\nSupported sortable fields: \n  - id\n  - updateddate","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRefundApplicationItemsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryRefundApplicationItems_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/refund-application-items/{key}":{"get":{"operationId":"objectQueries_queryRefundApplicationItemByKey","summary":"Retrieve a refund application item","description":"Retrieve the details of a specific Refund Application Item object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryRefundApplicationItemsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedRefundApplicationItem"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/summarystatementruns":{"get":{"operationId":"objectQueries_getSummaryStatementRuns","summary":"List summary statement runs","description":"Lists statement runs. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQuerySummarystatementrunsGetParametersSortSchemaItems"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQuerySummarystatementrunsGetParametersFilterSchemaItems"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedSummaryStatementRun"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/summarystatementruns/{key}":{"get":{"operationId":"objectQueries_getSummaryStatementRun","summary":"Retrieve a summary statement run","description":"Retrieves a statement run by using the statement run ID or number.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Statement run ID or number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQuerySummarystatementrunsKeyGetParametersSortSchemaItems"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQuerySummarystatementrunsKeyGetParametersFilterSchemaItems"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedSummaryStatementRun"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/summarystatements":{"get":{"operationId":"objectQueries_getSummaryStatements","summary":"List summary statements","description":"Lists summary statements. \n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQuerySummarystatementsGetParametersSortSchemaItems"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQuerySummarystatementsGetParametersFilterSchemaItems"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedSummaryStatement"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/summarystatements/{key}":{"get":{"operationId":"objectQueries_getSummaryStatement","summary":"Retrieve a summary statement","description":"Retrieves a statement based on the specified summary statement key.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Statement ID or number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - endDate\n  - statementDate\n  - statementNumber","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQuerySummarystatementsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQuerySummarystatementsKeyGetParametersFilterSchemaItems"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedSummaryStatement"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/subscriptions":{"get":{"operationId":"objectQueries_querySubscriptions","summary":"List subscriptions","description":"Lists Subscription objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - contracteffectivedate\n  - creatoraccountid\n  - creatorinvoiceownerid\n  - invoiceownerid\n  - name\n  - originalid\n  - previoussubscriptionid\n  - renewalterm\n  - status\n  - islatestversion\n  - subscriptionversionamendmentid\n  - termenddate\n  - termstartdate\n  - version\n  - cmrr\n  - externallymanagedby\n  - invoicescheduleid","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQuerySubscriptionsGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - contracteffectivedate\n  - creatoraccountid\n  - creatorinvoiceownerid\n  - invoiceownerid\n  - name\n  - originalid\n  - previoussubscriptionid\n  - renewalterm\n  - status\n  - islatestversion\n  - subscriptionversionamendmentid\n  - termenddate\n  - termstartdate\n  - version\n  - cmrr\n  - externallymanagedby\n  - invoicescheduleid\n  - quotenumber__qt\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_querySubscriptions_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/subscriptions/{key}":{"get":{"operationId":"objectQueries_querySubscriptionByKey","summary":"Retrieve a subscription","description":"Retrieve the details of a specific Subscription object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQuerySubscriptionsKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedSubscription"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/taxation-items":{"get":{"operationId":"objectQueries_queryTaxationItems","summary":"List taxation items","description":"Lists Taxation Item objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\n\nSupported sortable fields: \n  - id\n  - updateddate\n  - invoiceitemid","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Taxation Item object does not support expanding related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - invoiceitemid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryTaxationItems_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/taxation-items/{key}":{"get":{"operationId":"objectQueries_queryTaxationItemByKey","summary":"Retrieve a taxation item","description":"Retrieve the details of a specific Taxation Item object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.\nThe Taxation Item object does not support expanding related objects.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedTaxationItem"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/usages":{"get":{"operationId":"objectQueries_queryUsages","summary":"List usage records","description":"Lists Usage Record objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - updateddate\n  - accountid\n  - accountnumber\n  - enddatetime\n  - quantity\n  - rbestatus\n  - startdatetime\n  - uom","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryUsagesGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - accountid\n  - accountnumber\n  - enddatetime\n  - quantity\n  - rbestatus\n  - startdatetime\n  - uom\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryUsages_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/usages/{key}":{"get":{"operationId":"objectQueries_queryUsageByKey","summary":"Retrieve a usage record","description":"Retrieve the details of a specific Usage Record object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryUsagesKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedUsage"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/validity-period-summaries":{"get":{"operationId":"objectQueries_queryValidityPeriodSummarys","summary":"List validity period summaries","description":"Lists Validity Period Summary objects. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\nSupported sortable fields: \n  - id\n  - prepaidbalanceid\n  - startdate\n  - subscriptionnumber\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryValidityPeriodSummariesGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - prepaidbalanceid\n  - startdate\n  - subscriptionnumber\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryValidityPeriodSummarys_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/validity-period-summaries/{key}":{"get":{"operationId":"objectQueries_queryValidityPeriodSummaryByKey","summary":"Retrieve a validity period summary","description":"Retrieve the details of a specific Validity Period Summary object.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"Object ID or Number.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the array-type properties are specified for the `sort[]` parameter, they are ignored.\n  ","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectQueryValidityPeriodSummariesKeyGetParametersExpandSchemaItems"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedValidityPeriodSummary"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/{custom-object-name}":{"get":{"operationId":"objectQueries_queryCustomObjects","summary":"List custom object records","description":"Lists custom object records. You can use the query parameters to filter, expand, and sort the returned results. \n\nThe name of a custom object is in the `{namespace}__{objectname}s` format, for example, `default__cars`.\n\n**Note**: Sorting queried custom objects by ID is not supported.\n","tags":["objectQueries"],"parameters":[{"name":"custom-object-name","in":"path","description":"Custom Object Name with NameSpace, e.g. default__cars","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryCustomObjects_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/{custom-object-name}/{key}":{"get":{"operationId":"objectQueries_queryCustomObjectBykey","summary":"Retrieve a custom object record","description":"Retrieve the details of a specific custom object record. \n\nThe name of a custom object is in the `{namespace}__{objectname}s` format, for example, `default__cars`.\n","tags":["objectQueries"],"parameters":[{"name":"custom-object-name","in":"path","description":"Custom Object Name with NameSpace, for example, `default__cars`.","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","description":"Object ID.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/contact-snapshots":{"get":{"operationId":"objectQueries_queryContactSnapshots","summary":"List contact snapshots","description":"Lists contact snapshots. You can use the query parameters to filter, expand, and sort the returned results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the\nspecified `pageSize` is less than 1 or greater than 99, Zuora will return a\n400 error.\n","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place\nin a list. For instance, if you make a list request and receive 100 objects,\nending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=`\nin order to fetch the next page of the list.\n","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of\\\n\\ the list, which can be either ascending (e.g. `accountnumber.ASC`) or descending\\\n\\ (e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the\\\n\\ array-type properties are specified for the `sort[]` parameter, they are ignored.\\n\\\nSupported sortable fields: \\n  - id\\n  - updateddate\\n  - contactid\n","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information\nin a single call.\n","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields: \n  - id\n  - updateddate\n  - contactid\n  - {indexedcustomfield}: Use the format like `customField__c` to filter on custom fields.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Object_Queries_queryContactSnapshots_Response_200"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/contact-snapshots/{key}":{"get":{"operationId":"objectQueries_queryContactSnapshotByKey","summary":"Retrieve a contact snapshot","description":"Retrieves detailed information about a specific contact snapshot by its unique ID.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","description":"The unique identifier of the contact snapshot to retrieve.","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the\nspecified `pageSize` is less than 1 or greater than 99, Zuora will return a\n400 error.\n","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place\nin a list. For instance, if you make a list request and receive 100 objects,\nending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=`\nin order to fetch the next page of the list.\n","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of\nthe list, which can be either ascending (e.g. `accountnumber.ASC`) or descending\n(e.g. `accountnumber.DESC`). You cannot sort on properties in arrays. If the\narray-type properties are specified for the `sort[]` parameter, they are ignored. \nThe fields that can be sorted include:  \n  - id\n  - updateddate\n  - contactid\n","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list. The available options include:\n  - id\n  - updateddate\n  - contactid\n  - {indexedcustomfield}\n","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandedContactSnapshot"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/rating-details":{"get":{"operationId":"objectQueries_queryRatingDetails","summary":"List rating details","description":"Lists rating details. Use query parameters to paginate and filter results.\n","tags":["objectQueries"],"parameters":[{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `id.ASC`) or descending (e.g. `id.DESC`).\nSupported sortable fields:\n  - `id`\n  - `invoiceitemid`\n  - `creditmemoitemid`","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call. This operation does not have expandable fields.\n","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields:\n  - `id`\n  - `invoiceitemid`\n  - `creditmemoitemid`\n\nYou can also filter on custom fields using the format `customField__c`.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRatingDetailsResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-query/rating-details/{key}":{"get":{"operationId":"objectQueries_queryRatingDetailByKey","summary":"Retrieve a rating detail","description":"Retrieves a single rating detail by ID.\n","tags":["objectQueries"],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The maximum number of results to return in a single page. If the specified `pageSize` is less than 1 or greater than 99, Zuora will return a 400 error.","required":false,"schema":{"type":"integer","minimum":1,"maximum":99,"default":10}},{"name":"cursor","in":"query","description":"A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with `next_page=W3sib3JkZXJ=`, your subsequent call can include `cursor=W3sib3JkZXJ=` in order to fetch the next page of the list.","required":false,"schema":{"type":"string"}},{"name":"sort[]","in":"query","description":"A case-insensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. `id.ASC`) or descending (e.g. `id.DESC`).\nSupported sortable fields:\n  - `id`\n  - `invoiceitemid`\n  - `creditmemoitemid`","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"expand[]","in":"query","description":"Allows you to expand responses by including related object information in a single call. This operation does not have expandable fields.\n","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"filter[]","in":"query","description":"A case-insensitive filter on the list.\n\nSupported filterable fields:\n  - `id`\n  - `invoiceitemid`\n  - `creditmemoitemid`\n\nYou can also filter on custom fields using the format `customField__c`.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"fields[]","in":"query","description":"A case-insensitive query parameter that allows you to specify which fields are returned in the response.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"includeNullFields","in":"query","description":"Specifies whether to include fields with the `null` value in the response.\n\n- If set to `true`, all fields will be returned in the response, including those with the `null` value.\n- If set to `false`, only fields with non-null values will be returned.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatingDetails"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonOQErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounting-codes":{"get":{"operationId":"accountingCodes_GET_AllAccountingCodes","summary":"List all accounting codes","description":"This reference describes how to query all accounting codes in your chart of accounts through the REST API.","tags":["accountingCodes"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":300,"default":300}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAccountingCodesType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"accountingCodes_POST_AccountingCode","summary":"Create an accounting code","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","tags":["accountingCodes"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTAccountingCodeResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTAccountingCodeType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounting-codes/{ac-id}":{"get":{"operationId":"accountingCodes_GET_AccountingCode","summary":"Retrieve an accounting code","description":"This reference describes how to query an accounting code through the REST API.","tags":["accountingCodes"],"parameters":[{"name":"ac-id","in":"path","description":"ID of the accounting code you want to query.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAccountingCodeItemType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"accountingCodes_PUT_AccountingCode","summary":"Update an accounting code","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","tags":["accountingCodes"],"parameters":[{"name":"ac-id","in":"path","description":"ID of the accounting code you want to update.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTAccountingCodeType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"accountingCodes_DELETE_AccountingCode","summary":"Delete an accounting code","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","tags":["accountingCodes"],"parameters":[{"name":"ac-id","in":"path","description":"ID of the accounting code you want to delete.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounting-codes/{ac-id}/activate":{"put":{"operationId":"accountingCodes_PUT_ActivateAccountingCode","summary":"Activate an accounting code","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","tags":["accountingCodes"],"parameters":[{"name":"ac-id","in":"path","description":"ID of the accounting code you want to activate.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounting-codes/{ac-id}/deactivate":{"put":{"operationId":"accountingCodes_PUT_DeactivateAccountingCode","summary":"Deactivate an accounting code","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","tags":["accountingCodes"],"parameters":[{"name":"ac-id","in":"path","description":"ID of the accounting code you want to deactivate.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounting-periods":{"get":{"operationId":"accountingPeriods_GET_AllAccountingPeriods","summary":"List all accounting periods","description":"Retrieves all accounting periods on your tenant.","tags":["accountingPeriods"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":300,"default":300}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAccountingPeriodsType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"accountingPeriods_POST_AccountingPeriod","summary":"Create an accounting period","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.","tags":["accountingPeriods"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTAccountingPeriodResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTAccountingPeriodType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounting-periods/{ap-id}":{"get":{"operationId":"accountingPeriods_GET_AccountingPeriod","summary":"Retrieve an accounting period","description":"Retrieves an accounting period.\n\n**Prerequisites**: You must have Zuora Finance enabled on your tenant.\n","tags":["accountingPeriods"],"parameters":[{"name":"ap-id","in":"path","description":"ID of the accounting period you want to get.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAccountingPeriodType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"accountingPeriods_PUT_UpdateAccountingPeriod","summary":"Update an accounting period","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","tags":["accountingPeriods"],"parameters":[{"name":"ap-id","in":"path","description":"ID of the accounting period you want to update.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTAccountingPeriodType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"accountingPeriods_DELETE_AccountingPeriod","summary":"Delete an accounting period","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","tags":["accountingPeriods"],"parameters":[{"name":"ap-id","in":"path","description":"ID of the accounting period you want to delete.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounting-periods/{ap-id}/close":{"put":{"operationId":"accountingPeriods_PUT_CloseAccountingPeriod","summary":"Close an accounting period","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.","tags":["accountingPeriods"],"parameters":[{"name":"ap-id","in":"path","description":"ID of the accounting period you want to close.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounting-periods/{ap-id}/pending-close":{"put":{"operationId":"accountingPeriods_PUT_PendingCloseAccountingPeriod","summary":"Set an accounting period to pending close","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","tags":["accountingPeriods"],"parameters":[{"name":"ap-id","in":"path","description":"ID of the accounting period you want to set to pending close.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounting-periods/{ap-id}/reopen":{"put":{"operationId":"accountingPeriods_PUT_ReopenAccountingPeriod","summary":"Reopen an accounting period","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.","tags":["accountingPeriods"],"parameters":[{"name":"ap-id","in":"path","description":"ID of the accounting period that you want to re-open.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/accounting-periods/{ap-id}/run-trial-balance":{"put":{"operationId":"accountingPeriods_PUT_RunTrialBalance","summary":"Run trial balance","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","tags":["accountingPeriods"],"parameters":[{"name":"ap-id","in":"path","description":"ID of the accounting period for which you want to run a trial balance.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/journal-entries":{"post":{"operationId":"summaryJournalEntries_POST_SummaryJournalEntry","summary":"Create a summary journal entry","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","tags":["summaryJournalEntries"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTJournalEntryResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTJournalEntryType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/journal-entries/journal-runs/{jr-number}":{"get":{"operationId":"summaryJournalEntries_GET_AllSummaryJournalEntries","summary":"List all summary journal entries in a journal run","description":"\nThis REST API reference describes how to retrieve information about all summary journal entries in a journal run.\n","tags":["summaryJournalEntries"],"parameters":[{"name":"jr-number","in":"path","description":"Journal run number.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":300,"default":8}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETJournalEntriesInJournalRunType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/journal-entries/{je-number}":{"get":{"operationId":"summaryJournalEntries_GET_SummaryJournalEntry","summary":"Retrieve a summary journal entry","description":"This REST API reference describes how to get information about a summary journal entry by its journal entry number.\n","tags":["summaryJournalEntries"],"parameters":[{"name":"je-number","in":"path","description":"","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETJournalEntryDetailType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"summaryJournalEntries_DELETE_SummaryJournalEntry","summary":"Delete a summary journal entry","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","tags":["summaryJournalEntries"],"parameters":[{"name":"je-number","in":"path","description":"Journal entry number in the format JE-00000001.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/journal-entries/{je-number}/basic-information":{"put":{"operationId":"summaryJournalEntries_PUT_BasicSummaryJournalEntry","summary":"Update a summary journal entry","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","tags":["summaryJournalEntries"],"parameters":[{"name":"je-number","in":"path","description":"Journal entry number in the format JE-00000001.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTBasicSummaryJournalEntryType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/journal-entries/{je-number}/cancel":{"put":{"operationId":"summaryJournalEntries_PUT_SummaryJournalEntry","summary":"Cancel a summary journal entry","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","tags":["summaryJournalEntries"],"parameters":[{"name":"je-number","in":"path","description":"Journal entry number in the format JE-00000001.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/journal-runs":{"post":{"operationId":"journalRuns_POST_JournalRun","summary":"Create a journal run","description":"This REST API reference describes how to create a journal run. Request and response field descriptions and sample code are provided.\n","tags":["journalRuns"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTJournalRunResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTJournalRunType"}}}},"security":[{"bearerAuth":[]}]}},"/v1/journal-runs/{jr-number}":{"get":{"operationId":"journalRuns_GET_JournalRun","summary":"Retrieve a journal run","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","tags":["journalRuns"],"parameters":[{"name":"jr-number","in":"path","description":"Journal run number. Must be a valid journal run number in the format `JR-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETJournalRunType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"journalRuns_DELETE_JournalRun","summary":"Delete a journal run","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","tags":["journalRuns"],"parameters":[{"name":"jr-number","in":"path","description":"Journal run number. Must be a valid journal run number in the format `JR-00000001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/journal-runs/{jr-number}/cancel":{"put":{"operationId":"journalRuns_PUT_JournalRun","summary":"Cancel a journal run","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","tags":["journalRuns"],"parameters":[{"name":"jr-number","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/bulk":{"post":{"operationId":"massUpdater_POST_MassUpdater","summary":"Perform a mass action","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","tags":["massUpdater"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTMassUpdateResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","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"},"params":{"type":"string","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"}},"required":["file","params"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/bulk/{bulk-key}":{"get":{"operationId":"massUpdater_GET_MassUpdater","summary":"List all results of a mass action","description":"Describes how to get information about the result of a mass action through the REST API. \n","tags":["massUpdater"],"parameters":[{"name":"bulk-key","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETMassUpdateType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/bulk/{bulk-key}/stop":{"put":{"operationId":"massUpdater_PUT_MassUpdater","summary":"Stop a mass action","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","tags":["massUpdater"],"parameters":[{"name":"bulk-key","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/notifications/notification-definitions":{"get":{"operationId":"notifications_GET_Query_Notification_Definitions","summary":"List notification definitions","description":"Queries notification definitions with the specified filters.\n","tags":["notifications"],"parameters":[{"name":"start","in":"query","description":"The first index of the query result.","required":false,"schema":{"type":"integer","default":1}},{"name":"limit","in":"query","description":"The maximum number of results the query should return.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"profileId","in":"query","description":"Id of the profile.","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"eventCategory","in":"query","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","required":false,"schema":{"type":"number","format":"double"}},{"name":"eventTypeName","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"emailTemplateId","in":"query","description":"The ID of the email template.","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notifications_GET_Query_Notification_Definitions_Response_200"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"notifications_POST_Create_Notification_Definition","summary":"Create a notification definition","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","tags":["notifications"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPublicNotificationDefinitionResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"description":"The request body used to create the notification definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPublicNotificationDefinitionRequest"}}}},"security":[{"bearerAuth":[]}]}},"/notifications/notification-definitions/{id}":{"get":{"operationId":"notifications_GET_Get_Notification_Definition","summary":"Retrieve a notification definition","description":"Queries the notification definition of the given ID.\n","tags":["notifications"],"parameters":[{"name":"id","in":"path","description":"The ID of the notification definition.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPublicNotificationDefinitionResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"notifications_PUT_Update_Notification_Definition","summary":"Update a notification definition","description":"Updates a notification definition.\n","tags":["notifications"],"parameters":[{"name":"id","in":"path","description":"The ID of the notification definition to be updated.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPublicNotificationDefinitionResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"description":"The request body of the notification definition to be updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPublicNotificationDefinitionRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"notifications_DELETE_Delete_Notification_Definition","summary":"Delete a notification definition","description":"Deletes a notification definition.\n","tags":["notifications"],"parameters":[{"name":"id","in":"path","description":"The ID of the notification definition to be deleted.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/notifications/email-templates/import":{"post":{"operationId":"notifications_POST_CreateOrUpdateEmailTemplates","summary":"Create or update email templates","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","tags":["notifications"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrUpdateEmailTemplatesResponse"}}}}},"requestBody":{"description":"The request body to import or update email templates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTCreateOrUpdateEmailTemplateRequest"}}}},"security":[{"bearerAuth":[]}]}},"/notifications/email-templates":{"get":{"operationId":"notifications_GET_Query_Email_Templates","summary":"List email templates","description":"Queries email templates. This operation supports querying email templates for all event types.\n","tags":["notifications"],"parameters":[{"name":"start","in":"query","description":"The first index of the query result.","required":false,"schema":{"type":"integer","default":1}},{"name":"limit","in":"query","description":"The maximum number of results the query should return.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"eventCategory","in":"query","description":"The event category code for standard events.","required":false,"schema":{"type":"number","format":"double"}},{"name":"eventTypeName","in":"query","description":"The name of the custom event or custom scheduled event.","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the email template.","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notifications_GET_Query_Email_Templates_Response_200"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"notifications_POST_Create_Email_Template","summary":"Create an email template","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","tags":["notifications"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPublicEmailTemplateResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"description":"The request body to create an email template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPublicEmailTemplateRequest"}}}},"security":[{"bearerAuth":[]}]}},"/notifications/email-templates/{id}":{"get":{"operationId":"notifications_GET_Get_Email_Template","summary":"Retrieve an email template","description":"Queries the email template based on the specified ID. This operation supports retrieving the email template for all event types.\n","tags":["notifications"],"parameters":[{"name":"id","in":"path","description":"The ID of the email template.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPublicEmailTemplateResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"notifications_PUT_Update_Email_Template","summary":"Update an email template","description":"Updates an email template. This operation supports updating the email template for all event types.\n","tags":["notifications"],"parameters":[{"name":"id","in":"path","description":"The ID of the email template to be updated.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPublicEmailTemplateResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"description":"The request body to update an email template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPublicEmailTemplateRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"notifications_DELETE_Delete_Email_Template","summary":"Delete an email template","description":"Deletes an email template. This operation supports deleting an email template for all event types.\n","tags":["notifications"],"parameters":[{"name":"id","in":"path","description":"The ID of the email template to be deleted.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/notifications/callout-templates/import":{"post":{"operationId":"notifications_CreateOrUpdateCalloutTemplates","summary":"Create or update callout templates","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","tags":["notifications"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrUpdateEmailTemplatesResponse"}}}}},"requestBody":{"description":"The request body to import or update callout templates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTCreateOrUpdateCalloutTemplateRequest"}}}},"security":[{"bearerAuth":[]}]}},"/notifications/callout-templates":{"get":{"operationId":"notifications_GetCalloutTemplates","summary":"List callout templates","description":"Queries callout templates. This operation supports querying callout templates for all event types.\n","tags":["notifications"],"parameters":[{"name":"start","in":"query","description":"The first index of the query result.","required":false,"schema":{"type":"integer","default":1}},{"name":"limit","in":"query","description":"The maximum number of results the query should return.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"eventCategory","in":"query","description":"The event category code of a standard event to which the callout templates you want to query relates.","required":false,"schema":{"type":"number","format":"double"}},{"name":"eventTypeName","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the callout template.","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notifications_GetCalloutTemplates_Response_200"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"notifications_CreateCalloutTemplate","summary":"Create a callout template","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","tags":["notifications"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPublicCalloutTemplateResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"description":"The request body to create a callout template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTPublicCalloutTemplateRequest"}}}},"security":[{"bearerAuth":[]}]}},"/notifications/callout-templates/{id}":{"get":{"operationId":"notifications_GetCalloutTemplte","summary":"Retrieve a callout template","description":"Queries the callout template based on the specified ID. This operation supports retrieving the callout template for all event types.\n","tags":["notifications"],"parameters":[{"name":"id","in":"path","description":"The ID of the callout template.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPublicCalloutTemplateResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"notifications_UpdateCalloutTemplate","summary":"Update a callout template","description":"Updates a callout template. This operation supports updating the callout template for all event types.","tags":["notifications"],"parameters":[{"name":"id","in":"path","description":"The ID of the callout template to be updated.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETPublicCalloutTemplateResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"description":"The request body to update a callout template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTPublicCalloutTemplateRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"notifications_DeleteCalloutTemplate","summary":"Delete a callout template","description":"Deletes a callout template. This operation supports deleting a callout template for all event types.","tags":["notifications"],"parameters":[{"name":"id","in":"path","description":"The ID of the callout template to be deleted.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/notifications/reusable-blocks/import":{"post":{"operationId":"notifications_createOrUpdateReusableBlocks","summary":"Create or update reusable blocks","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","tags":["notifications"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrUpdateReusableBlockResponse"}}}}},"requestBody":{"description":"The request body to import or update reusable blocks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrUpdateReusableBlockRequest"}}}},"security":[{"bearerAuth":[]}]}},"/notifications/reusable-blocks":{"get":{"operationId":"notifications_getReusableBlocks","summary":"List reusable blocks","description":"Queries reusable blocks.\n","tags":["notifications"],"parameters":[{"name":"start","in":"query","description":"The first index of the query result.","required":false,"schema":{"type":"integer","default":1}},{"name":"limit","in":"query","description":"The maximum number of results the query should return.","required":false,"schema":{"type":"integer","minimum":1,"maximum":5000,"default":20}},{"name":"activeOnly","in":"query","description":"Whether to return only active reusable blocks.","required":false,"schema":{"type":"boolean","default":true}},{"name":"category","in":"query","description":"The category that the returned blocks belong to.","required":false,"schema":{"$ref":"#/components/schemas/NotificationsReusableBlocksGetParametersCategory"}},{"name":"name","in":"query","description":"The name of the block the query should return.","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","description":"The tags the returned blocks are associated with. If multiple tags are specified, only blocks that match all specified tags are returned.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notifications_getReusableBlocks_Response_200"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"notifications_createReusableBlock","summary":"Create a reusable block","description":"Creates a reusable block for email templates, such as email headers or footers.\n","tags":["notifications"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPublicReusableBlockResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"description":"The request body to create a reusable block.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicReusableBlockRequest"}}}},"security":[{"bearerAuth":[]}]}},"/notifications/reusable-blocks/{blockKey}":{"get":{"operationId":"notifications_getReusableBlock","summary":"Retrieve a reusable block","description":"Queries the reusable block based on the specified ID or name.\n","tags":["notifications"],"parameters":[{"name":"blockKey","in":"path","description":"The ID or name of the reusable block.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPublicReusableBlockResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"notifications_updateReusableBlock","summary":"Update a reusable block","description":"Updates a reusable block.\n","tags":["notifications"],"parameters":[{"name":"blockKey","in":"path","description":"The ID or name of the reusable block.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePublicReusableBlockResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"description":"The request body to update a reusable block.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePublicReusableBlockRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"notifications_deleteReusableBlock","summary":"Delete a reusable block","description":"Deletes a reusable block.\n","tags":["notifications"],"parameters":[{"name":"blockKey","in":"path","description":"The ID or name of the reusable block.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported Media Type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/notifications/history":{"delete":{"operationId":"notifications_DELETE_Delete_Notification_History_For_Account","summary":"Delete notification histories for an account","description":"Delete all notification histories for the given account. All email and callout notifications for this account will be deleted upon successful operation.\n","tags":["notifications"],"parameters":[{"name":"accountId","in":"query","description":"The ID of the account whose notification histories are to be deleted.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationsHistoryDeletionTaskResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/notifications/history/tasks/{id}":{"get":{"operationId":"notifications_GET_Get_Notification_History_Deletion_Task","summary":"Retrieve a notification history deletion task","description":"Get the notification history deletion task by ID.\n","tags":["notifications"],"parameters":[{"name":"id","in":"path","description":"The ID of the notification history deletion task. You can get the deletion task ID from the 202 response body of the [Delete notification histories for an account](https://developer.zuora.com/api-references/api/operation/DELETE_Delete_Notification_History_For_Account) operation.\n","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationsHistoryDeletionTaskResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/notifications/callout-histories/resend":{"post":{"operationId":"notifications_POST_ResendCalloutNotifications","summary":"Resend callout notifications","description":"Resends callout notifications if your customers did not receive previous callout notifications.\n\nDetails about the status codes and response contents of this operation are as follows:\n\n| Scenario                               | Status code     | Response content                                            |\n|----------------------------------------|-----------------|-------------------------------------------------------------|\n| Success for all notifications          | 202 Accepted    | (blank)                                                     |\n| Success for at least one notification  | 202 Accepted    | Error code and error message of each failed notification    |\n| Failure for all notifications          | 400 Bad Request | Error code and error message of each failed notification    |\n","tags":["notifications"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendCalloutNotificationsFailedResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendCalloutNotificationsFailedResponse"}}}}},"requestBody":{"description":"The request body to resend callout notifications.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTResendCalloutNotifications"}}}},"security":[{"bearerAuth":[]}]}},"/notifications/email-histories/resend":{"post":{"operationId":"notifications_POST_ResendEmailNotifications","summary":"Resend email notifications","description":"Resends email notifications if your customers did not receive previous email notifications.\n\nDetails about the status codes and response contents of this operation are as follows:\n\n| Scenario                               | Status code     | Response content                                            |\n|----------------------------------------|-----------------|-------------------------------------------------------------|\n| Success for all notifications          | 202 Accepted    | (blank)                                                     |\n| Success for at least one notification  | 202 Accepted    | Error code and error message of each failed notification    |\n| Failure for all notifications          | 400 Bad Request | Error code and error message of each failed notification    |\n","tags":["notifications"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendEmailNotificationsFailedResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendEmailNotificationsFailedResponse"}}}}},"requestBody":{"description":"The request body to resend email notifications.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTResendEmailNotifications"}}}},"security":[{"bearerAuth":[]}]}},"/v1/notification-history/callout":{"get":{"operationId":"notifications_GET_CalloutHistory","summary":"List callout notification histories","description":"Describes how to get a notification history for callouts.\n","tags":["notifications"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"endTime","in":"query","description":"The final date and time of records to be returned. Defaults to now. Use format yyyy-MM-ddTHH:mm:ss.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"startTime","in":"query","description":"The initial date and time of records to be returned. Defaults to (end time - 1 day). Use format yyyy-MM-ddTHH:mm:ss.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"objectId","in":"query","description":"The ID of an object that triggered a callout notification. \n","required":false,"schema":{"type":"string"}},{"name":"failedOnly","in":"query","description":"If `true`, only return failed records. If `false`, return all records in the given date range. The default value is `true`.\n","required":false,"schema":{"type":"boolean"}},{"name":"eventCategory","in":"query","description":"Category of records to be returned by event category.\n\nThe following formats are supported:\n* `{Event Type Namespace}:{Event Type Name}` if the Custom Events feature is enabled in your tenant. For example: `user.notification:NewSubscriptionCreated`.\n* Numeric code of the event category if the Custom Events feature is not enabled in your tenant. For example, `1210`. See [Event Category Code](https://knowledgecenter.zuora.com/DC_Developers/AA_REST_API/Event_Categories_for_Notification_Histories) for more information.\n","required":false,"schema":{"type":"string"}},{"name":"includeResponseContent","in":"query","description":"","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCalloutHistoryVOsType"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/notification-history/email":{"get":{"operationId":"notifications_GET_EmailHistory","summary":"List email notification histories","description":"Describes how to get a notification history for notification emails.\n\n\n### Notes\nRequest parameters and their values may be appended with a \"?\" following the HTTPS GET request.  Additional request parameter are separated by \"&\". \n\nFor example:\n\n`GET https://rest.zuora.com/v1/notification-history/email?startTime=2015-01-12T00:00:00&endTime=2015-01-15T00:00:00&failedOnly=false&eventCategory=1000&pageSize=1`\n","tags":["notifications"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"accountId","in":"query","description":"ID of an account. By specifying this query parameter, you can filter email notification histories by account.","required":false,"schema":{"type":"string"}},{"name":"endTime","in":"query","description":"The end date and time of records to be returned. Defaults to now. Use format yyyy-MM-ddTHH:mm:ss. The maximum date range (endTime - startTime) is three days.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"startTime","in":"query","description":"The initial date and time of records to be returned. Defaults to (end time - 1 day). Use format yyyy-MM-ddTHH:mm:ss. The maximum date range (endTime - startTime) is three days.","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"objectId","in":"query","description":"The Id of an object that triggered an email notification.\n","required":false,"schema":{"type":"string"}},{"name":"failedOnly","in":"query","description":"If `true`, only returns failed records. When `false`, returns all records in the given date range. Defaults to `true` when not specified.\n","required":false,"schema":{"type":"boolean"}},{"name":"eventCategory","in":"query","description":"Category of records to be returned by event category.\n\nThe following formats are supported:\n* `{Event Type Namespace}:{Event Type Name}` if the Custom Events feature is enabled in your tenant. For example: `user.notification:NewSubscriptionCreated`.\n* Numeric code of the event category if the Custom Events feature is not enabled in your tenant. For example, `1210`. See [Event Category Code](https://knowledgecenter.zuora.com/DC_Developers/AA_REST_API/Event_Categories_for_Notification_Histories) for more information.\n","required":false,"schema":{"type":"number","format":"double"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETEmailHistoryVOsType"}}}}},"security":[{"bearerAuth":[]}]}},"/events/event-triggers":{"get":{"operationId":"customEventTriggers_GET_EventTriggers","summary":"List event triggers","tags":["customEventTriggers"],"parameters":[{"name":"baseObject","in":"query","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","required":false,"schema":{"type":"string"}},{"name":"eventTypeName","in":"query","description":"The event type name. Should be specified in the pattern: ^[A-Za-z]{1,}[\\w\\-]*$","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","description":"The status of the event trigger.","required":false,"schema":{"type":"string"}},{"name":"start","in":"query","description":"The first index of the query result. Default to 0 if absent, and the minimum is 0.","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"limit","in":"query","description":"The maximum number of data records to be returned. Default to 10 if absent.","required":false,"schema":{"type":"integer","minimum":1,"default":10}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Custom_Event_Triggers_GET_EventTriggers_Response_200"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"customEventTriggers_POST_EventTrigger","summary":"Create an event trigger","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","tags":["customEventTriggers"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTrigger"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostEventTriggerRequest"}}}},"security":[{"bearerAuth":[]}]}},"/events/event-triggers/{id}":{"get":{"operationId":"customEventTriggers_GET_EventTrigger","summary":"Retrieve an event trigger","tags":["customEventTriggers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTrigger"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"customEventTriggers_PUT_EventTrigger","summary":"Update an event trigger","description":"","tags":["customEventTriggers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTrigger"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutEventTriggerRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"customEventTriggers_DELETE_EventTrigger","summary":"Delete an event trigger","description":"","tags":["customEventTriggers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/events/scheduled-events":{"get":{"operationId":"customScheduledEvents_GET_ScheduledEvents","summary":"List all scheduled events","tags":["customScheduledEvents"],"parameters":[{"name":"eventTypeName","in":"query","description":"The name of the scheduled event. Should be specified in the pattern: ^[A-Za-z]{1,}[\\\\w\\\\-]*$","required":false,"schema":{"type":"string"}},{"name":"apiObject","in":"query","description":"The base object that the scheduled event is defined upon. Should be specified in the pattern: ^[A-Z][\\\\w\\\\-]*$","required":false,"schema":{"type":"string"}},{"name":"apiField","in":"query","description":"The base field of the base object in the `apiObject` field. Should be specified in the pattern: ^[A-Z][\\\\w\\\\-]*$","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","description":"Indicate whether the scheduled event is active or inactive.","required":false,"schema":{"type":"boolean"}},{"name":"start","in":"query","description":"The first index of the query result. Default to 0 if absent, and the minimum is 0.","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"limit","in":"query","description":"The maximum number of data records to be returned. Default to 10 if absent.","required":false,"schema":{"type":"integer","minimum":1,"default":10}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Custom_Scheduled_Events_GET_ScheduledEvents_Response_200"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"customScheduledEvents_POST_ScheduledEvent","summary":"Create a scheduled event","description":"To create a custom scheduled event, you must specify the base object, the base field and the scheduled time.\n","tags":["customScheduledEvents"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetScheduledEventResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostScheduledEventRequest"}}}},"security":[{"bearerAuth":[]}]}},"/events/scheduled-events/{id}":{"get":{"operationId":"customScheduledEvents_GET_ScheduledEventByID","summary":"Retrieve a scheduled event by ID","tags":["customScheduledEvents"],"parameters":[{"name":"id","in":"path","description":"The ID of the scheduled event.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetScheduledEventResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"customScheduledEvents_UPDATE_ScheduledEventByID","summary":"Update a scheduled event by ID","tags":["customScheduledEvents"],"parameters":[{"name":"id","in":"path","description":"The ID of the scheduled event.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetScheduledEventResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutScheduledEventRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"customScheduledEvents_DELETE_ScheduledEventByID","summary":"Delete a scheduled event by ID","tags":["customScheduledEvents"],"parameters":[{"name":"id","in":"path","description":"The ID of the scheduled event.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/objects/definitions/default":{"get":{"operationId":"customObjectDefinitions_GET_AllCustomObjectDefinitionsInNamespace","summary":"List custom object definitions","description":"Get all custom objects definitions for a given tenant. If you want to copy all the existing custom objects from an old tenant to a new tenant, you can call this operation in your old tenant and then use its response directly as the request of the [Create custom object definitions](https://developer.zuora.com/api-references/api/operation/POST_CustomObjectDefinitions) call in the new tenant to import all the custom objects from the old tenant.\n","tags":["customObjectDefinitions"],"parameters":[{"name":"select","in":"query","description":"If you set `select` to `type`, the response will only contain the `type` of each custom object.\n","required":false,"schema":{"$ref":"#/components/schemas/ObjectsDefinitionsDefaultGetParametersSelect"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAllCustomObjectDefinitionsInNamespaceResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"customObjectDefinitions_POST_CustomObjectDefinitions","summary":"Create custom object definitions","description":"You can post custom object definitions with the request body schema described below. \n\nThis operation also allows you to use the [List custom object definitions](https://developer.zuora.com/api-references/api/operation/GET_AllCustomObjectDefinitionsInNamespace) response schema as its request schema. If you want to copy all the existing custom objects from an old tenant to a new tenant, you can make a [List custom object definitions](https://developer.zuora.com/api-references/api/operation/GET_AllCustomObjectDefinitionsInNamespace) call in your old tenant and then use its response directly as the request of this operation in the new tenant to import all the custom objects from the old tenant.\n\nThe `label` field is the UI label of the custom object. The `object` field contains the API Name of the custom object.\n\n### Limitations \n\nThis custom object definition has the following limitations:\n\n* The maximum number of characters for the Custom Object API Name (`object`) is 64.\n* The maximum number of characters for the Custom Object Label (`label`) is\t64.\n* The maximum number of characters for the Custom Object Description 250.\n* The maximum number of custom fields in an custom object\tis 50.\n* The maximum number of characters for the custom field API name is\t64.\n* The maximum number of characters for the custom field label (`label`) is\t64.\n* The maximum number of characters for the custom field Description\tis 250.\n* The maximum number of picklist or multiselect options is 250.\n* The maximum length of characters for the Text field is 255.\n* The maximum length of characters for the Long Text field is from 256 to 8,192.\n* The maximum number of digits to the left of the decimal point for the Number field is 13, and to the right is 9.\n","tags":["customObjectDefinitions"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAllCustomObjectDefinitionsInNamespaceResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"requestBody":{"description":"The custom object definitions to be created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCustomObjectDefinitionsRequest"}}}},"security":[{"bearerAuth":[]}]}},"/objects/migrations":{"post":{"operationId":"customObjectDefinitions_updateObjectDefinition","summary":"Update an object definition","description":"Updates custom object definitions or custom field definitions for standard and custom objects.\n\nThe system asynchronously processes requests to update custom object definitions or advanced custom field definitions and returns a `jobId` in the response. \nYou can use the “Retrieve a custom object bulk job” operation to check whether the asynchronous job is completed. \nFor more information about advanced custom fields, see <a href=\"https://docs.zuora.com/en/zuora-platform/extensibility/custom-fields/custom-fields-and-legacy-custom-fields\" target=\"_blank\">Custom fields and legacy custom fields</a>.\n\n### Limitations\n\nUpdating custom field definition has the following limitations:\n  \n* You can only have one action per update request.\n* You cannot delete fields from custom objects that contain records.\n* You can only add required fields to custom objects with no records.\n* You can change optional fields to required only on the custom objects with no records.\n\n### Note\n\nThe bulk deletion of custom fields on standard and custom objects is temporarily unavailable as we refine the Custom Field feature.\n\nYou can still delete custom fields individually during this refinement process. If you want to delete multiple custom fields, ensure that you send each deletion request only after receiving the response for the previous request.\n\nThe bulk deletion capability will be restored once the refinement is complete.\n","tags":["customObjectDefinitions"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationUpdateCustomObjectDefinitionsResponse"}}}}},"requestBody":{"description":"Migration resource for object and namespace changes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationUpdateCustomObjectDefinitionsRequest"}}}},"security":[{"bearerAuth":[]}]}},"/objects/definitions/default/{object}":{"get":{"operationId":"customObjectDefinitions_GET_CustomObjectDefinitionByType","summary":"Retrieve a custom object definition","description":"Retrieves the custom object definition by type for the given tenant.\n","tags":["customObjectDefinitions"],"parameters":[{"name":"object","in":"path","description":"Specifies the custom object's API name as object. It is case-sensitive.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectDefinition"}}}},"404":{"description":"Resource Request-URI not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"customObjectDefinitions_Delete_CustomObjectDefinitionByType","summary":"Delete a custom object definition","description":"Deletes the custom object definition for the provided type.\n\n**Note:** A custom object definition can only be deleted if no record of this custom object type exists.\n","tags":["customObjectDefinitions"],"parameters":[{"name":"object","in":"path","description":"Specifies the custom object's API name as object. It is case-sensitive.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"uri"}}}}},"security":[{"bearerAuth":[]}]}},"/objects/records/default/{object}":{"get":{"operationId":"customObjectRecords_GET_AllRecordsForCustomObjectType","summary":"List records for a custom object","description":"Lists all object records of the given type. You can also use the `q` query parameter to filter the output records.\n\n\n### Custom Objects read consistency\n\nCustom Objects support eventually consistency. When you read custom object records, the response might not reflect the result of a recently completed operation and might include some stale data. The operations include creating, updating, and deleting custom object records.  If you repeat your read request after a short time, the response should return the latest data.\n\nFor example, if you create five records and perform a query that these five records satisfy the query conditions, there might be a delay before these records can be returned in the query result.\n","tags":["customObjectRecords"],"parameters":[{"name":"object","in":"path","description":"Specifies the custom object's API name as object. It is case-sensitive.","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","description":"The query string to filter the records of a custom object. See <a href=\"https://docs.zuora.com/en/zuora-platform/extensibility/custom-objects/custom-object-record-management/query-syntax-of-custom-object-records\" target=\"_blank\">Query syntax of custom object records</a> for more information.\n\nNote that the `q` parameter only applies to filterable fields.\n","required":false,"schema":{"type":"string"}},{"name":"ids","in":"query","description":"UUIDs of the records to be queried. Each UUID must be a string of 36 characters. For example:\n\n`GET /objects/records/default/passenger?ids=258d65b2-7bc6-4142-88bc-5184931af493&ids=82ecc9f7-b192-4f88-a4a3-4b2af6c750a1`\n","required":false,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"cursor","in":"query","description":"The `cursor` points to the last record of the previous result set. The cursor record is not included in the query result. The call returns the first page if `cursor` is not provided and `pageSize` is valid.","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryCustomObjectRecordsResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"customObjectRecords_POST_CustomObjectRecords","summary":"Create custom object records","description":"Creates custom object records with the given type.\n\nUpon creating records of a custom object type, the 200 response contains a list of records that have been successfully processed and stored.\n\n### Limitations\n\nThis call has the following limitations:\n  \n* The maximum number of records that you can create by one call is 1,000.\n* The storage of empty strings in records is not supported.\n* Null values must be formatted as the following example:\n  ```\n  {\n    \"records\": [\n      {\n        \"fieldName__c\": null\n      }\n    ]\n  }\n  ```\n* When creating or updating custom object records with relationship-type fields, Zuora verifies the related objects against the transactional databases, which are updated in near real-time. The record creation or modification fails upon unsuccessful verifications. <br />If the related objects are newly created in your tenant, it might need some time for the transactional database synchronization.\n","tags":["customObjectRecords"],"parameters":[{"name":"object","in":"path","description":"Specifies the custom object's API name as object. It is case-sensitive.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK\n\nThe 200 response indicates that the records have been partially or completely created.\n\n* If the `allowPartialSuccess` flag is set to `false`, the 200 response indicates that all object records have been successfully created.\n* If the `allowPartialSuccess` flag is set to `true`, the 200 response indicates that some records might not be succesffully created and the error information might be contained in the response body.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCustomObjectRecordsResponse"}}}},"400":{"description":"Failed schema validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordsErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse401Record"}}}},"500":{"description":"Internal error. Retry the returned records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordsThrottledResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCustomObjectRecordsRequest"}}}},"security":[{"bearerAuth":[]}]}},"/objects/records/default/{object}/{id}":{"get":{"operationId":"customObjectRecords_GET_CustomObjectRecordByID","summary":"Retrieve a custom object record","description":"Retrieves a record of a given type by ID.\n","tags":["customObjectRecords"],"parameters":[{"name":"object","in":"path","description":"Specifies the custom object's API name as object. It is case-sensitive.","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"Id identifier in uuid form","required":true,"schema":{"type":"string","format":"uuid","minLength":36,"maxLength":36}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordWithAllFields"}}}},"404":{"description":"Not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"customObjectRecords_PUT_CustomObjectRecord","summary":"Update a custom object record","description":"Updates a record of the given type and ID.\n\n### Limitations\n\n* The storage of empty strings in records is not supported.\n* Null values must be formatted as the following example:\n  ```\n  {\n    \"records\": [\n      {\n        \"fieldName__c\": null\n      }\n    ]\n  }\n  ```\n* When creating or updating custom object records with relationship-type fields, Zuora verifies the related objects against the transactional databases, which are updated in near real-time. The record creation or modification fails upon unsuccessful verifications. <br />If the related objects are newly created in your tenant, it might need some time for the transactional database synchronization.\n","tags":["customObjectRecords"],"parameters":[{"name":"object","in":"path","description":"Specifies the custom object's API name as object. It is case-sensitive.","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"Id identifier in uuid form","required":true,"schema":{"type":"string","format":"uuid","minLength":36,"maxLength":36}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"If-Match","in":"header","description":"The expected ETag of the resource. You can use this header to perform a conditional request. Zuora responds with 412 Precondition Failed if the ETag of the resource does not match the value of this header. \n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordWithAllFields"}}}},"404":{"description":"Object record does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordWithOnlyCustomFields"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"customObjectRecords_Delete_CustomObjectRecordByID","summary":"Delete a custom object record","description":"Deletes a custom object record of the given type and ID.\n\nNote that 200 response will be returned under either of the following conditions:\n* The record is identified and successfully deleted\n* The record could not be found\n\nNote that the record is deleted immediately and, therefore, will not be retained upon successful deletion.\n","tags":["customObjectRecords"],"parameters":[{"name":"object","in":"path","description":"Specifies the custom object's API name as object. It is case-sensitive.","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"Id identifier in uuid form","required":true,"schema":{"type":"string","format":"uuid","minLength":36,"maxLength":36}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"uri"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"customObjectRecords_Patch_PartialUpdateCustomObjectRecord","summary":"Partially update a custom object record","description":"Updates one or many fields of a custom object record. Patch update uses JSON Merge Patch as specified in [RFC 7386](https://tools.ietf.org/html/rfc7386).\n\n### Limitations\n\n* The storage of empty strings in records is not supported.\n* Null values must be formatted as the following example:\n  ```\n  {\n    \"records\": [\n      {\n        \"fieldName__c\": null\n      }\n    ]\n  }\n  ```\n* When creating or updating custom object records with relationship-type fields, Zuora verifies the related objects against the transactional databases, which are updated in near real-time. The record creation or modification fails upon unsuccessful verifications. <br />If the related objects are newly created in your tenant, it might need some time for the transactional database synchronization.\n","tags":["customObjectRecords"],"parameters":[{"name":"object","in":"path","description":"Specifies the custom object's API name as object. It is case-sensitive.","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"Id identifier in uuid form","required":true,"schema":{"type":"string","format":"uuid","minLength":36,"maxLength":36}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordWithAllFields"}}}},"404":{"description":"Object record does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordWithOnlyCustomFields"}}}},"security":[{"bearerAuth":[]}]}},"/objects/batch/default/{object}":{"post":{"operationId":"customObjectRecords_POST_CustomObjectRecordsBatchUpdateOrDelete","summary":"Update or delete custom object records","description":"Makes a batch update or delete of custom object records.\n\n### Limitations\n\nThis call has the following limitations:\n\n* The maximum number of records that you can update by one call is 1,000.\n* The maximum number of records that you can delete by one call is 1,000.\n* The storage of empty strings in records is not supported.\n* Null values must be formatted as the following example:\n  ```\n  {\n    \"action\": {\n      \"type\": \"update\",\n      \"records\": {\n        \"64edb2a5-2796-4e95-9559-846f8636a01b\": {\n          \"fieldName__c\": null\n        }\n      }\n    }\n  }\n  ```\n* When creating or updating custom object records with relationship-type fields, Zuora verifies the related objects against the transactional databases, which are updated in near real-time. The record creation or modification fails upon unsuccessful verifications. <br />If the related objects are newly created in your tenant, it might need some time for the transactional database synchronization.\n","tags":["customObjectRecords"],"parameters":[{"name":"object","in":"path","description":"Specifies the custom object's API name as object. It is case-sensitive.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK\n\nFor the bacth `delete` action, it indicates the batch records have been successfully deleted.\n\nFor the batch `update` action, it indicates that the batch records have been partially or completely updated.\n\n* If the `allowPartialSuccess` flag is set to `false`, the 200 response indicates that all object records have been successfully updated.\n* If the `allowPartialSuccess` flag is set to `true`, the 200 response indicates that some records might not be succesffully updated and the error information might be contained in the response body.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordsBatchUpdatePartialSuccessResponse"}}}},"400":{"description":"Failed schema validation\n\nFor the batch `update` action, the 400 response only returns when the `allowPartialSuccess` flag is set to `false` and the batch records have failed schema validation.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordsErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse401Record"}}}},"500":{"description":"Internal error. Retry the returned records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordsThrottledResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordBatchRequest"}}}},"security":[{"bearerAuth":[]}]}},"/objects/jobs":{"get":{"operationId":"customObjectJobs_GET_AllCustomObjectBulkJobs","summary":"List all custom object bulk jobs","description":"Lists all custom object bulk jobs submitted by your tenant.\n","tags":["customObjectJobs"],"parameters":[{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.","required":false,"schema":{"type":"integer","maximum":100,"default":25}},{"name":"cursor","in":"query","description":"The `cursor` points to the last job of the previous result set. The cursor job is not included in this query result. The call returns the first page if `cursor` is not provided and `pageSize` is valid.","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"The status of bulk jobs to be retrieved.","required":false,"schema":{"$ref":"#/components/schemas/ObjectsJobsGetParametersStatus"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectBulkJobResponseCollection"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"customObjectJobs_POST_CustomObjectBulkJob","summary":"Submit a custom object bulk job","description":"Submits a bulk job request for a bulk operation on the specified custom object records. A succcessful call returns a newly created bulk job. The job ID can be used to poll the job status or upload the CSV file if it is a `create` or `update` job.\n\n### Limits\nThis custom object bulk jobs have the following limits:\n* The concurrent bulk job limit per tenant is 5. Bulk jobs in `accepted`, `pending`, or `in_progress` status are counted towards the concurrent bulk job limit.\n* The bulk job execuation order is not guaranteed, which means the bulk job that you submit ealier may be executed later.  \n* Only the users that have the \"Delete Custom Objects\" permission can create a `delete` bulk job. Only the users that have the \"Edit Custom Objects\" permission can create a `create` or `update` bulk job. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions) for more information.\n","tags":["customObjectJobs"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectBulkJobResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"403":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"requestBody":{"description":"Custom Objects bulk job request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectBulkJobRequest"}}}},"security":[{"bearerAuth":[]}]}},"/objects/jobs/{id}":{"get":{"operationId":"customObjectJobs_GET_CustomObjectBulkJob","summary":"Retrieve a custom object bulk job","description":"Retrieves the custom object bulk job details by job ID.\n\nOnly the users that have the \"View Custom Objects\" permission can retrieve custom object bulk jobs. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions) for more information.\n","tags":["customObjectJobs"],"parameters":[{"name":"id","in":"path","description":"The ID of the custom object bulk job to be retrieved.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectBulkJobResponse"}}}},"404":{"description":"Bulk job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/objects/jobs/{id}/files":{"post":{"operationId":"customObjectJobs_POST_UploadFileForCustomObjectBulkJob","summary":"Upload a file for a custom object bulk job","description":"Uploads a `.csv` file for a custom object bulk job to create or update custom object records. The job must be in `pending` status. Only one file is allowed per job. Each file supports only one type of operation, with an `id` column required for update operations. The job will start once the upload is finished.\n\nOnly the users that have the \"Edit Custom Objects\" permission can upload files to custom object bulk jobs. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions) for more information.\n","tags":["customObjectJobs"],"parameters":[{"name":"id","in":"path","description":"The ID of the custom object bulk job that the file is uploaded to.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectBulkJobResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"403":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}}},"security":[{"bearerAuth":[]}]}},"/objects/jobs/{id}/errors":{"get":{"operationId":"customObjectJobs_GET_CustomObjectBulkJobErrors","summary":"List all errors for a custom object bulk job","description":"Lists all errors for a custom object bulk job.\n","tags":["customObjectJobs"],"parameters":[{"name":"id","in":"path","description":"The ID of the custom object bulk job that you retrieve errors for.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectBulkJobErrorResponseCollection"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/objects/jobs/{id}/cancel":{"patch":{"operationId":"customObjectJobs_PATCH_CustomObjectBulkJob","summary":"Cancel a custom object bulk job","description":"Cancel a custom object bulk job. Note that you can cancel a custom object bulk job only if the job status is `accepted` or `pending`.\n","tags":["customObjectJobs"],"parameters":[{"name":"id","in":"path","description":"The ID of the custom object bulk job that you want to cancel.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"API version that determines the response schema. The default version is used if this parameter is not included. Specify `Zuora-Version` in the request header if you expect a specific response schema.","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectBulkJobResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/system-health/api-requests/volume-summary":{"get":{"operationId":"apiHealth_GET_SystemHealthApiVolumeSummary","summary":"List API volume summary records","description":"Returns volume summary of [API](https://knowledgecenter.zuora.com/Central_Platform/API) usage that generated by your Zuora tenant within a specified time range.\n\nYou can filter the summary by API path name and http method.\n","tags":["apiHealth"],"parameters":[{"name":"path","in":"query","description":"Filters the volume summary by API path name.\n\nYou can refer to the api listed in the [API System Health Dashboard](https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_System_Health/B_APIs_dashboard) for the path name. Example: `/v1/accounts/{account-key}`.\n","required":false,"schema":{"type":"string"}},{"name":"httpMethod","in":"query","description":"Filters the volume summary by http method. Example: `POST`.\n","required":false,"schema":{"type":"string"}},{"name":"startTime","in":"query","description":"Start time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"endTime","in":"query","description":"End time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-29T09:07+0800`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetApiVolumeSummaryResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemHealthErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/system-health/api-requests/failures":{"get":{"operationId":"apiHealth_getSystemHealthApiFailureRecords","summary":"List API failure records","description":"Returns failure records of API usage that are generated by your Zuora tenant within a specified time range.\n\n\nYou can filter the failure records by one or multiple of the following fields:\n  - API path name\n  - HTTP method\n  - Response code \n  - Request ID\n  - Track ID\n","tags":["apiHealth"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"path","in":"query","description":"Filters the volume summary by API path name.\n\n\nYou can refer to the API listed in the [API System Health Dashboard](https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_System_Health/B_APIs_dashboard)\nfor the path name.\n","required":false,"schema":{"type":"string"}},{"name":"httpMethod","in":"query","description":"Filters the volume summary by http method.\n","required":false,"schema":{"type":"string"}},{"name":"responseCode","in":"query","description":"Filters the volume summary by response code.\n","required":false,"schema":{"type":"string"}},{"name":"requestId","in":"query","description":"Filters the volume summary by request ID.\n","required":false,"schema":{"type":"string"}},{"name":"trackId","in":"query","description":"Filters the volume summary by track ID.\n","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","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: *operator* *field_name*.\n\nIf you do not specify any sortable field, the response data is sorted by the `timerange` field in descending order.\n\n\n*operator* is used to mark the order of sequencing. The operator is optional. \nIf 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. \nThe supported sortable fields of this operation are as below:\n- `timerange`\n- `latency`\n- `http_method`\n- `http_status`\n- `api`\n","required":false,"schema":{"type":"string"}},{"name":"startTime","in":"query","description":"Start time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"endTime","in":"query","description":"End time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ`\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetApiFailureRecordResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemHealthErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/system-health/api-requests/details":{"get":{"operationId":"apiHealth_getSystemHealthApiPerformanceRecords","summary":"List API usage detail records","description":"Returns records of API usage that are generated by your Zuora tenant within a specified time range.\n\n\nYou can filter the records by one or multiple of the following fields:\n  - API path name\n  - HTTP method\n  - Response code \n  - Request ID\n  - Track ID\n","tags":["apiHealth"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"path","in":"query","description":"Filters the volume summary by API path name.\n\n\nYou can refer to the API listed in the [API System Health Dashboard](https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_System_Health/B_APIs_dashboard)\nfor the path name.\n","required":false,"schema":{"type":"string"}},{"name":"httpMethod","in":"query","description":"Filters the volume summary by http method.\n","required":false,"schema":{"type":"string"}},{"name":"responseCode","in":"query","description":"Filters the volume summary by response code.\n","required":false,"schema":{"type":"string"}},{"name":"requestId","in":"query","description":"Filters the volume summary by request ID.\n","required":false,"schema":{"type":"string"}},{"name":"trackId","in":"query","description":"Filters the volume summary by track ID.\n","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","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: *operator* *field_name*.\n\nIf you do not specify any sortable field, the response data is sorted by the `timerange` field in descending order.\n\n\n*operator* is used to mark the order of sequencing. The operator is optional. \nIf 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. \nThe supported sortable fields of this operation are as below:\n- `timerange`\n- `latency`\n- `http_method`\n- `http_status`\n- `api`\n","required":false,"schema":{"type":"string"}},{"name":"startTime","in":"query","description":"Start time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"endTime","in":"query","description":"End time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ`\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetApiPerformanceDetailResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemHealthErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/system-health/billing-documents/volume-summary":{"get":{"operationId":"billRunHealth_GET_SystemHealthBillingDocVolumeSummary","summary":"List billing document volume summary records","description":"Returns a summary of billing documents generated within a specified time range, including invoices and credit memos, and the total number of accounts that failed to process.\n","tags":["billRunHealth"],"parameters":[{"name":"startTime","in":"query","description":"Start time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"endTime","in":"query","description":"End time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBillingDocVolumeSummaryResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemHealthErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/system-health/payments/volume-summary":{"get":{"operationId":"electronicPaymentsHealth_GET_SystemHealthPaymentVolumeSummary","summary":"List payment volume summary records","description":"Returns a summary of electronic payments handled by your Zuora tenant within a specified time range.\n\nYou can filter the summary by payment gateway type and payment method type.\n","tags":["electronicPaymentsHealth"],"parameters":[{"name":"paymentGatewayType","in":"query","description":"Filters the volume summary by payment gateway type. Example: `Adyen`.\n","required":false,"schema":{"type":"string"}},{"name":"paymentMethodType","in":"query","description":"Filters the volume summary by payment method type. Example: `CreditCard`.\n","required":false,"schema":{"type":"string"}},{"name":"startTime","in":"query","description":"Start time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"endTime","in":"query","description":"End time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPaymentVolumeSummaryResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemHealthErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/system-health/payments/details":{"get":{"operationId":"electronicPaymentsHealth_getSystemHealthPaymentRecords","summary":"List payment system health records","description":"Returns System Health Electronic Payments records that are generated by your Zuora tenant within a specified time range.\n\n\nYou can filter the failure records by one or multiple of the following fields:\n  - payment gateway type\n  - payment method type\n  - payment status\n  - payment gateway response code\n  - currency\n","tags":["electronicPaymentsHealth"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"paymentGatewayType","in":"query","description":"Filters the volume summary by payment gateway type. Example: `Adyen`.\n","required":false,"schema":{"type":"string"}},{"name":"paymentMethodType","in":"query","description":"Filters the volume summary by payment method type. Example: `CreditCard`.\n","required":false,"schema":{"type":"string"}},{"name":"paymentStatus","in":"query","description":"Filters the volume summary by Payment Status. Example: `Error`.\n","required":false,"schema":{"type":"string"}},{"name":"paymentGatewayResponseCode","in":"query","description":"Filters the volume summary by Payment Gateway Response Code. Example: `Declined`.","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","description":"Filters the volume summary by currency. Example: `INR`.","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","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: *operator* *field_name*.\n\nIf you do not specify any sortable field, the response data is sorted by the `timerange` field in descending order.\n\n\n*operator* is used to mark the order of sequencing. The operator is optional. \nIf 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. \nThe supported sortable fields of this operation are as below:\n- `timestamp`\n- `latency`\n- `status`\n- `http_method`\n","required":false,"schema":{"type":"string"}},{"name":"startTime","in":"query","description":"Start time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"endTime","in":"query","description":"End time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPaymentRecordsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemHealthErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/system-health/tax/details":{"get":{"operationId":"taxHealth_getSystemHealthTaxRecords","summary":"List tax system health records","description":"Returns System Health Electronic records that are generated by your Zuora tenant within a specified time range.\n\n\nYou can filter the failure records by one or multiple of the following fields:\n  - vendorName\n  - eventType\n  - status\n","tags":["taxHealth"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"vendorName","in":"query","description":"Filters the records by vendor name.\n","required":false,"schema":{"type":"string"}},{"name":"eventType","in":"query","description":"Filters the tax records by event type.\n","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filters the tax records by status.\n","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","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: *operator* *field_name*.\n\nIf you do not specify any sortable field, the response data is sorted by the `timerange` field in descending order.\n\n\n*operator* is used to mark the order of sequencing. The operator is optional. \nIf 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. \nThe supported sortable fields of this operation are as below:\n- `timestamp`\n- `total_duration`\n- `vendor_duration`\n- `status`\n- `document_number`\n","required":false,"schema":{"type":"string"}},{"name":"startTime","in":"query","description":"Start time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"endTime","in":"query","description":"End time of the volume summary.\n\nFormat: `yyyy-MM-dd'T'HH:mmZ` Example: `2022-09-22T09:07+0800`.\n","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTaxRecordsResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemHealthErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/versions/{version_id}":{"delete":{"operationId":"workflows_DELETE_WorkflowVersion","summary":"Delete a workflow version","description":"Delete a workflow version based on the version id. \n\n### User Access Permission\nYou must be assigned the **Workflow Manage Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"version_id","in":"path","description":"The unique id of the workflow version.","required":true,"schema":{"type":"integer"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWorkflowSuccess"}}}},"403":{"description":"Cannot delete the active version of a workflow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWorkflowError"}}}}},"security":[{"bearerAuth":[]}]}},"/workflows":{"get":{"operationId":"workflows_GET_Workflows","summary":"List workflows","description":"Retrieves a list of workflow definitions available in your Zuora tenant.\n\n### User Access Permission\nYou must be assigned the **Workflow View Access** permission to run this operation.   \n","tags":["workflows"],"parameters":[{"name":"callout_trigger","in":"query","description":"If set to true, the operation retrieves workflows that have the callout trigger enabled. If set to false, the operation retrieves workflows that have the callout trigger disabled. If not specified, the operation will not use this filter.\n","required":false,"schema":{"type":"boolean"}},{"name":"interval","in":"query","description":"A CRON expession that specifies a schedule (for example, `0 0 * * *`). If specified, the operation retrieves the workflow that is run based on the specified schedule.\n","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","description":"If specified, the operation retrieves the workflow that is in the specified name.\n","required":false,"schema":{"type":"string"}},{"name":"ondemand_trigger","in":"query","description":"If set to true, the operation retrieves workflows that have the ondemand trigger enabled. If set to false, the operation retrieves workflows that have the ondemand trigger disabled. If not specified, the operation will not use this filter.\n","required":false,"schema":{"type":"boolean"}},{"name":"scheduled_trigger","in":"query","description":"If set to true, the operation retrieves workflows that have the scheduled trigger enabled. If set to false, the operation retrieves workflows that have the scheduled trigger disabled. If not specfied, the operation will not use this filter.\n","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","description":"If you want to retrieve only the workflows on a specific page, you can specify the `page` number in the query.\n","required":false,"schema":{"type":"integer","default":1}},{"name":"page_length","in":"query","description":"The number of workflows shown in a single call. If the `page` parameter is not specified, the operation will return only the first page of results. If there are multiple pages of results, use it with the `page` parameter to get the results on subsequent pages. The maximum value is 50.\n","required":false,"schema":{"type":"integer","default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWorkflowsResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/import":{"post":{"operationId":"workflows_POST_WorkflowImport","summary":"Import a workflow","description":"Create a new workflow definition and its first version using the exported JSON document of an existing workflow version.\n\n### User Access Permission\nYou must be assigned the **Workflow Manage Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"workflow_definition_id","in":"query","description":"The unique id of the workflow definition to under.","required":false,"schema":{"type":"integer"}},{"name":"version","in":"query","description":"The version number of the new workflow version to import. Must be greater than any existing version numbers.","required":false,"schema":{"type":"string"}},{"name":"activate","in":"query","description":"Indicates whether the imported version is an active version. Default to be false.","required":false,"schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTWorkflowDefinitionImportRequest"}}}},"security":[{"bearerAuth":[]}]}},"/workflows/metrics.json":{"get":{"operationId":"workflows_GET_WorkflowsUsages","summary":"Retrieve workflow task usage","description":"Gets workflow task usage sorted by day within a specified time frame.\n\n### User Access Permission\nYou must be assigned the **Workflow View Access** permission to run this operation.        \n","tags":["workflows"],"parameters":[{"name":"startDate","in":"query","description":"The start date of the usage data that you want to get. For example, 2019-01-01.\n","required":true,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","description":"The end date of the usage data that you want to get. For example, 2019-12-31.\n","required":true,"schema":{"type":"string","format":"date"}},{"name":"metrics","in":"query","description":"The type of metric that you want to get. Currently, only `taskCount` is supported. `taskCount` is the amount of task runs.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsagesResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/tasks":{"get":{"operationId":"workflows_GET_WorkflowsTasks","summary":"List workflow tasks","description":"Retrieves a list of workflow tasks available in your Zuora tenant.\n\n### User Access Permission\nYou must be assigned the **Workflow View Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"id","in":"query","description":"If specified, the operation retrieves the task that is with specified id.\n","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","description":"If specified, the operation retrieves tasks that is in the specified name.\n","required":false,"schema":{"type":"string"}},{"name":"instance","in":"query","description":"If set to true, the operation retrieves workflows that have the scheduled trigger enabled. If set to false, the operation retrieves workflows that have the scheduled trigger disabled. If not specfied, the operation will not use this filter.\n","required":false,"schema":{"type":"boolean"}},{"name":"action_type","in":"query","description":"If specified, the operation retrieves tasks that is the specified type.\n","required":false,"schema":{"type":"string"}},{"name":"object","in":"query","description":"If specified, the operation retrieves tasks with the specified object.\n","required":false,"schema":{"type":"string"}},{"name":"object_id","in":"query","description":"If specified, the operation retrieves tasks with the specified object id.\n","required":false,"schema":{"type":"string"}},{"name":"call_type","in":"query","description":"If specified, the operation retrieves tasks with the specified api call type used.\n","required":false,"schema":{"type":"string"}},{"name":"workflow_id","in":"query","description":"If specified, the operation retrieves tasks that for the specified workflow id.\n","required":false,"schema":{"type":"string"}},{"name":"tags","in":"query","description":"If specified, the operation retrieves tasks that with the specified filter tags. Use the following syntax to specify multiple tags: `tags[]=tag_value_1&tags[]=tag_value_2`.\n\n**Note:** All the workflow tasks that have any of the specified tags will be listed in the response body.\n","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"page","in":"query","description":"If you want to retrieve only the workflows on a specific page, you can specify the `page` number in the query.\n","required":false,"schema":{"type":"integer","default":1}},{"name":"page_length","in":"query","description":"The number of workflow tasks shown in a single call. If the `page` parameter is not specified, the operation will return only the first page of results. If there are multiple pages of results, use it with the `page` parameter to get the results on subsequent pages. The maximum value is 100.\n","required":false,"schema":{"type":"integer","default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/tasks/batch_update":{"put":{"operationId":"workflows_PUT_WorkflowsTasksUpdate","summary":"Update workflow tasks","description":"Updates a group of workflow tasks.\n\n### User Access Permission\nYou must be assigned the **Workflow Manage Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksResponse"}}}},"400":{"description":"Bad Request for one of the following reasons:\n* Data is missing\n* Data is empty or not an array\n* Data has more than 50 tasks\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"404":{"description":"One or more tasks are missing the required `id` field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutTasksRequest"}}}},"security":[{"bearerAuth":[]}]}},"/workflows/tasks/{task_id}":{"get":{"operationId":"workflows_GET_WorkflowsTask","summary":"Retrieve a workflow task","description":"Retrieves a specific workflow task by its ID.\n\n### User Access Permission\nYou must be assigned the **Workflow View Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"task_id","in":"path","description":"The unique ID of the task.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/tasks/{task_id}/rerun":{"post":{"operationId":"workflows_POST_WorkflowsTaskRerun","summary":"Rerun a workflow task","description":"Reruns a specific workflow task by its ID.\n\n### User Access Permission\nYou must be assigned the **Workflow Run Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"task_id","in":"path","description":"The unique ID of the task.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/workflow_runs/{workflow_run_id}":{"get":{"operationId":"workflows_GET_Workflow_Run","summary":"Retrieve a workflow run","description":"Retrieves information about a specific workflow run by its ID.\n\n### User Access Permission\nYou must be assigned the **Workflow View Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"workflow_run_id","in":"path","description":"The unique ID of a workflow run. For example, 19080.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWorkflowResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/{workflow_id}":{"get":{"operationId":"workflows_GET_Workflow","summary":"Retrieve a workflow","description":"Retrieves information about a specific workflow by its ID.\n\n### User Access Permission\nYou must be assigned the **Workflow View Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"workflow_id","in":"path","description":"The unique ID of a workflow definition. For example, 19080.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDefinition"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"workflows_DELETE_Workflow","summary":"Delete a workflow","description":"Deletes a specific workflow by its ID.\n\n### User Access Permission\nYou must be assigned the **Workflow Manage Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"workflow_id","in":"path","description":"The unique ID of a workflow definition. For example, 19080.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWorkflowSuccess"}}}},"404":{"description":"The workflow for the given id does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWorkflowError"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"workflows_PATCH_UpdateWorkflow","summary":"Update a workflow","description":"Updates a specific workflow by its ID, which allows you to [configure the settings of a workflow](https://knowledgecenter.zuora.com/CE_Workflow/Using_Workflow/B_Configure_a_Workflow) via API.\n\n### User Access Permission\nYou must be assigned the **Workflow Manage Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"workflow_id","in":"path","description":"The unique ID of a workflow definition. For example, 19080.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDefinition"}}}},"404":{"description":"The workflow for the given id does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWorkflowError"}}}},"422":{"description":"Bad Request for one of the following reasons:\n* The name or description fields are not strings.\n* The ondemand_trigger, callout_trigger, or scheduled_trigger fields are not booleans.\n* The timezone does not match one of the valid values in [this spread sheet](https://docs.google.com/spreadsheets/d/1skhepi-q5l9LyaMUPZjU_V9gzTphNMqNyV6ST5mygEo/edit?usp=sharing).\n* The priority is not one of High, Medium, or Low.\n* The status is not one of Active or Inactive.\n* The scheduled_trigger is set to true but a valid timezone and interval were not passed.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrors"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"active_workflow_version_id":{"type":"integer","description":"The id of a version. This version will then be set to the active version of the workflow definition.\n"},"description":{"type":"string","description":"The description of the workflow defintion\n"},"name":{"type":"string","description":"The name of the workflow definition\n"},"status":{"type":"string","description":"Can be `Active` or `Inactive`. Active workfow definitions run like normal. Inactive workflow definitions cannot be run.\n"}}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/{workflow_id}/export":{"get":{"operationId":"workflows_GET_WorkflowExport","summary":"Export a workflow version","description":"\nExports a workflow version into a JSON file. This file can be used to create a copy of this workflow version.\n\n### User Access Permission\nYou must be assigned the **Workflow View Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"workflow_id","in":"path","description":"The ID of the workflow definition to export.","required":true,"schema":{"type":"integer"}},{"name":"version","in":"query","description":"Default result is the active version of the workflow definition. Version number and 'latest' can be used to export a specific version of the workflow definition. \n","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportWorkflowVersionResponse"}}}},"400":{"description":"The input of version is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GET_WorkflowExportRequestBadRequestError"}}}},"404":{"description":"Workflow version is not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GET_WorkflowExportRequestNotFoundError"}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/{workflow_id}/run":{"post":{"operationId":"workflows_POST_Run_Workflow","summary":"Run a workflow","description":"Run a specified workflow. In the request body, you can include parameters that you want to pass to the workflow. For the parameters to be recognized and picked up by tasks in the workflow, you need to define the parameters first.\n\n**Note**: To run a workflow, do not use the following reserved words in the request body of the parameters.\n - `controller`\n - `action`\n - `id`\n - `user_email`\n - `user_token`\n - `format`\n\n### User Access Permission\nYou must be assigned the **Workflow Run Access** permission to run this operation.\n\nTo learn about how to define parameters, see [Configure the settings of a workflow](https://knowledgecenter.zuora.com/CE_Workflow/Using_Workflow/B_Configure_a_Workflow).\n","tags":["workflows"],"parameters":[{"name":"workflow_id","in":"path","description":"The ID of the workflow definition you want to run.","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowInstance"}}}},"400":{"description":"Callout not enabled for the workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POST_Run_WorkflowRequestBadRequestError"}}}},"406":{"description":"The provided body is missing one or more required parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POST_Run_WorkflowRequestNotAcceptableError"}}}},"409":{"description":"The provided workflow_id references a workflow instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POST_Run_WorkflowRequestConflictError"}}}}},"requestBody":{"description":"Include parameters you want to pass to the workflow.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/{workflow_id}/versions":{"get":{"operationId":"workflows_GET_WorkflowVersions","summary":"List all versions of a workflow definition","description":"Return a list of all workflow versions under a workflow definition\n\n### User Access Permission\nYou must be assigned the **Workflow View Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"workflow_id","in":"path","description":"The unique id of the workflow definition to import a workflow version under.","required":true,"schema":{"type":"integer"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetVersionsResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/{workflow_id}/versions/import":{"post":{"operationId":"workflows_POST_WorkflowVersionsImport","summary":"Import a workflow version","description":"Create a new workflow version under a workflow definition using the exported JSON document of an existing workflow version.\n\n### User Access Permission\nYou must be assigned the **Workflow Manage Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"workflow_id","in":"path","description":"The unique id of the workflow definition to import a workflow version under.","required":true,"schema":{"type":"integer"}},{"name":"version","in":"query","description":"The version number of the new workflow version to import. Must be greater than any existing version numbers.","required":true,"schema":{"type":"string"}},{"name":"activate","in":"query","description":"Indicates whether the imported version is an active version. Default to be false.","required":false,"schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDefinition"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"linkages":{"type":"array","items":{"$ref":"#/components/schemas/Linkage"}},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"workflow":{"$ref":"#/components/schemas/DetailedWorkflow"}}}}}},"security":[{"bearerAuth":[]}]}},"/workflows/workflow_runs/{workflow_run_id}/stop":{"put":{"operationId":"workflows_PUT_StopWorkflowRun","summary":"Stop a workflow run","description":"Stop a specific workflow run by its ID.\n\n### User Access Permission\nYou must be assigned the **Workflow View Access** permission to run this operation.\n","tags":["workflows"],"parameters":[{"name":"workflow_run_id","in":"path","description":"The unique ID of a workflow run. For example, 19080.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.\n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"The value is in the `Bearer {token}` format where {token} is a valid OAuth token generated by calling [Create an OAuth token](https://developer.zuora.com/api-references/api/operation/createToken).\n","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have [Zuora Multi-Org](https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org) enabled,\nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails.\n\nIf the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopWorkflowRunSuccess"}}}},"404":{"description":"Cannot find a workflow run with id provided.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopWorkflowRunError"}}}}},"security":[{"bearerAuth":[]}]}},"/query/jobs":{"get":{"operationId":"dataQueries_GET_DataQueryJobs","summary":"List data query jobs","description":"Returns a list of [data query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query) jobs that have been created in your Zuora tenant. You can filter the list by status.\n\nIf you are an administrator, you can retrieve all the query jobs in your tenant. Otherwise, you can only retrieve your own query jobs.\n","tags":["dataQueries"],"parameters":[{"name":"queryStatus","in":"query","description":"Filters the list of query jobs by status.\n","required":false,"schema":{"$ref":"#/components/schemas/QueryJobsGetParametersQueryStatus"}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":1000,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDataQueryJobsResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"dataQueries_POST_DataQueryJob","summary":"Submit a data query","description":"Submits a [data query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query) to be executed by Zuora, creating a new query job. Use the [Retrieve a data query job](https://developer.zuora.com/v1-api-reference/api/operation/GET_DataQueryJob/) endpoint to monitor the job status and access the results once complete.\n\n**Note:** The request must include the `Content-Type: application/json` header. If this header is missing, the request will fail with the following error:   `{\"code\":415,\"message\":\"HTTP 415 Unsupported Media Type\"}`\n","tags":["dataQueries"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitDataQueryResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataQueryErrorResponse"}}}},"415":{"description":"Unsupported Media Type. This error is returned when the request is missing the required `Content-Type: application/json` header.      \n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataQueryErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitDataQueryRequest"}}}},"security":[{"bearerAuth":[]}]}},"/query/jobs/{job-id}":{"get":{"operationId":"dataQueries_GET_DataQueryJob","summary":"Retrieve a data query job","description":"Retrieves a [data query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query) job. You can use this operation to track the status of the query job and obtain the URL of the query results.\n\nIf you are an administrator, you can retrieve every query job in your tenant. \n\nIf you are a non-admin user and try to retrieve a query job that you are not the owner of, you will get a 403 response indicating that you are forbidden from viewing this job. As a non-admin user, you can only retrieve your own query job.\n","tags":["dataQueries"],"parameters":[{"name":"job-id","in":"path","description":"Internal identifier of the query job.\n","required":true,"schema":{"type":"string","format":"uuid","minLength":36,"maxLength":36}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDataQueryJobResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataQueryErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataQueryErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"dataQueries_DELETE_DataQueryJob","summary":"Cancel a data query job","description":"Cancels a [data query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query) job, which prevents Zuora from performing the query. This operation is only applicable if the status of the query job is `accepted` or `in_progress`.\n","tags":["dataQueries"],"parameters":[{"name":"job-id","in":"path","description":"Internal identifier of the query job.\n","required":true,"schema":{"type":"string","format":"uuid","minLength":64,"maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDataQueryJobResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataQueryErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/batch-query":{"post":{"operationId":"aggregateQueries_POST_BatchQueryJob","summary":"Submit an aggregate query job","description":"Submits an AQuA job that contains an aggregated list of ZOQL and Export ZOQL queries.\n","tags":["aggregateQueries"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitBatchQueryResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitBatchQueryRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/batch-query/jobs/partner/{partner}/project/{project}":{"get":{"operationId":"aggregateQueries_GET_LastBatchQueryJob","summary":"Retrieve the last completed aggregate query job","description":"Returns the details of the last completed job.\n\nThe completed AQuA jobs that were created 180 days ago are deleted permanently from Zuora, so you cannot query these jobs through API or AQuA job finder.\n","tags":["aggregateQueries"],"parameters":[{"name":"partner","in":"path","description":"The unique ID of a data integration partner. \n","required":true,"schema":{"type":"string"}},{"name":"project","in":"path","description":"The unique ID of a data integration project for a particular partner.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAggregateQueryJobResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/batch-query/jobs/{jobid}":{"get":{"operationId":"aggregateQueries_GET_BatchQueryJob","summary":"Retrieve an aggregate query job","description":"Retrieves an aggregate query using the Job ID.\n\nNote that the completed AQuA jobs that were created 180 days ago are deleted permanently from Zuora, so you cannot query these jobs through API or AQuA job finder.\n","tags":["aggregateQueries"],"parameters":[{"name":"jobid","in":"path","description":"Internal identifier of the query job.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAggregateQueryJobResponse"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"aggregateQueries_DELETE_BatchQueryJob","summary":"Cancel a running aggregate query job","description":"Cancels the current AQuA job, only if the job is not complete. If the job is complete, an error is thrown.\n","tags":["aggregateQueries"],"parameters":[{"name":"jobid","in":"path","description":"Internal identifier of the query job.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteBatchQueryJobResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployment_artifacts":{"get":{"operationId":"configurationTemplates_GET_DownloadDeploymentTemplate","summary":"Download a template","description":"Download a template for migration in the Deployment manager from the source tenant to the target tenant.\n","tags":["configurationTemplates"],"parameters":[{"name":"deployment_template_id","in":"query","description":"Id which template needs to be downloaded.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Successfully downloaded the template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"404":{"description":"Id is invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployment_artifacts/compare":{"post":{"operationId":"configurationTemplates_POST_CompareTemplate","summary":"Compare settings between a source tenant and a target tenant","description":"To Compare the configurations from the template downloaded and used in deployment manager for migration which is available in source and target tenant.\n","tags":["configurationTemplates"],"parameters":[{"name":"tenant","in":"query","description":"Customers need to specify tenant ID.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareSchemaInfoResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"template":{"type":"string","format":"binary","description":"Template contains the config metadata and target tenant information."}}}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployment_artifacts/deploy":{"post":{"operationId":"configurationTemplates_POST_MigrateTenantSettings","summary":"Migrate settings from source tenant to target tenant","description":"To migrate the selected configuration of a tenant in Deployment Manager migration while using template from the compare screen.\n","tags":["configurationTemplates"],"parameters":[{"name":"tenant","in":"query","description":"Customers need to specify tenant ID in query parameter.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Successfully migrated from source to target.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrationClientResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}}},"requestBody":{"description":"Request Details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateMigrationClientRequest"}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployment_artifacts/retrieve-settings":{"get":{"operationId":"configurationTemplates_GET_SourceComponentDetails","summary":"List all details of source components","description":"When the advanced option is clicked, get the details/metadata of the components, such as settings, notifications, workflow, etc.\n","tags":["configurationTemplates"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Successfully retrieved the template metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingSourceComponentResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"404":{"description":"Id is invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployment_templates":{"get":{"operationId":"configurationTemplates_GET_Templates","summary":"List all templates","description":"Retrieves all the templates and their details which are created already.\n","tags":["configurationTemplates"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Successfully received all templates throught Template Response Object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"configurationTemplates_POST_DeploymentTemplate","summary":"Create a deployment template","description":"Creates templates based on user preference.\nThere are 2 ways to select components.\n  - Selecting the whole component.\n  - Advanced Options -> which helps user to select specific components to be migrated.\n\nIt takes the enviroment details from the logged in user automatically, while creating the template.\n","tags":["configurationTemplates"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Successfully created the template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetailResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}}},"requestBody":{"description":"CreateTemplateRequestContent JSON object which contains the details to create a template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateRequestContent"}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployment_templates/{id}":{"get":{"operationId":"configurationTemplates_GET_DeploymentTemplateDetail","summary":"List all details of a template","description":"Returns the detailed information of a specific template by passing its template ID.\n","tags":["configurationTemplates"],"parameters":[{"name":"id","in":"path","description":"The ID of the template that needs to be retrieved.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Successfully received the template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetailResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"configurationTemplates_DELETE_DeploymentTemplate","summary":"Delete a template","description":"Deletes a specific template by passing the ID.\n","tags":["configurationTemplates"],"parameters":[{"name":"id","in":"path","description":"The ID of the template that needs to be deleted.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Successfully deleted the template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Configuration_Templates_DELETE_DeploymentTemplate_Response_200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"404":{"description":"Id is invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployment_templates/sync":{"post":{"operationId":"configurationTemplates_syncDeploymentTemplate","summary":"Sync a deployment template with latest changes","description":"Synchronizes an existing deployment template with the latest changes in the source tenant.\n","tags":["configurationTemplates"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Successfully synced the template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetailResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigTemplateErrorResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"templateId":{"type":"string","description":"The ID of the deployment template to be synced."},"targetTenantId":{"type":"string","description":"The ID of the target tenant to which the template should be synced."}},"required":["templateId","targetTenantId"]}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployments/tenants":{"post":{"operationId":"metadataDeployment_CompareDeployTenant","summary":"Compare and deploy a source tenant to a target tenant","description":"Compare and deploy a source tenant to a target tenant.\n","tags":["metadataDeployment"],"parameters":[{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header. \n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentManagerResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Deployment's name."},"description":{"type":"string","description":"Deployment's description."},"sendEmail":{"type":"boolean","description":"Specifies if an email should be sent."},"emails":{"type":"string","description":"If sendEmail parameter is set to true, comma separated values of emails can be specified. Example  email1@test.com,email2@test.com."},"comments":{"type":"string","description":"Content of the email to be sent."},"settings":{"type":"boolean","description":"Specified if settings module should be considered in the deployment process."},"notifications":{"type":"boolean","description":"Specified if notifications module should be considered in the deployment process."},"workflows":{"type":"boolean","description":"Specified if workflows module should be considered in the deployment process."},"customFields":{"type":"boolean","description":"Specified if customFields module should be considered in the deployment process."},"customObjects":{"type":"boolean","description":"Specified if customObjects module should be considered in the deployment process."},"productCatalog":{"type":"boolean","description":"Specified if productCatalog module should be considered in the deployment process."},"taxation":{"type":"boolean","description":"Specified if taxation module should be considered in the deployment process."},"userRoles":{"type":"boolean","description":"Specified if userRoles module should be considered in the deployment process."},"reporting":{"type":"boolean","description":"Specified if reporting module should be considered in the deployment process."},"sourceTenantId":{"type":"string","description":"Id of the source tenant."}},"required":["name","description","sendEmail","settings","notifications","workflows","customFields","productCatalog","userRoles","reporting","sourceTenantId"]}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployments/templates":{"post":{"operationId":"metadataDeployment_CompareDeployTemplate","summary":"Compare and deploy a template to a tenant","description":"Compare and deploy a template to a tenant.\n","tags":["metadataDeployment"],"parameters":[{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header. \n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentManagerResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Deployment's name"},"description":{"type":"string","description":"Deployment's description."},"sendEmail":{"type":"boolean","description":"Specifies if an email should be sent."},"emails":{"type":"string","description":"If sendEmail parameter is set to true, comma separated values of emails can be specified. Example  email1@test.com,email2@test.com."},"comments":{"type":"string","description":"Content of the email to be sent."},"template":{"type":"string","format":"binary","description":"Template file."}},"required":["name","description","sendEmail","template"]}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployments/{migrationId}/revert":{"post":{"operationId":"metadataDeployment_RevertDeployment","summary":"Revert a deployment","description":"Revert a deployment.\n","tags":["metadataDeployment"],"parameters":[{"name":"migrationId","in":"path","description":"The unique ID of a migration.\n","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header. \n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Metadata_Deployment_RevertDeployment_Response_200"}}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployments/{migrationId}":{"get":{"operationId":"metadataDeployment_FetchDeploymentLogs","summary":"Retrieve a deployment log","description":"Retrieve a deployment log.\n","tags":["metadataDeployment"],"parameters":[{"name":"migrationId","in":"path","description":"The unique ID of a migration.\n","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header. \n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Metadata_Deployment_FetchDeploymentLogs_Response_200"}}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployments/tenant/product_catalog":{"post":{"operationId":"metadataDeployment_CompareDeployTenantProductCatalog","summary":"Compare and deploy the product catalog of a tenant to a target tenant","description":"Compare and deploy the product catalog of a tenant to a target tenant.\n","tags":["metadataDeployment"],"parameters":[{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header. \n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentManagerResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Deployment's name."},"description":{"type":"string","description":"Deployment's description."},"sendEmail":{"type":"boolean","description":"Specifies if an email should be sent."},"emails":{"type":"string","description":"If sendEmail parameter is set to true, comma separated values of emails can be specified. Example  email1@test.com,email2@test.com."},"comments":{"type":"string","description":"Content of the email to be sent."},"inActiveProducts":{"type":"boolean","description":"Specifies if inactive products needs to be migrated."},"activeProducts":{"type":"boolean","description":"Specifies if active products needs to be migrated."},"activeRatePlans":{"type":"boolean","description":"Specifies if active rate plans needs to be migrated."},"inActiveRatePlans":{"type":"boolean","description":"Specifies if inactive active rate plans needs to be migrated."},"compareField":{"$ref":"#/components/schemas/DeploymentManagerDeploymentsTenantProductCatalogPostRequestBodyContentMultipartFormDataSchemaCompareField","description":"Specifies the compare field to be using during migration."},"sourceTenantId":{"type":"string","description":"Specifies the source tenant id."}},"required":["name","description","sendEmail","inActiveProducts","activeProducts","activeRatePlans","inActiveRatePlans","compareField","sourceTenantId"]}}}},"security":[{"bearerAuth":[]}]}},"/deployment-manager/deployments/template/product_catalog":{"post":{"operationId":"metadataDeployment_CompareDeployTemplateProductCatalog","summary":"Compare and deploy a template for product catalog to a tenant","description":"Compare and deploy a template for product catalog to a tenant.\n","tags":["metadataDeployment"],"parameters":[{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you do not need to set this header. \n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentManagerResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Deployment's name."},"description":{"type":"string","description":"Deployment's description."},"sendEmail":{"type":"boolean","description":"Specifies if an email should be sent."},"emails":{"type":"string","description":"If sendEmail parameter is set to true, comma separated values of emails can be specified."},"comments":{"type":"string","description":"Content of the email to be sent."},"template":{"type":"string","format":"binary","description":"Template file."},"inActiveProducts":{"type":"boolean","description":"Specifies if inactive products needs to be migrated."},"activeProducts":{"type":"boolean","description":"Specifies if active products needs to be migrated."},"activeRatePlans":{"type":"boolean","description":"Specifies if active rate plans needs to be migrated."},"inActiveRatePlans":{"type":"boolean","description":"Specifies if inactive rate plans needs to be migrated."},"compareField":{"$ref":"#/components/schemas/DeploymentManagerDeploymentsTemplateProductCatalogPostRequestBodyContentMultipartFormDataSchemaCompareField","description":"Specifies the compare field to be using during migration."}},"required":["name","description","sendEmail","template","inActiveProducts","activeProducts","activeRatePlans","inActiveRatePlans","compareField"]}}}},"security":[{"bearerAuth":[]}]}},"/bulk-data/bulk-jobs":{"post":{"operationId":"bulkData_createBulkJob","summary":"Create a bulk job","description":"Creates a new bulk job. The job type can be one of Import, Delete, Update, or Cancel.\nThe response includes the job ID and information needed to upload your data file to S3.\n\n### Next Step: Upload the File to S3\n\nAfter creating a bulk job, you must upload the data file to Amazon S3 using the information\nreturned in the `uploadFileInfo` object. This includes:\n  - `uploadUrl`: The S3 endpoint to which the file must be uploaded.\n  - `formFields`: Key-value pairs to include in a multipart/form-data POST request.\n  - `jobId`: The ID of the job, used for later submission.\n\nYou can use the following cURL command to upload the file:\n\n```\ncurl --request POST \\\n  --url '<uploadUrl>' \\\n  --header 'Content-Type: multipart/form-data' \\\n  --form 'key=<formFields.key>' \\\n  --form 'bucket=<formFields.bucket>' \\\n  --form 'x-amz-algorithm=<formFields[\"x-amz-algorithm\"]>' \\\n  --form 'x-amz-credential=<formFields[\"x-amz-credential\"]>' \\\n  --form 'x-amz-date=<formFields[\"x-amz-date\"]>' \\\n  --form 'Policy=<formFields.Policy>' \\\n  --form 'x-amz-signature=<formFields[\"x-amz-signature\"]>' \\\n  --form 'x-amz-security-token=<formFields[\"x-amz-security-token\"]>' \\\n  --form 'file=@/path/to/your/file.csv'\n```\n\n\n**Note**: Always use the exact form field keys returned in the `formFields` object of the API response.\nThis is a presigned Amazon S3 POST operation and not a Zuora endpoint.\n\nAfter uploading the file, you must call the \"Submit a bulk job for processing\" operation endpoint\nto start processing the job.\n","tags":["bulkData"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Job creation successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkJobRequest"}}}},"security":[{"bearerAuth":[]}]}},"/bulk-data/bulk-jobs/{id}/submissions":{"post":{"operationId":"bulkData_submitBulkJob","summary":"Submit a bulk job","description":"Submits a previously created bulk job for processing.\n\nThis endpoint must be called **after** the file has been successfully uploaded to the S3 URL using the `uploadFileInfo` details from the create job response.\n\nIf the job has not been uploaded properly before calling this endpoint, submission will fail.\n","tags":["bulkData"],"parameters":[{"name":"id","in":"path","description":"Bulk Job ID.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Job successfully submitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitBulkJobResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/bulk-data/bulk-jobs/{id}/summary":{"get":{"operationId":"bulkData_getBulkJobSummary","summary":"Retrieve the summary of a bulk job","description":"Get the summary of a specific job by its ID.\nThis operation returns a summary of the specified bulk job.\n","tags":["bulkData"],"parameters":[{"name":"id","in":"path","description":"The unique identifier of the job whose summary is being queried.","required":true,"schema":{"type":"string","format":"uuid","minLength":64,"maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Job summary retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryJobSummaryResponse"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"description":"Any type"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"description":"Any type"}}}}},"security":[{"bearerAuth":[]}]}},"/bulk-data/bulk-jobs/{id}/cancellations":{"post":{"operationId":"bulkData_cancelBulkJob","summary":"Cancel a bulk job","description":"Cancels an existing bulk job.\n\n\nOnce a job is cancelled, no further processing can be done, and its status will be marked as `Cancelled`.\n\n\n**Note**: Cancellation of a job is only allowed before it reaches the `In Progress` status. Once a job is in progress, it cannot be cancelled but only be aborted.\n","tags":["bulkData"],"parameters":[{"name":"id","in":"path","description":"Internal identifier of the job to cancel.","required":true,"schema":{"type":"string","format":"uuid","minLength":64,"maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdStatusResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/bulk-data/bulk-jobs/{id}/aborts":{"post":{"operationId":"bulkData_deleteAbortJob","summary":"Abort a bulk job","description":"Aborts an existing job by sending a POST request to this URI. The request URI identifies the job to abort.\nWhen a job is aborted, no more records are processed.\n","tags":["bulkData"],"parameters":[{"name":"id","in":"path","description":"Internal identifier of the job to abort.\n","required":true,"schema":{"type":"string","format":"uuid","minLength":64,"maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdStatusResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/bulk-data/bulk-jobs/{id}/downloads":{"get":{"operationId":"bulkData_getDownloadLinksForJob","summary":"List download links for a bulk job","description":"Retrieves the download links for the files associated with a completed job.\nThese files include success rows, error rows, and logs.\n","tags":["bulkData"],"parameters":[{"name":"id","in":"path","description":"The unique identifier of the job whose download links are being queried.","required":true,"schema":{"type":"string","format":"uuid","minLength":64,"maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Get download links for a bulk job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadsResponse"}}}},"404":{"description":"Job not found or not completed","content":{"application/json":{"schema":{"description":"Any type"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"description":"Any type"}}}}},"security":[{"bearerAuth":[]}]}},"/bulk-data/bulk-jobs/summaries":{"get":{"operationId":"bulkData_getBulkJobSummaries","summary":"List job summaries for bulk jobs","description":"Lists summaries for bulk jobs. You can filter the results using query parameters.\n","tags":["bulkData"],"parameters":[{"name":"limit","in":"query","description":"Maximum number of job summaries to retrieve.","required":false,"schema":{"type":"integer"}},{"name":"cursor","in":"query","description":"Cursor for pagination to get the next page of results.","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter job summaries by job status.","required":false,"schema":{"$ref":"#/components/schemas/BulkDataBulkJobsSummariesGetParametersStatus"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Job summaries retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSummariesResponse"}}}},"404":{"description":"No job summaries found","content":{"application/json":{"schema":{"description":"Any type"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"description":"Any type"}}}}},"security":[{"bearerAuth":[]}]}},"/bulk-data/bulk-jobs/{id}/mappings":{"get":{"operationId":"bulkData_getMappingsForJob","summary":"List mappings for a bulk job","description":"Retrieves the mappings for an existing bulk job. The mappings define how columns in the source file correspond to fields in the object type template.\n","tags":["bulkData"],"parameters":[{"name":"id","in":"path","description":"Internal identifier of the job whose mappings are to be retrieved.","required":true,"schema":{"type":"string","format":"uuid","minLength":64,"maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bulk_Data_getMappingsForJob_Response_200"}}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/Groups":{"get":{"operationId":"scim_getListGroups","summary":"List groups","description":"Returns a paginated list of groups, ten groups per page by default. Use the startIndex and count (max 100) query parameters to paginate long lists of groups. It's possible to return a list of specific types of groups using the filter parameter.","tags":["scim"],"parameters":[{"name":"count","in":"query","description":"The number of records returned per page in the response.","required":false,"schema":{"type":"integer"}},{"name":"filter","in":"query","description":"The filter used to filter the group, either by organization id.","required":false,"schema":{"type":"string"}},{"name":"startIndex","in":"query","description":"The index number of the page that you want to retrieve. You must set count before specifying startIndex. For example, if you set count to 20 and startIndex to 2, the 21st to 40th records are returned in the response.","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_getListGroups_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetListGroupsRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetListGroupsRequestForbiddenError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetListGroupsRequestNotFoundError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"scim_createANewGroup","summary":"Create a group","description":"Creates a new group. Must include the displayName attribute. Users can be added to the group during creation by supplying the user ID values in the members array attribute.","tags":["scim"],"parameters":[{"name":"count","in":"query","description":"The number of records returned per page in the response.","required":false,"schema":{"type":"integer"}},{"name":"filter","in":"query","description":"The filter used to filter the group, either by organization id.","required":false,"schema":{"type":"string"}},{"name":"startIndex","in":"query","description":"The index number of the page that you want to retrieve. You must set count before specifying startIndex. For example, if you set count to 20 and startIndex to 2, the 21st to 40th records are returned in the response.","required":false,"schema":{"type":"integer"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_createANewGroup_Response_201"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateANewGroupRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateANewGroupRequestForbiddenError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateANewGroupRequestNotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema URNs defining the structure of the group resource."},"displayName":{"type":"string","description":"Name of the group."},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsPostRequestBodyContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension"}}}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/Groups/bulk":{"post":{"operationId":"scim_postBulkCreateGroups","summary":"Bulk create groups","description":"Creates multiple Groups within an organization.\n\nMust include the displayName attribute. Users can be added to the group during creation by supplying the user ID values in the members array attribute.\n","tags":["scim"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_postBulkCreateGroups_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBulkCreateGroupsRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBulkCreateGroupsRequestForbiddenError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBulkCreateGroupsRequestNotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsBulkPostRequestBodyContentApplicationJsonSchemaItems"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"scim_patchBulkPatchGroups","summary":"Bulk update groups","description":"Updates an existing group resource, allowing individual (or groups of) users to be added or removed from the group with a single operation.\n\nSetting the operation attribute of a member object to delete will remove members from a group; add is the default operation for PATCH.\n","tags":["scim"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_patchBulkPatchGroups_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchBulkPatchGroupsRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchBulkPatchGroupsRequestForbiddenError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the format of the request."},"operations":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsBulkPatchRequestBodyContentApplicationJsonSchemaOperationsItems"},"description":"List of operations to be performed on the resource."}},"required":["schemas","operations"]}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/Groups/delete":{"post":{"operationId":"scim_postBulkDeleteGroups","summary":"Bulk delete groups","description":"Permanently removes groups from an organization (members are not deleted, only the group).\n","tags":["scim"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids-Single","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_postBulkDeleteGroups_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBulkDeleteGroupsRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBulkDeleteGroupsRequestForbiddenError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBulkDeleteGroupsRequestNotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"operations":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsDeletePostRequestBodyContentApplicationJsonSchemaOperationsItems"}}},"required":["schemas","operations"]}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/Groups/{id}":{"get":{"operationId":"scim_getASpecificGroup","summary":"Retrieve a group","description":"Retrieves a single group resource.","tags":["scim"],"parameters":[{"name":"id","in":"path","description":"The ID of the group to retrieve.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_getASpecificGroup_Response_200"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"scim_updateASpecificGroup","summary":"Update a group","description":"Updates an existing group resource, overwriting all values for a group even if an attribute is empty or not provided.\nPUT will replace all members of a group with those members provided via the members attribute. If an attribute that had been set previously is left blank during a PUT operation, the new value will be blank in accordance with the data type of the attribute and the storage provider.\n","tags":["scim"],"parameters":[{"name":"id","in":"path","description":"The ID of the group to update.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_updateASpecificGroup_Response_200"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema URNs defining the structure of the request."},"operations":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsIdPutRequestBodyContentApplicationJsonSchemaOperationsItems"}}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"scim_deleteASpecificGroup","summary":"Delete a group","description":"Permanently removes a group (members are not deleted, only the group).\n","tags":["scim"],"parameters":[{"name":"id","in":"path","description":"The ID of the group to delete.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_deleteASpecificGroup_Response_200"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"scim_partiallyUpdateAspecificGroup","summary":"Partially update a group","description":"Updates an existing group resource, allowing individual (or groups of) users to be added or removed from the group with a single operation.\nSetting the operation attribute of a member object to delete will remove members from a group; add is the default operation for PATCH.\n","tags":["scim"],"parameters":[{"name":"id","in":"path","description":"The ID of the group to partially update.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_partiallyUpdateAspecificGroup_Response_200"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"Operations":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsIdPatchRequestBodyContentApplicationJsonSchemaOperationsItems"}}},"required":["schemas","Operations"]}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/ResourceTypes":{"get":{"operationId":"scim_getTheRessourceType","summary":"List all resource types","description":"Retrieves all Resource Types managed by OneId. Resource Types define the resource name, endpoint URL, schemas, and other metadata that indicate where a resource is managed and how it is composed, e.g., \"User\" or \"Group\".\n","tags":["scim"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_getTheRessourceType_Response_200"}}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/ResourceTypes/{id}":{"get":{"operationId":"scim_getASpecificResourceType","summary":"Retrieve a resource type","description":"Get related information on a single resource type.\n\nExamples:\n  ```\n  /scim/v2/ResourceTypes/User\n  /scim/v2/ResourceTypes/Group\n  ```\n","tags":["scim"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_getASpecificResourceType_Response_200"}}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/Schemas":{"get":{"operationId":"scim_getSchemaOfSCIM","summary":"List all schemas of resources","description":"Lists all schemas for all supported resources. A schema is a collection of attribute definitions that describe the contents of an entire or partial resource, e.g., \"urn:ietf:params:scim:schemas:core:2.0:User\".  \n\nThe attribute definitions specify the name of the attribute, and metadata such as type (e.g., string, binary), cardinality (singular, multi, complex), mutability, and returnability.\n","tags":["scim"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Unique key used to ensure idempotent behavior.","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Indicates the response's preferred content encoding. Supported values are `gzip` and `identity`.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"The value is in the `Bearer {token}` format where {token} is a valid OAuth token generated by calling [Create an OAuth token](https://developer.zuora.com/api-references/api/operation/createToken).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids-Single","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_getSchemaOfSCIM_Response_200"}}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/Schemas/{id}":{"get":{"operationId":"scim_getTheSchemaOfSpecificSCIM","summary":"List schemas of a resource","description":"Gets a specific resource schema by ID.\n\nExamples:\n  ```\n  /scim/v2/Schemas/urn:ietf:params:scim:schemas:core:2.0:Group\n  /scim/v2/Schemas/urn:ietf:params:scim:schemas:core:2.0:User\n\n  /scim/v2/Schemas/urn:zuora:scim:schemas:1.0:UserExtension\n  /scim/v2/Schemas/urn:zuora:scim:schemas:1.0:GroupExtension\n  ```\n","tags":["scim"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_getTheSchemaOfSpecificSCIM_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTheSchemaOfSpecificSCIMRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTheSchemaOfSpecificSCIMRequestForbiddenError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTheSchemaOfSpecificSCIMRequestNotFoundError"}}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/ServiceProviderConfig":{"get":{"operationId":"scim_getTheServiceProviderConfig","summary":"Retrieve the service provider configuration","description":"Returns Zuora’s service provider configuration.","tags":["scim"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_getTheServiceProviderConfig_Response_200"}}}},"401":{"description":"Unauthorized - The request requires user authentication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTheServiceProviderConfigRequestUnauthorizedError"}}}},"403":{"description":"Forbidden - The server understands the request but refuses to authorize it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTheServiceProviderConfigRequestForbiddenError"}}}},"404":{"description":"Not Found - The requested resource could not be found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTheServiceProviderConfigRequestNotFoundError"}}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/Users":{"get":{"operationId":"scim_getListOfUsers","summary":"List users","description":"Returns a paginated list of users, 100 users per page by default.\nWhen querying larger instances, reduce the count parameter to 1,000 or less, and use the startIndex parameter to paginate through users.\nIt's possible to return a list of specific types of users with the filter parameter.\nExamples:\n```\n  /list?filter=userName eq \"testuser\"\n  /list??filter=status eq \"PENDING_ACTIVATION\"\n  /list??filter=id eq \"91f659cd-6ded-4d92-aa5c-144c3b5455c3\" and status eq \"PENDING_ACTIVATION\"\n```\n","tags":["scim"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_getListOfUsers_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetListOfUsersRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetListOfUsersRequestForbiddenError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetListOfUsersRequestNotFoundError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"scim_createAUser","summary":"Create a user","description":"Creates a user. Must include the userName attribute and an email address. User will be created as an SSO user by default and a federated ID must be provided for the user.\n","tags":["scim"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_createAUser_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAUserRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAUserRequestForbiddenError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAUserRequestNotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItems"}}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/Users/bulk":{"post":{"operationId":"scim_bulkCreateUsers","summary":"Bulk create users","description":"Creates multiple users within an organization.","tags":["scim"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_bulkCreateUsers_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateUsersRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateUsersRequestForbiddenError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateUsersRequestNotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItems"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"scim_bulkUpdateUsers","summary":"Bulk update users","description":"Updates an existing multiple user resource, overwriting values for specified attributes.","tags":["scim"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_bulkUpdateUsers_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateUsersRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateUsersRequestForbiddenError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItems"}}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/Users/delete":{"post":{"operationId":"scim_deleteAListOfUsers","summary":"Delete a list of users","description":"Sets multiple users to deactivate.\nThe value of the `id` should be the user's corresponding user ID.\n","tags":["scim"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_deleteAListOfUsers_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAListOfUsersRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAListOfUsersRequestForbiddenError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAListOfUsersRequestNotFoundError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"}}}}},"security":[{"bearerAuth":[]}]}},"/scim/v2/Users/{id}":{"get":{"operationId":"scim_getASpecificUser","summary":"Retrieve a user","description":"Retrieves a single user resource.\nThe value of the <id> should be the user's corresponding user ID.\n","tags":["scim"],"parameters":[{"name":"id","in":"path","description":"The ID of the user to retrieve.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_getASpecificUser_Response_200"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"scim_updateASpecificUser","summary":"Update a user","description":"Updates an existing user resource, overwriting all values for a user even if an attribute is empty or not provided.\nIf an attribute that had been set previously is left blank during a PUT operation, the new value will be blank in accordance with the data type of the attribute and the storage provider.\nDeactivated users can be re-enabled by setting the active attribute to true. The value of the <id> should be the user's corresponding user ID.\n","tags":["scim"],"parameters":[{"name":"id","in":"path","description":"The ID of the user to be updated.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_updateASpecificUser_Response_200"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":["string","null"]},"externalId":{"type":"string"},"meta":{"$ref":"#/components/schemas/ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaMeta"},"userName":{"type":"string"},"name":{"$ref":"#/components/schemas/ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaName"},"displayName":{"type":"string"},"preferredLanguage":{"type":"string"},"locale":{"type":"string"},"active":{"type":"boolean"},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaEmailsItems"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaGroupsItems"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaRolesItems"}},"urn:zuora:scim:schemas:1.0:UserExtension":{"$ref":"#/components/schemas/ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension"}}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"scim_deleteASpecificUser","summary":"Delete a user","description":"Deactivates a specific user identified by the user ID.\n","tags":["scim"],"parameters":[{"name":"id","in":"path","description":"The ID of the user to delete.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Unique key used to ensure idempotent behavior.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Indicates the response's preferred content encoding. Supported values are `gzip` and `identity`.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_deleteASpecificUser_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteASpecificUserRequestUnauthorizedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteASpecificUserRequestForbiddenError"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"scim_partialUpdateASpecificUser","summary":"Partially update a user","description":"Updates an existing user resource, overwriting values for specified attributes.\nThe value of the {id} should be the user's corresponding user ID. Attributes that are not provided in the request will remain unchanged. Updating a value to \" \" will clear and remove the field from the user's profile.\n","tags":["scim"],"parameters":[{"name":"id","in":"path","description":"User ID to update","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SCIM_partialUpdateASpecificUser_Response_200"}}}},"401":{"description":"Unauthorized - The request lacks valid authentication credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartialUpdateASpecificUserRequestUnauthorizedError"}}}},"403":{"description":"Forbidden - The server understands the request but refuses to authorize it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartialUpdateASpecificUserRequestForbiddenError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaSchemasItems"}},"Operations":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItems"}}},"required":["schemas","Operations"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/multi-organizations/data-labeling-job":{"post":{"operationId":"dataLabeling_POST_DataLabelingJob","summary":"Submit a data labeling job","description":"Submits a data labeling job.\n","tags":["dataLabeling"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitDataLabelingJobResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitDataLabelingJobRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/multi-organizations/data-labeling-job/{job-id}":{"get":{"operationId":"dataLabeling_GET_DataLabelingJob","summary":"Retrieve a data labeling job","description":"Retrieves a data labeling job. You can use this operation to track the status of the data labeling job.\n","tags":["dataLabeling"],"parameters":[{"name":"job-id","in":"path","description":"Identifier of the data labeling job.\n","required":true,"schema":{"type":"string","format":"uuid","minLength":32,"maxLength":32}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDataLabelingJobResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno/data-backfill/bookingdate/jobs":{"get":{"operationId":"dataBackfill_GET_ListBookingDateBackfillJobs","summary":"List all booking date backfill jobs","description":"Use this operation to list all booking date backfill jobs.\n","tags":["dataBackfill"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data_Backfill_GET_ListBookingDateBackfillJobs_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"dataBackfill_POST_CreateBookingDateBackfillJob","summary":"Create a booking date backfill job","description":"Creates a booking date backfill job to update the booking date with your charge's original created-on date.\n","tags":["dataBackfill"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data_Backfill_POST_CreateBookingDateBackfillJob_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno/data-backfill/bookingdate/jobs/{jobId}":{"get":{"operationId":"dataBackfill_GET_BookingDateBackfillJobById","summary":"Retrieve a booking date backfill job","description":"Use this operation to retrieve a specific booking date backfill job.\n","tags":["dataBackfill"],"parameters":[{"name":"jobId","in":"path","description":"ID of the job to retrieve\n","required":true,"schema":{"type":"string","minLength":32,"maxLength":32}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data_Backfill_GET_BookingDateBackfillJobById_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"dataBackfill_PUT_StopBookingDateBackfillJobById","summary":"Stop a booking date backfill job","description":"Use this operation to stop a booking date backfill job.\n","tags":["dataBackfill"],"parameters":[{"name":"jobId","in":"path","description":"ID of the job to stop\n","required":true,"schema":{"type":"string","minLength":32,"maxLength":32}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/V1UnoDataBackfillBookingdateJobsJobIdPutRequestBodyContentApplicationJsonSchemaStatus","description":"`Stopping` is currently the only allowed value.\n"}},"required":["status"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno/data-backfill/jobs":{"post":{"operationId":"dataBackfill_POST_CreateDataBackfillJob","summary":"Create a data backfill job","description":"Use this operation to perform the following types of data backfill actions. Also, you need to upload a corresponding file to perform a data backfill action.\n* Update Product Rate Plan Charge\n* Update Rate Plan Charge\n* Update Invoice Item\n* Update Credit Memo Detail\n* Update Debit Memo Detail\n* Update Invoice Item Adjustment\n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Perform_data_backfill\" target=\"_blank\">Perform data backfill</a>.\n","tags":["dataBackfill"],"parameters":[{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data_Backfill_POST_CreateDataBackfillJob_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/DataBackfillJob"},"file":{"type":"string","format":"binary","description":"A file containing the data about the fields that you want to backfill. This file must be a `.csv` file or a zipped `.csv` file. The maximum file size is 4 MB. The data in the file must be formatted according to the data backfill action type that you want to perform.\n\nYou can download a file template to view all fields supported for your data backfill. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Perform_data_backfill#Perform_data_backfill\" target=\"_blank\">Perform data backfill</a>.\n"},"checksum":{"type":"string","minLength":32,"maxLength":32,"description":"An MD5 checksum that is used to validate the integrity of the uploaded file."}},"required":["type","file"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno/data-backfill/jobs/{jobId}":{"get":{"operationId":"dataBackfill_GET_DataBackfillJobById","summary":"Retrieve a data backfill job","description":"Returns a single Data Backfill job","tags":["dataBackfill"],"parameters":[{"name":"jobId","in":"path","description":"ID of the job to retrieve\n","required":true,"schema":{"type":"string","minLength":32,"maxLength":32}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data_Backfill_GET_DataBackfillJobById_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"dataBackfill_PUT_StopDataBackfillJobById","summary":"Stop a data backfill job","description":"Use this operation to stop a data backfill job.\n","tags":["dataBackfill"],"parameters":[{"name":"jobId","in":"path","description":"ID of the job to stop\n","required":true,"schema":{"type":"string","minLength":32,"maxLength":32}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/V1UnoDataBackfillJobsJobIdPutRequestBodyContentApplicationJsonSchemaStatus","description":"`Stopping` is currently the only allowed value.\n"}},"required":["status"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno/data-backfill/listjobs":{"get":{"operationId":"dataBackfill_GET_ListDataBackfillJobs","summary":"List all data backfill jobs","tags":["dataBackfill"],"parameters":[{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data_Backfill_GET_ListDataBackfillJobs_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno/data-backfill/jobs/{type}/template":{"get":{"operationId":"dataBackfill_GET_DataBackfillTemplate","summary":"Download a data backfill template file","description":"Use this operation to download a data backfill template file of the specific type.\n","tags":["dataBackfill"],"parameters":[{"name":"type","in":"path","description":"Type of the template file that you want to download for data backfill\n","required":true,"schema":{"$ref":"#/components/schemas/DataBackfillJobType"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno/data-backfill/propagation/jobs":{"get":{"operationId":"dataBackfill_GET_listAutoBackfillJob","summary":"List all auto backfill jobs","description":"Use this operation to list all auto backfill jobs.\n","tags":["dataBackfill"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data_Backfill_GET_listAutoBackfillJob_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"dataBackfill_POST_CreateAutoBackfillJob","summary":"Create an auto backfill job","description":"Creates an autobackfill job to update the rate plan charge and order line item with product rate plan charge.\n","tags":["dataBackfill"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data_Backfill_POST_CreateAutoBackfillJob_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/V1UnoDataBackfillPropagationJobsPostRequestBodyContentApplicationJsonSchemaType"},"batchSize":{"type":"integer","minimum":1,"maximum":1000,"default":1000},"dryRun":{"type":"boolean","description":"If `true`, the job is created in dry-run mode. In dry-run mode, the data\nis not updated. The default value is `false`.\n"}},"required":["type"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno/data-backfill/propagation/jobs/{jobId}":{"get":{"operationId":"dataBackfill_GET_AutoBackfillJobById","summary":"Retrieve an auto backfill job","description":"Use this operation to retrieve a specific auto backfill job.\n","tags":["dataBackfill"],"parameters":[{"name":"jobId","in":"path","description":"ID of the job to retrieve\n","required":true,"schema":{"type":"string","minLength":32,"maxLength":32}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data_Backfill_GET_AutoBackfillJobById_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"dataBackfill_PUT_StopAutoBackfillJobById","summary":"Stop an auto backfill job","description":"Use this operation to stop an auto backfill job.\n","tags":["dataBackfill"],"parameters":[{"name":"jobId","in":"path","description":"ID of the job to stop\n","required":true,"schema":{"type":"string","minLength":32,"maxLength":32}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/V1UnoDataBackfillPropagationJobsJobIdPutRequestBodyContentApplicationJsonSchemaStatus","description":"`Stopping` is currently the only allowed value.\n"}},"required":["status"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno-regenerate/booking-transaction":{"post":{"operationId":"regenerate_POST_RegenerateBookingTransaction","summary":"Regenerate booking transactions","description":"Use this operation to generate booking transactions. This call is useful in the following two use cases:\n* During customer onboarding, there is a common scenario when customers perform data backfill or data fixes. To synchronize these changes from Billing to Revenue, use this API operation to regenerate booking transaction objects.\n* Customers choose to experiment with their use cases in the Sandbox environment before implementing them in the Production environment. During this experimentation phase, customers not only interact with data but also use this API operation to regenerate booking transaction objects.\n","tags":["regenerate"],"parameters":[{"name":"onlyReSend","in":"query","description":"If `onlyReSend` is true, existing booking transactions in the database will not be overridden and sent into Revenue for re-collecting, i.e. regenerate_flag is Y.\n\nIf `onlyReSend` is false, existing booking transactions in the database will be overridden and sent into Revenue, no matter what is the value of `reMigrate`.\n\n**Note:** If `onlyReSend` is true, the `reMigrate` can't be true.\n","required":false,"schema":{"type":"boolean"}},{"name":"reMigrate","in":"query","description":"If `reMigrate` is true, existing booking transactions in the database will be overridden and sent into Revenue for re-collecting, i.e. regenerate_flag is Y.\n\nIf `reMigrate` is false, existing booking transactions in the database will be overridden and sent into Revenue with regenerate_flag as N.\n\n**Note:** If `onlyReSend` is true, the `reMigrate` can't be true.\n","required":false,"schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateTransactionObjectResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateBookingRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno-regenerate/billing-transaction":{"post":{"operationId":"regenerate_POST_RegenerateBillingTransaction","summary":"Regenerate billing transactions","description":"Use this operation to generate billing transactions. This call is useful in the following two use cases: \n* During customer onboarding, there is a common scenario when customers perform data backfill or data fixes. To synchronize these changes from Billing to Revenue, use this API operation to regenerate billing transaction objects.\n* Customers choose to experiment with their use cases in the Sandbox environment before implementing them in the Production environment. During this experimentation phase, customers not only interact with data but also use this API operation to regenerate transaction objects.\n","tags":["regenerate"],"parameters":[{"name":"onlyReSend","in":"query","description":"If `onlyReSend` is true, existing booking transactions in the database will not be overridden and sent into Revenue for re-collecting, i.e. regenerate_flag is Y.\n\nIf `onlyReSend` is false, Whether existing booking transactions in the database will be overridden and sent into Revenue for re-collecting depends on the value of `reMigrate`.\n\n**Note:** If `onlyReSend` is true, the `reMigrate` can't be true.\n","required":false,"schema":{"type":"boolean"}},{"name":"reMigrate","in":"query","description":"If `reMigrate` is true, existing booking transactions in the database will be overridden and sent into Revenue for re-collecting, i.e. regenerate_flag is Y.\n\nIf `reMigrate` is false, existing booking transactions in the database will not be overridden and sent into Revenue with regenerate_flag as N.\n\n**Note:** If `onlyReSend` is true, the `reMigrate` can't be true.\n","required":false,"schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateTransactionObjectResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateBillingRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno-regenerate/rev-rec-events":{"post":{"operationId":"regenerate_POST_CreateRevRecEvents","summary":"Regenerate revenue recognition events transactions for Delivery Schedule","description":"Use this operation to generate Delivery Schedule based revenue recognition events transactions.\n","tags":["regenerate"],"parameters":[{"name":"subscriptionNumber","in":"query","description":"The subcription number.\n","required":false,"schema":{"type":"string"}},{"name":"mode","in":"query","description":"The generation mode.","required":false,"schema":{"$ref":"#/components/schemas/V1UnoRegenerateRevRecEventsPostParametersMode","default":"Incremental"}},{"name":"forRevenueRecollect","in":"query","description":"Indicates whether the data regenerated is for Zuora Revenue to recollect.","required":false,"schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateRevRecEventsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/uno-regenerate/rev-rec-events/daily-consumption":{"post":{"operationId":"regenerate_POST_GenerateRevRecEventsForDailyConsumption","summary":"Regenerate revenue recognition events transactions for Daily Consumption","description":"Use this operation to generate Daily Consumption based revenue recognition events transactions when the <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> feature is enabled.\n","tags":["regenerate"],"parameters":[{"name":"forRevenueRecollect","in":"query","description":"Indicates whether the data regenerated is for Zuora Revenue to recollect.","required":false,"schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateRevRecEventsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyConsumptionRevRecRequest"}}}},"security":[{"bearerAuth":[]}]}},"/test-environments":{"get":{"operationId":"testEnvironments_getAllTestEnvironments","summary":"List all test environments","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","tags":["testEnvironments"],"parameters":[{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved a list of Test Environment responses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEnvironmentArrayResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/test-environments/{id}":{"get":{"operationId":"testEnvironments_getTestEnvironment","summary":"Retrieve a test environment response","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","tags":["testEnvironments"],"parameters":[{"name":"id","in":"path","description":"Test Environment ID","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved Test Environment response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEnvironmentResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/test-environments/{id}/jobs":{"get":{"operationId":"testEnvironmentJobs_getAllJobsOfTestEnvironment","summary":"List all jobs of a test environment","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","tags":["testEnvironmentJobs"],"parameters":[{"name":"id","in":"path","description":"Test Environment ID","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"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":{"$ref":"#/components/schemas/GetAllJobsOfTestEnvironmentRequestBadRequestError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"testEnvironmentJobs_createTestEnvironmentJob","summary":"Create a test environment job","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","tags":["testEnvironmentJobs"],"parameters":[{"name":"id","in":"path","description":"Test Environment ID","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTestEnvironmentJobRequestBadRequestError"}}}}},"requestBody":{"description":"jobRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequest"}}}},"security":[{"bearerAuth":[]}]}},"/test-environments/{id}/jobs/{jobId}":{"get":{"operationId":"testEnvironmentJobs_getJobOfTestEnvironment","summary":"Retrieve a job of a test environment","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","tags":["testEnvironmentJobs"],"parameters":[{"name":"id","in":"path","description":"Test Environment ID","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","description":"Test Environment Job ID","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved a Test Environment job response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/test-environments/{id}/jobs/{jobId}/actions":{"post":{"operationId":"testEnvironmentJobs_performActionOfJob","summary":"Perform an action on a test environment job","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","tags":["testEnvironmentJobs"],"parameters":[{"name":"id","in":"path","description":"Test Environment ID","required":true,"schema":{"type":"string"}},{"name":"jobId","in":"path","description":"Test Environment Job ID","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully submitted Test Environment job action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}}},"requestBody":{"description":"jobActionRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobActionRequest"}}}},"security":[{"bearerAuth":[]}]}},"/test-environments/{id}/notifications":{"get":{"operationId":"testEnvironmentNotifications_getAllEmailNotificationOfTestEnv","summary":"List all email notifications of a test environment","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","tags":["testEnvironmentNotifications"],"parameters":[{"name":"id","in":"path","description":"Test Environment ID","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully fetched all notifications","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEnvironmentNotificationArrayResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"testEnvironmentNotifications_createTestEnvironmentNotification","summary":"Create a test environment notification","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","tags":["testEnvironmentNotifications"],"parameters":[{"name":"id","in":"path","description":"Test Environment ID","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEnvironmentNotificationResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTestEnvironmentNotificationRequestBadRequestError"}}}}},"requestBody":{"description":"notificationRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEnvironmentNotificationRequest"}}}},"security":[{"bearerAuth":[]}]}},"/test-environments/{id}/notifications/{notificationId}":{"get":{"operationId":"testEnvironmentNotifications_getTestEnvironmentNotification","summary":"Retrieve a notification response of a test environment","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","tags":["testEnvironmentNotifications"],"parameters":[{"name":"id","in":"path","description":"Test Environment ID","required":true,"schema":{"type":"string"}},{"name":"notificationId","in":"path","description":"Test Environment Notification ID","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved a Test Environment notification response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEnvironmentNotificationResponse"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"testEnvironmentNotifications_deleteTestEnvironmentNotification","summary":"Delete a notification of a test environment","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","tags":["testEnvironmentNotifications"],"parameters":[{"name":"id","in":"path","description":"Test Environment ID","required":true,"schema":{"type":"string"}},{"name":"notificationId","in":"path","description":"Test Environment Notification ID","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully deleted a notification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEnvironmentNotificationResponse"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"operationId":"testEnvironmentNotifications_updateTestEnvironmentNotification","summary":"Update a test environment notification","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","tags":["testEnvironmentNotifications"],"parameters":[{"name":"id","in":"path","description":"Test Environment ID","required":true,"schema":{"type":"string"}},{"name":"notificationId","in":"path","description":"Test Environment Notification ID","required":true,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}}],"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":{"$ref":"#/components/schemas/UpdateTestEnvironmentNotificationRequestBadRequestError"}}}}},"requestBody":{"description":"notificationRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEnvironmentNotificationRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/action/create":{"post":{"operationId":"actions_Action_POSTcreate","summary":"Create","description":"Use the create call to create one or more objects of a specific type. You can specify different types in different create calls, but each create call must apply to only one type of object.\n\n### Limitations \n\nThis call has the following limitations:\n\n* A maximum of 50 objects are supported in a single call.\n* The Orders feature is not supported.\n* The Invoice Settlement feature is not supported. This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement.\n* The default WSDL version for Actions is 79. To create objects according to a different 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\n### How to use this call\n\nYou can create on an array of one or more zObjects. The fields you should specify can be found in the corresponding \"CRUD: Create an *zObject*\" operation.\nFor example, to create one or multiple accounts, use the request fields in the [CRUD: Create an account](https://developer.zuora.com/api-references/older-api/operation/Object_POSTAccount/) operation.\n\nIt returns an array of SaveResults sorted in the same order, indicating the success or failure of creating each object. The following information applies to this call:\n\n* You cannot pass in null zObjects.\n* You can pass in a maximum of 50 zObjects at a time.\n* All objects must be of the same type.\n\n#### Using Create and Subscribe Calls \n\nBoth the Create and Subscribe calls will create a new account. However, there are differences between the calls.\n\nUse the create call to create an account independent of a subscription.\n\nUse the subscribe call to create the account with the subscription and the initial payment information.\n","tags":["actions"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SaveResult"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyActioncreateRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/action/delete":{"post":{"operationId":"actions_Action_POSTdelete","summary":"Delete","description":"Deletes one or more objects of the same type. You can specify different types in different delete calls, but each delete call must apply only to one type of object.\n\nThe following information applies to this call:\n\n* You will need to first determine the IDs for the objects you wish to delete.\n* You cannot pass in any null IDs.\n* All objects in a specific delete call must be of the same type.\n\n\n### Objects per Call\n50 objects are supported in a single call.\n","tags":["actions"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeleteResult"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyActiondeleteRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/action/query":{"post":{"operationId":"actions_Action_POSTquery","summary":"Query","description":"The query call sends a query expression by specifying the object to query, the fields to retrieve from that object, and any filters to determine whether a given object should be queried.\n\nYou can use [Zuora Object Query Language](https://knowledgecenter.zuora.com/DC_Developers/K_Zuora_Object_Query_Language)(ZOQL) to construct those queries, passing them through the `queryString`.\n\nOnce the call is made, the API executes the query against the specified object and returns a query response object to your application. Your application can then iterate through rows in the query response to retrieve information.\n\n### Limitations\n\nThis call has the following limitations:\n\n* All [ZOQL limitations](https://knowledgecenter.zuora.com/Central_Platform/Query/ZOQL#ZOQL_Limitations) apply.\n* All ZOQL keywords must be in lower case.\n* The number of records returned is limited to 2000 records.\n* The Invoice Settlement feature is not supported. This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement.\n* The Orders feature is not supported, which means that the objects listed in [Orders Object Model](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/BA_Orders_Object_Model) are not supported.\n* The Active Rating feature is not supported.\n* The default WSDL version for Actions is 79. To query objects or fields according to a different 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* Fields with NULL values are not returned in the response.\n","tags":["actions"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyActionqueryResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyActionqueryRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/action/queryMore":{"post":{"operationId":"actions_Action_POSTqueryMore","summary":"QueryMore","description":"Use queryMore to request additional results from a previous query call. If your initial query call returns more than 2000 results, you can use queryMore to query for the additional results.\n\n\nAny `queryLocator` results greater than 2,000, will only be stored by Zuora for 5 days before it is deleted.\n\n\n This call sends a request for additional results from an initial query call. If the initial query call returns more than 2000 results, you can use the `queryLocator` returned from query to request the next set of results.\n\n\n**Note:** Zuora expires queryMore cursors after 15 minutes of activity.\n\n\nTo use queryMore, you first construct a query call. By default, the query call will return up to 2000 results. If there are more than 2000 results, query will return a boolean `done`, which will be marked as `false`, and a `queryLocator`, which is a marker you will pass to queryMore to get the next set of results.\n","tags":["actions"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyActionqueryMoreResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyActionqueryMoreRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/action/update":{"post":{"operationId":"actions_Action_POSTupdate","summary":"Update","description":"\nUpdates the information in one or more objects of the same type. You can specify different types of objects in different update calls, but each specific update call must apply to only one type of object.\n\n\n### Limitations \n\nThis call has the following limitations:\n\n* A maximum of 50 objects are supported in a single call.\n* The Invoice Settlement feature is not supported. This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement.\n* The default WSDL version for Actions is 79. To update objects or fields according to a different 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\n### How to use this call? \n\nYou can update an array of one or more zObjects. The fields you should specify can be found in the corresponding \"CRUD: Update an *zObject*\" operation.\nFor example, to update one or multiple accounts, use the request fields in the [CRUD: Update an account](https://developer.zuora.com/api-references/older-api/operation/Object_PUTAccount/) operation.\n\nIt returns an array of SaveResults sorted in the same order, indicating the success or failure of updating each object. The following information applies to this call:\n\n* You cannot pass in null zObjects.\n* You can pass in a maximum of 50 zObjects at a time.\n* All objects must be of the same type.\n* For each field in each object, you must determine that object's ID. Then populate the fields that you want update with the new information.\n* Zuora ignores unrecognized fields in update calls. For example, if an optional field is spelled incorrectly or a field that does not exist is specified, Zuora ignores the field and continues to process the call. No error message is returned for unrecognized fields.\n","tags":["actions"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SaveResult"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyActionupdateRequest"}}}},"security":[{"bearerAuth":[]}]}},"/settings/batch-requests":{"post":{"operationId":"settings_POST_ProcessSettingsBatchRequest","summary":"Submit settings requests","description":"Submit a batch of settings requests by this single API operation.\n\nSee a [200 response sample in CSV format](https://developer.zuora.com/settings-api/ListAllSettingsResponseSample.csv) that lists all available settings. \n\nSee a [200 response sample in JSON format](https://developer.zuora.com/settings-api/ListAllSettingsResponseSample.json) that lists all available parameters of each setting.\n\nBy default, one batch settings request can contain a maximum of 100 single operation requests, including: \n* All the single requests in the process batch settings request.\n* All the children requests of the single requests.\n\nThis maximum value is configurable.\n","tags":["settings"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsBatchResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsBatchRequest"}}}},"security":[{"bearerAuth":[]}]}},"/settings/listing":{"get":{"operationId":"settings_GET_ListAllSettings","summary":"List all settings","description":"Get a list of all available settings in your tenant. \n\nThe response message is by default in JSON format. If you want to receive all the available settings in csv format, include `Accept` in the header parameters and set it to `application/csv`.\n            \nSee a [200 response sample in CSV format](https://developer.zuora.com/settings-api/ListAllSettingsResponseSample.csv) that lists all available settings. \n\nSee a [200 response sample in JSON format](https://developer.zuora.com/settings-api/ListAllSettingsResponseSample.json) that lists all available parameters of each setting.\n\nYou can find a specific operation of an available setting item in your tenant from the 200 response body of this call. See the following common use cases of Settings API for how to operate on a specifc setting item.\n\n * Billing Rules:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/billing-rule-settings/get-a-specific-setting---billing-rules' target='_blank'>Get a specific setting - Billing Rules</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/billing-rule-settings/update-a-specific-setting---billing-rules' target='_blank'>Update a specific setting - Billing Rules</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/billing-rule-settings/get-accounting-rules---billing-rules' target='_blank'>Get accounting rules - Billing Rules</a>\n * Age Buckets:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/age-bucket-settings/get-age-buckets' target='_blank'>Get Age Buckets</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/age-bucket-settings/update-age-buckets' target='_blank'>Update Age Buckets</a>\n * Invoice Templates:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/invoice-template-settings/get-a-specific-invoice-template' target='_blank'>Get a specific Invoice Template</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/invoice-template-settings/get-all-invoice-templates' target='_blank'>Get all Invoice Templates</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/invoice-template-settings/create-a-new-invoice-template' target='_blank'>Create a new Invoice Template</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/invoice-template-settings/update-a-specific-invoice-template' target='_blank'>Update a specific Invoice Template</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/invoice-template-settings/delete-a-specific-invoice-templates' target='_blank'>Delete a specific Invoice Template</a>\n * Invoice Group:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/invoice-group-settings/create-an-invoice-group' target='_blank'>Create an invoice group</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/invoice-group-settings/retrieve-all-invoice-groups' target='_blank'>Retrieve all invoice groups</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/invoice-group-settings/get-a-specific-invoice-group' target='_blank'>Get a specific invoice group</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/invoice-group-settings/update-an-invoice-group' target='_blank'>Update an invoice group</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/invoice-group-settings/delete-an-invoice-group' target='_blank'>Delete an invoice group</a>\n * Communications Profiles:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/communication-profile-settings/create-a-new-communication-profile' target='_blank'>Create a new Communication Profile</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/communication-profile-settings/get-a-communication-profile' target='_blank'>Get a Communication Profile</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/communication-profile-settings/get-all-communication-profiles' target='_blank'>Get all Communication Profiles</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/communication-profile-settings/modify-a-communication-profile' target='_blank'>Modify a Communication Profile</a>\n * Notification Definitions:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/notification-definition-settings/get-all-notifications-under-a-particular-communication-profile' target='_blank'>Get all notification definitions under a particular Communication Profile</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/notification-definition-settings/create-a-notification-definition-under-a-particular-communication-profile' target='_blank'>Create a notification definition under a particular Communication Profile</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/notification-definition-settings/get-a-notification-definition' target='_blank'>Get a notification definition</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/notification-definition-settings/update-a-notification-definition' target='_blank'>Update a notification definition</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/notification-definition-settings/delete-a-notification-definition' target='_blank'>Delete a notification definition</a>\n * Reusable Blocks:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/reusable-block-settings/create-or-update-reusable-blocks' target='_blank'>Create or update reusable blocks</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/reusable-block-settings/get-all-reusable-blocks' target='_blank'>Get all reusable blocks</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/reusable-block-settings/get-a-reusable-block' target='_blank'>Get a reusable block</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/reusable-block-settings/update-a-reusable-block' target='_blank'>Update a reusable block</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/reusable-block-settings/delete-a-reusable-block' target='_blank'>Delete a reusable block</a>\n * Chart of Accounts:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/chart-of-account-settings/get-chart-of-accounts' target='_blank'>Get Chart of Accounts</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/chart-of-account-settings/add-a-new-chart-of-account' target='_blank'>Add a new Chart of Account</a>\n * Quote Templates:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/quote-template-settings/get-all-quote-templates' target='_blank'>Get all Quote Templates</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/quote-template-settings/get-a-specific-quote-template' target='_blank'>Get a specific Quote Template</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/quote-template-settings/create-a-new-quote-template' target='_blank'>Create a new Quote Template</a>\n * Direct Integration Tax Engine:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/avalara-tax-engine-settings#create-an-avalara-tax-engine-0' target='_blank'>Create a Tax Engine</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/avalara-tax-engine-settings#get-an-avalara-tax-engine-0' target='_blank'>Retrieve a Tax Engine</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/avalara-tax-engine-settings#update-an-avalara-tax-engine-0' target='_blank'>Update a Tax Engine</a>\n * Connect Tax Engines:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/connect-tax-engines-settings' target='_blank'>Create a Connect Tax Engine</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/connect-tax-engines-settings#get-a-connect-tax-engine-0' target='_blank'>Get a Connect Tax Engine</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/connect-tax-engines-settings#update-a-connect-tax-engine-0' target='_blank'>Update a Connect Tax Engine</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/connect-tax-engines-settings#delete-a-connect-tax-engine-0' target='_blank'>Delete a Connect Tax Engine</a>\n * Zuora Tax Engine:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-engine-settings#get-tax-engines-0' target='_blank'>Get Tax Engines</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-engine-settings#create-tax-code-using-zuora-tax-engine-0' target='_blank'>Create Tax Code using Zuora Tax Engine</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-engine-settings#get-tax-code-using-zuora-tax-engine-0' target='_blank'>Get Tax Code using Zuora Tax Engine</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-engine-settings#update-tax-code-using-zuora-tax-engine-0' target='_blank'>Update Tax Code using Zuora Tax Engine</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-engine-settings#delete-tax-code-using-zuora-tax-engine-0' target='_blank'>Delete Tax Code using Zuora Tax Engine</a>\n * Zuora Tax Rate Period:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-rate-period-settings#create-tax-rate-periods-0' target='_blank'>Create Tax Rate Periods</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-rate-period-settings#get-tax-rate-periods-0' target='_blank'>Get Tax Rate Periods</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-rate-period-settings#update-tax-rate-periods-0' target='_blank'>Update Tax Rate Periods</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-rate-period-settings#delete-tax-rate-periods-0' target='_blank'>Delete Tax Rate Periods</a>\n* Zuora Tax Code:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-code-api-settings#get-specific-tax-code-id-0' target='_blank'>Get Specific Tax Code ID</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-code-api-settings#create-tax-codes-0' target='_blank'>Create Tax Codes</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-code-api-settings#update-tax-codes-0' target='_blank'>Update Tax Codes</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-code-api-settings#delete-tax-codes-0' target='_blank'>Delete Tax Codes</a>\n* Zuora Tax Rates:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-rates-api-settings#retrieve-a-list-of-tax-rates-0' target='_blank'>Get List of Tax Rates</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-rates-api-settings#create-tax-rates-0' target='_blank'>Create Tax Rates</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-rates-api-settings#update-tax-rates-0' target='_blank'>Update Tax Rates</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/zuora-tax-rates-api-settings#delete-tax-rates-0' target='_blank'>Delete Tax Rates</a>\n * Units of Measure:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/unit-of-measure-settings/create-a-unit-of-measure' target='_blank'>Create a Unit of Measure</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/unit-of-measure-settings/get-a-unit-of-measure' target='_blank'>Get a Unit of Measure</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/unit-of-measure-settings/get-all-units-of-measure' target='_blank'>Get all Units of Measure</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/unit-of-measure-settings/update-a-unit-of-measure' target='_blank'>Update a Unit of Measure</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/unit-of-measure-settings/delete-a-unit-of-measure' target='_blank'>Delete a Unit of Measure</a>\n * Summary Statement:\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/summary-statement-settings#get-a-specific-summary-statement-template-0' target='_blank'>Get a specific summary statement template</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/summary-statement-settings#get-all-templates-for-summary-statement-0' target='_blank'>Get all templates for summary statement</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/summary-statement-settings#create-a-new-summary-statement-template-0' target='_blank'>Create a new summary statement template</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/summary-statement-settings#update-a-specific-summary-statement-template-0' target='_blank'>Update a specific summary statement template</a>\n   * <a href='https://docs.zuora.com/en/zuora-platform/system-management/settings-api/settings-api-tutorials/summary-statement-settings#deletea-specific-summary-statement-template-0' target='_blank'>Delete a specific summary statement template</a>\n","tags":["settings"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Accept","in":"header","description":"Specifies response media type. If you omit the `Accept` header parameter, the response body is by default in JSON format. If you include `Accept` header parameter and set it to `application/csv`, the response body is in csv format.\n","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAllSettingsResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/files/{file-id}":{"get":{"operationId":"files_GET_Files","summary":"Retrieve a file","description":"Retrieve files such as export results, invoices, and accounting period reports.\n\nThe response content type depends on the type of file that you retrieve.\nFor example, if you retrieve an invoice PDF, the value of the `Content-Type`\nheader in the response is `application/pdf;charset=UTF-8`.\n\nOther content types include:\n\n- `text/csv` for CSV files\n- `application/msword` for Microsoft Word files\n- `application/vnd.ms-excel` and `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`\n  for Microsoft Excel files (*.xls* and *.xlsx* respectively)\n- `application/zip` and `application/x-gzip` for ZIP and Gzip files respectively\n- `text/html` for HTML files\n- `text/plain` for text files\n\nThe response always contains character encoding information in the `Content-Type` header.\nFor example, `Content-Type: application/zip;charset=UTF-8`.\n\n**Note:** The maximum file size is 2,047 MB. If you have a data request that exceeds this limit, Zuora returns the following 403 response: `<security:max-object-size>2047MB</security:max-object-size>`. Submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a> to determine if large file optimization is an option for you.\n","tags":["files"],"parameters":[{"name":"file-id","in":"path","description":"The Zuora ID of the file to retrieve.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Files_GET_Files_Response_200"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/files/{file-id}/restore":{"put":{"operationId":"files_PUT_Files","summary":"Restore a file","description":"Restores a previously archived file to its RESTORED status. Once a file is archived, it cannot be used directly until the file is restored using this API.\n### Notes\n- This API operation will fail if the count of restored files exceeds the quota limit (1000 by default) in the past 24 hours.\n- The actual restoration process may take between 12 to 48 hours to complete.\n- You can monitor the status of the file restoration process using the [Retrieve file status](https://developer.zuora.com/api-references/api/operation/GET_FileStatus) API operation until the status transitions to `RESTORED`.\n","tags":["files"],"parameters":[{"name":"file-id","in":"path","description":"The Zuora ID of the file to restore.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreFile"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/files/{file-id}/status":{"get":{"operationId":"files_GET_FileStatus","summary":"Retrieve file status","description":"Retrieves the status of the file.\n","tags":["files"],"parameters":[{"name":"file-id","in":"path","description":"The Zuora ID of the file to for which the status should be retrieved.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveFileStatus"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/import":{"post":{"operationId":"imports_Object_POSTImport","summary":"CRUD: Create an import","description":"Creates a data import.\n","tags":["imports"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyPostImport"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"File":{"type":"string","format":"binary","description":"The data to import.\n"},"ImportType":{"$ref":"#/components/schemas/V1ObjectImportPostRequestBodyContentMultipartFormDataSchemaImportType","description":"The type of data to import.\n"},"Name":{"type":"string","description":"A descriptive name for the import.\n"}},"required":["File","ImportType","Name"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/import/{id}":{"get":{"operationId":"imports_Object_GETImport","summary":"CRUD: Retrieve an import","description":"Retrieve an data import job.","tags":["imports"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"fields","in":"query","description":"Object fields to return","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyGetImport"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyNoDataResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/custom-exchange-rates/{currency}":{"get":{"operationId":"customExchangeRates_GET_CustomExchangeRates","summary":"List custom exchange rates by currency","description":"This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n\nThis reference describes how to query custom foreign exchange rates from Zuora. You can use this API method to query exchange rates only if you use a custom exchange rate provider and upload rates with the Import Foreign Exchange Rates mass action. \n","tags":["customExchangeRates"],"parameters":[{"name":"currency","in":"path","description":"The target base currency of the tenant. The exchange rates in the response are calculated in relation to the target currency.\n\nThe value must be a three-letter currency code, for example, USD. \n","required":true,"schema":{"type":"string"}},{"name":"startDate","in":"query","description":"Start date of the date range for which you want to get exchange rates.\n\nThe date must be in yyyy-mm-dd format, for example, 2016-01-15. The start date cannot be later than the end date.\n","required":true,"schema":{"type":"string"}},{"name":"endDate","in":"query","description":"End date of the date range for which you want to get exchange rates.\n\nThe date must be in yyyy-mm-dd format, for example, 2016-01-16. The end date can be a maximum of 90 days after the start date.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCustomExchangeRatesType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/attachments":{"post":{"operationId":"attachments_POST_Attachments","summary":"Create an attachment","description":"Use the Add Attachment REST request with a multipart/form-data to attach a document file to an Account, a Subscription, an Invoice, a Credit Memo, or a Debit Memo.\n\nYou can only use this operation if you have a Billing role that includes the Manage Attachments permission.\nFor more information, see [Billing roles](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles).\nTo change your Billing role, contact your Zuora platform administrator.\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","tags":["attachments"],"parameters":[{"name":"description","in":"query","description":"Description of the attachment document.\n","required":false,"schema":{"type":"string"}},{"name":"associatedObjectType","in":"query","description":"The type of the object to add attachements for. \n","required":true,"schema":{"$ref":"#/components/schemas/V1AttachmentsPostParametersAssociatedObjectType"}},{"name":"associatedObjectKey","in":"query","description":"For the Subscription type, specify the Subscription Number. An attachment is tied to the Subscription Number and thus viewable with every subscription version.\n\nFor Account, Credit Memo, and Debit Memo, specify the corresponding ID or number. For Invoice, specify the corresponding ID.\n","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTAttachmentResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The file to be attached. Files with the following extensions are supported: .pdf, .csv, .png, .xlsx, .xls, .doc, .docx, .msg, .jpg, .txt, .htm, .html, .eml, .pptx, .gif, .rtf, .xml, .jpeg, .log, .cls\n\nThe maximum file size is 4 MB.\n"}},"required":["file"]}}}},"security":[{"bearerAuth":[]}]}},"/v1/attachments/{attachment-id}":{"get":{"operationId":"attachments_GET_Attachments","summary":"Retrieve an attachment","description":"Use the View Attachment REST request to retrieve information about an attachment document.\n\nYou can only use this operation if you have a Billing role that includes the Manage Attachments permission.\nFor more information, see [Billing roles](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles).\nTo change your Billing role, contact your Zuora platform administrator.\n","tags":["attachments"],"parameters":[{"name":"attachment-id","in":"path","description":"Id of the attachment you want to view.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAttachmentResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"attachments_PUT_Attachments","summary":"Update an attachment","description":"Use the Edit Attachment REST request to make changes to the descriptive fields of an attachment, such as the description and the file name. You cannot change the actual content of the attached file in Zuora. If you need to change the actual content, you need to delete the attachment and add the updated file as a new attachment.\n\nYou can only use this operation if you have a Billing role that includes the Manage Attachments permission.\nFor more information, see [Billing roles](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles).\nTo change your Billing role, contact your Zuora platform administrator.\n","tags":["attachments"],"parameters":[{"name":"attachment-id","in":"path","description":"Id of the attachment to be updated.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTAttachmentType"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"attachments_DELETE_Attachments","summary":"Delete an attachment","description":"Use the Delete Attachment REST request to delete an attachment from a Zuora object.\n\nYou can only use this operation if you have a Billing role that includes the Manage Attachments permission and the Delete Attachments permission.\nFor more information, see [Billing roles](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles).\nTo change your Billing role, contact your Zuora platform administrator.\n","tags":["attachments"],"parameters":[{"name":"attachment-id","in":"path","description":"Id of the attachment to be deleted.","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/attachments/{object-type}/{object-key}":{"get":{"operationId":"attachments_GET_AttachmentsList","summary":"List attachments by object type and key","description":"Use the View Attachment REST request to get a list of attachments on an account, an invoice, a subscription, a credit memo, or a debit memo.\n\nYou can only use this operation if you have a Billing role that includes the Manage Attachments permission.\nFor more information, see [Billing roles](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles).\nTo change your Billing role, contact your Zuora platform administrator.\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","tags":["attachments"],"parameters":[{"name":"object-type","in":"path","description":"The type of the object to list attachements for.\n","required":true,"schema":{"$ref":"#/components/schemas/V1AttachmentsObjectTypeObjectKeyGetParametersObjectType"}},{"name":"object-key","in":"path","description":"ID of the object to list attachements for.\n - If `object-type` is `account`, specify an account ID or number.\n - If `object-type` is `invoice`, specify an invoice ID.\n - If `object-type` is `subscription`, specify a subscription number.\n - If `object-type` is `creditmemo`, specify a credit memo ID or number.\n - If `object-type` is `debitmemo`, specify a debit memo ID or number.\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETAttachmentsResponseType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/object-metadata":{"get":{"operationId":"metadata_listMetadataObjects","summary":"List available metadata objects","description":"Returns all available objects for the specified metadata context.\n\nEach object includes basic metadata such as object name, label, category,\ncustom field support indicator, and a link to retrieve the full object schema.\n\nThis list operation is supported only for Data Query(DQ) and Object Query(OQ) contexts.\n\nFor Data Source Export and Aggregate Query API contexts, this operation is not supported. To retrieve metadata for Data Source Export(DSE) or\nAggregate Query API(AQuA), use [Retrieve metadata object schema](https://developer.zuora.com/v1-api-reference/api/metadata/retrievemetadataobjectschema) with the required context.\n","tags":["metadata"],"parameters":[{"name":"context","in":"query","description":"Data context for which to retrieve metadata.\n\nSupported values:\n- DQ: Data Query context\n- OQ: Object Query context\n","required":true,"schema":{"$ref":"#/components/schemas/ObjectMetadataGetParametersContext"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of available metadata objects.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GetObjectSummary"}}}}},"400":{"description":"Authentication failed or credentials are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataApiError"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataApiError"}}}}},"security":[{"bearerAuth":[]}]}},"/object-metadata/{objectName}":{"get":{"operationId":"metadata_retrieveMetadataObjectSchema","summary":"Retrieve metadata object schema","description":"Returns the complete JSON Schema for the specified object.\n\nThe response includes standard JSON Schema properties and Zuora-specific\nmetadata extensions, including field types, constraints, relationships,\ncustom field indicators, and context-specific capabilities.\n\nFor Data Query(DQ) and Object Query(OQ) contexts, object name matching is case-insensitive. The\nresponse uses the canonical object name returned by the upstream source.\n\nFor Data Source Export(DSE) or Aggregate Query API(AQuA) contexts, the response `title` and `$id` use the canonical object name returned by Billing.\n","tags":["metadata"],"parameters":[{"name":"objectName","in":"path","description":"Name of the object to retrieve schema for.\n\nFor Data Query(DQ) and Object Query(OQ), matching is case-insensitive.\n\nFor Data Source Export(DSE) and Aggregate Query API(AQuA), use the object name casing expected by Billing Describe.\n","required":true,"schema":{"type":"string","pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"}},{"name":"context","in":"query","description":"Data context for which to retrieve metadata.\n\nSupported values:\n- DQ: Data Query context\n- OQ: Object Query context\n- DSE: Data Source Export context\n- AQUA: Analytics Query context\n","required":true,"schema":{"$ref":"#/components/schemas/ObjectMetadataObjectNameGetParametersContext"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"JSON Schema for the specified object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetJsonSchema"}}}},"400":{"description":"Object not found in the specified context.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataApiError"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataApiError"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/describe/{object}":{"get":{"operationId":"describe_GET_Describe","summary":"Describe an object","description":"Provides a reference listing of each object that is available in your Zuora tenant.\n\nThe information returned by this call is useful if you are using [CRUD: Create Export](https://developer.zuora.com/api-references/api/operation/Object_POSTExport) or the [AQuA API](https://knowledgecenter.zuora.com/DC_Developers/T_Aggregate_Query_API) to create a data source export. See [Export ZOQL](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL) for more information.\n\n### Response\nThe response contains an XML document that lists the fields of the specified object. Each of the object's fields is represented by a `<field>` element in the XML document.\n\n \nResponse sample:\n```xml\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<object>\n  <name>ProductRatePlanCharge</name>\n  <label>Product Rate Plan Charge</label>\n  <fields>\n    ...\n    <field>\n      <name>TaxMode</name>\n      <label>Tax Mode</label>\n      <type>picklist</type>\n      <options>\n        <option>TaxExclusive</option>\n        <option>TaxInclusive</option>\n      </options>\n      <contexts>\n        <context>export</context>\n      </contexts>\n      ...\n    </field>\n    ...\n  </fields>\n</object>\n```\n\n\nIt is strongly recommended that your integration checks `<contexts>` elements in the response. If your integration does not check `<contexts>` elements, your integration may process fields that are not available for use in data source exports. See [Changes to the Describe API](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL/Changes_to_the_Describe_API) for more information.\n","tags":["describe"],"parameters":[{"name":"object","in":"path","description":"API name of an object in your Zuora tenant. For example, `InvoiceItem`. See [API object names for Describe](https://developer.zuora.com/v1-api-reference/api-object-names/) for the list of valid object names.\n\nDepending on the features enabled in your Zuora tenant, you may not be able to list the fields of some objects.\n","required":true,"schema":{"type":"string"}},{"name":"showCurrencyConversionInformation","in":"query","description":"Set the value to `yes` to get additional currency conversion information in the result.\n**Notes:** \n- When **Automatically include additional Currency Conversion information** in currency conversion settings is checked, you can pass `yes` to get additional fields in the result. See [Configure Foreign Currency Conversion](https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance/D_Finance_Settings/F_Foreign_Currency_Conversion#:~:text=Automatically%20include%20additional%20Currency%20Conversion%20information%20in%20data%20source%20exports%3A%C2%A0Select%20this%20check%20box%20if%20you%20want%20to%20access%20foreign%20currency%20conversion%20data%20through%20data%20source%20exports.) to check the **Automatically include additional Currency Conversion information**.\n- By default if you need additional Currency Conversion information, submit a request at <a href=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a>. Set this parameter value to `no` to not include the additional currency conversion information in the result.\n","required":false,"schema":{"type":"string"}},{"name":"showRelationships","in":"query","description":"Indicates whether to return joined objects information in the response. The default value is `false`, meaning no related object information is returned.\n\nIf you set this field to `true`, an additional `<related-objects />` section is returned. For example, if you are describing the Account object with this parameter set to `true`, the response will include information similar to the following snippet:\n```xml\n<related-objects>\n  <object href=\"https://apisandbox-api.zuora.com/rest/api/describe/Contact\">\n    <name>BillToContact</name>\n    <label>Bill To</label>\n    <cardinality>TO_ONE</cardinality>\n    <direct-relationship>true</direct-relationship>\n    <path>Account.BillToContact</path>\n  </object>\n  ...\n<related-objects>\n```\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Returns an XML document that lists the fields of the specified object.\n","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/product":{"post":{"operationId":"products_Object_POSTProduct","summary":"CRUD: Create a product","description":"","tags":["products"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateOrModifyResponse"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateProduct"}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/product/{id}":{"get":{"operationId":"products_Object_GETProduct","summary":"CRUD: Retrieve a product","description":"Retrieve a specific product.","tags":["products"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"fields","in":"query","description":"Object fields to return","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyGetProduct"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyNoDataResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"products_Object_PUTProduct","summary":"CRUD: Update a product","description":"Updates a Product object.","tags":["products"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateOrModifyResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyModifyProduct"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"products_Object_DELETEProduct","summary":"CRUD: Delete a product","description":"Deletes a specific product.","tags":["products"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyDeleteResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/catalog/products":{"get":{"operationId":"catalog_GET_Catalog","summary":"List all products","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","tags":["catalog"],"parameters":[{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":10}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETCatalogType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/catalog/products/{product-key}":{"get":{"operationId":"catalog_GET_Product","summary":"Retrieve a product","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","tags":["catalog"],"parameters":[{"name":"product-key","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductType"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/catalog-groups":{"get":{"operationId":"catalogGroups_GET_ListAllCatalogGroups","summary":"List all catalog groups","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","tags":["catalogGroups"],"parameters":[{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAllCatalogGroupsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"catalogGroups_POST_CreateCatalogGroup","summary":"Create a catalog group","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","tags":["catalogGroups"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogGroupResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTCatalogGroupRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/catalog-groups/{catalog-group-key}":{"get":{"operationId":"catalogGroups_GET_RetrieveCatalogGroup","summary":"Retrieve a catalog group","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","tags":["catalogGroups"],"parameters":[{"name":"catalog-group-key","in":"path","description":"The unique number or ID of the catalog group to be retrieved.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogGroupResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"catalogGroups_PUT_UpdateCatalogGroup","summary":"Update a catalog group","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","tags":["catalogGroups"],"parameters":[{"name":"catalog-group-key","in":"path","description":"The unique number or ID of the catalog group to be updated. \n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogGroupResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTCatalogGroup"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"catalogGroups_DELETE_CatalogGroup","summary":"Delete a catalog group","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","tags":["catalogGroups"],"parameters":[{"name":"catalog-group-key","in":"path","description":"The unique number or ID of the catalog group to be deleted.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/products/{product-key}/product-rate-plans":{"get":{"operationId":"productRatePlans_GET_ProductRatePlans","summary":"List all product rate plans of a product","description":"Retrieves information about all product rate plans of a specific product.\n","tags":["productRatePlans"],"parameters":[{"name":"product-key","in":"path","description":"The unique ID or SKU of a product. For example, 2c92c0f96487e16a016487f663c71a61 or SKU-00000987.\n","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"The index number of the page that you want to retrieve. This parameter is dependent on `pageSize`. You must set `pageSize` before specifying `page`. For example, if you set `pageSize` to `20` and `page` to `2`, the 21st to 40th records are returned in the response.\n","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"The number of records returned per page in the response.\n","required":false,"schema":{"type":"integer","maximum":40,"default":20}},{"name":"show-charge-definitions","in":"query","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","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductRatePlansResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/product-rate-plans/{id}":{"get":{"operationId":"productRatePlans_GET_ProductRatePlan","summary":"Retrieve a product rate plan by ID","description":"Retrieves a product rate plan by its ID.\n","tags":["productRatePlans"],"parameters":[{"name":"id","in":"path","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","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductRatePlanWithExternalIdResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/product-rate-plans/external-id/{id}":{"get":{"operationId":"productRatePlans_GET_ProductRatePlansByExternalID","summary":"List product rate plans by external ID","description":"Retrieves information about one or multiple product rate plans by external ID.\n","tags":["productRatePlans"],"parameters":[{"name":"id","in":"path","description":"The external ID of the product rate plan to be retrieved. For example, `Apple0001`.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductRatePlanWithExternalIdMultiResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/product-rate-plan":{"post":{"operationId":"productRatePlans_Object_POSTProductRatePlan","summary":"CRUD: Create a product rate plan","description":"Retrieves a product rate plan.\n","tags":["productRatePlans"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateOrModifyResponse"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyBadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateProductRatePlan"}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/product-rate-plan/{id}":{"get":{"operationId":"productRatePlans_Object_GETProductRatePlan","summary":"CRUD: Retrieve a product rate plan","description":"Retrieves a product rate plan.\n","tags":["productRatePlans"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"fields","in":"query","description":"Object fields to return","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyGetProductRatePlan"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyNoDataResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"productRatePlans_Object_PUTProductRatePlan","summary":"CRUD: Update a product rate plan","description":"Updates a product rate plan.\n","tags":["productRatePlans"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateOrModifyResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyModifyProductRatePlan"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"productRatePlans_Object_DELETEProductRatePlan","summary":"CRUD: Delete a product rate plan","description":"Deletes a product rate plan.\n","tags":["productRatePlans"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyDeleteResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/product-rateplan-definitions":{"get":{"operationId":"productRatePlanDefinitions_GET_RetrieveProductRatePlanDefinitions","summary":"List product rate plan definitions","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","tags":["productRatePlanDefinitions"],"parameters":[{"name":"charge","in":"query","description":"The unique number or ID of the charge for which the product rate plan definitions are to be retrieved.\n","required":false,"schema":{"type":"string"}},{"name":"rateplan","in":"query","description":"The unique number or ID of the product rate plan for which the product rate plan definitions are to be retrieved.\n","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductRatePlanDefinitionsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"productRatePlanDefinitions_POST_CreateProductRatePlanDefinition","summary":"Create a product rate plan definition","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","tags":["productRatePlanDefinitions"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTRatePlanDefinitionResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTRatePlanDefinitionRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/product-rateplan-definitions/{product-rateplan-definition-key}":{"get":{"operationId":"productRatePlanDefinitions_GET_RetrieveProductRatePlanDefinition","summary":"Retrieve a product rate plan definition","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","tags":["productRatePlanDefinitions"],"parameters":[{"name":"product-rateplan-definition-key","in":"path","description":"The unique ID of the product rate plan definition to be retrieved.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductRatePlanDefinitionResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"productRatePlanDefinitions_DELETE_ProductRatePlanDefnition","summary":"Delete a product rate plan definition","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","tags":["productRatePlanDefinitions"],"parameters":[{"name":"product-rateplan-definition-key","in":"path","description":"The unique ID of the product rate plan definition to be deleted.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/product-rate-plan-charges/{product-rate-plan-charge-key}":{"get":{"operationId":"productRatePlanCharges_GET_RetrieveProductRatePlanCharge","summary":"Retrieve a product rate plan charge","description":"Retrieves basic information about a product rate plan charge.\n","tags":["productRatePlanCharges"],"parameters":[{"name":"product-rate-plan-charge-key","in":"path","description":"The unique number or ID of the product rate plan charge to be retrieved.\n","required":true,"schema":{"type":"string"}},{"name":"show-charge-definitions","in":"query","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","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductRatePlanChargeResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/product-rate-plan-charge":{"post":{"operationId":"productRatePlanCharges_Object_POSTProductRatePlanCharge","summary":"CRUD: Create a product rate plan charge","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","tags":["productRatePlanCharges"],"parameters":[{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateOrModifyResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanCharge"}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/product-rate-plan-charge/{id}":{"get":{"operationId":"productRatePlanCharges_Object_GETProductRatePlanCharge","summary":"CRUD: Retrieve a product rate plan charge","description":"Retrieves a specific product rate plan charge.","tags":["productRatePlanCharges"],"parameters":[{"name":"id","in":"path","description":"The unique ID of a product rate plan charge to be retrieved. For example, 2c93808457d787030157e031fcd34e19.\n","required":true,"schema":{"type":"string"}},{"name":"fields","in":"query","description":"Object fields to return","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyGetProductRatePlanCharge"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyNoDataResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"productRatePlanCharges_Object_PUTProductRatePlanCharge","summary":"CRUD: Update a product rate plan charge","description":"Updates the information about a product rate plan charge.\n","tags":["productRatePlanCharges"],"parameters":[{"name":"id","in":"path","description":"The unique ID of the product rate plan charge to be updated. For example, 2c93808457d787030157e031fcd34e19.\n","required":true,"schema":{"type":"string"}},{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"X-Zuora-WSDL-Version","in":"header","description":"Zuora WSDL version number.\n","required":false,"schema":{"type":"string","default":79}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateOrModifyResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyNoDataResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanCharge"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"productRatePlanCharges_Object_DELETEProductRatePlanCharge","summary":"CRUD: Delete a product rate plan charge","description":"Deletes a product rate plan charge.\n","tags":["productRatePlanCharges"],"parameters":[{"name":"id","in":"path","description":"The unique ID of the product rate plan charge to be deleted. For example, 2c93808457d787030157e031fcd34e19.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyDeleteResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/product-charge-definitions":{"get":{"operationId":"productChargeDefinitions_GET_RetrieveProductChargeDefinitions","summary":"List product charge definitions","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","tags":["productChargeDefinitions"],"parameters":[{"name":"charge","in":"query","description":"The unique number or ID of the charge for which the product charge definitions are to be retrieved.\n","required":false,"schema":{"type":"string"}},{"name":"rateplan","in":"query","description":"The unique number or ID of the product rate plan for which the product charge definitions are to be retrieved.\n","required":false,"schema":{"type":"string"}},{"name":"hide-inherited-values","in":"query","description":"The flag that controls whether the response will merge the default charge definition fields for those fields that are not overridden.\n","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductChargeDefinitionsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"productChargeDefinitions_POST_CreateProductChargeDefinition","summary":"Create a product charge definition","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","tags":["productChargeDefinitions"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTChargeDefinitionResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTChargeDefinitionRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/product-charge-definitions/bulk":{"post":{"operationId":"productChargeDefinitions_POST_CreateProductChargeDefinitionBulk","summary":"Create product charge definitions","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","tags":["productChargeDefinitions"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. \n\nWith this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. \n","required":false,"schema":{"type":"string","maxLength":255}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTChargeDefinitionBulkResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POSTChargeDefinitionRequestBulk"}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"productChargeDefinitions_PUT_UpdateProductChargeDefinitionBulk","summary":"Update product charge definitions","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","tags":["productChargeDefinitions"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductChargeDefinitionsResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTProductChargeDefinitionBulkRequest"}}}},"security":[{"bearerAuth":[]}]}},"/v1/product-charge-definitions/{product-charge-definition-key}":{"get":{"operationId":"productChargeDefinitions_GET_RetrieveProductChargeDefinition","summary":"Retrieve a product charge definition","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","tags":["productChargeDefinitions"],"parameters":[{"name":"product-charge-definition-key","in":"path","description":"The unique number or ID of the product charge definition to be retrieved.\n","required":true,"schema":{"type":"string"}},{"name":"hide-inherited-values","in":"query","description":"The flag that controls whether the response will merge the default charge definition fields for those fields that are not overridden.\n","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductChargeDefinitionResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"productChargeDefinitions_PUT_UpdateProductChargeDefinition","summary":"Update a product charge definition","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","tags":["productChargeDefinitions"],"parameters":[{"name":"product-charge-definition-key","in":"path","description":"The unique number or ID of the product charge definition to be updated.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GETProductChargeDefinitionResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTProductChargeDefinitionRequest"}}}},"security":[{"bearerAuth":[]}]},"delete":{"operationId":"productChargeDefinitions_DELETE_ProductChargeDefnition","summary":"Delete a product charge definition","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","tags":["productChargeDefinitions"],"parameters":[{"name":"product-charge-definition-key","in":"path","description":"The unique number or ID of the product charge definition to be deleted.\n","required":true,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/v1/object/product-rate-plan-charge-tier/{id}":{"get":{"operationId":"productRatePlanChargeTiers_Object_GETProductRatePlanChargeTier","summary":"CRUD: Retrieve a product rate plan charge tier","description":"Retrieves a specific product rate plan charge tier.","tags":["productRatePlanChargeTiers"],"parameters":[{"name":"id","in":"path","description":"Object id","required":true,"schema":{"type":"string"}},{"name":"fields","in":"query","description":"Object fields to return","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeTier"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyNoDataResponse"}}}}},"security":[{"bearerAuth":[]}]},"put":{"operationId":"productRatePlanChargeTiers_Object_PUTProductRatePlanChargeTier","summary":"CRUD: Update a product rate plan charge tier","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","tags":["productRatePlanChargeTiers"],"parameters":[{"name":"id","in":"path","description":"The unique ID of the product rate plan charge tier to be updated. For example, 2c92c0f86c85891e016c88d55a6e543b.\n","required":true,"schema":{"type":"string"}},{"name":"rejectUnknownFields","in":"query","description":"Specifies whether the call fails if the request body contains unknown fields.\nWith `rejectUnknownFields` set to `true`, Zuora returns a 400 response if\nthe request body contains unknown fields. The body of the 400 response is:\n\n```json\n{\n    \"message\": \"Error - unrecognised fields\"\n}\n```\n\nBy default, Zuora ignores unknown fields in the request body.\n","required":false,"schema":{"type":"boolean","default":false}},{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyCreateOrModifyResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeTier"}}}},"security":[{"bearerAuth":[]}]}},"/v1/revpro-accounting-codes":{"put":{"operationId":"zuoraRevenueIntegration_PUT_RevProAccountingCodes","summary":"Update a Zuora Revenue accounting code","description":"Update the Zuora Revenue accounting code that corresponds to a specific Product Rate Plan Charge Id in Zuora Billing.","tags":["zuoraRevenueIntegration"],"parameters":[{"name":"Accept-Encoding","in":"header","description":"Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response. \n\nIf specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.\n","required":false,"schema":{"type":"string"}},{"name":"Content-Encoding","in":"header","description":"Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Entity-Ids","in":"header","description":"An entity ID. If you have [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Org-Ids","in":"header","description":"Comma separated IDs. If you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Multi-Org\" target=\"_blank\">Zuora Multi-Org</a> enabled, \nyou can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.\n\nThe IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.\n","required":false,"schema":{"type":"string"}},{"name":"Zuora-Track-Id","in":"header","description":"A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.\n\nThe value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`\"`), and quote (`'`).\n","required":false,"schema":{"type":"string","maxLength":64}},{"name":"Zuora-Version","in":"header","description":"The minor API version.\n\nFor a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PUTRevproAccCodeResponse"}}}},"400":{"description":"Request Errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevproAccountingCodes"}}}},"security":[{"bearerAuth":[]}]}}},"tags":[{"name":"oAuth"},{"name":"commerce"},{"name":"accounts"},{"name":"contacts"},{"name":"contactSnapshots"},{"name":"signUp"},{"name":"orders"},{"name":"orderActions"},{"name":"orderLineItems"},{"name":"fulfillments"},{"name":"ramps"},{"name":"subscriptions"},{"name":"omnichannelSubscriptions"},{"name":"ratePlans"},{"name":"commitments"},{"name":"prepaidWithDrawdown"},{"name":"usage"},{"name":"meters"},{"name":"dataIngestion"},{"name":"auditTrail"},{"name":"eventStore"},{"name":"deliveryAdjustments"},{"name":"billingDocuments"},{"name":"invoices"},{"name":"creditMemos"},{"name":"debitMemos"},{"name":"eInvoicing"},{"name":"invoiceSchedules"},{"name":"taxationItems"},{"name":"sequenceSets"},{"name":"operations"},{"name":"summaryStatements"},{"name":"billRun"},{"name":"billingPreviewRun"},{"name":"paymentMethods"},{"name":"customPaymentMethodTypes"},{"name":"paymentMethodUpdater"},{"name":"paymentMethodSnapshots"},{"name":"paymentMethodTransactionLogs"},{"name":"hostedPages"},{"name":"rsaSignatures"},{"name":"paymentAuthorization"},{"name":"paymentGateways"},{"name":"paymentGatewayReconciliation"},{"name":"payments"},{"name":"paymentTransactionLogs"},{"name":"paymentRuns"},{"name":"paymentSchedules"},{"name":"refunds"},{"name":"paymentProfiles"},{"name":"configurablePaymentRetry"},{"name":"objectQueries"},{"name":"accountingCodes"},{"name":"accountingPeriods"},{"name":"summaryJournalEntries"},{"name":"journalRuns"},{"name":"massUpdater"},{"name":"notifications"},{"name":"customEventTriggers"},{"name":"customScheduledEvents"},{"name":"customObjectDefinitions"},{"name":"customObjectRecords"},{"name":"customObjectJobs"},{"name":"apiHealth"},{"name":"billRunHealth"},{"name":"electronicPaymentsHealth"},{"name":"taxHealth"},{"name":"workflows"},{"name":"dataQueries"},{"name":"aggregateQueries"},{"name":"configurationTemplates"},{"name":"metadataDeployment"},{"name":"bulkData"},{"name":"scim"},{"name":"dataLabeling"},{"name":"dataBackfill"},{"name":"regenerate"},{"name":"testEnvironments"},{"name":"testEnvironmentJobs"},{"name":"testEnvironmentNotifications"},{"name":"actions"},{"name":"settings"},{"name":"files"},{"name":"imports"},{"name":"customExchangeRates"},{"name":"attachments"},{"name":"metadata"},{"name":"describe"},{"name":"products"},{"name":"catalog"},{"name":"catalogGroups"},{"name":"productRatePlans"},{"name":"productRatePlanDefinitions"},{"name":"productRatePlanCharges"},{"name":"productChargeDefinitions"},{"name":"productRatePlanChargeTiers"},{"name":"zuoraRevenueIntegration"}],"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"},{"url":"https://payment-retry.apps.zuora.com","description":"https://payment-retry.apps.zuora.com"},{"url":"https://one.zuora.com","description":"OneID SCIM API Server"}],"components":{"schemas":{"OauthTokenPostRequestBodyContentApplicationXWwwFormUrlencodedSchemaGrantType":{"type":"string","enum":["client_credentials"],"description":"The OAuth grant type that will be used to generate the token. The value of this parameter must be `client_credentials`.\n","title":"OauthTokenPostRequestBodyContentApplicationXWwwFormUrlencodedSchemaGrantType"},"tokenResponse":{"type":"object","properties":{"access_token":{"type":"string","description":"The generated token."},"expires_in":{"type":"number","format":"double","description":"The number of seconds until the token expires."},"jti":{"type":"string","description":"A globally unique identifier for the token."},"scope":{"type":"string","description":"A space-delimited list of scopes that the token can be used to access."},"token_type":{"type":"string","description":"The type of token that was generated, i.e., `bearer`."}},"title":"tokenResponse"},"CreateChargeRequestChargeChargeModel":{"type":"string","enum":["flat_fee","per_unit","overage","volume","tiered","tiered_overage","discount_fixed_amount","discount_percentage","custom_charge_model","delivery","minimum_commitment_true_up","calculated","high_water_mark_volume_pricing","high_water_mark_tiered_pricing","multi_attribute_pricing","prerated_pricing","prerated_per_unit"],"description":"Charge model that determines how the charge is calculated.\n","title":"CreateChargeRequestChargeChargeModel"},"CreateChargeRequestChargeChargeType":{"type":"string","enum":["one_time","recurring","usage"],"description":"Charge category in the catalog.\n","title":"CreateChargeRequestChargeChargeType"},"CreateChargeRequestChargeEndDateCondition":{"type":"string","enum":["end_date_one_time","subscription_end","fixed_period","specific_end_date"],"description":"Condition that determines when the charge becomes inactive. Use `subscription_end` when the charge should remain active\nuntil the subscription ends. Duration-based fields such as `up_to_periods` and `up_to_periods_type` do not apply when this value is used.\n","title":"CreateChargeRequestChargeEndDateCondition"},"CreateChargeRequestChargeUpToPeriodsType":{"type":"string","enum":["billing_periods","days","weeks","months","years"],"description":"Granularity used with `end_date_condition = fixed_period` to express how long the charge remains active. When `end_date_condition = subscription_end`, this field is ignored.\n","title":"CreateChargeRequestChargeUpToPeriodsType"},"CreateChargeRequestChargeBillCycleType":{"type":"string","enum":["default_from_customer","specific_day_of_month","subscription_start_day","charge_trigger_day","specific_day_of_week","term_start_day","term_end_day"],"description":"Determines how the billing day is selected for this charge.\n","title":"CreateChargeRequestChargeBillCycleType"},"CreateChargeRequestChargeBillCyclePeriod":{"type":"string","enum":["bill_cycle_period_month","bill_cycle_period_quarter","bill_cycle_period_semi_annual","bill_cycle_period_annual","bill_cycle_period_eighteen_months","bill_cycle_period_two_years","bill_cycle_period_three_years","bill_cycle_period_five_years","bill_cycle_period_specific_months","bill_cycle_period_subscription_term","bill_cycle_period_week","bill_cycle_period_specific_weeks","bill_cycle_period_specific_days"],"description":"Length of each billing period.\n","title":"CreateChargeRequestChargeBillCyclePeriod"},"CreateChargeRequestChargeBillCyclePeriodAlignment":{"type":"string","enum":["align_to_charge","align_to_subscription_start","align_to_term_start","align_to_term_end"],"description":"How the billing period start aligns.\n","title":"CreateChargeRequestChargeBillCyclePeriodAlignment"},"CreateChargeRequestChargeBillCycleTiming":{"type":"string","enum":["in_advance","in_arrears"],"description":"When the charge is billed relative to the service period.\n","title":"CreateChargeRequestChargeBillCycleTiming"},"CreateChargeRequestChargeBillCycleDayOfWeek":{"type":"string","enum":["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],"description":"Used when `type` is `specific_day_of_week`.\n","title":"CreateChargeRequestChargeBillCycleDayOfWeek"},"CreateChargeRequestChargeBillCycle":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreateChargeRequestChargeBillCycleType","description":"Determines how the billing day is selected for this charge.\n"},"period":{"$ref":"#/components/schemas/CreateChargeRequestChargeBillCyclePeriod","description":"Length of each billing period.\n"},"period_alignment":{"$ref":"#/components/schemas/CreateChargeRequestChargeBillCyclePeriodAlignment","description":"How the billing period start aligns.\n"},"timing":{"$ref":"#/components/schemas/CreateChargeRequestChargeBillCycleTiming","description":"When the charge is billed relative to the service period.\n"},"day_of_month":{"type":"integer","minimum":1,"maximum":31,"description":"Required when `type` is `specific_day_of_month`."},"day_of_week":{"$ref":"#/components/schemas/CreateChargeRequestChargeBillCycleDayOfWeek","description":"Used when `type` is `specific_day_of_week`.\n"}},"required":["type","period","period_alignment"],"description":"Billing period configuration that controls frequency, alignment, and timing of billing for this charge.\n","title":"CreateChargeRequestChargeBillCycle"},"CreateChargeRequestChargeListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months","Per_Validity_Period"],"description":"List price basis for this charge. This is used when interpreting list prices and, for some models, in conjunction with `specific_list_price_base`.\n","title":"CreateChargeRequestChargeListPriceBase"},"CreateChargeRequestChargeTriggerEvent":{"type":"string","enum":["contract_effective","service_activation","customer_acceptance","specific_date"],"description":"Event that makes the charge active on a subscription.\n","title":"CreateChargeRequestChargeTriggerEvent"},"CreateChargeRequestChargeTaxMode":{"type":"string","enum":["non_taxable","tax_exclusive","tax_inclusive"],"description":"Tax mode for this charge.\n","title":"CreateChargeRequestChargeTaxMode"},"AccountingRequest":{"type":"object","properties":{"accounting_code":{"type":"string","description":"An accounting code associated with the charge for reporting/ERP mapping. Typically a short code or identifier, not the GL account name.\n"},"accounts_receivable_account":{"type":"string","description":"Accounts Receivable (AR) account to book invoices for this charge. Must match an existing account in the tenant's chart of accounts.\n"},"accounts_receivable_account_type":{"type":"string","description":"The account type associated with `accounts_receivable_account`. Maps to the `accountsReceivableAccountType` field in the accounting object.\n"},"deferred_revenue_account":{"type":"string","description":"Deferred revenue (liability) account to book revenue before recognition. Must match an existing account in the tenant's chart of accounts.\n"},"deferred_revenue_accounting_type":{"type":"string","description":"Accounting method/type applied to deferred revenue. Maps to the `deferredRevenueAccountingType` field in the accounting object.\n"},"recognized_revenue_account":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Recognized Revenue\"."},"recognized_revenue_account_type":{"type":"string","description":"The account type associated with `recognized_revenue_account`. Maps to the `recognizedRevenueAccountType` field in the accounting object.\n"},"adjustment_liability_account":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Adjustment Liability\"."},"adjustment_liability_account_type":{"type":"string","description":"The account type associated with `adjustment_liability_account`. Maps to the `adjustmentLiabilityAccountType` field in the accounting object.\n"},"adjustment_revenue_account":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Adjustment Revenue\"."},"adjustment_revenue_account_type":{"type":"string","description":"The account type associated with `adjustment_revenue_account`. Maps to the `adjustmentRevenueAccountType` field in the accounting object.\n"},"contract_asset_account":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Contract Asset\"."},"contract_asset_account_type":{"type":"string","description":"The account type associated with `contract_asset_account`. Maps to the `contractAssetAccountType` field in the accounting object.\n"},"contract_liability_account":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Contract Liability\"."},"contract_liability_account_type":{"type":"string","description":"The account type associated with `contract_liability_account`. Maps to the `contractLiabilityAccountType` field in the accounting object.\n"},"contract_recognized_revenue_account":{"type":"string","description":"Recognized revenue account used specifically for contract-based recognition flows. Must match an existing account in the tenant's chart of accounts.\n"},"contract_recognized_revenue_account_type":{"type":"string","description":"The account type associated with `contract_recognized_revenue_account`. Maps to the `contractRecognizedRevenueAccountType` field in the accounting object.\n"},"unbilled_receivables_account":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Unbilled Receivables\"."},"unbilled_receivables_account_type":{"type":"string","description":"The account type associated with `unbilled_receivables_account`. Maps to the `unbilledReceivablesAccountType` field in the accounting object.\n"}},"description":"Accounting fields accepted on create/update requests. Field names use snake_case.\n\n**Conditional requirement rules**\n- If **Allow blank Accounting Codes** = **Yes** → Accounting fields are **optional**.\n- If **Allow blank Accounting Codes** = **No** and the tenant **has Zuora Revenue** → **all Accounting fields except `accounting_code` are required**.\n- If **Allow blank Accounting Codes** = **No** and the tenant **does NOT have Zuora Revenue** → only `recognized_revenue_account` and `deferred_revenue_account` are required.\n\nThese rules apply to **all operations that accept `accounting`** in the payload.\n","title":"AccountingRequest"},"CreateChargeRequestChargeAttributesItemsType":{"type":"string","enum":["String","Integer","Double","Boolean","Date","Datetime"],"description":"Attribute data type.","title":"CreateChargeRequestChargeAttributesItemsType"},"CreateChargeRequestChargeAttributesItemsMapping":{"type":"object","properties":{"object":{"type":"string","description":"Target Zuora object, for example, account, subscription."},"field":{"type":"string","description":"Field on the target object, for example, age__c."}},"required":["object","field"],"description":"Optional mapping to a Zuora business object field used to automatically resolve\nthe attribute value at runtime.\n","title":"CreateChargeRequestChargeAttributesItemsMapping"},"CreateChargeRequestChargeAttributesItems":{"type":"object","properties":{"name":{"type":"string","description":"Attribute name, for example, Age, Region, EffectiveDate."},"type":{"$ref":"#/components/schemas/CreateChargeRequestChargeAttributesItemsType","description":"Attribute data type."},"mapping":{"$ref":"#/components/schemas/CreateChargeRequestChargeAttributesItemsMapping","description":"Optional mapping to a Zuora business object field used to automatically resolve\nthe attribute value at runtime.\n"}},"required":["name"],"title":"CreateChargeRequestChargeAttributesItems"},"CreateChargeRequestChargePricing0":{"type":"object","properties":{"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to flat amount."}},"required":["flat_amounts"],"title":"CreateChargeRequestChargePricing0"},"CreateChargeRequestChargePricing1":{"type":"object","properties":{"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to per-unit price."}},"required":["unit_amounts"],"title":"CreateChargeRequestChargePricing1"},"CreateChargeRequestChargePricingOneOf2TiersItems":{"type":"object","properties":{"tier":{"type":"string","description":"Tier identifier (e.g., \"1\", \"2\")."},"from":{"type":"number","format":"double","description":"Lower bound (inclusive)."},"up_to":{"type":["number","null"],"format":"double","description":"Upper bound (inclusive). Omit/null for open-ended last tier."},"price_format":{"type":"string","description":"For example, price_format_per_unit."},"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Per-unit price by currency for this tier."},"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Flat amount by currency for this tier (if applicable)."},"min_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Minimum billed amount by currency for this tier."},"max_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Maximum billed amount by currency for this tier."}},"required":["tier","from","price_format"],"title":"CreateChargeRequestChargePricingOneOf2TiersItems"},"CreateChargeRequestChargePricing2":{"type":"object","properties":{"tiers":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeRequestChargePricingOneOf2TiersItems"},"description":"Tier definitions (volume or tiered) with optional min/max caps."}},"required":["tiers"],"title":"CreateChargeRequestChargePricing2"},"CreateChargeRequestChargePricing3":{"type":"object","properties":{"discount_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to discount amount."}},"required":["discount_amounts"],"title":"CreateChargeRequestChargePricing3"},"CreateChargeRequestChargePricing4":{"type":"object","properties":{"discount_percentage":{"type":"number","format":"double","description":"Discount percentage (e.g., 15 for 15%)."}},"required":["discount_percentage"],"title":"CreateChargeRequestChargePricing4"},"CreateChargeRequestChargePricing":{"oneOf":[{"$ref":"#/components/schemas/CreateChargeRequestChargePricing0"},{"$ref":"#/components/schemas/CreateChargeRequestChargePricing1"},{"$ref":"#/components/schemas/CreateChargeRequestChargePricing2"},{"$ref":"#/components/schemas/CreateChargeRequestChargePricing3"},{"$ref":"#/components/schemas/CreateChargeRequestChargePricing4"}],"description":"Default (charge-level) pricing for the PRPC, used when no rate-card row matches.\nThe structure depends on the charge_model:\n  - flat_fee → flat_amounts\n  - per_unit → unit_amounts\n  - volume/tiered → tiers\n  - discount_fixed_amount → discount_amounts\n  - discount_percentage → discount_percentage\n","title":"CreateChargeRequestChargePricing"},"CreateChargeRequestChargeRateCardsItemsAttributesItemsOperator":{"type":"string","enum":[">",">=","<","<=","==","between","between-inclusive"],"description":"Comparison operator for the condition.","title":"CreateChargeRequestChargeRateCardsItemsAttributesItemsOperator"},"CreateChargeRequestChargeRateCardsItemsAttributesItemsValueOneOf3Items":{"oneOf":[{"type":"string"},{"type":"number","format":"double"}],"title":"CreateChargeRequestChargeRateCardsItemsAttributesItemsValueOneOf3Items"},"CreateChargeRequestChargeRateCardsItemsAttributesItemsValue3":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItemsAttributesItemsValueOneOf3Items"},"title":"CreateChargeRequestChargeRateCardsItemsAttributesItemsValue3"},"CreateChargeRequestChargeRateCardsItemsAttributesItemsValue":{"oneOf":[{"type":"string"},{"type":"number","format":"double"},{"type":"boolean"},{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItemsAttributesItemsValue3"}],"description":"Comparison value. For `between`, provide an array of two values.\nThe value type must align with the attribute’s declared type.\n","title":"CreateChargeRequestChargeRateCardsItemsAttributesItemsValue"},"CreateChargeRequestChargeRateCardsItemsAttributesItems":{"type":"object","properties":{"name":{"type":"string","description":"Attribute name for the condition (for example, Age, Region, EffectiveDate)."},"operator":{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItemsAttributesItemsOperator","description":"Comparison operator for the condition."},"value":{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItemsAttributesItemsValue","description":"Comparison value. For `between`, provide an array of two values.\nThe value type must align with the attribute’s declared type.\n"}},"required":["name"],"title":"CreateChargeRequestChargeRateCardsItemsAttributesItems"},"CreateChargeRequestChargeRateCardsItemsPricing0":{"type":"object","properties":{"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to flat amount."}},"required":["flat_amounts"],"title":"CreateChargeRequestChargeRateCardsItemsPricing0"},"CreateChargeRequestChargeRateCardsItemsPricing1":{"type":"object","properties":{"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to per-unit price."}},"required":["unit_amounts"],"title":"CreateChargeRequestChargeRateCardsItemsPricing1"},"CreateChargeRequestChargeRateCardsItemsPricingOneOf2TiersItems":{"type":"object","properties":{"tier":{"type":"string","description":"Tier identifier (e.g., \"1\", \"2\")."},"from":{"type":"number","format":"double","description":"Lower bound (inclusive)."},"up_to":{"type":["number","null"],"format":"double","description":"Upper bound (inclusive). Omit/null for open-ended last tier."},"price_format":{"type":"string","description":"For example, price_format_per_unit."},"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Per-unit price by currency for this tier."},"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Flat amount by currency for this tier (if applicable)."},"min_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Minimum billed amount by currency for this tier."},"max_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Maximum billed amount by currency for this tier."}},"required":["tier","from","price_format"],"title":"CreateChargeRequestChargeRateCardsItemsPricingOneOf2TiersItems"},"CreateChargeRequestChargeRateCardsItemsPricing2":{"type":"object","properties":{"tiers":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItemsPricingOneOf2TiersItems"},"description":"Tier definitions (volume or tiered) with optional min/max caps."}},"required":["tiers"],"title":"CreateChargeRequestChargeRateCardsItemsPricing2"},"CreateChargeRequestChargeRateCardsItemsPricing":{"oneOf":[{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItemsPricing0"},{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItemsPricing1"},{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItemsPricing2"}],"description":"Pricing configuration returned when this rate-card row matches.\nThe structure depends on the charge_model:\n  - flat_fee → flat_amounts\n  - per_unit → unit_amounts\n  - volume/tiered → tiers\n  - discount_fixed_amount → discount_amounts\n  - discount_percentage → discount_percentage\n","title":"CreateChargeRequestChargeRateCardsItemsPricing"},"CreateChargeRequestChargeRateCardsItems":{"type":"object","properties":{"attributes":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItemsAttributesItems"},"description":"Defines the set of match conditions that must all evaluate to true\nfor this rate-card row to apply. Each condition corresponds to a declared\npricing attribute. Use `between` for range or date-based conditions.\n"},"pricing":{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItemsPricing","description":"Pricing configuration returned when this rate-card row matches.\nThe structure depends on the charge_model:\n  - flat_fee → flat_amounts\n  - per_unit → unit_amounts\n  - volume/tiered → tiers\n  - discount_fixed_amount → discount_amounts\n  - discount_percentage → discount_percentage\n"}},"required":["attributes","pricing"],"title":"CreateChargeRequestChargeRateCardsItems"},"CreateChargeRequestCharge":{"type":"object","properties":{"charge_model":{"$ref":"#/components/schemas/CreateChargeRequestChargeChargeModel","description":"Charge model that determines how the charge is calculated.\n"},"charge_type":{"$ref":"#/components/schemas/CreateChargeRequestChargeChargeType","description":"Charge category in the catalog.\n"},"description":{"type":"string","description":"Human-readable description of the charge."},"name":{"type":"string","description":"Name of the charge as displayed in the product catalog."},"unit_of_measure":{"type":"string","description":"Unit of measure (UOM) used to quantify or price the charge (for example, Each, Seats, Licenses).\n"},"default_quantity":{"type":"number","format":"double","description":"Default quantity applied when the charge is added, if not specified elsewhere."},"end_date_condition":{"$ref":"#/components/schemas/CreateChargeRequestChargeEndDateCondition","description":"Condition that determines when the charge becomes inactive. Use `subscription_end` when the charge should remain active\nuntil the subscription ends. Duration-based fields such as `up_to_periods` and `up_to_periods_type` do not apply when this value is used.\n"},"up_to_periods_type":{"$ref":"#/components/schemas/CreateChargeRequestChargeUpToPeriodsType","description":"Granularity used with `end_date_condition = fixed_period` to express how long the charge remains active. When `end_date_condition = subscription_end`, this field is ignored.\n"},"up_to_periods":{"type":"integer","description":"Number of periods used with `end_date_condition = fixed_period`. Combined with `up_to_periods_type` to determine the fixed duration of the charge. Ignored when `end_date_condition = subscription_end`.\n"},"bill_cycle":{"$ref":"#/components/schemas/CreateChargeRequestChargeBillCycle","description":"Billing period configuration that controls frequency, alignment, and timing of billing for this charge.\n"},"list_price_base":{"$ref":"#/components/schemas/CreateChargeRequestChargeListPriceBase","description":"List price basis for this charge. This is used when interpreting list prices and, for some models, in conjunction with `specific_list_price_base`.\n"},"specific_list_price_base":{"type":"number","format":"double","description":"Optional specific value used when `list_price_base` requires an explicit quantity (for example, number of months for `Per_Specific_Months`).\n"},"trigger_event":{"$ref":"#/components/schemas/CreateChargeRequestChargeTriggerEvent","description":"Event that makes the charge active on a subscription.\n"},"product_rate_plan_id":{"type":"string","description":"Identifier of the product rate plan that owns this charge."},"specificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":120,"description":"The number of months for the list price base of the charge. This field is required\nif you set the value of the `ListPriceBase` field to `Per Specific Months`.\nThe value must be a positive integer between **1** and **120** inclusive.\n\n\n**Notes**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `129` or later. Otherwise, an error occurs.\n  - The value of this field is `null` if you do not set the value of the `ListPriceBase` field to `Per Specific Months`.\n"},"formula":{"type":"string","description":"Optional formula applied after rate-card lookup to adjust the computed price."},"tax_mode":{"$ref":"#/components/schemas/CreateChargeRequestChargeTaxMode","description":"Tax mode for this charge.\n"},"tax_code":{"type":"string","description":"Tax code used for tax calculation on this charge."},"accounting":{"$ref":"#/components/schemas/AccountingRequest"},"revenue":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Revenue recognition configuration, for example, `revenue_recognition_rule_name`, triggers, allocation flags.\n"},"custom_fields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Tenant custom fields on the charge."},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeRequestChargeAttributesItems"},"description":"Declares the attribute metadata used by Dynamic Pricing for this charge.\nEach entry defines an attribute that pricing rules can reference, along with\nits data type and (optionally) a mapping to a Zuora object field used to resolve values at runtime.\nExamples: Region, Age, EffectiveDate.\n"},"pricing":{"$ref":"#/components/schemas/CreateChargeRequestChargePricing","description":"Default (charge-level) pricing for the PRPC, used when no rate-card row matches.\nThe structure depends on the charge_model:\n  - flat_fee → flat_amounts\n  - per_unit → unit_amounts\n  - volume/tiered → tiers\n  - discount_fixed_amount → discount_amounts\n  - discount_percentage → discount_percentage\n"},"rate_cards":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeRequestChargeRateCardsItems"},"description":"Defines the conditional pricing table (**rate cards**) for the PRPC.\nEach rate-card entry specifies:\n  - `attributes`: The match conditions evaluated at runtime.\n  - `pricing`: The price or rate to apply when the conditions match.\n\nIf multiple rows match, Zuora applies the first matching rate card.\nIf no row matches, the default `pricing` (defined above) is used.\n"}},"required":["charge_model","charge_type","name","unit_of_measure","bill_cycle","trigger_event","product_rate_plan_id"],"description":"Product rate plan charge (PRPC) definition including pricing model, billing settings, trigger event,\nand attribute-based rate cards for Dynamic Pricing.\n","title":"CreateChargeRequestCharge"},"CreateChargeRequest":{"type":"object","properties":{"charge":{"$ref":"#/components/schemas/CreateChargeRequestCharge","description":"Product rate plan charge (PRPC) definition including pricing model, billing settings, trigger event,\nand attribute-based rate cards for Dynamic Pricing.\n"}},"required":["charge"],"title":"CreateChargeRequest"},"AccountingResponse":{"type":"object","properties":{"accountingCode":{"type":"string","description":"An accounting code associated with the charge for reporting or ERP mapping.\nTypically a short code or identifier, not the GL account name.\n"},"accountsReceivableAccount":{"type":"string","description":"Accounts Receivable (AR) account to book invoices for this charge.\nMust match an existing account in the tenant's chart of accounts.\n"},"accountsReceivableAccountType":{"type":"string","description":"System-derived type/category of the AR account from the chart of accounts.\nExamples include \"AccountsReceivable\".\n"},"adjustmentLiabilityAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Adjustment Liability\"."},"adjustmentLiabilityAccountType":{"type":"string","description":"System-derived type/category of the Adjustment Liability account from the chart of accounts.\nExamples include \"AdjustmentLiability\".\n"},"adjustmentRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Adjustment Revenue\"."},"adjustmentRevenueAccountType":{"type":"string","description":"System-derived type/category of the Adjustment Revenue account from the chart of accounts.\nExamples include \"AdjustmentRevenue\".\n"},"contractAssetAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Contract Asset\"."},"contractAssetAccountType":{"type":"string","description":"System-derived type/category of the Contract Asset account from the chart of accounts.\n"},"contractLiabilityAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Contract Liability\"."},"contractLiabilityAccountType":{"type":"string","description":"System-derived type/category of the Contract Liability account from the chart of accounts.\nExamples include \"ContractLiability\".\n"},"contractRecognizedRevenueAccount":{"type":"string","description":"Recognized revenue account used specifically for contract-based recognition flows.\nMust match an existing account in the tenant's chart of accounts.\n"},"contractRecognizedRevenueAccountType":{"type":"string","description":"System-derived type/category of the Contract Recognized Revenue account from the chart of accounts.\n"},"deferredRevenueAccount":{"type":"string","description":"Deferred revenue (liability) account to book revenue before recognition.\nMust match an existing account in the tenant's chart of accounts.\n"},"deferredRevenueAccountType":{"type":"string","description":"System-derived type/category of the Deferred Revenue account from the chart of accounts.\n"},"recognizedRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Recognized Revenue\"."},"recognizedRevenueAccountType":{"type":"string","description":"System-derived type/category of the Recognized Revenue account from the chart of accounts.\n"},"unbilledReceivablesAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Unbilled Receivables\"."},"unbilledReceivablesAccountType":{"type":"string","description":"System-derived type/category of the Unbilled Receivables account from the chart of accounts.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of your product rate plan charge."}},"description":"Accounting fields returned by the API. `*Type` fields are derived from the tenant's chart of accounts and are read-only.\n","title":"AccountingResponse"},"CreateChargeResponseBillCycle":{"type":"object","properties":{"dayOfMonth":{"type":"integer","description":"Specific day of month to bill when type = specific_day_of_month."},"period":{"type":"string","description":"Billing period length. \n"},"periodAlignment":{"type":"string","description":"How the billing period start aligns.\n"},"timing":{"type":"string","description":"Whether the charge bills before or after the service period."},"type":{"type":"string","description":"Bill-cycle mode (inherit defaults or set specific day rules).\n"}},"title":"CreateChargeResponseBillCycle"},"CreateChargeResponseDeliverySchedule":{"type":"object","properties":{"frequency":{"type":"string","description":"Delivery frequency label for schedule rules.\n"},"friday":{"type":"boolean","description":"Deliver on Friday."},"monday":{"type":"boolean","description":"Deliver on Monday."},"saturday":{"type":"boolean","description":"Deliver on Saturday."},"sunday":{"type":"boolean","description":"Deliver on Sunday."},"thursday":{"type":"boolean","description":"Deliver on Thursday."},"tuesday":{"type":"boolean","description":"Deliver on Tuesday."},"wednesday":{"type":"boolean","description":"Deliver on Wednesday."}},"description":"Day-of-week delivery settings when delivery scheduling is enabled.","title":"CreateChargeResponseDeliverySchedule"},"CreateChargeResponseDiscountOptionsApplyDetailsItems":{"type":"object","properties":{},"title":"CreateChargeResponseDiscountOptionsApplyDetailsItems"},"CreateChargeResponseDiscountOptions":{"type":"object","properties":{"applyDetails":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeResponseDiscountOptionsApplyDetailsItems"},"description":"Per-target discount application details (if populated)."},"applyTo":{"type":"array","items":{"type":"string"},"description":"Which components or charges the discount applies to."},"applyToBillingPeriodPartially":{"type":"boolean","description":"Whether the discount duration can partially align to a period."},"reflectDiscountInNetAmount":{"type":"boolean","description":"Whether discounts reduce the net amount on invoices."},"rollover":{"type":"boolean","description":"Whether unused discount can roll over to future periods."},"stackedDiscount":{"type":"boolean","description":"Whether this discount stacks with other discounts."}},"description":"How discount charges apply and interact with other discounts.","title":"CreateChargeResponseDiscountOptions"},"CreateChargeResponseMergedRateCardsItems":{"type":"object","properties":{},"title":"CreateChargeResponseMergedRateCardsItems"},"CreateChargeResponseNegotiatedRateCardsItems":{"type":"object","properties":{},"title":"CreateChargeResponseNegotiatedRateCardsItems"},"CreateChargeResponseOverageOptions":{"type":"object","properties":{"includedUnits":{"type":"number","format":"double","description":"Included units before overage starts."},"unusedUnitsCreditRates":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Credit rates for unused units (by currency)."}},"description":"Overage settings for usage charges.","title":"CreateChargeResponseOverageOptions"},"CreateChargeResponsePrepayment":{"type":"object","properties":{"creditOption":{"type":"string","description":"How prepayment credits are applied (if supported)."},"rollover":{"type":"boolean","description":"Whether unused prepayment rolls over."},"rolloverApply":{"type":"string","description":"Order in which rollover is applied (e.g., apply_last)."},"rolloverPeriodLength":{"type":"integer","description":"Length of each rollover period."},"rolloverPeriods":{"type":"integer","description":"Number of rollover periods allowed."}},"description":"Prepayment handling and rollover behavior.","title":"CreateChargeResponsePrepayment"},"CreateChargeResponsePricingTiersItems":{"type":"object","properties":{},"title":"CreateChargeResponsePricingTiersItems"},"CreateChargeResponsePricing":{"type":"object","properties":{"adjustments":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Price adjustments metadata."},"discountAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Fixed discount amounts by currency."},"discountPercentages":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Percentage discount values by currency."},"flatAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Flat amounts by currency for flat-fee pricing."},"maxAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Maximum caps by currency."},"minAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Minimum charges by currency."},"percentages":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Percentage price values by currency (model-dependent)."},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeResponsePricingTiersItems"},"description":"Tier definitions for tiered/volume pricing."},"unitAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Per-unit amounts by currency for per-unit/usage pricing."}},"description":"Default (charge-level) price configuration by model/currency.","title":"CreateChargeResponsePricing"},"CreateChargeResponseProductChargeDefinitionsItems":{"type":"object","properties":{},"title":"CreateChargeResponseProductChargeDefinitionsItems"},"CreateChargeResponseRateCardsItems":{"type":"object","properties":{},"title":"CreateChargeResponseRateCardsItems"},"CreateChargeResponseRevenue":{"type":"object","properties":{"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"If true, item billing is excluded from revenue accounting."},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"If true, item booking is excluded from revenue accounting."},"legacyReporting":{"type":"boolean","description":"Indicator for legacy revenue reporting behaviors."},"revenueRecognitionRuleName":{"type":"string","description":"Name of the revenue rule to apply, for example, \"Recognize upon invoicing\"."}},"description":"Revenue policy settings for this charge.","title":"CreateChargeResponseRevenue"},"CreateChargeResponse":{"type":"object","properties":{"accounting":{"$ref":"#/components/schemas/AccountingResponse"},"attributes":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Attribute metadata associated with Dynamic Pricing for this charge."},"billCycle":{"$ref":"#/components/schemas/CreateChargeResponseBillCycle"},"chargeFunction":{"type":"string","description":"Internal function/category of the charge used by rating."},"chargeModel":{"type":"string","description":"Pricing model that determines how the amount is calculated."},"chargeType":{"type":"string","description":"Whether the charge recurs, rates usage, or is a one-time fee."},"createdById":{"type":"string","description":"User ID that created the charge record."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the charge record was created."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Tenant-specific custom field values on the charge."},"deliverySchedule":{"$ref":"#/components/schemas/CreateChargeResponseDeliverySchedule","description":"Day-of-week delivery settings when delivery scheduling is enabled."},"discountOptions":{"$ref":"#/components/schemas/CreateChargeResponseDiscountOptions","description":"How discount charges apply and interact with other discounts."},"drawdown":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Prepaid/drawdown configuration when using prepaid with drawdown."},"endDateCondition":{"type":"string","description":"Rule for when the charge ends.\n"},"upToPeriodsType":{"type":"string","description":"Unit used for the fixed period when `endDateCondition` is `fixed_period`, for example, billing periods or days.\n"},"upToPeriods":{"type":"integer","description":"Number of periods, in units of `upToPeriodsType`, that the charge remains active when `endDateCondition` is `fixed_period`.\n"},"extendedPrice":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Calculated extended price details (model-dependent)."},"id":{"type":"string","description":"Unique identifier of the product rate plan charge (PRPC)."},"isChargeLevelMinCommit":{"type":"boolean","description":"Whether a minimum commit is enforced at the charge level."},"isCommitted":{"type":"boolean","description":"Indicates if the charge definition is committed/finalized."},"labels":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Free-form labels/tags attached to the charge."},"listPriceBase":{"type":"string","description":"List price basis, for example, Per Billing Period, Per Month, Per Year."},"specificListPriceBase":{"type":"integer","description":"The number of months for the list price base of the charge. This field is used\nwhen the value of the `ListPriceBase` field to `Per Specific Months`.\nThe value must be a positive integer between **1** and **120** inclusive.\n\n\n**Notes**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `129` or later. Otherwise, an error occurs.\n  - The value of this field is `null` if you do not set the value of the `ListPriceBase` field to `Per Specific Months`.\n"},"mergedRateCards":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeResponseMergedRateCardsItems"},"description":"Effective rate-card rows after merges (if any)."},"name":{"type":"string","description":"Display name of the charge in the plan."},"negotiatedRateCards":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeResponseNegotiatedRateCardsItems"},"description":"Customer- or deal-specific rate-card rows applied by negotiation."},"netsuite":{"type":"object","additionalProperties":{"description":"Any type"},"description":"NetSuite integration attributes mapped for this charge."},"ocmJsonByCurrency":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Offer/OCM metadata keyed by currency (internal use)."},"organizationLabels":{"type":"array","items":{"type":"string"},"description":"Organization-level labels associated with the charge."},"overageOptions":{"$ref":"#/components/schemas/CreateChargeResponseOverageOptions","description":"Overage settings for usage charges."},"prepaid":{"type":"boolean","description":"Indicates whether the charge is prepaid."},"prepayment":{"$ref":"#/components/schemas/CreateChargeResponsePrepayment","description":"Prepayment handling and rollover behavior."},"priceChangeOption":{"type":"string","description":"How price changes are applied across renewals/amendments.\n"},"pricing":{"$ref":"#/components/schemas/CreateChargeResponsePricing","description":"Default (charge-level) price configuration by model/currency."},"pricingSummary":{"type":"array","items":{"type":"string"},"description":"Human-readable price summary strings, for example, USD100."},"pricingWaterfalls":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Detailed pricing/waterfall breakdown (if available)."},"productChargeDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeResponseProductChargeDefinitionsItems"},"description":"Underlying charge definitions referenced for pricing lookup."},"productRatePlanChargeNumber":{"type":"string","description":"PRPC number."},"productRatePlanId":{"type":"string","description":"ID of the plan (PRP) that owns this charge."},"prorationOption":{"type":"string","description":"How proration is handled relative to tenant defaults."},"rateCards":{"type":"array","items":{"$ref":"#/components/schemas/CreateChargeResponseRateCardsItems"},"description":"Dynamic Pricing rate-card rows configured on the charge."},"revenue":{"$ref":"#/components/schemas/CreateChargeResponseRevenue","description":"Revenue policy settings for this charge."},"taxCode":{"type":"string","description":"Tax code applied to the charge (for example, a tax category code)."},"taxMode":{"type":"string","description":"Tax mode for the charge.\n"},"taxable":{"type":"boolean","description":"Whether the charge is taxable."},"triggerEvent":{"type":"string","description":"Event that triggers the charge.\n"},"unitOfMeasure":{"type":"string","description":"Unit of measure used for pricing (for example, Each, Seats)."},"updatedById":{"type":"string","description":"User ID that last updated the charge record."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the charge record was last updated."},"useTenantDefaultForPriceChange":{"type":"boolean","description":"Whether tenant defaults govern price change behavior."}},"title":"CreateChargeResponse"},"ProxyBadRequestResponseErrorsItems":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code identifying the failure type."},"message":{"type":"string","description":"Human-readable description of the error that provides more context about what went wrong."}},"title":"ProxyBadRequestResponseErrorsItems"},"ProxyBadRequestResponse":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ProxyBadRequestResponseErrorsItems"}},"success":{"type":"boolean"}},"title":"ProxyBadRequestResponse"},"ProxyUnauthorizedResponse":{"type":"object","properties":{"message":{"type":"string","description":"Error message.\n\nIf the error message is \"Authentication error\", ensure that the `Authorization` request header contains valid authentication credentials, then retry the request. See [Authentication](https://developer.zuora.com/docs/guides/authentication/) for more information.\n\nIf the error message is \"Failed to get user info\", retry the request.\n"}},"title":"ProxyUnauthorizedResponse"},"UpdateChargeRequestChargeTriggerEvent":{"type":"string","enum":["contract_effective","service_activation","customer_acceptance"],"description":"Event that triggers the charge (if update is supported).","title":"UpdateChargeRequestChargeTriggerEvent"},"UpdateChargeRequestChargeBillCycleTiming":{"type":"string","enum":["in_advance","in_arrears"],"description":"Indicates whether billing occurs in advance or in arrears.","title":"UpdateChargeRequestChargeBillCycleTiming"},"UpdateChargeRequestChargeBillCycle":{"type":"object","properties":{"type":{"type":"string","description":"Source of the default billing period, for example, default_from_customer, specific_day_of_month."},"day_of_month":{"type":"integer","description":"Day of month to bill when type = `specific_day_of_month`."},"day_of_week":{"type":"string","description":"Day of week to bill when using weekly modes."},"period":{"type":"string","description":"Billing period, for example, bill_cycle_period_month, bill_cycle_period_quarter."},"specific_period":{"type":"string","description":"Custom period text when applicable."},"period_alignment":{"type":"string","description":"Alignment behavior, for example, align_to_charge, align_to_term_start."},"timing":{"$ref":"#/components/schemas/UpdateChargeRequestChargeBillCycleTiming","description":"Indicates whether billing occurs in advance or in arrears."}},"description":"Billing period configuration controlling frequency, alignment, and timing.","title":"UpdateChargeRequestChargeBillCycle"},"UpdateChargeRequestChargePricing0":{"type":"object","properties":{"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to flat amount."}},"required":["flat_amounts"],"title":"UpdateChargeRequestChargePricing0"},"UpdateChargeRequestChargePricing1":{"type":"object","properties":{"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to per-unit price."}},"required":["unit_amounts"],"title":"UpdateChargeRequestChargePricing1"},"UpdateChargeRequestChargePricingOneOf2TiersItems":{"type":"object","properties":{"tier":{"type":"string","description":"Tier identifier, for example, \"1\", \"2\"."},"from":{"type":"number","format":"double","description":"Lower bound (inclusive)."},"up_to":{"type":["number","null"],"format":"double","description":"Upper bound (inclusive). Omit/null for open-ended last tier."},"price_format":{"type":"string","description":"For example, price_format_per_unit or price_format_flat_fee."},"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Per-unit price by currency for this tier."},"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Flat amount by currency for this tier (if applicable)."},"min_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Minimum billed amount by currency for this tier."},"max_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Maximum billed amount by currency for this tier."}},"required":["tier","from","price_format"],"title":"UpdateChargeRequestChargePricingOneOf2TiersItems"},"UpdateChargeRequestChargePricing2":{"type":"object","properties":{"tiers":{"type":"array","items":{"$ref":"#/components/schemas/UpdateChargeRequestChargePricingOneOf2TiersItems"},"description":"Tier definitions (volume or tiered) with optional min/max caps."}},"required":["tiers"],"title":"UpdateChargeRequestChargePricing2"},"UpdateChargeRequestChargePricing3":{"type":"object","properties":{"discount_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to discount amount."}},"required":["discount_amounts"],"title":"UpdateChargeRequestChargePricing3"},"UpdateChargeRequestChargePricing4":{"type":"object","properties":{"discount_percentage":{"type":"number","format":"double","description":"Discount percentage, for example, 15 for 15%."}},"required":["discount_percentage"],"title":"UpdateChargeRequestChargePricing4"},"UpdateChargeRequestChargePricing":{"oneOf":[{"$ref":"#/components/schemas/UpdateChargeRequestChargePricing0"},{"$ref":"#/components/schemas/UpdateChargeRequestChargePricing1"},{"$ref":"#/components/schemas/UpdateChargeRequestChargePricing2"},{"$ref":"#/components/schemas/UpdateChargeRequestChargePricing3"},{"$ref":"#/components/schemas/UpdateChargeRequestChargePricing4"}],"description":"Default (charge-level) pricing used when no rate-card row matches.\nStructure depends on the charge model:\n  - flat_fee → flat_amounts\n  - per_unit → unit_amounts\n  - volume/tiered → tiers\n  - discount_fixed_amount → discount_amounts\n  - discount_percentage → discount_percentage\n","title":"UpdateChargeRequestChargePricing"},"UpdateChargeRequestChargeRateCardsItemsAttributesItemsOperator":{"type":"string","enum":[">",">=","<","<=","==","between","between-inclusive"],"description":"Comparison operator.","title":"UpdateChargeRequestChargeRateCardsItemsAttributesItemsOperator"},"UpdateChargeRequestChargeRateCardsItemsAttributesItemsValueOneOf3Items":{"oneOf":[{"type":"string"},{"type":"number","format":"double"}],"title":"UpdateChargeRequestChargeRateCardsItemsAttributesItemsValueOneOf3Items"},"UpdateChargeRequestChargeRateCardsItemsAttributesItemsValue3":{"type":"array","items":{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsAttributesItemsValueOneOf3Items"},"title":"UpdateChargeRequestChargeRateCardsItemsAttributesItemsValue3"},"UpdateChargeRequestChargeRateCardsItemsAttributesItemsValue":{"oneOf":[{"type":"string"},{"type":"number","format":"double"},{"type":"boolean"},{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsAttributesItemsValue3"}],"description":"Comparison value. For `between`, provide an array of two values.\nThe value type must align with the attribute’s declared type.\n","title":"UpdateChargeRequestChargeRateCardsItemsAttributesItemsValue"},"UpdateChargeRequestChargeRateCardsItemsAttributesItems":{"type":"object","properties":{"name":{"type":"string","description":"Attribute name, for example, Age, Region, EffectiveDate."},"operator":{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsAttributesItemsOperator","description":"Comparison operator."},"value":{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsAttributesItemsValue","description":"Comparison value. For `between`, provide an array of two values.\nThe value type must align with the attribute’s declared type.\n"}},"required":["name"],"title":"UpdateChargeRequestChargeRateCardsItemsAttributesItems"},"UpdateChargeRequestChargeRateCardsItemsPricing0":{"type":"object","properties":{"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to flat amount."}},"required":["flat_amounts"],"title":"UpdateChargeRequestChargeRateCardsItemsPricing0"},"UpdateChargeRequestChargeRateCardsItemsPricing1":{"type":"object","properties":{"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to per-unit price."}},"required":["unit_amounts"],"title":"UpdateChargeRequestChargeRateCardsItemsPricing1"},"UpdateChargeRequestChargeRateCardsItemsPricingOneOf2TiersItems":{"type":"object","properties":{"tier":{"type":"string","description":"Tier identifier, for example, \"1\", \"2\"."},"from":{"type":"number","format":"double","description":"Lower bound (inclusive)."},"up_to":{"type":["number","null"],"format":"double","description":"Upper bound (inclusive)."},"price_format":{"type":"string","description":"For example, price_format_per_unit."},"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Per-unit price by currency for this tier."},"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Flat amount by currency for this tier (if applicable)."},"min_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Minimum billed amount by currency for this tier."},"max_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Maximum billed amount by currency for this tier."}},"required":["tier","from","price_format"],"title":"UpdateChargeRequestChargeRateCardsItemsPricingOneOf2TiersItems"},"UpdateChargeRequestChargeRateCardsItemsPricing2":{"type":"object","properties":{"tiers":{"type":"array","items":{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsPricingOneOf2TiersItems"},"description":"Tier definitions (volume or tiered) with optional min/max caps."}},"required":["tiers"],"title":"UpdateChargeRequestChargeRateCardsItemsPricing2"},"UpdateChargeRequestChargeRateCardsItemsPricing3":{"type":"object","properties":{"discount_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to discount amount."}},"required":["discount_amounts"],"title":"UpdateChargeRequestChargeRateCardsItemsPricing3"},"UpdateChargeRequestChargeRateCardsItemsPricing4":{"type":"object","properties":{"discount_percentage":{"type":"number","format":"double","description":"Discount percentage (e.g., 15 for 15%)."}},"required":["discount_percentage"],"title":"UpdateChargeRequestChargeRateCardsItemsPricing4"},"UpdateChargeRequestChargeRateCardsItemsPricing":{"oneOf":[{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsPricing0"},{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsPricing1"},{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsPricing2"},{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsPricing3"},{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsPricing4"}],"description":"Price to apply when this row matches. Structure mirrors `pricing` above.\n","title":"UpdateChargeRequestChargeRateCardsItemsPricing"},"UpdateChargeRequestChargeRateCardsItems":{"type":"object","properties":{"attributes":{"type":"array","items":{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsAttributesItems"},"description":"Match conditions that must all evaluate to true for the row to apply.\nUse `between` for ranges or dates.\n"},"pricing":{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItemsPricing","description":"Price to apply when this row matches. Structure mirrors `pricing` above.\n"}},"required":["attributes","pricing"],"title":"UpdateChargeRequestChargeRateCardsItems"},"UpdateChargeRequestChargeOrganizationLabelsItems":{"type":"object","properties":{},"title":"UpdateChargeRequestChargeOrganizationLabelsItems"},"UpdateChargeRequestChargeAttributesItemsType":{"type":"string","enum":["string","integer","double","boolean","date","datetime"],"description":"Attribute data type.","title":"UpdateChargeRequestChargeAttributesItemsType"},"UpdateChargeRequestChargeAttributesItemsMapping":{"type":"object","properties":{"object":{"type":"string","description":"Target Zuora object, for example, account, subscription."},"field":{"type":"string","description":"Field on the target object, for example, age__c."}},"required":["object","field"],"description":"Optional mapping to resolve values from Zuora objects.","title":"UpdateChargeRequestChargeAttributesItemsMapping"},"UpdateChargeRequestChargeAttributesItems":{"type":"object","properties":{"name":{"type":"string","description":"Attribute name, for example, Region, Age, EffectiveDate."},"type":{"$ref":"#/components/schemas/UpdateChargeRequestChargeAttributesItemsType","description":"Attribute data type."},"mapping":{"$ref":"#/components/schemas/UpdateChargeRequestChargeAttributesItemsMapping","description":"Optional mapping to resolve values from Zuora objects."}},"required":["name"],"title":"UpdateChargeRequestChargeAttributesItems"},"UpdateChargeRequestCharge":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the product rate plan charge (PRPC) to update."},"name":{"type":"string","description":"Optional new display name for the charge."},"description":{"type":"string","description":"Optional new description for the charge."},"trigger_event":{"$ref":"#/components/schemas/UpdateChargeRequestChargeTriggerEvent","description":"Event that triggers the charge (if update is supported)."},"unit_of_measure":{"type":"string","description":"Unit of measure label for the charge, for example, Each, Seat. May be read-only in some tenants."},"default_quantity":{"type":"number","format":"double","description":"Default quantity when the charge is added to a product/offer."},"min_quantity":{"type":"number","format":"double","description":"Optional minimum quantity constraint (if supported)."},"max_quantity":{"type":"number","format":"double","description":"Optional maximum quantity constraint (if supported)"},"list_price_base":{"type":"string","description":"List price basis (e.g., Per_Billing_Period). Typically read-only after creation."},"bill_cycle":{"$ref":"#/components/schemas/UpdateChargeRequestChargeBillCycle","description":"Billing period configuration controlling frequency, alignment, and timing."},"pricing":{"$ref":"#/components/schemas/UpdateChargeRequestChargePricing","description":"Default (charge-level) pricing used when no rate-card row matches.\nStructure depends on the charge model:\n  - flat_fee → flat_amounts\n  - per_unit → unit_amounts\n  - volume/tiered → tiers\n  - discount_fixed_amount → discount_amounts\n  - discount_percentage → discount_percentage\n"},"rate_cards":{"type":"array","items":{"$ref":"#/components/schemas/UpdateChargeRequestChargeRateCardsItems"},"description":"Conditional pricing rows (rate cards). Each row defines match attributes and a price to apply.\nIf multiple rows match, the first match wins. If none match, `pricing` is used.\n"},"tax_code":{"type":"string","description":"Optional tax code to associate with the charge."},"tax_mode":{"type":"string","description":"Tax mode, for example, tax_exclusive, non_taxable, if supported."},"price_change_option":{"type":"string","description":"How price changes apply on updates, for example, no_change."},"use_tenant_default_for_price_change":{"type":"boolean","description":"If true, tenant defaults govern price change behavior."},"delivery_schedule":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Day-of-week delivery configuration (if enabled)."},"prepayment":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Prepayment settings (credit option, rollover, validity)."},"prepaid":{"type":"boolean","description":"Indicates whether the charge is prepaid."},"overage_options":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Overage configuration for usage charges."},"accounting":{"$ref":"#/components/schemas/AccountingRequest"},"revenue":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Revenue recognition settings (rule names, timing)."},"netsuite":{"type":"object","additionalProperties":{"description":"Any type"},"description":"NetSuite integration attributes for the charge."},"custom_fields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Tenant-specific custom field values on the charge."},"labels":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Free-form labels/tags attached to the charge."},"organization_labels":{"type":"array","items":{"$ref":"#/components/schemas/UpdateChargeRequestChargeOrganizationLabelsItems"},"description":"Organization-level labels associated with the charge."},"ocm_json_by_currency":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Offer/OCM metadata keyed by currency (internal use)."},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/UpdateChargeRequestChargeAttributesItems"},"description":"Attribute declarations for Dynamic Pricing (name/type/mapping)."}},"required":["id"],"description":"Fields to update on the product rate plan charge (PRPC). Only the properties\nprovided will be considered for update (patch semantics). Unsupported updates\nare ignored by the service.\n","title":"UpdateChargeRequestCharge"},"UpdateChargeRequest":{"type":"object","properties":{"charge":{"$ref":"#/components/schemas/UpdateChargeRequestCharge","description":"Fields to update on the product rate plan charge (PRPC). Only the properties\nprovided will be considered for update (patch semantics). Unsupported updates\nare ignored by the service.\n"}},"required":["charge"],"title":"UpdateChargeRequest"},"CommonResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"CommonResponseReasonsItems"},"CommonResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/CommonResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"CommonResponse"},"ErrorResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response"}},"title":"ErrorResponseReasonsItems"},"ErrorResponse":{"type":"object","properties":{"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ErrorResponseReasonsItems"}}},"title":"ErrorResponse"},"QueryChargeRequestExpand":{"type":"object","properties":{"product_rate_plan_charges":{"type":"boolean","description":"Whether to include Product Rate Plan Charges (PRPCs) in the response."}},"description":"Optional flags to expand related resources in the response.\n","title":"QueryChargeRequestExpand"},"QueryChargeRequestAttributesItems":{"type":"object","properties":{"name":{"type":"string","description":"Attribute name, for example, Age, Region, EffectiveDate, AccountContext."},"value":{"description":"Attribute value used for price evaluation.  The value can be a string, number, or boolean, depending on the attribute type.  \n - Enclose the value in quotation marks (\"\") if it is a **string**, for example, \"Liquidity Provider\", \"Y\", \"External\".  \n - Do **not** use quotation marks for **numeric** or **boolean** values, for example, 98, 5, true, false.\n"}},"required":["name"],"title":"QueryChargeRequestAttributesItems"},"QueryChargeRequestEvaluationLevel":{"type":"string","enum":["LIST_PRICE","EXTENDED_PRICE"],"description":"Controls how pricing is evaluated for the charge. Supported values: - `LIST_PRICE`: evaluate pricing at the list-price level. - `EXTENDED_PRICE`: evaluate pricing at the extended-price level.\nIf not specified, the default is `LIST_PRICE`.\n","title":"QueryChargeRequestEvaluationLevel"},"QueryChargeRequest":{"type":"object","properties":{"product_rate_plan_key":{"type":"string","description":"Unique identifier (key) of the Product Rate Plan (PRP) to query. This can be the PRP ID or the PRP number configured in your system.\n"},"expand":{"$ref":"#/components/schemas/QueryChargeRequestExpand","description":"Optional flags to expand related resources in the response.\n"},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/QueryChargeRequestAttributesItems"},"description":"Optional attribute values to use when evaluating Dynamic Pricing for the PRP or its charges.\nAll required attributes must be supplied if the PRP or PRPC is configured to require them.\n"},"evaluation_level":{"$ref":"#/components/schemas/QueryChargeRequestEvaluationLevel","description":"Controls how pricing is evaluated for the charge. Supported values: - `LIST_PRICE`: evaluate pricing at the list-price level. - `EXTENDED_PRICE`: evaluate pricing at the extended-price level.\nIf not specified, the default is `LIST_PRICE`.\n"}},"description":"Request schema for querying a specific Product Rate Plan Charge (PRPC) by key.\nUse this operation to fetch details of a single PRP, optionally expanding related charges.\n","title":"QueryChargeRequest"},"CreateProductRequestCategory":{"type":"string","enum":["base","add_on","other"],"description":"Product category.\n","title":"CreateProductRequestCategory"},"CreateProductRequestPlansItemsChargesItemsChargeType":{"type":"string","enum":["one_time","recurring","usage"],"description":"Charge type.","title":"CreateProductRequestPlansItemsChargesItemsChargeType"},"CreateProductRequestPlansItemsChargesItemsChargeModel":{"type":"string","enum":["flat_fee","per_unit","overage","volume","tiered","tiered_overage","discount_fixed_amount","discount_percentage","custom_charge_model","delivery","minimum_commitment_true_up","calculated","high_water_mark_volume_pricing","high_water_mark_tiered_pricing","multi_attribute_pricing","prerated_pricing","prerated_per_unit"],"description":"Charge model.","title":"CreateProductRequestPlansItemsChargesItemsChargeModel"},"CreateProductRequestPlansItemsChargesItemsListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months","Per_Validity_Period"],"description":"List price base for the charge.\n","title":"CreateProductRequestPlansItemsChargesItemsListPriceBase"},"CreateProductRequestPlansItemsChargesItemsPricing0":{"type":"object","properties":{"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to flat amount."}},"required":["flat_amounts"],"title":"CreateProductRequestPlansItemsChargesItemsPricing0"},"CreateProductRequestPlansItemsChargesItemsPricing1":{"type":"object","properties":{"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to per-unit price."}},"required":["unit_amounts"],"title":"CreateProductRequestPlansItemsChargesItemsPricing1"},"CreateProductRequestPlansItemsChargesItemsPricingOneOf2TiersItemsPriceFormat":{"type":"string","enum":["price_format_flat_fee","price_format_per_unit"],"description":"Price format for the tier.","title":"CreateProductRequestPlansItemsChargesItemsPricingOneOf2TiersItemsPriceFormat"},"CreateProductRequestPlansItemsChargesItemsPricingOneOf2TiersItems":{"type":"object","properties":{"tier":{"type":"string","description":"Tier identifier (e.g., \"1\", \"2\")."},"from":{"type":"number","format":"double","description":"Lower bound (inclusive)."},"up_to":{"type":["number","null"],"format":"double","description":"Upper bound (inclusive). Omit/null for open-ended last tier."},"price_format":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsPricingOneOf2TiersItemsPriceFormat","description":"Price format for the tier."},"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Per-unit price by currency for this tier."},"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Flat amount by currency for this tier (if applicable)."},"min_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Minimum billed amount by currency for this tier."},"max_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Maximum billed amount by currency for this tier."}},"required":["tier","from","price_format"],"title":"CreateProductRequestPlansItemsChargesItemsPricingOneOf2TiersItems"},"CreateProductRequestPlansItemsChargesItemsPricing2":{"type":"object","properties":{"tiers":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsPricingOneOf2TiersItems"},"description":"Tier definitions (volume or tiered) with optional min/max caps."}},"required":["tiers"],"title":"CreateProductRequestPlansItemsChargesItemsPricing2"},"CreateProductRequestPlansItemsChargesItemsPricing3":{"type":"object","properties":{"discount_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to discount amount."}},"required":["discount_amounts"],"title":"CreateProductRequestPlansItemsChargesItemsPricing3"},"CreateProductRequestPlansItemsChargesItemsPricing4":{"type":"object","properties":{"discount_percentage":{"type":"number","format":"double","description":"Discount percentage (e.g., 15 for 15%)."}},"required":["discount_percentage"],"title":"CreateProductRequestPlansItemsChargesItemsPricing4"},"CreateProductRequestPlansItemsChargesItemsPricing":{"oneOf":[{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsPricing0"},{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsPricing1"},{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsPricing2"},{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsPricing3"},{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsPricing4"}],"description":"Default (standard) pricing defined at the charge level.\nProvide exactly one structure per the charge model.\n","title":"CreateProductRequestPlansItemsChargesItemsPricing"},"CreateProductRequestPlansItemsChargesItemsBillCycleType":{"type":"string","enum":["default_from_customer","specific_day_of_month","subscription_start_day","charge_trigger_day","specific_day_of_week","term_start_day","term_end_day"],"description":"Determines how the billing day is selected for this charge.\n","title":"CreateProductRequestPlansItemsChargesItemsBillCycleType"},"CreateProductRequestPlansItemsChargesItemsBillCyclePeriod":{"type":"string","enum":["bill_cycle_period_month","bill_cycle_period_quarter","bill_cycle_period_semi_annual","bill_cycle_period_annual","bill_cycle_period_eighteen_months","bill_cycle_period_two_years","bill_cycle_period_three_years","bill_cycle_period_five_years","bill_cycle_period_specific_months","bill_cycle_period_subscription_term","bill_cycle_period_week","bill_cycle_period_specific_weeks","bill_cycle_period_specific_days"],"description":"Length of each billing period. \n","title":"CreateProductRequestPlansItemsChargesItemsBillCyclePeriod"},"CreateProductRequestPlansItemsChargesItemsBillCyclePeriodAlignment":{"type":"string","enum":["align_to_charge","align_to_subscription_start","align_to_term_start","align_to_term_end"],"description":"How the billing period start aligns. \n","title":"CreateProductRequestPlansItemsChargesItemsBillCyclePeriodAlignment"},"CreateProductRequestPlansItemsChargesItemsBillCycleTiming":{"type":"string","enum":["in_advance","in_arrears"],"description":"When the charge is billed relative to the service period.\n","title":"CreateProductRequestPlansItemsChargesItemsBillCycleTiming"},"CreateProductRequestPlansItemsChargesItemsBillCycleDayOfWeek":{"type":"string","enum":["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],"description":"Used when \"type\" is `specific_day_of_week`.\n","title":"CreateProductRequestPlansItemsChargesItemsBillCycleDayOfWeek"},"CreateProductRequestPlansItemsChargesItemsBillCycle":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsBillCycleType","description":"Determines how the billing day is selected for this charge.\n"},"period":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsBillCyclePeriod","description":"Length of each billing period. \n"},"period_alignment":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsBillCyclePeriodAlignment","description":"How the billing period start aligns. \n"},"timing":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsBillCycleTiming","description":"When the charge is billed relative to the service period.\n"},"day_of_month":{"type":"integer","minimum":1,"maximum":31,"description":"Required if \"type\" is `specific_day_of_month`."},"day_of_week":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsBillCycleDayOfWeek","description":"Used when \"type\" is `specific_day_of_week`.\n"},"specific_period":{"type":"string","description":"Optional specific period value when `period` is `bill_cycle_period_specific_months`, `bill_cycle_period_specific_weeks`, or `bill_cycle_period_specific_days`.   Equivalent to `SpecificBillingPeriod` in the legacy v1 API.\n"}},"required":["type","period","period_alignment"],"description":"Billing configuration of the charge.","title":"CreateProductRequestPlansItemsChargesItemsBillCycle"},"CreateProductRequestPlansItemsChargesItemsTriggerEvent":{"type":"string","enum":["contract_effective","service_activation","customer_acceptance","specific_date"],"description":"Event that triggers the charge. \n","title":"CreateProductRequestPlansItemsChargesItemsTriggerEvent"},"CreateProductRequestPlansItemsChargesItemsEndDateCondition":{"type":"string","enum":["subscription_end","end_date_one_time","fixed_period","specific_end_date"],"description":"Defines when the charge ends. \n","title":"CreateProductRequestPlansItemsChargesItemsEndDateCondition"},"CreateProductRequestPlansItemsChargesItemsUpToPeriodsType":{"type":"string","enum":["billing_periods","days","weeks","months","years"],"description":"Unit of time used when `end_date_condition` = `fixed_period`.\nMaps to the duration unit (billing periods, days, weeks, months, years).\n","title":"CreateProductRequestPlansItemsChargesItemsUpToPeriodsType"},"CreateProductRequestPlansItemsChargesItemsOverageOptions":{"type":"object","properties":{"number_of_periods":{"type":"number","format":"double","description":"Number of billing periods used for overage smoothing / calculation.\n"}},"description":"Configuration for overage smoothing and period-based overage calculation. Equivalent to `NumberOfPeriod` and related fields in the legacy v1 API.\n","title":"CreateProductRequestPlansItemsChargesItemsOverageOptions"},"CreateProductRequestPlansItemsChargesItemsPriceChangeOption":{"type":"string","enum":["no_change","specific_percentage_value","use_latest_product_catalog_pricing"],"description":"Specifies how price changes are handled for future terms when this product or rate plan is amended. Equivalent to `PriceChangeOption` in the legacy v1 API. Examples include `no_change`, `specific_percentage_value`, or `use_latest_product_catalog_pricing`.\n","title":"CreateProductRequestPlansItemsChargesItemsPriceChangeOption"},"CreateProductRequestPlansItemsChargesItemsDiscountOptionsApplyToItems":{"type":"string","enum":["one_time","recurring","usage"],"title":"CreateProductRequestPlansItemsChargesItemsDiscountOptionsApplyToItems"},"CreateProductRequestPlansItemsChargesItemsDiscountOptionsDiscountLevel":{"type":"string","enum":["rate_plan","subscription","account"],"description":"Level at which the discount applies (for example, subscription-level or account-level discounts).\n","title":"CreateProductRequestPlansItemsChargesItemsDiscountOptionsDiscountLevel"},"CreateProductRequestPlansItemsChargesItemsDiscountOptionsApplyDetailsItems":{"type":"object","properties":{"applied_product_rate_plan_id":{"type":"string","description":"ID of the target product rate plan."},"applied_product_rate_plan_charge_id":{"type":"string","description":"ID of the target product rate plan charge."}},"title":"CreateProductRequestPlansItemsChargesItemsDiscountOptionsApplyDetailsItems"},"CreateProductRequestPlansItemsChargesItemsDiscountOptions":{"type":"object","properties":{"discount_class":{"type":"string","description":"Discount class to associate with this discount charge."},"stacked_discount":{"type":"boolean","description":"When true, this discount can stack with other discounts.\n"},"apply_to":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsDiscountOptionsApplyToItems"},"description":"Charge types that this discount applies to.   Mirrors the \"One-Time / Recurring / Usage\" checkboxes in the UI.\n"},"discount_level":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsDiscountOptionsDiscountLevel","description":"Level at which the discount applies (for example, subscription-level or account-level discounts).\n"},"apply_to_billing_period_partially":{"type":"boolean","description":"When true, allows the discount to apply to partial billing periods.\n"},"specific_accounting_codes":{"type":"boolean","description":"When true, uses discount-specific accounting codes instead of inheriting from the discounted charges.   Equivalent to `UseDiscountSpecificAccountingCode` in the legacy v1 API.\n"},"reflect_discount_in_net_amount":{"type":"boolean","description":"When true, discount is reflected directly in the net amount (Apply To Charge Net Amount option in the UI).\n"},"rollover":{"type":"boolean","description":"Indicates whether unused discount amounts roll over to the next billing period.\n"},"apply_details":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsDiscountOptionsApplyDetailsItems"},"description":"Explicit list of product charges that this discount applies to when targeting specific charges.\n"}},"description":"Discount configuration for discount charge models, including \"Apply Discount To\" and related settings.\n","title":"CreateProductRequestPlansItemsChargesItemsDiscountOptions"},"CreateProductRequestPlansItemsChargesItems":{"type":"object","properties":{"name":{"type":"string","description":"Charge name."},"charge_type":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsChargeType","description":"Charge type."},"charge_model":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsChargeModel","description":"Charge model."},"unit_of_measure":{"type":"string","description":"Unit of measure for per-unit or usage charges."},"list_price_base":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsListPriceBase","description":"List price base for the charge.\n"},"default_quantity":{"type":"number","format":"double","description":"Default quantity for this charge on subscriptions created from the plan."},"min_quantity":{"type":"number","format":"double","description":"Minimum quantity allowed for this charge.   Equivalent to the `MinQuantity` field in the legacy v1 Product Rate Plan Charge.\n"},"max_quantity":{"type":"number","format":"double","description":"Maximum quantity allowed for this charge.   Equivalent to the `MaxQuantity` field in the legacy v1 Product Rate Plan Charge.\n"},"pricing":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsPricing","description":"Default (standard) pricing defined at the charge level.\nProvide exactly one structure per the charge model.\n"},"bill_cycle":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsBillCycle","description":"Billing configuration of the charge."},"trigger_event":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsTriggerEvent","description":"Event that triggers the charge. \n"},"end_date_condition":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsEndDateCondition","description":"Defines when the charge ends. \n"},"up_to_periods_type":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsUpToPeriodsType","description":"Unit of time used when `end_date_condition` = `fixed_period`.\nMaps to the duration unit (billing periods, days, weeks, months, years).\n"},"up_to_periods":{"type":"integer","description":"Number of periods used when `end_date_condition` = `fixed_period`.\n"},"overage_options":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsOverageOptions","description":"Configuration for overage smoothing and period-based overage calculation. Equivalent to `NumberOfPeriod` and related fields in the legacy v1 API.\n"},"price_increase_percentage":{"type":"number","format":"double","description":"Percentage used when `price_change_option` is set to apply a specific percentage price increase. Equivalent to `PriceIncreasePercentage` (v1).\n"},"price_change_option":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsPriceChangeOption","description":"Specifies how price changes are handled for future terms when this product or rate plan is amended. Equivalent to `PriceChangeOption` in the legacy v1 API. Examples include `no_change`, `specific_percentage_value`, or `use_latest_product_catalog_pricing`.\n"},"use_tenant_default_for_price_change":{"type":"boolean","description":"When true, uses the tenant-level default setting for price change behavior instead of the charge-level `price_change_option`.   Equivalent to `UseTenantDefaultForPriceChange` in the legacy v1 API.\n"},"discount_options":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItemsDiscountOptions","description":"Discount configuration for discount charge models, including \"Apply Discount To\" and related settings.\n"},"accounting":{"$ref":"#/components/schemas/AccountingRequest"}},"required":["name","charge_type","charge_model","bill_cycle","trigger_event","end_date_condition"],"title":"CreateProductRequestPlansItemsChargesItems"},"CreateProductRequestPlansItems":{"type":"object","properties":{"name":{"type":"string","description":"Rate plan name."},"start_date":{"type":"string","format":"date","description":"Rate plan effective start date (UTC, YYYY-MM-DD)."},"end_date":{"type":"string","format":"date","description":"Rate plan effective end date (UTC, YYYY-MM-DD)."},"active_currencies":{"type":"array","items":{"type":"string","minLength":3,"maxLength":3},"description":"ISO currency codes enabled for this plan."},"charges":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductRequestPlansItemsChargesItems"},"description":"Charges to create under this rate plan."}},"required":["name","start_date","end_date","active_currencies","charges"],"title":"CreateProductRequestPlansItems"},"CreateProductRequest":{"type":"object","properties":{"name":{"type":"string","description":"Product name."},"sku":{"type":"string","description":"The stock keeping unit (SKU) associated with the product or invoice item."},"product_number":{"type":"string","description":"The product number that uniquely identifies the product in the product catalog."},"start_date":{"type":"string","format":"date","description":"Product effective start date (UTC, YYYY-MM-DD)."},"end_date":{"type":"string","format":"date","description":"Product effective end date (UTC, YYYY-MM-DD)."},"category":{"$ref":"#/components/schemas/CreateProductRequestCategory","description":"Product category.\n"},"plans":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductRequestPlansItems"},"description":"Product rate plans to create under the product."}},"required":["name","start_date","end_date","category","plans"],"title":"CreateProductRequest"},"CreateProductResponseFeaturesItems":{"type":"object","properties":{},"title":"CreateProductResponseFeaturesItems"},"CreateProductResponseContextFiltersItems":{"type":"object","properties":{},"title":"CreateProductResponseContextFiltersItems"},"CreateProductResponseOrganizationLabelsItems":{"type":"object","properties":{},"title":"CreateProductResponseOrganizationLabelsItems"},"CreateProductResponsePlansItemsAttributesItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsAttributesItems"},"CreateProductResponsePlansItemsContextFiltersItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsContextFiltersItems"},"CreateProductResponsePlansItemsEntitlementsItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsEntitlementsItems"},"CreateProductResponsePlansItemsOrganizationLabelsItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsOrganizationLabelsItems"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsBillCycle":{"type":"object","properties":{"type":{"type":"string","description":"Whether the charge inherits account defaults or uses an override."},"dayOfMonth":{"type":"integer","description":"Day of month to bill when using a specific day schedule."},"period":{"type":"string","description":"Billing period length (for example, monthly)."},"periodAlignment":{"type":"string","description":"How the billing period start aligns."},"timing":{"type":"string","description":"When the charge is billed relative to the service period."}},"description":"Billing configuration of the charge.","title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsBillCycle"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsOrganizationLabelsItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsOrganizationLabelsItems"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsDiscountOptionsApplyDetailsItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsDiscountOptionsApplyDetailsItems"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsDiscountOptions":{"type":"object","properties":{"applyDetails":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsDiscountOptionsApplyDetailsItems"},"description":"List of granular discount application details."},"applyTo":{"type":"array","items":{"type":"string"},"description":"Line item categories the discount applies to."},"applyToBillingPeriodPartially":{"type":"boolean","description":"Whether discount applies to partial billing periods."},"reflectDiscountInNetAmount":{"type":"boolean","description":"Whether to reflect discounts in the net amount fields."},"rollover":{"type":"boolean","description":"Whether unapplied discounts roll over."},"stackedDiscount":{"type":"boolean","description":"Whether multiple discounts can stack."}},"description":"Discount behavior flags configured on the charge.","title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsDiscountOptions"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsOverageOptions":{"type":"object","properties":{"includedUnits":{"type":"number","format":"double","description":"Number of units included before overages apply."},"unusedUnitsCreditRates":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Credit rates for unused units by currency."}},"description":"Options governing overage behavior for usage charges.","title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsOverageOptions"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsPrepayment":{"type":"object","properties":{"rollover":{"type":"boolean","description":"Whether unused prepaid amounts roll over."},"rolloverApply":{"type":"string","description":"How rollover amounts are applied."},"rolloverPeriodLength":{"type":"integer","description":"Length of the rollover period."},"rolloverPeriods":{"type":"integer","description":"Number of rollover periods."}},"description":"Prepayment configuration for the charge (if applicable).","title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsPrepayment"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsAttributesItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsAttributesItems"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsPricingTiersItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsPricingTiersItems"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsPricing":{"type":"object","properties":{"adjustments":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Price adjustments by currency or context."},"discountAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Fixed discount amounts by currency."},"discountPercentages":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Discount percentages by currency."},"flatAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Flat fee amounts by currency."},"maxAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Maximum amounts by currency (caps)."},"minAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Minimum amounts by currency (floors)."},"percentages":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Percentage values by currency for percentage models."},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsPricingTiersItems"},"description":"Tier definitions for tiered/volume pricing."},"unitAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Per-unit prices by currency for usage/per-unit models."}},"description":"Default (charge-level) pricing returned for the charge.","title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsPricing"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsProductChargeDefinitionsItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsProductChargeDefinitionsItems"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsRateCardsItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsRateCardsItems"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsRevenue":{"type":"object","properties":{"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"Whether item billing is excluded from revenue accounting."},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"Whether item booking is excluded from revenue accounting."},"legacyReporting":{"type":"boolean","description":"Whether legacy reporting is enabled."},"revenueRecognitionRuleName":{"type":"string","description":"Revenue recognition rule applied to this charge."}},"description":"Revenue recognition metadata for the charge.","title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsRevenue"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsMergedRateCardsItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsMergedRateCardsItems"},"CreateProductResponsePlansItemsProductRatePlanChargesItemsNegotiatedRateCardsItems":{"type":"object","properties":{},"title":"CreateProductResponsePlansItemsProductRatePlanChargesItemsNegotiatedRateCardsItems"},"CreateProductResponsePlansItemsProductRatePlanChargesItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the product rate plan charge (PRPC)."},"name":{"type":"string","description":"Charge display name within the plan."},"chargeModel":{"type":"string","description":"Pricing model that determines how the amount is calculated."},"chargeType":{"type":"string","description":"Whether the charge recurs, rates usage, or is a one-time fee."},"chargeFunction":{"type":"string","description":"Internal function identifier for the charge."},"productRatePlanChargeNumber":{"type":"string","description":"The charge number."},"productRatePlanId":{"type":"string","description":"ID of the parent plan for this charge."},"triggerEvent":{"type":"string","description":"Event that triggers the charge to become billable."},"endDateCondition":{"type":"string","description":"Condition that determines when the charge ends."},"upToPeriodsType":{"type":"string","description":"Unit of time used when `endDateCondition` is `fixed_period`, for\nexample, billing periods, days, weeks, months, or years.\n"},"upToPeriods":{"type":"integer","description":"Number of periods used when `endDateCondition` is `fixed_period`.\n"},"listPriceBase":{"type":"string","description":"Basis used for list pricing (if applicable)."},"specificListPriceBase":{"type":"number","format":"double","description":"Optional override for list price base when billing uses a specific period configuration.\n"},"billCycle":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsBillCycle","description":"Billing configuration of the charge."},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsOrganizationLabelsItems"},"description":"Key/value style organizational labels on the charge."},"accounting":{"$ref":"#/components/schemas/AccountingResponse"},"discountOptions":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsDiscountOptions","description":"Discount behavior flags configured on the charge."},"overageOptions":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsOverageOptions","description":"Options governing overage behavior for usage charges."},"prepayment":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsPrepayment","description":"Prepayment configuration for the charge (if applicable)."},"prorationOption":{"type":"string","description":"Proration behavior for partial periods."},"priceChangeOption":{"type":"string","description":"How price changes are applied to existing subscriptions."},"taxable":{"type":"boolean","description":"Whether the charge is taxable."},"taxMode":{"type":"string","description":"Tax mode classification (present on some responses)."},"prepaid":{"type":"boolean","description":"Whether the charge is prepaid."},"isCommitted":{"type":"boolean","description":"Whether the charge is committed."},"isChargeLevelMinCommit":{"type":"boolean","description":"Whether a minimum commitment is enforced at the charge level."},"useTenantDefaultForPriceChange":{"type":"boolean","description":"Whether tenant default settings apply to price changes."},"labels":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Arbitrary label metadata for the charge."},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsAttributesItems"},"description":"Attribute metadata on the charge (if configured)."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom field values on the charge."},"createdById":{"type":"string","description":"ID of the user who created the charge."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was created."},"updatedById":{"type":"string","description":"ID of the user who last updated the charge."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was last updated."},"pricing":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsPricing","description":"Default (charge-level) pricing returned for the charge."},"pricingSummary":{"type":"array","items":{"type":"string"},"description":"Textual summary of pricing for display purposes."},"pricingWaterfalls":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Detailed pricing waterfall data (if available)."},"productChargeDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsProductChargeDefinitionsItems"},"description":"Charge definition metadata linked to this PRPC."},"rateCards":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsRateCardsItems"},"description":"Conditional rate card rules configured for the charge."},"revenue":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsRevenue","description":"Revenue recognition metadata for the charge."},"ocmJsonByCurrency":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Offer/charge metadata keyed by currency."},"drawdown":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Drawdown configuration data (if applicable)."},"extendedPrice":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Extended price metadata (if present)."},"mergedRateCards":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsMergedRateCardsItems"},"description":"Merged/compiled rate card entries after evaluation."},"negotiatedRateCards":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItemsNegotiatedRateCardsItems"},"description":"Customer-specific negotiated rate card entries."}},"required":["id","name","chargeModel","chargeType","billCycle","pricing"],"title":"CreateProductResponsePlansItemsProductRatePlanChargesItems"},"CreateProductResponsePlansItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the product rate plan (PRP)."},"name":{"type":"string","description":"Rate plan display name."},"displayName":{"type":"string","description":"Optional alternate display name for the plan."},"description":{"type":"string","description":"Free-form plan description."},"startDate":{"type":"string","format":"date","description":"Plan effective start date (UTC, YYYY-MM-DD)."},"endDate":{"type":"string","format":"date","description":"Plan effective end date (UTC, YYYY-MM-DD)."},"state":{"type":"string","description":"Current lifecycle state of the plan."},"status":{"type":"string","description":"Optional status when present in some responses."},"activeCurrencies":{"type":"array","items":{"type":"string"},"description":"ISO currency codes enabled for this plan."},"createTime":{"type":"string","format":"date-time","description":"Timestamp when the plan was created."},"updateTime":{"type":"string","format":"date-time","description":"Timestamp when the plan was last updated."},"createdBy":{"type":"string","description":"ID of the user who created the plan."},"updatedBy":{"type":"string","description":"ID of the user who last updated the plan."},"productId":{"type":"string","description":"ID of the parent product for this plan."},"productRatePlanNumber":{"type":"string","description":"The plan number."},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsAttributesItems"},"description":"Plan-level attribute metadata."},"contextFilters":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsContextFiltersItems"},"description":"Context filter rules scoped to the plan."},"entitlements":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsEntitlementsItems"},"description":"Entitlements included with the plan."},"externalIdSourceSystem":{"type":"string","description":"Source system identifier for the external plan ID."},"externalRateplanId":{"type":"array","items":{"type":"string"},"description":"External plan identifier(s) from other systems."},"netsuite":{"type":["object","null"],"additionalProperties":{"description":"Any type"},"description":"NetSuite integration metadata (if present)."},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsOrganizationLabelsItems"},"description":"Key/value style organizational labels on the plan."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom field values on the plan."},"productRatePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItemsProductRatePlanChargesItems"},"description":"Charges created under this plan."}},"required":["id","name","startDate","endDate","activeCurrencies"],"title":"CreateProductResponsePlansItems"},"CreateProductResponse":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the product."},"name":{"type":"string","description":"Product name."},"category":{"type":"string","description":"Product category, for example, base or add-on."},"description":{"type":"string","description":"Free-form product description."},"productNumber":{"type":"string","description":"The product number."},"sku":{"type":"string","description":"Stock keeping unit for the product."},"startDate":{"type":"string","format":"date","description":"Product effective start date, for example, UTC, YYYY-MM-DD."},"endDate":{"type":"string","format":"date","description":"Product effective end date, for example, UTC, YYYY-MM-DD."},"state":{"type":"string","description":"Current lifecycle state of the product."},"allowFeatureChanges":{"type":"boolean","description":"Whether feature changes are allowed for this product."},"features":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponseFeaturesItems"},"description":"List of features associated with the product."},"legacyFeatures":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Legacy feature list retained for backward compatibility."},"contextFilters":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponseContextFiltersItems"},"description":"Context filter rules that may restrict product availability."},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponseOrganizationLabelsItems"},"description":"Key/value style organizational labels applied to the product."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom field values on the product."},"customObjects":{"type":["object","null"],"additionalProperties":{"description":"Any type"},"description":"Custom object payloads linked to the product, if any."},"dacTags":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Data access control or categorization tags for the product."},"netsuite":{"type":["object","null"],"additionalProperties":{"description":"Any type"},"description":"NetSuite integration metadata (if present)."},"createdBy":{"type":"string","description":"ID of the user who created the product."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the product was created."},"updatedBy":{"type":"string","description":"ID of the user who last updated the product."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the product was last updated."},"plans":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductResponsePlansItems"},"description":"Rate plans (PRPs) defined under this product."}},"required":["id","name","category","startDate","endDate","state"],"description":"Product created with optional plans and charges.","title":"CreateProductResponse"},"UpdateProductRequest":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the product to update."},"name":{"type":"string","description":"Product name."},"description":{"type":"string","description":"Product description."},"category":{"type":"string","description":"Product category label, for example, base, add-on."},"custom_fields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom fields to set on the product. Keys must match configured custom field API names.\nValues may be strings, numbers, booleans, or arrays depending on field definition.\n"},"startDate":{"type":"string","format":"date","description":"Product effective start date (UTC, YYYY-MM-DD)."},"endDate":{"type":"string","format":"date","description":"Product effective end date (UTC, YYYY-MM-DD)."}},"required":["id"],"description":"Request body for updating a product in the Product Catalog.","title":"UpdateProductRequest"},"UpdateProductResponse":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the product."},"name":{"type":"string","description":"Product name."},"description":{"type":"string","description":"Product description."},"category":{"type":"string","description":"Product category label."},"productNumber":{"type":"string","description":"Product number in the catalog."},"sku":{"type":"string","description":"Product SKU."},"startDate":{"type":"string","format":"date","description":"Product effective start date (UTC, YYYY-MM-DD)."},"endDate":{"type":"string","format":"date","description":"Product effective end date (UTC, YYYY-MM-DD)."},"state":{"type":"string","description":"Current product state."},"allowFeatureChanges":{"type":"boolean","description":"Whether features on this product can be changed."},"features":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Product features."},"legacyFeatures":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Legacy features associated with this product."},"contextFilters":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Context filters applied to the product."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom fields on the product."},"customObjects":{"type":["object","null"],"additionalProperties":{"description":"Any type"},"description":"Custom objects linked to this product."},"netsuite":{"type":["object","null"],"additionalProperties":{"description":"Any type"},"description":"Netsuite integration attributes."},"organizationLabels":{"type":"array","items":{"type":"string"},"description":"Organization labels for the product."},"productRatePlans":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Rate plans (PRPs) defined under the product."},"createdBy":{"type":"string","description":"ID of the user who created the product."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the product was created."},"updatedBy":{"type":"string","description":"ID of the user who last updated the product."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the product was last updated."}},"description":"Product record returned after a successful update.","title":"UpdateProductResponse"},"CreatePlanRequestChargesItemsChargeModel":{"type":"string","enum":["flat_fee","per_unit","overage","volume","tiered","tiered_overage","discount_fixed_amount","discount_percentage","custom_charge_model","delivery","minimum_commitment_true_up","calculated","high_water_mark_volume_pricing","high_water_mark_tiered_pricing","multi_attribute_pricing","prerated_pricing","prerated_per_unit"],"description":"Charge model that defines how pricing is calculated.","title":"CreatePlanRequestChargesItemsChargeModel"},"CreatePlanRequestChargesItemsChargeType":{"type":"string","enum":["one_time","recurring","usage"],"description":"Charge type (recurring, usage, or one-time).","title":"CreatePlanRequestChargesItemsChargeType"},"CreatePlanRequestChargesItemsListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months","Per_Validity_Period"],"description":"Optional list price base, if supported by the charge model.\n","title":"CreatePlanRequestChargesItemsListPriceBase"},"CreatePlanRequestChargesItemsPricing0":{"type":"object","properties":{"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to flat amount."}},"required":["flat_amounts"],"title":"CreatePlanRequestChargesItemsPricing0"},"CreatePlanRequestChargesItemsPricing1":{"type":"object","properties":{"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to per-unit price."}},"required":["unit_amounts"],"title":"CreatePlanRequestChargesItemsPricing1"},"CreatePlanRequestChargesItemsPricingOneOf2TiersItemsPriceFormat":{"type":"string","enum":["price_format_flat_fee","price_format_per_unit"],"description":"Price format identifier used for the tier.","title":"CreatePlanRequestChargesItemsPricingOneOf2TiersItemsPriceFormat"},"CreatePlanRequestChargesItemsPricingOneOf2TiersItems":{"type":"object","properties":{"tier":{"type":"string","description":"Tier identifier."},"from":{"type":"number","format":"double","description":"Lower bound (inclusive)."},"up_to":{"type":["number","null"],"format":"double","description":"Upper bound (inclusive). Null for open-ended last tier."},"price_format":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsPricingOneOf2TiersItemsPriceFormat","description":"Price format identifier used for the tier."},"unit_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Per-unit price by currency for this tier."},"flat_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Flat amount by currency for this tier (if applicable)."},"min_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Minimum billed amount by currency for this tier."},"max_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Maximum billed amount by currency for this tier."}},"required":["tier","from","price_format"],"title":"CreatePlanRequestChargesItemsPricingOneOf2TiersItems"},"CreatePlanRequestChargesItemsPricing2":{"type":"object","properties":{"tiers":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsPricingOneOf2TiersItems"},"description":"Tier definitions with optional min/max caps."}},"required":["tiers"],"title":"CreatePlanRequestChargesItemsPricing2"},"CreatePlanRequestChargesItemsPricing3":{"type":"object","properties":{"discount_amounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Map of currency to discount amount."}},"required":["discount_amounts"],"title":"CreatePlanRequestChargesItemsPricing3"},"CreatePlanRequestChargesItemsPricing4":{"type":"object","properties":{"discount_percentage":{"type":"number","format":"double","description":"Discount percentage (e.g., 15 for 15%)."}},"required":["discount_percentage"],"title":"CreatePlanRequestChargesItemsPricing4"},"CreatePlanRequestChargesItemsPricing":{"oneOf":[{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsPricing0"},{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsPricing1"},{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsPricing2"},{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsPricing3"},{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsPricing4"}],"description":"Defines the pricing for the charge. Provide exactly one structure per charge model.","title":"CreatePlanRequestChargesItemsPricing"},"CreatePlanRequestChargesItemsBillCycleType":{"type":"string","enum":["default_from_customer","specific_day_of_month","subscription_start_day","charge_trigger_day","specific_day_of_week","term_start_day","term_end_day"],"description":"Determines how the billing day is selected for this charge.\n","title":"CreatePlanRequestChargesItemsBillCycleType"},"CreatePlanRequestChargesItemsBillCycleDayOfWeek":{"type":"string","enum":["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],"description":"Used \"when type is specific_day_of_week\".\n","title":"CreatePlanRequestChargesItemsBillCycleDayOfWeek"},"CreatePlanRequestChargesItemsBillCyclePeriod":{"type":"string","enum":["bill_cycle_period_month","bill_cycle_period_quarter","bill_cycle_period_semi_annual","bill_cycle_period_annual","bill_cycle_period_eighteen_months","bill_cycle_period_two_years","bill_cycle_period_three_years","bill_cycle_period_five_years","bill_cycle_period_specific_months","bill_cycle_period_subscription_term","bill_cycle_period_week","bill_cycle_period_specific_weeks","bill_cycle_period_specific_days"],"description":"Billing period length.\n","title":"CreatePlanRequestChargesItemsBillCyclePeriod"},"CreatePlanRequestChargesItemsBillCyclePeriodAlignment":{"type":"string","enum":["align_to_charge","align_to_subscription_start","align_to_term_start","align_to_term_end"],"description":"How the billing period start aligns. \n","title":"CreatePlanRequestChargesItemsBillCyclePeriodAlignment"},"CreatePlanRequestChargesItemsBillCycleTiming":{"type":"string","enum":["in_advance","in_arrears"],"description":"When the charge is billed relative to the service period.\n","title":"CreatePlanRequestChargesItemsBillCycleTiming"},"CreatePlanRequestChargesItemsBillCycle":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsBillCycleType","description":"Determines how the billing day is selected for this charge.\n"},"day_of_month":{"type":"integer","minimum":1,"maximum":31,"description":"Required \"when type is specific_day_of_month\"."},"day_of_week":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsBillCycleDayOfWeek","description":"Used \"when type is specific_day_of_week\".\n"},"period":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsBillCyclePeriod","description":"Billing period length.\n"},"period_alignment":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsBillCyclePeriodAlignment","description":"How the billing period start aligns. \n"},"timing":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsBillCycleTiming","description":"When the charge is billed relative to the service period.\n"}},"required":["type","period","period_alignment"],"description":"Defines how billing occurs for this charge.","title":"CreatePlanRequestChargesItemsBillCycle"},"CreatePlanRequestChargesItemsEndDateCondition":{"type":"string","enum":["subscription_end","end_date_one_time","fixed_period","specific_end_date"],"description":"Defines when the charge ends.\n","title":"CreatePlanRequestChargesItemsEndDateCondition"},"CreatePlanRequestChargesItemsUpToPeriodsType":{"type":"string","enum":["billing_periods","days","weeks","months","years"],"description":"Granularity used with `end_date_condition = fixed_period` to express how long the charge remains active. When `end_date_condition = subscription_end`, this field is ignored.\n","title":"CreatePlanRequestChargesItemsUpToPeriodsType"},"CreatePlanRequestChargesItemsTriggerEvent":{"type":"string","enum":["contract_effective","service_activation","customer_acceptance","specific_date"],"description":"Event that triggers the charge. \n","title":"CreatePlanRequestChargesItemsTriggerEvent"},"CreatePlanRequestChargesItems":{"type":"object","properties":{"name":{"type":"string","description":"The name of the charge."},"charge_model":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsChargeModel","description":"Charge model that defines how pricing is calculated."},"charge_type":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsChargeType","description":"Charge type (recurring, usage, or one-time)."},"unit_of_measure":{"type":"string","description":"Unit of measure for per-unit or usage charges."},"list_price_base":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsListPriceBase","description":"Optional list price base, if supported by the charge model.\n"},"specific_list_price_base":{"type":"number","format":"double","description":"Optional specific value used when `list_price_base` requires an explicit quantity (for example, number of months for `Per_Specific_Months`).\n"},"pricing":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsPricing","description":"Defines the pricing for the charge. Provide exactly one structure per charge model."},"bill_cycle":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsBillCycle","description":"Defines how billing occurs for this charge."},"end_date_condition":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsEndDateCondition","description":"Defines when the charge ends.\n"},"up_to_periods_type":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsUpToPeriodsType","description":"Granularity used with `end_date_condition = fixed_period` to express how long the charge remains active. When `end_date_condition = subscription_end`, this field is ignored.\n"},"up_to_periods":{"type":"integer","description":"Number of periods used with `end_date_condition = fixed_period`. Combined with `up_to_periods_type` to determine the fixed duration of the charge. Ignored when `end_date_condition = subscription_end`.\n"},"trigger_event":{"$ref":"#/components/schemas/CreatePlanRequestChargesItemsTriggerEvent","description":"Event that triggers the charge. \n"},"accounting":{"$ref":"#/components/schemas/AccountingRequest"}},"required":["name","charge_model","charge_type","pricing","bill_cycle","end_date_condition","trigger_event"],"title":"CreatePlanRequestChargesItems"},"CreatePlanRequest":{"type":"object","properties":{"product_key":{"type":"string","description":"The unique identifier of the product under which the plan is created."},"name":{"type":"string","description":"The name of the rate plan."},"start_date":{"type":"string","format":"date","description":"Plan effective start date (UTC, YYYY-MM-DD)."},"end_date":{"type":"string","format":"date","description":"Plan effective end date (UTC, YYYY-MM-DD)."},"active_currencies":{"type":"array","items":{"type":"string","minLength":3,"maxLength":3},"description":"ISO currency codes enabled for this plan."},"charges":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanRequestChargesItems"},"description":"The list of product rate plan charges to create under the plan."}},"required":["product_key","name","start_date","end_date","active_currencies","charges"],"title":"CreatePlanRequest"},"CreatePlanResponseAttributesItems":{"type":"object","properties":{},"title":"CreatePlanResponseAttributesItems"},"CreatePlanResponseContextFiltersItems":{"type":"object","properties":{},"title":"CreatePlanResponseContextFiltersItems"},"CreatePlanResponseEntitlementsItems":{"type":"object","properties":{},"title":"CreatePlanResponseEntitlementsItems"},"CreatePlanResponseOrganizationLabelsItems":{"type":"object","properties":{},"title":"CreatePlanResponseOrganizationLabelsItems"},"CreatePlanResponseNetsuite":{"type":"object","properties":{},"description":"NetSuite integration metadata (if present).","title":"CreatePlanResponseNetsuite"},"CreatePlanResponseProductRatePlanChargesItemsBillCycle":{"type":"object","properties":{"type":{"type":"string","description":"Bill-cycle mode (inherit defaults or set specific day rules)."},"dayOfMonth":{"type":"integer","description":"Specific bill day when type = specific_day_of_month."},"period":{"type":"string","description":"Billing period length, for example, bill_cycle_period_month."},"periodAlignment":{"type":"string","description":"How the billing period start aligns, for example, align_to_charge."},"timing":{"type":"string","description":"Whether the charge bills before or after the service period."}},"description":"How and when this charge bills within each billing period.","title":"CreatePlanResponseProductRatePlanChargesItemsBillCycle"},"CreatePlanResponseProductRatePlanChargesItemsPricingTiersItems":{"type":"object","properties":{},"title":"CreatePlanResponseProductRatePlanChargesItemsPricingTiersItems"},"CreatePlanResponseProductRatePlanChargesItemsPricing":{"type":"object","properties":{"flatAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Flat amounts by currency for flat-fee pricing."},"unitAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Per-unit amounts by currency for per-unit/usage pricing."},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsPricingTiersItems"},"description":"Tier definitions for tiered/volume pricing."},"discountAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Fixed discount amounts by currency."},"discountPercentages":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Percentage discount values by currency."},"minAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Minimum charge amounts by currency."},"maxAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Maximum charge amounts by currency."},"percentages":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Percentage price values by currency (model-dependent)."}},"description":"Default (charge-level) price configuration by model/currency.","title":"CreatePlanResponseProductRatePlanChargesItemsPricing"},"CreatePlanResponseProductRatePlanChargesItemsDiscountOptions":{"type":"object","properties":{"stackedDiscount":{"type":"boolean","description":"Whether this discount stacks with other discounts."},"applyToBillingPeriodPartially":{"type":"boolean","description":"Whether the discount can partially align to a billing period."},"reflectDiscountInNetAmount":{"type":"boolean","description":"Whether discounts reduce the net amount on invoices."},"rollover":{"type":"boolean","description":"Whether unused discount can roll over to future periods."}},"description":"How discount charges apply and interact with other discounts.","title":"CreatePlanResponseProductRatePlanChargesItemsDiscountOptions"},"CreatePlanResponseProductRatePlanChargesItemsAttributesItems":{"type":"object","properties":{},"title":"CreatePlanResponseProductRatePlanChargesItemsAttributesItems"},"CreatePlanResponseProductRatePlanChargesItemsMergedRateCardsItems":{"type":"object","properties":{},"title":"CreatePlanResponseProductRatePlanChargesItemsMergedRateCardsItems"},"CreatePlanResponseProductRatePlanChargesItemsNegotiatedRateCardsItems":{"type":"object","properties":{},"title":"CreatePlanResponseProductRatePlanChargesItemsNegotiatedRateCardsItems"},"CreatePlanResponseProductRatePlanChargesItemsProductChargeDefinitionsItems":{"type":"object","properties":{},"title":"CreatePlanResponseProductRatePlanChargesItemsProductChargeDefinitionsItems"},"CreatePlanResponseProductRatePlanChargesItemsRateCardsItems":{"type":"object","properties":{},"title":"CreatePlanResponseProductRatePlanChargesItemsRateCardsItems"},"CreatePlanResponseProductRatePlanChargesItemsPricingSummaryItems":{"type":"object","properties":{},"title":"CreatePlanResponseProductRatePlanChargesItemsPricingSummaryItems"},"CreatePlanResponseProductRatePlanChargesItemsOverageOptions":{"type":"object","properties":{"includedUnits":{"type":"number","format":"double","description":"Included units before overage starts."},"unusedUnitsCreditRates":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Credit rates for unused units (by currency)."}},"description":"Overage settings for usage charges.","title":"CreatePlanResponseProductRatePlanChargesItemsOverageOptions"},"CreatePlanResponseProductRatePlanChargesItemsPrepayment":{"type":"object","properties":{"rollover":{"type":"boolean","description":"Whether unused prepayment rolls over."},"rolloverApply":{"type":"string","description":"Order in which rollover is applied."},"rolloverPeriodLength":{"type":"integer","description":"Length of each rollover period."},"rolloverPeriods":{"type":"integer","description":"Number of rollover periods allowed."}},"description":"Prepayment handling and rollover behavior.","title":"CreatePlanResponseProductRatePlanChargesItemsPrepayment"},"CreatePlanResponseProductRatePlanChargesItemsRevenue":{"type":"object","properties":{"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"If true, item billing is excluded from revenue accounting."},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"If true, item booking is excluded from revenue accounting."},"legacyReporting":{"type":"boolean","description":"Indicator for legacy revenue reporting behaviors."},"revenueRecognitionRuleName":{"type":"string","description":"Name of the revenue recognition rule applied."}},"description":"Revenue policy settings for this charge.","title":"CreatePlanResponseProductRatePlanChargesItemsRevenue"},"CreatePlanResponseProductRatePlanChargesItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the product rate plan charge (PRPC)."},"name":{"type":"string","description":"Charge display name within the plan."},"chargeModel":{"type":"string","description":"Pricing model that determines how the amount is calculated."},"chargeType":{"type":"string","description":"Whether the charge recurs, rates usage, or is a one-time fee."},"chargeFunction":{"type":"string","description":"Internal function identifier for the charge."},"productRatePlanChargeNumber":{"type":"string","description":"PRPC number"},"triggerEvent":{"type":"string","description":"Event that triggers the charge to start billing."},"endDateCondition":{"type":"string","description":"Rule for when the charge ends, for example, subscription_end."},"upToPeriodsType":{"type":"string","description":"Unit applied when charge ends after a fixed duration."},"upToPeriods":{"type":"number","format":"double","description":"Number of periods defining fixed charge duration."},"listPriceBase":{"type":"string","description":"List price basis, for example, Per_Billing_Period."},"specificListPriceBase":{"type":"number","format":"double","description":"Optional override for list price base when billing uses a specific period configuration.\n"},"billCycle":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsBillCycle","description":"How and when this charge bills within each billing period."},"accounting":{"$ref":"#/components/schemas/AccountingResponse"},"pricing":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsPricing","description":"Default (charge-level) price configuration by model/currency."},"priceChangeOption":{"type":"string","description":"How price changes are applied across renewals/amendments."},"prorationOption":{"type":"string","description":"How proration is handled relative to tenant defaults."},"taxable":{"type":"boolean","description":"Whether the charge is taxable."},"discountOptions":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsDiscountOptions","description":"How discount charges apply and interact with other discounts."},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsAttributesItems"},"description":"Attribute metadata for this charge."},"createdById":{"type":"string","description":"User ID that created the charge record."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the charge record was created."},"updatedById":{"type":"string","description":"User ID that last updated the charge record."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the charge record was last updated."},"labels":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Free-form labels/tags attached to the charge."},"mergedRateCards":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsMergedRateCardsItems"},"description":"Effective rate-card rows after merges (if any)."},"negotiatedRateCards":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsNegotiatedRateCardsItems"},"description":"Customer- or deal-specific rate-card rows."},"ocmJsonByCurrency":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Offer/OCM metadata keyed by currency (internal use)."},"productChargeDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsProductChargeDefinitionsItems"},"description":"Underlying charge definitions referenced for pricing."},"rateCards":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsRateCardsItems"},"description":"Dynamic Pricing rate-card rows configured on the charge."},"pricingSummary":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsPricingSummaryItems"},"description":"Structured price summary breakdown (if returned)."},"pricingWaterfalls":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Detailed pricing/waterfall breakdown (if returned)."},"overageOptions":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsOverageOptions","description":"Overage settings for usage charges."},"prepaid":{"type":"boolean","description":"Indicates whether the charge is prepaid."},"prepayment":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsPrepayment","description":"Prepayment handling and rollover behavior."},"isChargeLevelMinCommit":{"type":"boolean","description":"Whether a minimum commit is enforced at the charge level."},"isCommitted":{"type":"boolean","description":"Indicates if the charge definition is committed/finalized."},"useTenantDefaultForPriceChange":{"type":"boolean","description":"Whether tenant defaults govern price change behavior."},"revenue":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItemsRevenue","description":"Revenue policy settings for this charge."}},"required":["id","name","chargeModel","chargeType","billCycle","pricing"],"title":"CreatePlanResponseProductRatePlanChargesItems"},"CreatePlanResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the created plan (product rate plan)."},"name":{"type":"string","description":"Plan display name."},"displayName":{"type":"string","description":"The display name of the plan."},"description":{"type":"string","description":"Free-form plan description."},"state":{"type":"string","description":"Current lifecycle state of the plan."},"startDate":{"type":"string","format":"date","description":"Plan effective start date (UTC, YYYY-MM-DD)."},"endDate":{"type":"string","format":"date","description":"Plan effective end date (UTC, YYYY-MM-DD)."},"activeCurrencies":{"type":"array","items":{"type":"string"},"description":"ISO currency codes enabled for the plan."},"createTime":{"type":"string","format":"date-time","description":"Timestamp when the plan was created."},"updateTime":{"type":"string","format":"date-time","description":"Timestamp when the plan was last updated."},"createdBy":{"type":"string","description":"User ID that created the plan."},"updatedBy":{"type":"string","description":"User ID that last updated the plan."},"productId":{"type":"string","description":"The product ID (key) this plan belongs to."},"productRatePlanNumber":{"type":"string","description":"Plan number"},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom field values on the plan."},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseAttributesItems"},"description":"Attribute metadata defined at the plan level (if any)."},"contextFilters":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseContextFiltersItems"},"description":"Contextual filters used to limit plan applicability."},"entitlements":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseEntitlementsItems"},"description":"Entitlements included with the plan."},"externalIdSourceSystem":{"type":"string","description":"Source system identifier for external integrations."},"externalRateplanId":{"type":"array","items":{"type":"string"},"description":"External rate plan identifiers, if any."},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseOrganizationLabelsItems"},"description":"Organization-level labels associated with the plan."},"netsuite":{"oneOf":[{"$ref":"#/components/schemas/CreatePlanResponseNetsuite"},{"type":"null"}],"description":"NetSuite integration metadata (if present)."},"productRatePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/CreatePlanResponseProductRatePlanChargesItems"},"description":"Charges created under this plan."}},"required":["id","name","startDate","endDate","activeCurrencies"],"title":"CreatePlanResponse"},"UpdatePlanRequest":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan to update."},"name":{"type":"string","description":"Rate plan name."},"description":{"type":"string","description":"Rate plan description."},"grade":{"type":"integer","description":"Plan grade or display rank used for ordering in catalogs or UIs."},"startDate":{"type":"string","format":"date","description":"Rate plan effective start date (UTC, YYYY-MM-DD)."},"endDate":{"type":"string","format":"date","description":"Rate plan effective end date (UTC, YYYY-MM-DD)."}},"required":["id"],"description":"Request body for updating a Product Rate Plan (PRP).","title":"UpdatePlanRequest"},"UpdatePlanResponseProductRatePlanChargesItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan Charge (PRPC)."},"name":{"type":"string","description":"Charge name."},"chargeType":{"type":"string","description":"Charge type."},"chargeModel":{"type":"string","description":"Charge model."},"listPriceBase":{"type":"string","description":"Indicates how list price is interpreted."},"triggerEvent":{"type":"string","description":"Event that triggers the charge."},"billCycle":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Billing cycle configuration."},"pricing":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Pricing configuration for the charge."},"prepayment":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Prepayment options for the charge (when applicable)."},"taxMode":{"type":"string","description":"Tax mode for this charge, for example, non_taxable or taxable."},"taxable":{"type":"boolean","description":"Indicates whether the charge is taxable."},"createdById":{"type":"string","description":"ID of the user who created the charge."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was created."},"updatedById":{"type":"string","description":"ID of the user who last updated the charge."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was last updated."},"accounting":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Accounting configuration for the charge (for example, account mappings and posting preferences)."},"attributes":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Attribute definitions bound to this charge (used for dynamic pricing or evaluation)."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom fields on the charge."},"deliverySchedule":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Delivery schedule settings, for example, frequency and applicable days."},"discountOptions":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Discount configuration for this charge, including scope, stacking, and net-amount reflection."},"drawdown":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Drawdown configuration for consuming balances or entitlements."},"endDateCondition":{"type":"string","description":"Defines when the charge ends, for example, subscription_end or after a term."},"extendedPrice":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Calculated extended price details, if applicable."},"isChargeLevelMinCommit":{"type":"boolean","description":"Indicates whether a minimum commitment is enforced at the charge level."},"isCommitted":{"type":"boolean","description":"Indicates whether this charge is part of a committed contract."},"labels":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Key-value metadata labels associated with the charge."},"mergedRateCards":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Effective rate card entries after merging default and negotiated cards."},"negotiatedRateCards":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Customer- or segment-specific negotiated rate card entries."},"ocmJsonByCurrency":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Per-currency pricing/configuration metadata in JSON format."},"organizationLabels":{"type":"array","items":{"type":"string"},"description":"Organization labels attached to the charge."},"overageOptions":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Overage configuration, for example, included units and unused-unit credit rates."},"prepaid":{"type":"boolean","description":"Indicates whether the charge is prepaid."},"priceChangeOption":{"type":"string","description":"How price changes are handled on updates, for example, no_change."},"pricingSummary":{"type":"array","items":{"type":"string"},"description":"Human-readable pricing summary lines."},"pricingWaterfalls":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Pricing source breakdown, for example, base price vs. segment price."},"productChargeDefinitions":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Charge definition objects that specify pricing and behavioral rules."},"productRatePlanChargeNumber":{"type":"string","description":"Charge number (PRPC number) for this charge."},"productRatePlanId":{"type":"string","description":"Owning Product Rate Plan ID."},"prorationOption":{"type":"string","description":"Proration behavior for this charge."},"rateCards":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Associated rate card definitions used for dynamic or segmented pricing."},"revenue":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Revenue recognition configuration, for example, rules and codes."},"taxCode":{"type":"string","description":"Tax code applied to the charge for taxation purposes."}},"title":"UpdatePlanResponseProductRatePlanChargesItems"},"UpdatePlanResponse":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan (PRP)."},"name":{"type":"string","description":"Rate plan name."},"description":{"type":"string","description":"Rate plan description."},"productId":{"type":"string","description":"Owning product ID."},"productRatePlanNumber":{"type":"string","description":"Rate plan number."},"startDate":{"type":"string","format":"date","description":"Rate plan effective start date (UTC, YYYY-MM-DD)."},"endDate":{"type":"string","format":"date","description":"Rate plan effective end date (UTC, YYYY-MM-DD)."},"state":{"type":"string","description":"Current rate plan state."},"status":{"type":"string","description":"Rate plan status."},"activeCurrencies":{"type":"array","items":{"type":"string"},"description":"Currencies with active pricing."},"displayName":{"type":"string","description":"Product rate plan display name."},"attributes":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Attribute definitions associated with the plan."},"contextFilters":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Context filters at the plan level."},"entitlements":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Entitlements linked to the plan."},"externalIdSourceSystem":{"type":"string","description":"External ID source system."},"externalRateplanId":{"type":"array","items":{"type":"string"},"description":"External plan identifiers."},"netsuite":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Netsuite integration attributes."},"organizationLabels":{"type":"array","items":{"type":"string"},"description":"Organization labels."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom fields at the plan level."},"productRatePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/UpdatePlanResponseProductRatePlanChargesItems"},"description":"Charges (PRPCs) that belong to this product rate plan."},"createTime":{"type":"string","format":"date-time","description":"Plan creation time."},"updateTime":{"type":"string","format":"date-time","description":"Plan update time."},"createdBy":{"type":"string","description":"ID of the user who created the plan."},"updatedBy":{"type":"string","description":"ID of the user who updated the plan."}},"description":"Product Rate Plan record returned after a successful update.","title":"UpdatePlanResponse"},"ListPlansRequestFiltersItemsOperator":{"type":"string","enum":["EQ","NE","IN","LIKE","GT","GTE","LT","LTE","SW","EW"],"description":"Comparison operator for the filter condition. Supported values:\n- `EQ`  (equals)\n- `NE`  (not equals)\n- `IN`  (in a list of values)\n- `LIKE` (partial match)\n- `GT`  (greater than)\n- `GTE` (greater than or equal)\n- `LT`  (less than)\n- `LTE` (less than or equal)\n- `SW`  (starts with)\n- `EW`  (ends with)\n","title":"ListPlansRequestFiltersItemsOperator"},"ListPlansRequestFiltersItems":{"type":"object","properties":{"field":{"type":"string","description":"Field name to filter by, such as `prp_id`, `product_id`, or `name`."},"operator":{"$ref":"#/components/schemas/ListPlansRequestFiltersItemsOperator","description":"Comparison operator for the filter condition. Supported values:\n- `EQ`  (equals)\n- `NE`  (not equals)\n- `IN`  (in a list of values)\n- `LIKE` (partial match)\n- `GT`  (greater than)\n- `GTE` (greater than or equal)\n- `LT`  (less than)\n- `LTE` (less than or equal)\n- `SW`  (starts with)\n- `EW`  (ends with)\n"},"value":{"type":"string","description":"Value to match for the specified field."}},"required":["field","operator","value"],"title":"ListPlansRequestFiltersItems"},"ListPlansRequestExpand":{"type":"object","properties":{"product_rate_plan_charges":{"type":"boolean","description":"Whether to include associated Product Rate Plan Charges (PRPCs)."}},"description":"Expand related entities in the response.","title":"ListPlansRequestExpand"},"ListPlansRequest":{"type":"object","properties":{"filters":{"type":"array","items":{"$ref":"#/components/schemas/ListPlansRequestFiltersItems"},"description":"Filter conditions for querying product rate plans.  \nEach filter defines a field, operator, and value.\n"},"expand":{"$ref":"#/components/schemas/ListPlansRequestExpand","description":"Expand related entities in the response."}},"required":["filters"],"description":"Request body for retrieving Product Rate Plans from the Product Catalog.","title":"ListPlansRequest"},"ListPlansResponseValuesItemsProductRatePlanChargesItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan Charge."},"name":{"type":"string","description":"Charge name."},"chargeType":{"type":"string","description":"Charge type (recurring, one_time, or usage)."},"chargeModel":{"type":"string","description":"Charge model (flat_fee, per_unit, tiered, etc.)."},"listPriceBase":{"type":"string","description":"Indicates how list price is interpreted."},"specificListPriceBase":{"type":"number","format":"double","description":"Optional override for list price base when billing uses a specific period configuration.\n"},"triggerEvent":{"type":"string","description":"Event that triggers the charge."},"unitOfMeasure":{"type":"string","description":"Unit of measure used for pricing (for example, Each)."},"defaultQuantity":{"type":"number","format":"double","description":"Default quantity applied for the charge."},"endDateCondition":{"type":"string","description":"Condition that determines when the charge ends."},"upToPeriodsType":{"type":"string","description":"Unit applied when charge ends after a fixed duration."},"upToPeriods":{"type":"number","format":"double","description":"Number of periods defining fixed charge duration."},"billCycle":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Billing cycle configuration."},"pricing":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Pricing configuration for the charge."},"pricingSummary":{"type":"array","items":{"type":"string"},"description":"Human-readable pricing summary lines."},"taxMode":{"type":"string","description":"Tax mode for this charge."},"taxable":{"type":"boolean","description":"Indicates whether the charge is taxable."},"createdById":{"type":"string","description":"ID of the user who created the charge."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was created."},"updatedById":{"type":"string","description":"ID of the user who last updated the charge."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was last updated."}},"title":"ListPlansResponseValuesItemsProductRatePlanChargesItems"},"ListPlansResponseValuesItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan."},"name":{"type":"string","description":"Product Rate Plan name."},"description":{"type":"string","description":"Product Rate Plan description."},"productId":{"type":"string","description":"Identifier of the product this plan belongs to."},"startDate":{"type":"string","format":"date","description":"Effective start date of the plan (UTC, YYYY-MM-DD)."},"endDate":{"type":"string","format":"date","description":"Effective end date of the plan (UTC, YYYY-MM-DD)."},"state":{"type":"string","description":"Current plan state."},"status":{"type":"string","description":"Status of the plan."},"activeCurrencies":{"type":"array","items":{"type":"string"},"description":"Currencies supported by this plan."},"accounting":{"$ref":"#/components/schemas/AccountingResponse"},"productRatePlanNumber":{"type":"string","description":"Product Rate Plan number."},"productRatePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/ListPlansResponseValuesItemsProductRatePlanChargesItems"},"description":"List of Product Rate Plan Charges (PRPCs) belonging to the plan."}},"title":"ListPlansResponseValuesItems"},"ListPlansResponse":{"type":"object","properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/ListPlansResponseValuesItems"},"description":"List of Product Rate Plans returned by the query."}},"description":"Response body containing a list of Product Rate Plans.","title":"ListPlansResponse"},"CommerceProductsProductKeyPostRequestBodyContentApplicationJsonSchemaExpand":{"type":"object","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."}},"description":"Controls which related objects are expanded and included in the response.\n","title":"CommerceProductsProductKeyPostRequestBodyContentApplicationJsonSchemaExpand"},"GetProductByKeyResponseContextFiltersItems":{"type":"object","properties":{},"title":"GetProductByKeyResponseContextFiltersItems"},"GetProductByKeyResponseCustomObjects":{"type":"object","properties":{},"description":"Custom object references related to this product.","title":"GetProductByKeyResponseCustomObjects"},"GetProductByKeyResponseDacTag":{"type":"object","properties":{"id":{"type":"string","description":"DAC tag identifier."},"name":{"type":"string","description":"DAC tag name."}},"description":"Internal DAC tag associated with the product.","title":"GetProductByKeyResponseDacTag"},"GetProductByKeyResponseFeaturesItems":{"type":"object","properties":{},"title":"GetProductByKeyResponseFeaturesItems"},"GetProductByKeyResponseNetsuite":{"type":"object","properties":{},"description":"NetSuite integration metadata if applicable.","title":"GetProductByKeyResponseNetsuite"},"GetProductByKeyResponseOrganizationLabelsItems":{"type":"object","properties":{},"title":"GetProductByKeyResponseOrganizationLabelsItems"},"GetProductByKeyResponseProductRatePlansItemsProductRatePlanChargesItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan Charge."},"productRatePlanChargeNumber":{"type":"string","description":"System-generated number of the Product Rate Plan Charge."},"name":{"type":"string","description":"Charge name."},"description":{"type":"string","description":"Charge description."},"chargeType":{"type":"string","description":"Charge type (recurring, one_time, or usage)."},"chargeModel":{"type":"string","description":"Charge model (flat_fee, per_unit, tiered, etc.)."},"listPriceBase":{"type":"string","description":"Indicates how list price is interpreted."},"specificListPriceBase":{"type":"integer","description":"Specifies the number of periods for list price when listPriceBase is period-based."},"triggerEvent":{"type":"string","description":"Event that triggers the charge."},"endDateCondition":{"type":"string","description":"Condition that determines when the charge ends."},"upToPeriodsType":{"type":"string","description":"Type of period used with `upToPeriods` to control charge duration."},"upToPeriods":{"type":"integer","description":"Number of periods after which the charge ends, based on `upToPeriodsType`."},"billCycle":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Billing cycle configuration."},"pricing":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Pricing configuration for the charge."},"pricingSummary":{"type":"array","items":{"type":"string"},"description":"Human-readable pricing summary lines."},"taxMode":{"type":"string","description":"Tax mode for this charge."},"taxable":{"type":"boolean","description":"Indicates whether the charge is taxable."},"createdById":{"type":"string","description":"ID of the user who created the charge."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was created."},"updatedById":{"type":"string","description":"ID of the user who last updated the charge."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was last updated."}},"title":"GetProductByKeyResponseProductRatePlansItemsProductRatePlanChargesItems"},"GetProductByKeyResponseProductRatePlansItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan."},"createdBy":{"type":"string","description":"ID of the user who created the rate plan."},"createTime":{"type":"string","format":"date-time","description":"Timestamp when the rate plan was created."},"updatedBy":{"type":"string","description":"ID of the user who last updated the rate plan."},"updateTime":{"type":"string","format":"date-time","description":"Timestamp when the rate plan was last updated."},"name":{"type":"string","description":"Product Rate Plan name."},"displayName":{"type":"string","description":"Product Rate Plan display name."},"description":{"type":"string","description":"Product Rate Plan description."},"productId":{"type":"string","description":"Identifier of the product this plan belongs to."},"startDate":{"type":"string","format":"date","description":"Effective start date of the plan (UTC, YYYY-MM-DD)."},"endDate":{"type":"string","format":"date","description":"Effective end date of the plan (UTC, YYYY-MM-DD)."},"state":{"type":"string","description":"Current plan state."},"status":{"type":"string","description":"Status of the plan."},"activeCurrencies":{"type":"array","items":{"type":"string"},"description":"Currencies supported by this plan."},"productRatePlanNumber":{"type":"string","description":"Product Rate Plan number."},"productRatePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/GetProductByKeyResponseProductRatePlansItemsProductRatePlanChargesItems"},"description":"List of Product Rate Plan Charges (PRPCs) belonging to the plan."}},"title":"GetProductByKeyResponseProductRatePlansItems"},"GetProductByKeyResponse":{"type":"object","properties":{"allowFeatureChanges":{"type":"boolean"},"category":{"type":"string","description":"Product category, for example `base` or `add_on`."},"contextFilters":{"type":"array","items":{"$ref":"#/components/schemas/GetProductByKeyResponseContextFiltersItems"}},"createdBy":{"type":"string","description":"ID of the user who created the product."},"createdTime":{"type":"string","format":"date-time"},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom field values keyed by API name."},"customObjects":{"oneOf":[{"$ref":"#/components/schemas/GetProductByKeyResponseCustomObjects"},{"type":"null"}],"description":"Custom object references related to this product."},"dacTag":{"$ref":"#/components/schemas/GetProductByKeyResponseDacTag","description":"Internal DAC tag associated with the product."},"endDate":{"type":"string","format":"date","description":"Product effective end date."},"features":{"type":"array","items":{"$ref":"#/components/schemas/GetProductByKeyResponseFeaturesItems"}},"id":{"type":"string","description":"Unique identifier of the product."},"legacyFeatures":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Legacy, customer-defined feature objects retained for compatibility."},"name":{"type":"string","description":"Product name."},"netsuite":{"oneOf":[{"$ref":"#/components/schemas/GetProductByKeyResponseNetsuite"},{"type":"null"}],"description":"NetSuite integration metadata if applicable."},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetProductByKeyResponseOrganizationLabelsItems"}},"productNumber":{"type":"string","description":"System-generated product number."},"productRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/GetProductByKeyResponseProductRatePlansItems"},"description":"List of rate plans under this product."},"sku":{"type":"string","description":"Stock keeping unit for the product."},"startDate":{"type":"string","format":"date","description":"Product effective start date."},"state":{"type":"string","description":"Current product state."},"updatedBy":{"type":"string","description":"ID of the user who last updated the product."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp of the last update."}},"description":"Response body returned when retrieving a product by product key.","title":"GetProductByKeyResponse"},"CreateProductListLegacyRequestFiltersItemsField":{"type":"string","enum":["id","name","product_number","category"],"description":"Field name to filter by. \n","title":"CreateProductListLegacyRequestFiltersItemsField"},"CreateProductListLegacyRequestFiltersItemsOperator":{"type":"string","enum":["EQ","NE","LT","GT","SW","IN","EW","LIKE"],"description":"Comparison operator for the filter condition. \nSupported values:\n  - `EQ`  (equals)\n  - `NE`  (not equals)\n  - `LT`  (less than)\n  - `GT`  (greater than)\n  - `SW`  (starts with)\n  - `EW`  (ends with)\n  - `IN`  (in list of values)\n  - `LIKE` (partial match)\n","title":"CreateProductListLegacyRequestFiltersItemsOperator"},"CreateProductListLegacyRequestFiltersItems":{"type":"object","properties":{"field":{"$ref":"#/components/schemas/CreateProductListLegacyRequestFiltersItemsField","description":"Field name to filter by. \n"},"operator":{"$ref":"#/components/schemas/CreateProductListLegacyRequestFiltersItemsOperator","description":"Comparison operator for the filter condition. \nSupported values:\n  - `EQ`  (equals)\n  - `NE`  (not equals)\n  - `LT`  (less than)\n  - `GT`  (greater than)\n  - `SW`  (starts with)\n  - `EW`  (ends with)\n  - `IN`  (in list of values)\n  - `LIKE` (partial match)\n"},"value":{"type":"string","description":"Value to match for the specified field.\nThe data type depends on the field being filtered.\n"}},"required":["field","operator","value"],"title":"CreateProductListLegacyRequestFiltersItems"},"CreateProductListLegacyRequestExpand":{"type":"object","properties":{"product_rate_plans":{"type":"boolean","description":"When true, includes Product Rate Plans (PRPs) under each product."},"product_rate_plan_charges":{"type":"boolean","description":"When true, includes Product Rate Plan Charges (PRPCs) for each rate plan."}},"description":"Defines whether to include related entities such as Product Rate Plans (PRPs) and \nProduct Rate Plan Charges (PRPCs) in the response. Each key corresponds to an entity type that can be expanded.\n","title":"CreateProductListLegacyRequestExpand"},"CreateProductListLegacyRequest":{"type":"object","properties":{"filters":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductListLegacyRequestFiltersItems"},"description":"Filter conditions for querying legacy products. \nEach filter defines a field, an operator, and a value to match against.\nCommon filter fields include `id`, `name`, `product_number`, or `category`.\n"},"expand":{"$ref":"#/components/schemas/CreateProductListLegacyRequestExpand","description":"Defines whether to include related entities such as Product Rate Plans (PRPs) and \nProduct Rate Plan Charges (PRPCs) in the response. Each key corresponds to an entity type that can be expanded.\n"}},"description":"Request body for querying legacy products in the Product Catalog.","title":"CreateProductListLegacyRequest"},"CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsAttributesItemsMapping":{"type":"object","properties":{"object":{"type":"string","description":"Source object"},"field":{"type":"string","description":"Source field"}},"description":"Source mapping for attribute values.","title":"CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsAttributesItemsMapping"},"CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsAttributesItems":{"type":"object","properties":{"name":{"type":"string","description":"Attribute name"},"type":{"type":"string","description":"Attribute type"},"mapping":{"$ref":"#/components/schemas/CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsAttributesItemsMapping","description":"Source mapping for attribute values."}},"title":"CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsAttributesItems"},"CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsPricingItemsTiersItems":{"type":"object","properties":{},"title":"CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsPricingItemsTiersItems"},"CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsPricingItems":{"type":"object","properties":{"currency":{"type":"string","description":"ISO currency code"},"price":{"type":"number","format":"double","description":"Price for the currency"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsPricingItemsTiersItems"},"description":"Tier definitions (if applicable)."}},"title":"CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsPricingItems"},"CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan Charge."},"name":{"type":"string","description":"Charge name."},"model":{"type":"string","description":"Charge model."},"uom":{"type":"string","description":"Unit of measure."},"billingDay":{"type":"string","description":"Billing day behavior."},"billingPeriod":{"type":"string","description":"Billing period (e.g., Month)."},"billingPeriodAlignment":{"type":"string","description":"Alignment for billing period."},"billingTiming":{"type":"string","description":"Billing timing (IN_ADVANCE or IN_ARREARS)."},"listPriceBase":{"type":"string","description":"How list price is interpreted."},"defaultQuantity":{"type":"number","format":"double","description":"Default quantity for the charge."},"includedUnits":{"type":"number","format":"double","description":"Included units for usage or dimensional pricing."},"isDimensionalPrice":{"type":"boolean","description":"Indicates if the charge uses dimensional pricing."},"triggerEvent":{"type":"string","description":"Event that triggers the charge."},"productRatePlanId":{"type":"string","description":"Owning PRP ID."},"productRatePlanChargeNumber":{"type":"string","description":"Charge number."},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsAttributesItems"},"description":"Dynamic pricing attributes bound to the charge."},"pricing":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItemsPricingItems"},"description":"Currency pricing entries."},"pricingSummary":{"type":"array","items":{"type":"string"},"description":"Human-readable pricing summary."},"pricingWaterfalls":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Price sources such as base and segment prices."},"revenue":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Revenue recognition settings."},"netsuite":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Netsuite integration settings."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom fields on the charge."},"accounting":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Accounting configuration."},"applyToBillingPeriodPartially":{"type":"boolean","description":"Indicates whether the charge is applied to partial billing periods."},"creditOption":{"type":"string","description":"Specifies how credits are handled for this charge, for example, credit_option."},"deliverySchedule":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Defines the delivery frequency and applicable days for the charge."},"discountRollover":{"type":"boolean","description":"Indicates whether unused discounts roll over to the next billing period."},"endDateCondition":{"type":"string","description":"Defines when the charge ends, such as at the subscription end or after a fixed term."},"extendedPrice":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Contains calculated extended pricing details for the charge, if applicable."},"isCommitted":{"type":"boolean","description":"Indicates whether this charge is part of a committed contract."},"isPrepaid":{"type":"boolean","description":"Specifies whether the charge is prepaid."},"isRollover":{"type":"boolean","description":"Indicates whether unused units or balances roll over to subsequent periods."},"isStackedDiscount":{"type":"boolean","description":"Indicates whether this charge supports multiple stacked discounts."},"labels":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Stores additional key-value metadata labels associated with the charge."},"ocmJsonByCurrency":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Contains pricing or configuration metadata per currency in JSON format."},"priceChangeOption":{"type":"string","description":"Defines how price changes are handled when the product or rate plan changes."},"productChargeDefinitions":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"List of charge-level definition objects that specify pricing and behavior for the charge."},"productDiscountApplyDetails":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Details of how discounts are applied to this charge."},"rateCards":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Associated rate card definitions used for dynamic or segmented pricing."},"reflectDiscountInNetAmount":{"type":"boolean","description":"Indicates whether discounts are reflected directly in the net amount of the charge."},"rolloverApply":{"type":"string","description":"Defines how rolled-over balances or discounts are applied."},"rolloverPeriodLength":{"type":"number","format":"double","description":"Length of each rollover period, in the unit specified by the product configuration."},"rolloverPeriods":{"type":"number","format":"double","description":"Total number of rollover periods allowed for this charge."},"taxCode":{"type":"string","description":"Tax code applied to the charge for taxation purposes."},"taxMode":{"type":"string","description":"Tax mode for this charge, for example, NonTaxable or Taxable."},"taxable":{"type":"boolean","description":"Indicates whether the charge is taxable."},"type":{"type":"string","description":"The charge type, for example, Recurring, OneTime, or Usage."},"updatedById":{"type":"string","description":"ID of the user who last updated the charge."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was last updated."},"createdById":{"type":"string","description":"ID of the user who created the charge."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was created."}},"title":"CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItems"},"CreateProductListLegacyResponseValuesItemsProductRatePlansItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan."},"name":{"type":"string","description":"Rate plan name."},"description":{"type":"string","description":"Rate plan description."},"displayName":{"type":"string","description":"Rate plan display name."},"state":{"type":"string","description":"Current rate plan state."},"effectiveStartDate":{"type":"string","format":"date","description":"Effective start date of the rate plan."},"effectiveEndDate":{"type":"string","format":"date","description":"Effective end date of the rate plan."},"activeCurrencies":{"type":"array","items":{"type":"string"},"description":"Currencies with active pricing."},"productId":{"type":"string","description":"Owning product ID."},"productRatePlanNumber":{"type":"string","description":"Rate plan number."},"attributes":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Attribute definitions associated with the plan."},"contextFilters":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Context filters at the plan level."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom fields at the plan level."},"entitlements":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Entitlements linked to the plan."},"externalIdSourceSystem":{"type":"string","description":"External ID source system."},"externalManagedPlanIds":{"type":"array","items":{"type":"string"},"description":"External plan identifiers."},"netsuite":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Netsuite integration attributes."},"organizationLabels":{"type":"array","items":{"type":"string"},"description":"Organization labels."},"createTime":{"type":"string","format":"date-time","description":"Plan creation time."},"createdBy":{"type":"string","description":"ID of the user who created the plan."},"updateTime":{"type":"string","format":"date-time","description":"Plan update time."},"updatedBy":{"type":"string","description":"ID of the user who updated the plan."},"productRatePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductListLegacyResponseValuesItemsProductRatePlansItemsProductRatePlanChargesItems"},"description":"Charges (PRPCs) that belong to this product rate plan."}},"title":"CreateProductListLegacyResponseValuesItemsProductRatePlansItems"},"CreateProductListLegacyResponseValuesItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the product."},"name":{"type":"string","description":"Product name."},"description":{"type":"string","description":"Product description."},"category":{"type":"string","description":"Product category label."},"productNumber":{"type":"string","description":"Product number in the catalog."},"sku":{"type":"string","description":"Product SKU."},"effectiveStartDate":{"type":"string","format":"date","description":"Date when the product becomes effective in the catalog."},"effectiveEndDate":{"type":"string","format":"date","description":"Date when the product is no longer effective in the catalog."},"state":{"type":"string","description":"Current product state."},"allowFeatureChanges":{"type":"boolean","description":"Whether features on this product can be changed."},"contextFilters":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Context filters applied to the product."},"features":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Product features."},"legacyFeatures":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}},"description":"Legacy features associated with this product."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom fields on the product."},"customObjects":{"type":["object","null"],"additionalProperties":{"description":"Any type"},"description":"Custom objects linked to this product."},"netsuite":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Netsuite integration attributes."},"organizationLabels":{"type":"array","items":{"type":"string"},"description":"Organization labels for the product."},"createdBy":{"type":"string","description":"ID of the user who created the product."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the product was created."},"updatedBy":{"type":"string","description":"ID of the user who last updated the product."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the product was last updated."},"productRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductListLegacyResponseValuesItemsProductRatePlansItems"},"description":"Product rate plans (PRPs) of the product."}},"title":"CreateProductListLegacyResponseValuesItems"},"CreateProductListLegacyResponse":{"type":"object","properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/CreateProductListLegacyResponseValuesItems"},"description":"List of legacy products matching the query."}},"description":"Response body returned after querying legacy products.","title":"CreateProductListLegacyResponse"},"UpdateTierRequest":{"type":"object","properties":{"id":{"type":"string","description":"**Product Rate Plan Charge Tier ID** (`productRatePlanChargeTierId`).  \nThis is the unique identifier of the tier row under a Product Rate Plan Charge.  \nThis identifier is **not surfaced by the new Commerce APIs** and is typically retrieved via **Zuora Data Query (DQ)** or by using the legacy v1 Object API equivalence:\n`/v1/object/product-rate-plan-charge-tier/{id}` <a href=\"https://developer.zuora.com/v1-api-reference/api/operation/Object_PUTProductRatePlanChargeTier/\">CRUD: Update a product rate plan charge tier</a>\n"},"price":{"type":"number","format":"double","description":"Tier price to apply for the specified currency/quantity range."}},"required":["id","price"],"description":"Request body to update a Product Rate Plan Charge Tier.","title":"UpdateTierRequest"},"UpdateTierResponse":{"type":"object","properties":{"id":{"type":"string","description":"Product Rate Plan Charge Tier ID."},"currency":{"type":"string","description":"ISO currency code for this tier."},"price":{"type":"number","format":"double","description":"Price configured for this tier."},"startingUnit":{"type":"number","format":"double","description":"The inclusive starting unit for this tier’s range."},"endingUnit":{"type":"number","format":"double","description":"The inclusive ending unit for this tier’s range. `0` can represent open-ended depending on tenant configuration."},"tier":{"type":"string","description":"Display order or label of the tier within the charge."},"isOveragePrice":{"type":"boolean","description":"Indicates whether this tier represents an overage price row."},"priceFormat":{"type":"string","description":"Price format applied to this tier (for example, `price_format_flat_fee`)."},"createdById":{"type":"string","description":"ID of the user who created the tier."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the tier was created."},"updatedById":{"type":"string","description":"ID of the user who last updated the tier."},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the tier was last updated."}},"required":["id","currency","price","startingUnit","endingUnit"],"description":"Product Rate Plan Charge Tier record returned after a successful update.","title":"UpdateTierResponse"},"PurchaseOptionRequestFiltersItemsOperator":{"type":"string","enum":["EQ","NE","LT","GT","SW","IN","EW","LIKE"],"description":"Comparison operator. Supported values:\n- `EQ`  (equals)\n- `NE`  (not equals)\n- `LT`  (less than)\n- `GT`  (greater than)\n- `SW`  (starts with)\n- `EW`  (ends with)\n- `IN`  (in list)\n- `LIKE` (partial match)\n","title":"PurchaseOptionRequestFiltersItemsOperator"},"PurchaseOptionRequestFiltersItemsValue":{"type":"object","properties":{"string_value":{"type":"string","description":"String value for string-based comparisons."},"number_value":{"type":"number","format":"double","description":"Numeric value for numeric comparisons."},"boolean_value":{"type":"boolean","description":"Boolean value for logical comparisons."}},"description":"Specifies the value to compare against.\nOnly one of the following value types should be provided.\n","title":"PurchaseOptionRequestFiltersItemsValue"},"PurchaseOptionRequestFiltersItems":{"type":"object","properties":{"field":{"type":"string","description":"Name of the field to filter by.\nSupported fields include:\n  - `prp_id`: Product Rate Plan ID.\n  - `product_id`: Product ID.\n"},"operator":{"$ref":"#/components/schemas/PurchaseOptionRequestFiltersItemsOperator","description":"Comparison operator. Supported values:\n- `EQ`  (equals)\n- `NE`  (not equals)\n- `LT`  (less than)\n- `GT`  (greater than)\n- `SW`  (starts with)\n- `EW`  (ends with)\n- `IN`  (in list)\n- `LIKE` (partial match)\n"},"value":{"$ref":"#/components/schemas/PurchaseOptionRequestFiltersItemsValue","description":"Specifies the value to compare against.\nOnly one of the following value types should be provided.\n"}},"required":["field","operator","value"],"title":"PurchaseOptionRequestFiltersItems"},"PurchaseOptionRequestExpand":{"type":"object","properties":{"product_rate_plan_charges":{"type":"boolean","description":"When `true`, expands the response to include Product Rate Plan Charges (PRPCs)\nassociated with the queried Product Rate Plans. Expanded PRPCs include full\ncharge configuration, including pricing, billing settings, and end date\nconfiguration fields such as `endDateCondition`, `upToPeriodsType`, and `upToPeriods`.\n"}},"description":"Optional flags to include related entities in the query results.\n","title":"PurchaseOptionRequestExpand"},"PurchaseOptionRequestAttributesItems":{"type":"object","properties":{"name":{"type":"string","description":"Name of the pricing attribute (e.g., `Region`, `Age`, `EffectiveDate`)."},"string_value":{"type":"string","description":"String-based attribute value."},"number_value":{"type":"number","format":"double","description":"Numeric attribute value."},"boolean_value":{"type":"boolean","description":"Boolean attribute value."},"date_value":{"type":"string","format":"date","description":"Date value in `YYYY-MM-DD` format."},"datetime_value":{"type":"string","format":"date-time","description":"Datetime value in ISO 8601 format."}},"required":["name"],"title":"PurchaseOptionRequestAttributesItems"},"PurchaseOptionRequest":{"type":"object","properties":{"filters":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOptionRequestFiltersItems"},"description":"Defines the filtering criteria for querying purchase options or product rate plans.\nEach filter includes a target field, an operator, and a value.\n"},"expand":{"$ref":"#/components/schemas/PurchaseOptionRequestExpand","description":"Optional flags to include related entities in the query results.\n"},"product_rate_plan_charge_key":{"type":"string","description":"Optional identifier for a specific Product Rate Plan Charge (PRPC) to query.\nCan be either a PRPC ID or a PRPC number/key.\n"},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOptionRequestAttributesItems"},"description":"Optional attributes used for evaluating Dynamic Pricing.\nRequired when the queried PRPC is configured to depend on contextual attributes.\n"}},"title":"PurchaseOptionRequest"},"PurchaseOptionResponseError":{"type":"object","properties":{},"description":"Error information, if the request fails. Returns `null` on success.","title":"PurchaseOptionResponseError"},"PurchaseOptionResponseProductRatePlansItemsProduct":{"type":"object","properties":{"id":{"type":"string","description":"Unique Product ID."},"name":{"type":"string","description":"Product name."},"productNumber":{"type":"string","description":"Unique product reference number."},"category":{"type":"string","description":"Product category, such as `base` or `addon`."},"sku":{"type":"string","description":"Stock-keeping unit (SKU) identifier for the Product."},"state":{"type":"string","description":"Current state of the Product (for example, `product_active`)."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom field values defined for the Product."}},"description":"Metadata and configuration details for the associated Product.","title":"PurchaseOptionResponseProductRatePlansItemsProduct"},"PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsPricingTiersItems":{"type":"object","properties":{},"title":"PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsPricingTiersItems"},"PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsPricing":{"type":"object","properties":{"flatAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Flat amount per billing period by currency."},"minAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Minimum charge thresholds by currency."},"maxAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Maximum charge thresholds by currency."},"unitAmounts":{"type":"object","additionalProperties":{"type":"number","format":"double"},"description":"Per-unit charge amounts by currency."},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsPricingTiersItems"},"description":"Tier-level pricing definitions for tiered or volume models."}},"description":"Pricing configuration for the charge by currency.\nIncludes flat, unit, or tier-based amounts depending on the model.\n","title":"PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsPricing"},"PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsBillCycle":{"type":"object","properties":{"period":{"type":"string","description":"Billing period, such as `month` or `year`."},"periodAlignment":{"type":"string","description":"How the billing period aligns (for example, `align_to_charge`)."},"timing":{"type":"string","description":"Whether the charge bills `in_advance` or `in_arrears`."}},"description":"Billing configuration for this charge.","title":"PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsBillCycle"},"PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsRevenue":{"type":"object","properties":{"revenueRecognitionRuleName":{"type":"string","description":"Name of the revenue recognition rule (for example, “Recognize upon invoicing”)."}},"description":"Revenue recognition configuration for this charge.","title":"PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsRevenue"},"PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan Charge (PRPC)."},"name":{"type":"string","description":"Display name of the charge."},"chargeType":{"type":"string","description":"Type of charge (for example, `recurring`, `usage`, `one_time`)."},"chargeModel":{"type":"string","description":"Pricing model applied to the charge (for example, `flat_fee`, `tiered`)."},"pricing":{"$ref":"#/components/schemas/PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsPricing","description":"Pricing configuration for the charge by currency.\nIncludes flat, unit, or tier-based amounts depending on the model.\n"},"billCycle":{"$ref":"#/components/schemas/PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsBillCycle","description":"Billing configuration for this charge."},"taxMode":{"type":"string","description":"Whether tax is included (`tax_inclusive`) or excluded (`tax_exclusive`)."},"taxable":{"type":"boolean","description":"Indicates if the charge is taxable."},"revenue":{"$ref":"#/components/schemas/PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItemsRevenue","description":"Revenue recognition configuration for this charge."},"accounting":{"$ref":"#/components/schemas/AccountingResponse"},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Tenant-specific custom fields for the PRPC."},"pricingSummary":{"type":"array","items":{"type":"string"},"description":"Human-readable price summary for quick display."},"triggerEvent":{"type":"string","description":"Event that triggers the charge (for example, `contract_effective`)."},"endDateCondition":{"type":"string","description":"Condition that determines when the charge ends, for example `subscription_end`,\n`fixed_period`, or `specific_end_date`.\n"},"upToPeriodsType":{"type":"string","description":"Unit of time used when `endDateCondition` is duration-based (for example, `billing_periods`).\n"},"upToPeriods":{"type":"integer","description":"Duration value used together with `upToPeriodsType` when `endDateCondition` is `fixed_period`.\n"},"listPriceBase":{"type":"string","description":"Indicates how list price is interpreted."},"specificListPriceBase":{"type":"number","format":"double","description":"Optional override for list price base when billing uses a specific period configuration.\n"},"updatedTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was last updated."},"createdTime":{"type":"string","format":"date-time","description":"Timestamp when the charge was created."}},"title":"PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItems"},"PurchaseOptionResponseProductRatePlansItems":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the Product Rate Plan (PRP)."},"name":{"type":"string","description":"Display name of the Product Rate Plan."},"description":{"type":"string","description":"Description of the Product Rate Plan."},"startDate":{"type":"string","format":"date","description":"Effective start date of the Product Rate Plan."},"endDate":{"type":"string","format":"date","description":"Effective end date of the Product Rate Plan."},"state":{"type":"string","description":"Current state of the Product Rate Plan (for example, `active`)."},"productRatePlanNumber":{"type":"string","description":"Unique reference number of the Product Rate Plan."},"productId":{"type":"string","description":"ID of the Product associated with this rate plan."},"product":{"$ref":"#/components/schemas/PurchaseOptionResponseProductRatePlansItemsProduct","description":"Metadata and configuration details for the associated Product."},"productRatePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOptionResponseProductRatePlansItemsProductRatePlanChargesItems"},"description":"List of Product Rate Plan Charges (PRPCs) defined under this rate plan.\nEach charge defines pricing, billing, taxation, and accounting details.\n"}},"title":"PurchaseOptionResponseProductRatePlansItems"},"PurchaseOptionResponse":{"type":"object","properties":{"error":{"oneOf":[{"$ref":"#/components/schemas/PurchaseOptionResponseError"},{"type":"null"}],"description":"Error information, if the request fails. Returns `null` on success."},"productRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseOptionResponseProductRatePlansItems"},"description":"List of Product Rate Plans (PRPs) that match the filter criteria.\nEach PRP includes associated product, pricing, and charge configuration details.\n"}},"description":"Response object containing Product Rate Plan (PRP) and Product Rate Plan Charge (PRPC) details \nthat match the request filters. Each returned PRP includes all associated charge configurations,\npricing details, and relevant metadata.\n","title":"PurchaseOptionResponse"},"POSTAccountTypeBillToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"city":{"type":"string","maxLength":100,"description":"City\n"},"country":{"type":"string","description":"Country; must be a valid country name or abbreviation. If using Zuora Tax, you must specify a country in the sold-to contact to calculate tax. A bill-to contact may be used if no sold-to contact is provided.\n"},"county":{"type":"string","maxLength":100,"description":"May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"homePhone":{"type":"string","description":"Home phone number, 40 characters or less.\n"},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"mobilePhone":{"type":"string","description":"Mobile phone number, 40 characters or less.\n"},"nickname":{"type":"string","description":"Nickname for this contact\n"},"otherPhone":{"type":"string","description":"Other phone number, 40 characters or less.\n"},"otherPhoneType":{"type":"string","description":"Possible values are: `Work`, `Mobile`, `Home`, `Other`.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address.\n"},"state":{"type":"string","maxLength":100,"description":"State must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>. If using Zuora Tax, be aware that Zuora tax requires a state (in the US) or province (in Canada) in this field for the sold-to contact to calculate tax, and that a bill-to contact may be used if no sold-to contact is provided.\n"},"taxRegion":{"type":"string","maxLength":100,"description":"If using Zuora Tax, a region string as optionally defined in your tax rules. Not required.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"required":["firstName","lastName"],"description":"Container for bill-to contact information for this account. If you do not provide a sold-to contact, the bill-to contact is copied to sold-to contact. Once the sold-to contact is created, changes to billToContact will not affect soldToContact and vice versa.\n","title":"POSTAccountTypeBillToContact"},"PostAccountTypeCreditCardCardHolderInfo":{"type":"object","properties":{"addressLine1":{"type":"string","description":"First address line, 255 characters or less.\n"},"addressLine2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"cardHolderName":{"type":"string","description":"The card holder's full name as it appears on the card, e.g., \"John J Smith\", 50 characters or less.\n"},"city":{"type":"string","description":"City, 40 characters or less.\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"country":{"type":"string","description":"Country; must be a valid country name or abbreviation.\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"email":{"type":"string","description":"Card holder's email address, 80 characters or less.\n"},"phone":{"type":"string","description":"Phone number, 40 characters or less.\n"},"state":{"type":"string","description":"State; must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"required":["addressLine1","cardHolderName","city","country","state","zipCode"],"description":"Container for cardholder information.\n","title":"PostAccountTypeCreditCardCardHolderInfo"},"POSTAccountTypeCreditCard":{"type":"object","properties":{"cardHolderInfo":{"$ref":"#/components/schemas/PostAccountTypeCreditCardCardHolderInfo","description":"Container for cardholder information.\n"},"cardNumber":{"type":"string","description":"Card number, up to 16 characters. Once created, this field can't be updated or queried, and is only available in masked format (e.g., XXXX-XXXX-XXXX-1234).\n"},"cardType":{"type":"string","description":"The type of the credit card.\n\nPossible values  include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).\n"},"expirationMonth":{"type":"string","description":"Two-digit expiration month (01-12).\n"},"expirationYear":{"type":"string","description":"Four-digit expiration year.\n"},"securityCode":{"type":"string","description":"The CVV or CVV2 security code of the card. To ensure PCI compliance, this value is not stored and cannot be queried.\n"}},"required":["cardHolderInfo","cardNumber","cardType","expirationMonth","expirationYear"],"description":"**Note:** This field has been deprecated, and is currently available only for backward compatibility. Use the `paymentMethod` field instead to create a payment method associated with this account.\n\nContainer for information on a credit card to associate with this account. \nIf the `autoPay` field is set to `true`, you must provide one of the `paymentMethod`, `creditCard`, or `hpmCreditCardPaymentMethodId` field, but not multiple.\n","title":"POSTAccountTypeCreditCard"},"PostAccountEInvoiceProfileBusinessCategory":{"type":"string","enum":["B2B","B2C","B2G"],"description":"The high-level category of the business.\n","title":"PostAccountEInvoiceProfileBusinessCategory"},"PostAccountEInvoiceProfile":{"type":"object","properties":{"businessCategory":{"$ref":"#/components/schemas/PostAccountEInvoiceProfileBusinessCategory","description":"The high-level category of the business.\n"},"businessName":{"type":"string","maxLength":255,"description":"The full official name that the Buyer is registered with the relevant legal authority.\n"},"businessNumber":{"type":"string","description":"The unique identifier number of the legal entity or person that you do business with.\n\nFor example, you must use a GSTIN for India.\n"},"businessNumberSchemeId":{"type":"string","description":"The identification scheme identifier that an official registrar issues to identify the Buyer as a legal entity or person.\n"},"enabled":{"type":"boolean","description":"Whether to enable the e-invoicing profile for the customer account.\n\nIf the following conditions are met, all billing documents for one account can be submitted to an e-invoicing service provider to be generated in electronic format:\n- The account must be configured to generate e-invoice files for billing documents.\n- The billing document must be in Posted status.\n- A business region must be created for the billing country contact, and be linked to an e-invoicing service provider.\n"},"endpointId":{"type":"string","description":"The Buyer's electronic address, to which the application-level response to the billing document might be delivered.\n"},"endpointSchemeId":{"type":"string","description":"The identification scheme identifier of the Buyer’s electronic address.\n"},"taxRegisterNumber":{"type":"string","description":"The Buyer's VAT identifier (also known as the Buyer's VAT identification number) or the local identification (defined by the Buyer’s address) of the Buyer for tax purposes, or a reference that enables the Buyer to state the registered tax status.\n"}},"description":"Container for e-invoicing profile information for this account.\n\n**Note**: This field 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","title":"PostAccountEInvoiceProfile"},"CreatePaymentMethodCreditCardType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodCreditCardType"},"CreatePaymentMethodCardholderInfo":{"type":"object","properties":{"addressLine1":{"type":"string","description":"First address line, 255 characters or less.\n"},"addressLine2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"cardHolderName":{"type":"string","description":"The card holder's full name as it appears on the card, e.g., \"John J Smith\", 50 characters or less. The value must consist only of US-ASCII  characters and must not include special characters."},"city":{"type":"string","description":"City, 40 characters or less.\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"country":{"type":"string","description":"Country, must be a valid country name or abbreviation.\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"email":{"type":"string","description":"Card holder's email address, 80 characters or less.\n"},"phone":{"type":"string","description":"Phone number, 40 characters or less.\n"},"state":{"type":"string","description":"State; must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"required":["cardHolderName"],"description":"Container for cardholder information. The nested `cardHolderName` field is required.\n","title":"CreatePaymentMethodCardholderInfo"},"CreatePaymentMethodCreditCardMitConsentAgreementSrc":{"type":"string","enum":["External"],"description":"Required if you set the `mitProfileAction` field. Specifies how the consent agreement has been established with the customer. The allowed value is `External`. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.\n","title":"CreatePaymentMethodCreditCardMitConsentAgreementSrc"},"CreatePaymentMethodCreditCardMitProfileAction":{"type":"string","enum":["Activate","Persist"],"description":"Specifies how Zuora creates and activates the stored credential profile.\n\n- `Activate` - Use this value if you are creating the stored credential profile after receiving the customer's consent.\n\n  Zuora will create the stored credential profile then send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile. If the CIT succeeds, the status of the stored credential profile will be `Active`. If the CIT does not succeed, Zuora will not create a stored credential profile.\n  \n  If the payment gateway does not support the stored credential transaction framework, the status of the stored credential profile will be `Agreed`.\n\n\n- `Persist` - Use this value if the stored credential profile represents a stored credential profile in an external system. The status of the payment method's stored credential profile will be `Active`.\n\nIf you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Activate` set to this field.\n","title":"CreatePaymentMethodCreditCardMitProfileAction"},"CreatePaymentMethodCreditCardMitProfileType":{"type":"string","enum":["Recurring","Unscheduled"],"description":"Required if you set the `mitProfileAction` field. Indicates the type of the stored credential profile to process recurring or unsecheduled transactions. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Recurring` set to this field.\n","title":"CreatePaymentMethodCreditCardMitProfileType"},"CreatePaymentMethodCreditCardTokens":{"type":"object","properties":{"gatewayType":{"type":"string","description":"The type of the payment gateway to generate the tokens. This field is\ncase-sensitive.\n"},"secondTokenId":{"type":"string","description":"Pass in the second token of the payment method.\n"},"thirdTokenId":{"type":"string","description":"Pass in the third token of the payment method.\n"},"tokenId":{"type":"string","description":"Pass in the first token of the payment method.\n"}},"required":["gatewayType","tokenId"],"description":"To create tokenized payment methods, pass in the existing token information through the fields in this container.\n\nCurrently, this field is only supported on certain integrations. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n","title":"CreatePaymentMethodCreditCardTokens"},"CreatePaymentMethodCreditCardMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The container of the mandate information for the payment method.\n","title":"CreatePaymentMethodCreditCardMandateInfo"},"CreatePaymentMethodCreditCardProcessingOptions":{"type":"object","properties":{"checkDuplicated":{"type":"boolean","description":"Indicates whether to perform a duplication check when you create a payment method.\n\nThe default value is `false`.\n\nWith this field set to `true`, Zuora will check the active and closed payment methods associated with the same billing account to ensure that no duplicate payment methods are created. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/D1_Duplication_check_on_payment_methods\" target=\"_blank\">Duplication check on payment methods</a>.\n"}},"description":"The container for payment method processing options.\n","title":"CreatePaymentMethodCreditCardProcessingOptions"},"CreatePaymentMethodCreditCardGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodCreditCardGatewayOptions"},"CreatePaymentMethodCcReferenceTransactionType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodCcReferenceTransactionType"},"CreatePaymentMethodCcReferenceTransactionMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The container of the mandate information for the payment method.\n","title":"CreatePaymentMethodCcReferenceTransactionMandateInfo"},"CreatePaymentMethodCcReferenceTransactionGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodCcReferenceTransactionGatewayOptions"},"CreatePaymentMethodAchType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodAchType"},"CreatePaymentMethodAchBankAccountType":{"type":"string","enum":["BusinessChecking","Checking","Saving"],"description":"The type of bank account associated with the ACH payment.\n\n\nWhen creating an ACH payment method on Adyen, this field is required by\nZuora but it is not required by Adyen. To create the ACH payment method\nsuccessfully, specify a real value for this field if you can. If it is not\npossible to get the real value for it, specify any of the allowed values\nas a dummy value, `Checking` preferably.\n","title":"CreatePaymentMethodAchBankAccountType"},"CreatePaymentMethodAchMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The container of the mandate information for the payment method.\n","title":"CreatePaymentMethodAchMandateInfo"},"CreatePaymentMethodAchProcessingOptions":{"type":"object","properties":{"checkDuplicated":{"type":"boolean","description":"Indicates whether to perform a duplication check when you create a payment method.\n\nThe default value is `false`.\n\nWith this field set to `true`, Zuora will check the active and closed payment methods associated with the same billing account to ensure that no duplicate payment methods are created. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/D1_Duplication_check_on_payment_methods\" target=\"_blank\">Duplication check on payment methods</a>.\n"}},"description":"The container for payment method processing options.\n","title":"CreatePaymentMethodAchProcessingOptions"},"CreatePaymentMethodAchTokens":{"type":"object","properties":{"gatewayType":{"type":"string","description":"The type of the payment gateway to generate the tokens. This field is\ncase-sensitive.\n"},"secondTokenId":{"type":"string","description":"Pass in the second token of the payment method.\n"},"thirdTokenId":{"type":"string","description":"Pass in the third token of the payment method.\n"},"tokenId":{"type":"string","description":"Pass in the first token of the payment method.\n"}},"required":["gatewayType","tokenId"],"description":"To create tokenized payment methods, pass in the existing token information through the fields in this container.\n\n\nCurrently, this field is only supported on certain integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n","title":"CreatePaymentMethodAchTokens"},"CreatePaymentMethodAchGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodAchGatewayOptions"},"CreatePaymentMethodSepaType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodSepaType"},"CreatePaymentMethodSepaAccountHolderInfo":{"type":"object","properties":{"accountHolderName":{"type":"string","maxLength":60,"description":"The full name of the bank account holder.\n"},"addressLine1":{"type":"string","description":"The first line of the address for the account holder.\n\nThis field is required for SEPA Direct Debit payment methods on Stripe v2 for [certain countries](https://stripe.com/docs/payments/sepa-debit/set-up-payment?platform=web#web-submit-payment-method).\n"},"addressLine2":{"type":"string","description":"The second line of the address for the account holder. \n"},"city":{"type":"string","description":"The city where the account holder stays.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"country":{"type":"string","description":"The country where the account holder stays.\n\nThis field is required for SEPA payment methods on Stripe v2 for [certain countries](https://stripe.com/docs/payments/sepa-debit/set-up-payment?platform=web#web-submit-payment-method).\n"},"email":{"type":"string","description":"The email address of the account holder.\n"},"firstName":{"type":"string","description":"The first name of the account holder.\n"},"lastName":{"type":"string","description":"The last name of the account holder.\n"},"phone":{"type":"string","description":"The phone number of the account holder.\n"},"state":{"type":"string","description":"The state where the account holder stays.\n"},"zipCode":{"type":"string","description":"The zip code for the address of the account holder.\n"}},"required":["accountHolderName"],"description":"The container for the account holder information. The nested `accountHolderName` field is required. \nHowever, for the creation of tokenized SEPA payment methods, this field is optional. \nCurrently, SEPA tokenization is supported on selected payment gateway integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n","title":"CreatePaymentMethodSepaAccountHolderInfo"},"CreatePaymentMethodSepaMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The container of the mandate information for the payment method.\n","title":"CreatePaymentMethodSepaMandateInfo"},"CreatePaymentMethodSepaTokensGatewayType":{"type":"string","enum":["Adyen","Stripe"],"description":"The type of the payment gateway to generate the tokens. This field is\ncase-sensitive.\n","title":"CreatePaymentMethodSepaTokensGatewayType"},"CreatePaymentMethodSepaTokens":{"type":"object","properties":{"gatewayType":{"$ref":"#/components/schemas/CreatePaymentMethodSepaTokensGatewayType","description":"The type of the payment gateway to generate the tokens. This field is\ncase-sensitive.\n"},"secondTokenId":{"type":"string","description":"Pass in the second token of the payment method.\n"},"thirdTokenId":{"type":"string","description":"Pass in the third token of the payment method.\n"},"tokenId":{"type":"string","description":"Pass in the first token of the payment method.\n"}},"required":["gatewayType","tokenId"],"description":"To create tokenized payment methods, pass in the existing token information through the fields in this container.\n\nCurrently, SEPA tokenization is supported on selected payment gateway integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n","title":"CreatePaymentMethodSepaTokens"},"CreatePaymentMethodSepaProcessingOptions":{"type":"object","properties":{"checkDuplicated":{"type":"boolean","description":"Indicates whether to perform a duplication check when you create a payment method.\n\nThe default value is `false`.\n\nWith this field set to `true`, Zuora will check the active and closed payment methods associated with the same billing account to ensure that no duplicate payment methods are created. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/D1_Duplication_check_on_payment_methods\" target=\"_blank\">Duplication check on payment methods</a>.\n"}},"description":"The container for payment method processing options.\n","title":"CreatePaymentMethodSepaProcessingOptions"},"CreatePaymentMethodSepaGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodSepaGatewayOptions"},"CreatePaymentMethodBetalingsserviceType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodBetalingsserviceType"},"CreatePaymentMethodBetalingsserviceAccountHolderInfo":{"type":"object","properties":{"accountHolderName":{"type":"string","maxLength":60,"description":"Required.\n\nThe full name of the bank account holder.\n"},"addressLine1":{"type":"string","description":"The first line of the address for the account holder.\n"},"addressLine2":{"type":"string","description":"The second line of the address for the account holder. \n"},"city":{"type":"string","description":"The city where the account holder stays.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"country":{"type":"string","description":"The country where the account holder stays.\n"},"email":{"type":"string","description":"The email address of the account holder.\n"},"firstName":{"type":"string","description":"The first name of the account holder.\n"},"lastName":{"type":"string","description":"The last name of the account holder.\n"},"phone":{"type":"string","description":"The phone number of the account holder.\n"},"state":{"type":"string","description":"The state where the account holder stays.\n"},"zipCode":{"type":"string","description":"The zip code for the address of the account holder.\n"}},"description":"The container for the account holder information. The nested `accountHolderName` field is required.\n","title":"CreatePaymentMethodBetalingsserviceAccountHolderInfo"},"CreatePaymentMethodBetalingsserviceMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The container of the mandate information for the payment method.\n","title":"CreatePaymentMethodBetalingsserviceMandateInfo"},"CreatePaymentMethodBetalingsserviceProcessingOptions":{"type":"object","properties":{"checkDuplicated":{"type":"boolean","description":"Indicates whether to perform a duplication check when you create a payment method.\n\nThe default value is `false`.\n\nWith this field set to `true`, Zuora will check the active and closed payment methods associated with the same billing account to ensure that no duplicate payment methods are created. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/D1_Duplication_check_on_payment_methods\" target=\"_blank\">Duplication check on payment methods</a>.\n"}},"description":"The container for payment method processing options.\n","title":"CreatePaymentMethodBetalingsserviceProcessingOptions"},"CreatePaymentMethodBetalingsserviceGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodBetalingsserviceGatewayOptions"},"CreatePaymentMethodAutogiroType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodAutogiroType"},"CreatePaymentMethodAutogiroAccountHolderInfo":{"type":"object","properties":{"accountHolderName":{"type":"string","maxLength":60,"description":"Required.\n\nThe full name of the bank account holder.\n"},"addressLine1":{"type":"string","description":"The first line of the address for the account holder.\n"},"addressLine2":{"type":"string","description":"The second line of the address for the account holder. \n"},"city":{"type":"string","description":"The city where the account holder stays.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"country":{"type":"string","description":"The country where the account holder stays.\n"},"email":{"type":"string","description":"The email address of the account holder.\n"},"firstName":{"type":"string","description":"The first name of the account holder.\n"},"lastName":{"type":"string","description":"The last name of the account holder.\n"},"phone":{"type":"string","description":"The phone number of the account holder.\n"},"state":{"type":"string","description":"The state where the account holder stays.\n"},"zipCode":{"type":"string","description":"The zip code for the address of the account holder.\n"}},"description":"The container for the account holder information. The nested `accountHolderName` field is required.\n","title":"CreatePaymentMethodAutogiroAccountHolderInfo"},"CreatePaymentMethodAutogiroMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The container of the mandate information for the payment method.\n","title":"CreatePaymentMethodAutogiroMandateInfo"},"CreatePaymentMethodAutogiroProcessingOptions":{"type":"object","properties":{"checkDuplicated":{"type":"boolean","description":"Indicates whether to perform a duplication check when you create a payment method.\n\nThe default value is `false`.\n\nWith this field set to `true`, Zuora will check the active and closed payment methods associated with the same billing account to ensure that no duplicate payment methods are created. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/D1_Duplication_check_on_payment_methods\" target=\"_blank\">Duplication check on payment methods</a>.\n"}},"description":"The container for payment method processing options.\n","title":"CreatePaymentMethodAutogiroProcessingOptions"},"CreatePaymentMethodAutogiroGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodAutogiroGatewayOptions"},"CreatePaymentMethodBacsType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodBacsType"},"CreatePaymentMethodBacsAccountHolderInfo":{"type":"object","properties":{"accountHolderName":{"type":"string","maxLength":60,"description":"Required.\n\nThe full name of the bank account holder.\n"},"addressLine1":{"type":"string","description":"The first line of the address for the account holder.\n"},"addressLine2":{"type":"string","description":"The second line of the address for the account holder. \n"},"city":{"type":"string","description":"The city where the account holder stays.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"country":{"type":"string","description":"The country where the account holder stays.\n"},"email":{"type":"string","description":"The email address of the account holder.\n"},"firstName":{"type":"string","description":"The first name of the account holder.\n"},"lastName":{"type":"string","description":"The last name of the account holder.\n"},"phone":{"type":"string","description":"The phone number of the account holder.\n"},"state":{"type":"string","description":"The state where the account holder stays.\n"},"zipCode":{"type":"string","description":"The zip code for the address of the account holder.\n"}},"description":"The container for the account holder information. The nested `accountHolderName` field is required.\n","title":"CreatePaymentMethodBacsAccountHolderInfo"},"CreatePaymentMethodBacsMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The container of the mandate information for the payment method.\n","title":"CreatePaymentMethodBacsMandateInfo"},"CreatePaymentMethodBacsTokensGatewayType":{"type":"string","enum":["Stripe"],"description":"Required. \n\nThe type of the payment gateway to generate the tokens. This field is case-sensitive.\n","title":"CreatePaymentMethodBacsTokensGatewayType"},"CreatePaymentMethodBacsTokens":{"type":"object","properties":{"gatewayType":{"$ref":"#/components/schemas/CreatePaymentMethodBacsTokensGatewayType","description":"Required. \n\nThe type of the payment gateway to generate the tokens. This field is case-sensitive.\n"},"secondTokenId":{"type":"string","description":"Pass in the second token of the payment method. For more information, see  <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration\" target=\"_blank\">Overview of Stripe payment gateway integration</a>.\n"},"thirdTokenId":{"type":"string","description":"Pass in the third token of the payment method.\n"},"tokenId":{"type":"string","description":"Required. \n\nPass in the first token of the payment method. For more information, see  <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration\" target=\"_blank\">Overview of Stripe payment gateway integration</a>.\n"}},"description":"To create tokenized BACS payment methods on Stripe v2, pass in the existing token information through the fields in this container.\nFor more information, see  <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration\" target=\"_blank\">Overview of Stripe payment gateway integration</a>.\n","title":"CreatePaymentMethodBacsTokens"},"CreatePaymentMethodBacsProcessingOptions":{"type":"object","properties":{"checkDuplicated":{"type":"boolean","description":"Indicates whether to perform a duplication check when you create a payment method.\n\nThe default value is `false`.\n\nWith this field set to `true`, Zuora will check the active and closed payment methods associated with the same billing account to ensure that no duplicate payment methods are created. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/D1_Duplication_check_on_payment_methods\" target=\"_blank\">Duplication check on payment methods</a>.\n"}},"description":"The container for payment method processing options.\n","title":"CreatePaymentMethodBacsProcessingOptions"},"CreatePaymentMethodBacsGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodBacsGatewayOptions"},"CreatePaymentMethodBecsType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodBecsType"},"CreatePaymentMethodBecsAccountHolderInfo":{"type":"object","properties":{"accountHolderName":{"type":"string","maxLength":60,"description":"Required.\n\nThe full name of the bank account holder.\n"},"addressLine1":{"type":"string","description":"The first line of the address for the account holder.\n"},"addressLine2":{"type":"string","description":"The second line of the address for the account holder. \n"},"city":{"type":"string","description":"The city where the account holder stays.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"country":{"type":"string","description":"The country where the account holder stays.\n"},"email":{"type":"string","description":"The email address of the account holder.\n"},"firstName":{"type":"string","description":"The first name of the account holder.\n"},"lastName":{"type":"string","description":"The last name of the account holder.\n"},"phone":{"type":"string","description":"The phone number of the account holder.\n"},"state":{"type":"string","description":"The state where the account holder stays.\n"},"zipCode":{"type":"string","description":"The zip code for the address of the account holder.\n"}},"description":"The container for the account holder information. The nested `accountHolderName` field is required.\n","title":"CreatePaymentMethodBecsAccountHolderInfo"},"CreatePaymentMethodBecsMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The container of the mandate information for the payment method.\n","title":"CreatePaymentMethodBecsMandateInfo"},"CreatePaymentMethodBecsProcessingOptions":{"type":"object","properties":{"checkDuplicated":{"type":"boolean","description":"Indicates whether to perform a duplication check when you create a payment method.\n\nThe default value is `false`.\n\nWith this field set to `true`, Zuora will check the active and closed payment methods associated with the same billing account to ensure that no duplicate payment methods are created. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/D1_Duplication_check_on_payment_methods\" target=\"_blank\">Duplication check on payment methods</a>.\n"}},"description":"The container for payment method processing options.\n","title":"CreatePaymentMethodBecsProcessingOptions"},"CreatePaymentMethodBecsGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodBecsGatewayOptions"},"CreatePaymentMethodBecsnzType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodBecsnzType"},"CreatePaymentMethodBecsnzAccountHolderInfo":{"type":"object","properties":{"accountHolderName":{"type":"string","maxLength":60,"description":"Required.\n\nThe full name of the bank account holder.\n"},"addressLine1":{"type":"string","description":"The first line of the address for the account holder.\n"},"addressLine2":{"type":"string","description":"The second line of the address for the account holder. \n"},"city":{"type":"string","description":"The city where the account holder stays.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"country":{"type":"string","description":"The country where the account holder stays.\n"},"email":{"type":"string","description":"The email address of the account holder.\n"},"firstName":{"type":"string","description":"The first name of the account holder.\n"},"lastName":{"type":"string","description":"The last name of the account holder.\n"},"phone":{"type":"string","description":"The phone number of the account holder.\n"},"state":{"type":"string","description":"The state where the account holder stays.\n"},"zipCode":{"type":"string","description":"The zip code for the address of the account holder.\n"}},"description":"The container for the account holder information. The nested `accountHolderName` field is required.\n","title":"CreatePaymentMethodBecsnzAccountHolderInfo"},"CreatePaymentMethodBecsnzMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The container of the mandate information for the payment method.\n","title":"CreatePaymentMethodBecsnzMandateInfo"},"CreatePaymentMethodBecsnzProcessingOptions":{"type":"object","properties":{"checkDuplicated":{"type":"boolean","description":"Indicates whether to perform a duplication check when you create a payment method.\n\nThe default value is `false`.\n\nWith this field set to `true`, Zuora will check the active and closed payment methods associated with the same billing account to ensure that no duplicate payment methods are created. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/D1_Duplication_check_on_payment_methods\" target=\"_blank\">Duplication check on payment methods</a>.\n"}},"description":"The container for payment method processing options.\n","title":"CreatePaymentMethodBecsnzProcessingOptions"},"CreatePaymentMethodBecsnzGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodBecsnzGatewayOptions"},"CreatePaymentMethodPadType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodPadType"},"CreatePaymentMethodPadAccountHolderInfo":{"type":"object","properties":{"accountHolderName":{"type":"string","maxLength":60,"description":"Required.\n\nThe full name of the bank account holder.\n"},"addressLine1":{"type":"string","description":"The first line of the address for the account holder.\n"},"addressLine2":{"type":"string","description":"The second line of the address for the account holder. \n"},"city":{"type":"string","description":"The city where the account holder stays.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"country":{"type":"string","description":"The country where the account holder stays.\n"},"email":{"type":"string","description":"The email address of the account holder.\n"},"firstName":{"type":"string","description":"The first name of the account holder.\n"},"lastName":{"type":"string","description":"The last name of the account holder.\n"},"phone":{"type":"string","description":"The phone number of the account holder.\n"},"state":{"type":"string","description":"The state where the account holder stays.\n"},"zipCode":{"type":"string","description":"The zip code for the address of the account holder.\n"}},"description":"The container for the account holder information. The nested `accountHolderName` field is required.\n","title":"CreatePaymentMethodPadAccountHolderInfo"},"CreatePaymentMethodPadMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The container of the mandate information for the payment method.\n","title":"CreatePaymentMethodPadMandateInfo"},"CreatePaymentMethodPadProcessingOptions":{"type":"object","properties":{"checkDuplicated":{"type":"boolean","description":"Indicates whether to perform a duplication check when you create a payment method.\n\nThe default value is `false`.\n\nWith this field set to `true`, Zuora will check the active and closed payment methods associated with the same billing account to ensure that no duplicate payment methods are created. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/D1_Duplication_check_on_payment_methods\" target=\"_blank\">Duplication check on payment methods</a>.\n"}},"description":"The container for payment method processing options.\n","title":"CreatePaymentMethodPadProcessingOptions"},"CreatePaymentMethodPadGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodPadGatewayOptions"},"CreatePmPayPalCpType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePmPayPalCpType"},"CreatePmPayPalCpTokens":{"type":"object","properties":{"gatewayType":{"type":"string","description":"The type of the payment gateway to generate the tokens. This field is\ncase-sensitive.\n"},"secondTokenId":{"type":"string","description":"Pass in the second token of the payment method.\n"},"thirdTokenId":{"type":"string","description":"Pass in the third token of the payment method.\n"},"tokenId":{"type":"string","description":"Pass in the first token of the payment method.\n"}},"required":["gatewayType","tokenId"],"description":"To create tokenized payment methods, pass in the existing token information through the fields in this container.\n\nCurrently, this field is only supported on certain integrations. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n","title":"CreatePmPayPalCpTokens"},"CreatePmPayPalCpGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePmPayPalCpGatewayOptions"},"CreatePmPayPalEcType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePmPayPalEcType"},"CreatePmPayPalEcGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePmPayPalEcGatewayOptions"},"CreatePmPayPalNativeEcType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePmPayPalNativeEcType"},"CreatePmPayPalNativeEcGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePmPayPalNativeEcGatewayOptions"},"CreatePaymentMethodPayPalAdaptiveType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodPayPalAdaptiveType"},"CreatePaymentMethodPayPalAdaptiveGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodPayPalAdaptiveGatewayOptions"},"CreatePaymentMethodApplePayAdyenType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodApplePayAdyenType"},"CreatePaymentMethodApplePayAdyenGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodApplePayAdyenGatewayOptions"},"CreatePaymentMethodGooglePayAdyenType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodGooglePayAdyenType"},"CreatePaymentMethodGooglePayAdyenGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodGooglePayAdyenGatewayOptions"},"CreatePaymentMethodGooglePayChaseType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodGooglePayChaseType"},"CreatePaymentMethodGooglePayChaseGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodGooglePayChaseGatewayOptions"},"CreatePaymentMethodAmazonPayType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay","AmazonPay"],"description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n","title":"CreatePaymentMethodAmazonPayType"},"CreatePaymentMethodAmazonPayGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentMethodAmazonPayGatewayOptions"},"POSTPaymentMethodRequest":{"oneOf":[{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodCreditCardType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"cardHolderInfo":{"$ref":"#/components/schemas/CreatePaymentMethodCardholderInfo"},"cardMaskNumber":{"type":"string","description":"The masked card number.\n\nCurrently, this field is only supported on certain integrations. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"cardNumber":{"type":"string","description":"Credit card number.\n"},"cardType":{"type":"string","description":"The type of the credit card.\nPossible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see <a href=\"https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways\" target=\"_blank\">Supported Payment Gateways</a>.\n"},"checkDuplicated":{"type":"boolean","description":"Indicates whether the duplication check is performed when you create a new credit card payment method. The default value is `false`.\n\nWith this field set to `true`, Zuora will check all active payment methods associated with the same billing account to ensure that no duplicate credit card payment methods are created. An error is returned if a duplicate payment method is found.\n        \nThe following fields are used for the duplication check:\n  - `cardHolderName`\n  - `expirationMonth`\n  - `expirationYear`\n  - `creditCardMaskNumber`. It is the masked credit card number generated by Zuora. For example, `************1234`.\n\n**This field is being deprecated.**  To achieve the same purpose, use the `processingOptions` > `checkDuplicated` field of the payment method object.\n"},"expirationMonth":{"type":"integer","description":"One or two digit expiration month (1-12) of the credit card.\n"},"expirationYear":{"type":"integer","description":"Four-digit expiration year of the credit card.\n"},"identityNumber":{"type":"string","description":"The identity number of the cardholder. This field is required for Credit Card payment methods in certain countries such as Brazil.\n"},"mitConsentAgreementRef":{"type":"string","maxLength":128,"description":"Specifies your reference for the stored credential consent agreement that you have established with the customer. Only applicable if you set the `mitProfileAction` field.\n"},"mitConsentAgreementSrc":{"$ref":"#/components/schemas/CreatePaymentMethodCreditCardMitConsentAgreementSrc","description":"Required if you set the `mitProfileAction` field. Specifies how the consent agreement has been established with the customer. The allowed value is `External`. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.\n"},"mitNetworkTransactionId":{"type":"string","maxLength":128,"description":"Specifies the ID of a network transaction. Only applicable if you set the `mitProfileAction` field to `Persist`.\n"},"mitProfileAction":{"$ref":"#/components/schemas/CreatePaymentMethodCreditCardMitProfileAction","description":"Specifies how Zuora creates and activates the stored credential profile.\n\n- `Activate` - Use this value if you are creating the stored credential profile after receiving the customer's consent.\n\n  Zuora will create the stored credential profile then send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile. If the CIT succeeds, the status of the stored credential profile will be `Active`. If the CIT does not succeed, Zuora will not create a stored credential profile.\n  \n  If the payment gateway does not support the stored credential transaction framework, the status of the stored credential profile will be `Agreed`.\n\n\n- `Persist` - Use this value if the stored credential profile represents a stored credential profile in an external system. The status of the payment method's stored credential profile will be `Active`.\n\nIf you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Activate` set to this field.\n"},"mitProfileAgreedOn":{"type":"string","format":"date","description":"The date on which the profile is agreed. The date format is `yyyy-mm-dd`.\n"},"mitProfileType":{"$ref":"#/components/schemas/CreatePaymentMethodCreditCardMitProfileType","description":"Required if you set the `mitProfileAction` field. Indicates the type of the stored credential profile to process recurring or unsecheduled transactions. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Recurring` set to this field.\n"},"screeningAmount":{"type":"number","format":"double","description":"For <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Chase_Orbital_Payment_Gateway\" target=\"_blank\">Chase Paymentech Orbital Gateway</a> integrations, if the Safetech Fraud service is enabled, use this field to pass in the amount used for fraud screening for Credit Card validation transactions.\n\nTwo-decimal amount is supported.\n\nIf the `screeningAmount` field is not specified, the authorization amount is used for fraud screening.\n"},"securityCode":{"type":"string","description":"CVV or CVV2 security code of the credit card.\n\nTo ensure PCI compliance, this value is not stored and cannot be queried.\n"},"tokens":{"$ref":"#/components/schemas/CreatePaymentMethodCreditCardTokens","description":"To create tokenized payment methods, pass in the existing token information through the fields in this container.\n\nCurrently, this field is only supported on certain integrations. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"tokenize":{"type":"boolean","default":false,"description":"Specify `true` to tokenize the payment method with the card information.\n\nCurrently, this field is only supported on certain integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"mandateInfo":{"$ref":"#/components/schemas/CreatePaymentMethodCreditCardMandateInfo","description":"The container of the mandate information for the payment method.\n"},"processingOptions":{"$ref":"#/components/schemas/CreatePaymentMethodCreditCardProcessingOptions","description":"The container for payment method processing options.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodCreditCardGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","cardHolderInfo","cardNumber","cardType","expirationMonth","expirationYear"],"description":"CreditCard variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodCcReferenceTransactionType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"creditCardMaskNumber":{"type":"string","maxLength":19,"description":"The masked credit card number, such as `*********1112`.\nThis field is specific for the CC Reference Transaction payment method. It is an optional field that you can use to distinguish different CC Reference Transaction payment methods.\nThough there are no special restrictions on the input string, it is highly recommended to specify a card number that is masked.\n"},"secondTokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data. \n\n`secondTokenId` is conditionally required only when `tokenId` is being used to represent a gateway customer profile. `secondTokenId` is used in the CC Reference Transaction payment method.\n"},"tokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data or represents a gateway's unique customer profile.\n\nWhen `tokenId` is used to represent a customer profile, `secondTokenId` is conditionally required for representing the underlying tokenized payment method.\n\nThe values for the `tokenId` and `secondTokenId` fields differ for gateways. For more information, see the Knowledge Center article specific to each gateway that supports the CC Reference Transaction payment method.\n"},"mandateInfo":{"$ref":"#/components/schemas/CreatePaymentMethodCcReferenceTransactionMandateInfo","description":"The container of the mandate information for the payment method.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodCcReferenceTransactionGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","tokenId"],"description":"CreditCardReferenceTransaction variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodAchType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"addressLine1":{"type":"string","description":"First address line, 255 characters or less.\n"},"addressLine2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"bankABACode":{"type":"string","description":"The nine-digit routing number or ABA number used by banks. This field is\nonly required if the `type` field is set to `ACH`.\n"},"bankAccountMaskNumber":{"type":"string","description":"The masked account number such as ****1234.\n\nCurrently, this field is only supported on certain integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"bankAccountName":{"type":"string","maxLength":70,"description":"The name of the account holder, which can be either a person or a company.\n\n\nFor ACH payment methods on the BlueSnap integration, see [Overview of\nBlueSnap gateway\nintegration](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways/BlueSnap_Gateway/Overview_of_BlueSnap_gateway_integration#Payer_Name_Extraction)\nfor more information about how Zuora splits the string in this field into\ntwo parts and passes them to BlueSnap's `firstName` and `lastName` fields.\n"},"bankAccountNumber":{"type":"string","maxLength":30,"description":"The bank account number associated with the ACH payment.\n\nFor the creation of tokenized ACH payment methods, this field is optional. Currently, ACH tokenization is supported on selected payment gateway integrations.  \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"bankAccountType":{"$ref":"#/components/schemas/CreatePaymentMethodAchBankAccountType","description":"The type of bank account associated with the ACH payment.\n\n\nWhen creating an ACH payment method on Adyen, this field is required by\nZuora but it is not required by Adyen. To create the ACH payment method\nsuccessfully, specify a real value for this field if you can. If it is not\npossible to get the real value for it, specify any of the allowed values\nas a dummy value, `Checking` preferably.\n"},"bankName":{"type":"string","maxLength":70,"description":"The name of the bank where the ACH payment account is held.\n\n\nWhen creating an ACH payment method on Adyen, this field is required by\nZuora but it is not required by Adyen. To create the ACH payment method\nsuccessfully, specify a real value for this field if you can. If it is not\npossible to get the real value for it, specify a dummy value.\n"},"city":{"type":"string","description":"City, 40 characters or less.\n\n\nIt is recommended to provide the city and country information when\ncreating a payment method. The information will be used to process\npayments. If the information is not provided during payment method\ncreation, the city and country data will be missing during payment\nprocessing.\n    \n"},"country":{"type":"string","description":"Country, must be a valid country name or abbreviation.\n\n\nSee <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_countries_or_regions\"\ntarget=\"_blank\">View countries or regions</a>\nfor the list of supported country names and abbreviations.\n\n\nIt is recommended to provide the city and country information when\ncreating a payment method. The information will be used to process\npayments. If the information is not provided during payment method\ncreation, the city and country data will be missing during payment\nprocessing.\n"},"phone":{"type":"string","description":"Phone number, 40 characters or less.\n"},"state":{"type":"string","description":"State, must be a valid subregion (state or province) name or code. For more information, see <a\nhref=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\"\ntarget=\"_blank\">View subregions of a specific country or region</a>.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"},"mandateInfo":{"$ref":"#/components/schemas/CreatePaymentMethodAchMandateInfo","description":"The container of the mandate information for the payment method.\n"},"processingOptions":{"$ref":"#/components/schemas/CreatePaymentMethodAchProcessingOptions","description":"The container for payment method processing options.\n"},"tokens":{"$ref":"#/components/schemas/CreatePaymentMethodAchTokens","description":"To create tokenized payment methods, pass in the existing token information through the fields in this container.\n\n\nCurrently, this field is only supported on certain integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"tokenize":{"type":"boolean","default":false,"description":"Specify `true` to tokenize the payment method with the account information.\n\nCurrently, this field is only supported on certain integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodAchGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","bankABACode","bankAccountName","bankAccountNumber","bankAccountType","bankName"],"description":"ACH variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodSepaType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"IBAN":{"type":"string","description":"The International Bank Account Number. \n\nThis field is required if the `type` field is set to `SEPA`. \nHowever, for the creation of tokenized SEPA payment methods, this field is optional. \nCurrently, SEPA tokenization is supported on selected payment gateway integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"accountHolderInfo":{"$ref":"#/components/schemas/CreatePaymentMethodSepaAccountHolderInfo","description":"The container for the account holder information. The nested `accountHolderName` field is required. \nHowever, for the creation of tokenized SEPA payment methods, this field is optional. \nCurrently, SEPA tokenization is supported on selected payment gateway integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"accountMaskNumber":{"type":"string","description":"The masked account number such as ****1234.\n\nWhen creating tokenized SEPA payment methods, this `accountMaskNumber` field is required if the `tokens` field is provided. \nCurrently, SEPA tokenization is supported on selected payment gateway integrations.\nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"businessIdentificationCode":{"type":"string","description":"The BIC code used for SEPA.\n"},"mandateInfo":{"$ref":"#/components/schemas/CreatePaymentMethodSepaMandateInfo","description":"The container of the mandate information for the payment method.\n"},"tokenize":{"type":"boolean","default":false,"description":"When creating a SEPA payment method on Adyen Integration v2.0, use this\nfield to specify whether to tokenize the payment method with IBAN. If\n`tokenize` is `true`, `IBAN` is required. If the `tokens` field is provided, this `tokenize` field is not required. For more information about how to create tokenized SEPA payment methods on\nAdyen, see <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Adyen_Integration_v2.0/D_Tokenize_SEPA_payment_methods_on_Adyen_Integration_v2.0\"\ntarget=\"_blank\">Tokenize SEPA payment methods on Adyen Integration\nv2.0</a>.\n"},"tokens":{"$ref":"#/components/schemas/CreatePaymentMethodSepaTokens","description":"To create tokenized payment methods, pass in the existing token information through the fields in this container.\n\nCurrently, SEPA tokenization is supported on selected payment gateway integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"processingOptions":{"$ref":"#/components/schemas/CreatePaymentMethodSepaProcessingOptions","description":"The container for payment method processing options.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodSepaGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","IBAN","accountHolderInfo"],"description":"SEPA variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodBetalingsserviceType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"accountHolderInfo":{"$ref":"#/components/schemas/CreatePaymentMethodBetalingsserviceAccountHolderInfo","description":"The container for the account holder information. The nested `accountHolderName` field is required.\n"},"accountNumber":{"type":"string","description":"The number of the customer's bank account.\n"},"accountMaskNumber":{"type":"string","description":"The masked account number such as ****1234.\n"},"bankCode":{"type":"string","description":"The sort code or number that identifies the bank. This is also known as the sort code.\n"},"identityNumber":{"type":"string","description":"The identity number used for Bank Transfer.\n"},"mandateInfo":{"$ref":"#/components/schemas/CreatePaymentMethodBetalingsserviceMandateInfo","description":"The container of the mandate information for the payment method.\n"},"processingOptions":{"$ref":"#/components/schemas/CreatePaymentMethodBetalingsserviceProcessingOptions","description":"The container for payment method processing options.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodBetalingsserviceGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","accountHolderInfo","accountNumber","bankCode","identityNumber"],"description":"Betalingsservice variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodAutogiroType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"accountHolderInfo":{"$ref":"#/components/schemas/CreatePaymentMethodAutogiroAccountHolderInfo","description":"The container for the account holder information. The nested `accountHolderName` field is required.\n"},"accountNumber":{"type":"string","description":"The number of the customer's bank account.\n"},"accountMaskNumber":{"type":"string","description":"The masked account number such as ****1234.\n"},"branchCode":{"type":"string","description":"The branch code of the bank used for direct debit.\n"},"identityNumber":{"type":"string","description":"The identity number used for Bank Transfer.\n"},"mandateInfo":{"$ref":"#/components/schemas/CreatePaymentMethodAutogiroMandateInfo","description":"The container of the mandate information for the payment method.\n"},"processingOptions":{"$ref":"#/components/schemas/CreatePaymentMethodAutogiroProcessingOptions","description":"The container for payment method processing options.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodAutogiroGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","accountHolderInfo","accountNumber","branchCode","identityNumber"],"description":"Autogiro variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodBacsType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"accountHolderInfo":{"$ref":"#/components/schemas/CreatePaymentMethodBacsAccountHolderInfo","description":"The container for the account holder information. The nested `accountHolderName` field is required.\n"},"accountNumber":{"type":"string","description":"The number of the customer's bank account.\n"},"accountMaskNumber":{"type":"string","description":"The masked account number such as ****1234.\nWhen creating BACS payment methods on Stripe, if the `tokens` field is provided, this `accountMaskNumber` field is required. For more information, see  <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration\" target=\"_blank\">Overview of Stripe payment gateway integration</a>.\n"},"bankCode":{"type":"string","description":"The sort code or number that identifies the bank. This is also known as the sort code.\n"},"mandateInfo":{"$ref":"#/components/schemas/CreatePaymentMethodBacsMandateInfo","description":"The container of the mandate information for the payment method.\n"},"tokenize":{"type":"boolean","default":false,"description":"When creating a BACS payment method on Adyen v2.0, set this field to `true` to support processing BACS recurring payments. For more information about other requirements for processing BACS recurring payments, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Adyen_Integration_v2.0/A_Overview_of_Adyen_Integration_v2.0#Direct_Debit_UK_(BACS)\" target=\"_blank\">Overview of Adyen Integration v2.0</a>.\n"},"tokens":{"$ref":"#/components/schemas/CreatePaymentMethodBacsTokens","description":"To create tokenized BACS payment methods on Stripe v2, pass in the existing token information through the fields in this container.\nFor more information, see  <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration\" target=\"_blank\">Overview of Stripe payment gateway integration</a>.\n"},"processingOptions":{"$ref":"#/components/schemas/CreatePaymentMethodBacsProcessingOptions","description":"The container for payment method processing options.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodBacsGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","accountHolderInfo","accountNumber","bankCode"],"description":"Bacs variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodBecsType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"accountHolderInfo":{"$ref":"#/components/schemas/CreatePaymentMethodBecsAccountHolderInfo","description":"The container for the account holder information. The nested `accountHolderName` field is required.\n"},"accountNumber":{"type":"string","description":"The number of the customer's bank account.\n"},"accountMaskNumber":{"type":"string","description":"The masked account number such as ****1234.\n"},"branchCode":{"type":"string","description":"The branch code of the bank used for direct debit.\n"},"mandateInfo":{"$ref":"#/components/schemas/CreatePaymentMethodBecsMandateInfo","description":"The container of the mandate information for the payment method.\n"},"processingOptions":{"$ref":"#/components/schemas/CreatePaymentMethodBecsProcessingOptions","description":"The container for payment method processing options.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodBecsGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","accountNumber","branchCode"],"description":"Becs variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodBecsnzType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"accountHolderInfo":{"$ref":"#/components/schemas/CreatePaymentMethodBecsnzAccountHolderInfo","description":"The container for the account holder information. The nested `accountHolderName` field is required.\n"},"accountNumber":{"type":"string","description":"The number of the customer's bank account.\n"},"accountMaskNumber":{"type":"string","description":"The masked account number such as ****1234.\n"},"branchCode":{"type":"string","description":"The branch code of the bank used for direct debit.\n"},"bankCode":{"type":"string","description":"The sort code or number that identifies the bank. This is also known as the sort code.\n"},"mandateInfo":{"$ref":"#/components/schemas/CreatePaymentMethodBecsnzMandateInfo","description":"The container of the mandate information for the payment method.\n"},"processingOptions":{"$ref":"#/components/schemas/CreatePaymentMethodBecsnzProcessingOptions","description":"The container for payment method processing options.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodBecsnzGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","accountHolderInfo","accountNumber","branchCode","bankCode"],"description":"Becsnz variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodPadType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"accountHolderInfo":{"$ref":"#/components/schemas/CreatePaymentMethodPadAccountHolderInfo","description":"The container for the account holder information. The nested `accountHolderName` field is required.\n"},"accountNumber":{"type":"string","description":"The number of the customer's bank account.\n"},"accountMaskNumber":{"type":"string","description":"The masked account number such as ****1234.\n"},"branchCode":{"type":"string","description":"The branch code of the bank used for direct debit.\n"},"bankCode":{"type":"string","description":"The sort code or number that identifies the bank. This is also known as the sort code.\n"},"mandateInfo":{"$ref":"#/components/schemas/CreatePaymentMethodPadMandateInfo","description":"The container of the mandate information for the payment method.\n"},"processingOptions":{"$ref":"#/components/schemas/CreatePaymentMethodPadProcessingOptions","description":"The container for payment method processing options.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodPadGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","accountHolderInfo","accountNumber","branchCode","bankCode"],"description":"PAD variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePmPayPalCpType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"BAID":{"type":"string","description":"ID of a PayPal billing agreement.\n"},"email":{"type":"string","description":"Email address associated with the payment method.\n"},"tokens":{"$ref":"#/components/schemas/CreatePmPayPalCpTokens","description":"To create tokenized payment methods, pass in the existing token information through the fields in this container.\n\nCurrently, this field is only supported on certain integrations. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"tokenize":{"type":"boolean","default":false,"description":"Specify `true` to tokenize the payment method.\n\nCurrently, this field is only supported on certain integrations. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">this article</a> for more information.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePmPayPalCpGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","BAID","email"],"description":"PayPalCP variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePmPayPalEcType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"BAID":{"type":"string","description":"ID of a PayPal billing agreement.\n"},"email":{"type":"string","description":"Email address associated with the payment method.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePmPayPalEcGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","BAID","email"],"description":"PayPalEC variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePmPayPalNativeEcType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"BAID":{"type":"string","description":"ID of a PayPal billing agreement. \nexample: I-1TJ3GAGG82Y9\n"},"email":{"type":"string","description":"Email address associated with the payment method.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePmPayPalNativeEcGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","BAID"],"description":"PayPalNativeEC variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodPayPalAdaptiveType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"preapprovalKey":{"type":"string","description":"The PayPal preapproval key.\n"},"email":{"type":"string","format":"email","description":"Email address associated with the payment method.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodPayPalAdaptiveGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","preapprovalKey","email"],"description":"PayPalAdaptive variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodApplePayAdyenType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"applePaymentData":{"type":"string","description":"This field is specific for setting up Apple Pay for Adyen to include payload with Apple Pay token or Apple payment data. This information should be stringified. For more information, see [Set up Adyen Apple 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"},"email":{"type":"string","format":"email","description":"Email address associated with the payment method. This field is specific for setting up Apple Pay on Adyen v2.0. This field will be passed to Adyen as `shopperEmail`.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodApplePayAdyenGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","applePaymentData"],"description":"AdyenApplePay variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodGooglePayAdyenType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"googlePaymentToken":{"type":"string","description":"This field is specific for setting up Google Pay for Adyen  gateway integrations to specify the stringified Google Pay token. For more information, see [Set up Adyen Google Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Adyen_Google_Pay).\n"},"email":{"type":"string","description":"Email address associated with the payment method. This field is specific for setting up Google Pay on Adyen v2.0. This field will be passed to Adyen as `shopperEmail`.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodGooglePayAdyenGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","googlePaymentToken"],"description":"AdyenGooglePay variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodGooglePayChaseType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"googlePaymentToken":{"type":"string","description":"This field is specific for setting up Google Pay on Chase gateway integrations to specify the stringified Google Pay token. For more information, see [Set up Google Pay on Chase](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Google_Pay_on_Chase).\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodGooglePayChaseGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","googlePaymentToken"],"description":"GooglePay variant"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/CreatePaymentMethodAmazonPayType","description":"Type of the payment method. The following types of the payment methods are supported:\n\n  * `CreditCard`\n\n  * `CreditCardReferenceTransaction`\n\n  * `ACH`\n\n  * `SEPA`\n\n  * `Betalingsservice`\n\n  * `Autogiro`\n\n  * `Bacs`\n\n  * `Becs`\n\n  * `Becsnz`\n\n  * `PAD`\n\n  * `PayPalCP`\n\n  * `PayPalEC`\n\n  * `PayPalNativeEC`\n\n  * `PayPalAdaptive`\n\n  * `AdyenApplePay`\n\n  * `AdyenGooglePay`\n\n  * `GooglePay`\n\n  * `AmazonPay`\n\n\nTo view the schema and example applicable to a specific payment method type, select the corresponding option from the following list.\n"},"amazonPayToken":{"type":"string","description":"This field is specific for setting up Amazon Pay gateway integrations to specify the stringified Amazon Pay token.\n"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`. \n\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentMethodAmazonPayGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n\nWhen you set this field to `true`, make sure the payment method is supported by the default payment gateway.\n"},"skipValidation":{"type":"boolean","default":false,"description":"Specify whether to skip the validation of the information through the payment gateway. For example, when migrating your payment methods, you can set this field to `true` to skip the validation. \n"}},"required":["type","amazonPayToken"],"description":"AmazonPay variant"}],"discriminator":{"propertyName":"type"},"description":"Payment method information associated with an account.","title":"POSTPaymentMethodRequest"},"CreateAccountShipToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"city":{"type":"string","maxLength":100,"description":"City\n"},"country":{"type":"string","description":"Country; must be a valid country name or abbreviation.\n"},"county":{"type":"string","maxLength":100,"description":"May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"homePhone":{"type":"string","description":"Home phone number, 40 characters or less.\n"},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"mobilePhone":{"type":"string","description":"Mobile phone number, 40 characters or less.\n"},"nickname":{"type":"string","description":"Nickname for this contact\n"},"otherPhone":{"type":"string","description":"Other phone number, 40 characters or less.\n"},"otherPhoneType":{"type":"string","description":"Possible values are: `Work`, `Mobile`, `Home`, `Other`.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address.\n"},"state":{"type":"string","maxLength":100,"description":"State must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>.\n"},"taxRegion":{"type":"string","maxLength":100,"description":"100 characters or less.\nIf using Zuora Tax, a region string as optionally defined in your tax rules. Not required.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"required":["firstName","lastName"],"description":"Container for optional ship-to contact; uses the same field structure as the `billToContact` field. If this field is not specified and the `shipToSameAsBillTo` field is `false`, the ship-to contact of the account is empty.\n","title":"CreateAccountShipToContact"},"POSTAccountTypeSoldToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"city":{"type":"string","maxLength":100,"description":"City\n"},"country":{"type":"string","description":"Country; must be a valid country name or abbreviation. If using Zuora Tax, you must specify a country in the sold-to contact to calculate tax. A bill-to contact may be used if no sold-to contact is provided.\n"},"county":{"type":"string","maxLength":100,"description":"May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"homePhone":{"type":"string","description":"Home phone number, 40 characters or less.\n"},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"mobilePhone":{"type":"string","description":"Mobile phone number, 40 characters or less.\n"},"nickname":{"type":"string","description":"Nickname for this contact\n"},"otherPhone":{"type":"string","description":"Other phone number, 40 characters or less.\n"},"otherPhoneType":{"type":"string","description":"Possible values are: `Work`, `Mobile`, `Home`, `Other`.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address.\n"},"state":{"type":"string","maxLength":100,"description":"State; must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>. If using Zuora Tax, be aware that Zuora Tax requires a state (in the US) or province (in Canada) in this field for the sold-to contact to calculate tax, and that a bill-to contact may be used if no sold-to contact is provided.\n"},"taxRegion":{"type":"string","maxLength":100,"description":"If using Zuora Tax, a region string as optionally defined in your tax rules. Not required.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"required":["firstName","lastName"],"description":"Container for optional sold-to contact; uses the same field structure as the bill-to contact (above). If a sold-to contact is not specified, one is created from the bill-to contact. Once created, these are two separate data entities, and future changes to one do not affect the other.\n","title":"POSTAccountTypeSoldToContact"},"ChargeModelConfigurationType":{"type":"object","properties":{"customFieldPerUnitRate":{"type":"string","description":"The custom field that carries the per-unit rate for each usage record. For example, `perUnitAmount__c`.\n    \nThis field is only available for the usage-based charges that use the Pre-Rated Per Unit Pricing charge model. The charge model 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.\n"},"customFieldTotalAmount":{"type":"string","description":"The custom field that carries the total amount to charge for a usage record. For example, `totalAmount__c`. \n    \nThis field is only available for the usage-based charges that use the Pre-Rated Pricing charge model. The charge model 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.\n"},"formula":{"type":"string","description":"The pricing formula to calculate actual rating amount for each usage record.\n\nThis field is only available for the usage-based charges that use the Multi-Attribute Pricing charge model. The charge model 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.\n"}},"description":"Container for charge model configuration data.\n\n**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. These charge models are 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.\n","title":"ChargeModelConfigurationType"},"POSTTierType":{"type":"object","properties":{"endingUnit":{"type":"number","format":"double","description":"End number of a range of units for the tier.\n"},"price":{"type":"number","format":"double","description":"Price of the tier if the charge is a flat fee, or the price of each unit in the tier if the charge model is tiered pricing.\n"},"priceFormat":{"type":"string","description":"Indicates if pricing is a flat fee or is per unit.\n\nValues:\n\n* `FlatFee`\n* `PerUnit`\n"},"startingUnit":{"type":"number","format":"double","description":"Starting number of a range of units for the tier.\n"},"tier":{"type":"integer","format":"int64","description":"Unique number that identifies the tier that the price applies to.\n"}},"required":["price","tier"],"title":"POSTTierType"},"POSTScCreateType":{"type":"object","properties":{"amendedByOrderOn":{"type":"string","description":"The date when the rate plan charge is amended through an order or amendment. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.\n"},"applyDiscountTo":{"type":"string","description":"Specifies the type of charges that you want a specific discount to apply to.\n\nValues:\n\n* `ONETIME`\n* `RECURRING`\n* `USAGE`\n* `ONETIMERECURRING`\n* `ONETIMEUSAGE`\n* `RECURRINGUSAGE`\n* `ONETIMERECURRINGUSAGE`\n"},"billCycleDay":{"type":"string","description":"Sets the bill cycle day (BCD) for the charge. The BCD determines which day of the month the customer is billed.\n\nValues: `1`-`31`\n"},"billCycleType":{"type":"string","description":"Specifies how to determine the billing day for the charge. When this field is set to `SpecificDayofMonth`, set the `BillCycleDay` field. When this field is set to `SpecificDayofWeek`, set the `weeklyBillCycleDay` field.\n\nValues:\n\n* `DefaultFromCustomer`\n* `SpecificDayofMonth`\n* `SubscriptionStartDay`\n* `ChargeTriggerDay`\n* `SpecificDayofWeek`\n"},"billingPeriod":{"type":"string","description":"Billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).\nValues:\n\n* `Month`\n* `Quarter`\n* `Semi_Annual`\n* `Annual`\n* `Eighteen_Months`\n* `Two_Years`\n* `Three_Years`\n* `Five_Years`\n* `Specific_Months`\n* `Subscription_Term`\n* `Week`\n* `Specific_Weeks`\n"},"billingPeriodAlignment":{"type":"string","description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n\nValues:\n\n* `AlignToCharge`\n* `AlignToSubscriptionStart`\n* `AlignToTermStart`\n"},"billingTiming":{"type":"string","description":"Billing timing for the charge for recurring charge types. Not avaliable for one time, usage, and discount charges.\n\nValues:\n\n* `IN_ADVANCE` (default)\n* `IN_ARREARS`\n"},"chargeModelConfiguration":{"$ref":"#/components/schemas/ChargeModelConfigurationType"},"description":{"type":"string","description":"Description of the charge.\n"},"discountAmount":{"type":"number","format":"double","description":"Specifies the amount of fixed-amount discount.\n"},"discountLevel":{"type":"string","description":"Specifies if the discount applies to the product rate plan only, the entire subscription, or to any activity in the account.\n\nValues:\n\n* `rateplan`\n* `subscription`\n* `account`\n"},"discountPercentage":{"type":"number","format":"double","description":"Percentage of discount for a percentage discount. \n"},"endDateCondition":{"type":"string","description":"Defines when the charge ends after the charge trigger date. If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.\n\nValues:\n\n* `Subscription_End`\n* `Fixed_Period`\n* `Specific_End_Date`\n* `One_Time`\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charges from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"includedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units for this charge. Must be >=`0`.\n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during\nrevenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"listPriceBase":{"type":"string","description":"The list price base for the product rate plan charge.\n\nValues:\n\n* `Per_Billing_Period`\n* `Per_Month`\n* `Per_Week`\n* `Per_Year`\n* `Per_Specific_Months`\n"},"number":{"type":"string","description":"Unique number that identifies the charge. Max 50 characters. System-generated if not provided.\n"},"numberOfPeriods":{"type":"integer","format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model.\n"},"originalOrderDate":{"type":"string","format":"date","description":"The date when the rate plan charge is created through an order or amendment. This field is not updatable.\n\nThis field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.\n"},"overagePrice":{"type":"number","format":"double","description":"Price for units over the allowed amount.\n"},"overageUnusedUnitsCreditOption":{"type":"string","description":"Determines whether to credit the customer with unused units of usage.\n\nValues:\n\n* `NoCredit`\n* `CreditBySpecificRate`\n"},"price":{"type":"number","format":"double","description":"Price for units in the subscription rate plan.\n"},"priceChangeOption":{"type":"string","description":"Applies an automatic price change when a termed subscription is renewed. The Billing Admin setting **Enable Automatic Price Change When Subscriptions are Renewed?** must be set to Yes to use this field.\nValues:\n\n* `NoChange` (default)\n* `SpecificPercentageValue`\n* `UseLatestProductCatalogPricing`\n"},"priceIncreasePercentage":{"type":"number","format":"double","description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Required if you set the `PriceChangeOption` field to `SpecificPercentageValue`. \n\nValue must be a decimal between `-100` and `100`.\n"},"productRatePlanChargeId":{"type":"string","description":"ID of a product rate-plan charge for this subscription.\n"},"productRatePlanChargeNumber":{"type":"string","description":"Number of a product rate-plan charge for this subscription.\n"},"quantity":{"type":"number","format":"double","description":"Number of units. Must be a decimal >=`0`. \n\nWhen using `chargeOverrides` for creating subscriptions with recurring charge types, the `quantity` field must be populated when the charge model is \"Tiered Pricing\" or \"Volume Pricing\". It is not required for \"Flat Fee Pricing\" charge model.\n"},"ratingGroup":{"type":"string","description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:\n\n- `ByBillingPeriod` (default): The rating is based on all the usages in a billing period.\n- `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Note:** \n- The `ByBillingPeriod` value can be applied for all charge models. \n- The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n- The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n- Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n"},"specificBillingPeriod":{"type":"integer","format":"int64","description":"Specifies the number of month or week for the charges billing period. Required if you set the value of the `billingPeriod` field to `Specific_Months` or `Specific_Weeks`.\n"},"specificEndDate":{"type":"string","format":"date","description":"Defines when the charge ends after the charge trigger date.\n\n**Note**:\n\n* This field is only applicable when the `endDateCondition` field is set to `Specific_End_Date`.\n\n* If the subscription ends before the specific end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the specific end date.\n"},"specificListPriceBase":{"type":"integer","minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `listPriceBase` field to `Per_Specific_Months`.\n\n**Note**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/POSTTierType"},"description":"Container for Volume, Tiered, or Tiered with Overage charge models. Supports the following charge types:\n\n* One-time\n* Recurring\n* Usage-based\n"},"triggerDate":{"type":"string","format":"date","description":"Specifies when to start billing the customer for the charge. Required if the `triggerEvent` field is set to `USD`.\n"},"triggerEvent":{"type":"string","description":"Specifies when to start billing the customer for the charge.\n\nValues:\n\n* `UCE`\n* `USA`\n* `UCA`\n* `USD`\n"},"unusedUnitsCreditRates":{"type":"number","format":"double","description":"Specifies the rate to credit a customer for unused units of usage. This field applies only for overage charge models when the `OverageUnusedUnitsCreditOption` field is set to `CreditBySpecificRate`.\n"},"upToPeriods":{"type":"integer","format":"int64","description":"Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.\n\n**Note:** You must use this field together with the `upToPeriodsType` field to specify the time period.\n\n* This field is applicable only when the `endDateCondition` field is set to `Fixed_Period`. \n* If the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge end date will change accordingly up to the original period end.\n"},"upToPeriodsType":{"type":"string","description":"\nThe period type used to define when the charge ends. \n\nValues:\n\n* `Billing_Periods`\n* `Days`\n* `Weeks`\n* `Months`\n* `Years`\n\nYou must use this field together with the `upToPeriods` field to specify the time period.\n\nThis field is applicable only when the `endDateCondition` field is set to `Fixed_Period`. \n"},"weeklyBillCycleDay":{"type":"string","description":"Specifies which day of the week is the bill cycle day (BCD) for the charge. \n\nValues:\n\n* `Sunday`\n* `Monday`\n* `Tuesday`\n* `Wednesday`\n* `Thursday`\n* `Friday`\n* `Saturday`\n"}},"required":["productRatePlanChargeId"],"description":"Container for custom fields of a Rate Plan Charge object.\n","title":"POSTScCreateType"},"POSTSrpCreateType":{"type":"object","properties":{"chargeOverrides":{"type":"array","items":{"$ref":"#/components/schemas/POSTScCreateType"},"description":"This optional container is used to override the quantity of one or more product rate plan charges for this subscription.\n"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.\n\n**Note:** If both `externalCatalogPlanId` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"externalIdSourceSystem":{"type":"string","description":"The ID of the external source system. You can use this field and `externalCatalogPlanId` to specify a product rate plan that is imported from an external system.\n\n**Note:** If both `externalCatalogPlanId`, `externalIdSourceSystem` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"productRatePlanId":{"type":"string","description":"ID of a product rate plan for this subscription.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"}},"description":"Container for custom fields of a Rate Plan object.\n","title":"POSTSrpCreateType"},"POSTAccountTypeSubscription":{"type":"object","properties":{"autoRenew":{"type":"boolean","description":"If `true`, auto-renew is enabled. Default is `false`.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"Effective contract date for this subscription, as `yyyy-mm-dd`.\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been accepted by the customer, as `yyyy-mm-dd`.\n\nDefault value is dependent on the value of other fields. See Notes section for more details.\n"},"initialTerm":{"type":"integer","format":"int64","description":"Duration of the initial subscription term in whole months.  Default is 0. \n"},"invoiceOwnerAccountKey":{"type":"string","description":"Invoice owner account number or ID.\n\n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com). \n"},"invoiceSeparately":{"type":"boolean","description":"Separates a single subscription from other subscriptions and invoices the charge independently. \n\nIf the value is `true`, the subscription is billed separately from other subscriptions. If the value is `false`, the subscription is included with other subscriptions in the account invoice.\nThe default value is `false`.\n\nPrerequisite: The default subscription setting `Enable Subscriptions to be Invoiced Separately` must be set to `Yes`.\n"},"notes":{"type":"string"},"renewalTerm":{"type":"integer","format":"int64","description":"Duration of the renewal term in whole months. Default is 0.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been activated and access has been provided to the customer, as `yyyy-mm-dd`.\n\nDefault value is dependent on the value of other fields. See Notes section for more details.\n"},"subscribeToRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/POSTSrpCreateType"},"description":"Container for one or more rate plans for this subscription.\n"},"subscriptionNumber":{"type":"string","description":"Subscription Number. The value can be up to 1000 characters.\n\nIf you do not specify a subscription number when creating a subscription for the new account, Zuora will generate a subscription number automatically.\n\nIf the account is created successfully, the subscription number is returned in the `subscriptionNumber` response field.\n"},"termStartDate":{"type":"string","format":"date","description":"The date on which the subscription term begins, as `yyyy-mm-dd`. If this is a renewal subscription, this date is different from the subscription start date.\n"},"termType":{"type":"string","description":"Possible values are: `TERMED`, `EVERGREEN`.\n"},"CpqBundleJsonId__QT":{"type":"string","maxLength":32,"description":"The Bundle product structures from Zuora Quotes if you utilize Bundling in Salesforce. Do not change the value in this field.\n"},"OpportunityCloseDate__QT":{"type":"string","format":"date","description":"The closing date of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"OpportunityName__QT":{"type":"string","maxLength":100,"description":"The unique identifier of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteBusinessType__QT":{"type":"string","maxLength":32,"description":"The specific identifier for the type of business transaction the Quote represents such as New, Upsell, Downsell, Renewal or Churn. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteNumber__QT":{"type":"string","maxLength":32,"description":"The unique identifier of the Quote. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteType__QT":{"type":"string","maxLength":32,"description":"The Quote type that represents the subscription lifecycle stage such as New, Amendment, Renew or Cancel. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the subscription's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Project__NS":{"type":"string","maxLength":255,"description":"The NetSuite project that the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SalesOrder__NS":{"type":"string","maxLength":255,"description":"The NetSuite sales order than the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the subscription was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["contractEffectiveDate","termType"],"description":"Container for subscription information, used if creating a subscription for the new account at the time of account creation.\n","title":"POSTAccountTypeSubscription"},"PostAccountTypeTaxInfo":{"type":"object","properties":{"VATId":{"type":"string","description":"EU Value Added Tax ID. \n\n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).\n"},"companyCode":{"type":"string","description":"Unique code that identifies a company account in Avalara. Use this field to calculate taxes based on origin and sold-to addresses in Avalara.\n\n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com). \n"},"exemptCertificateId":{"type":"string","description":"ID of the customer tax exemption certificate. Requires Zuora Tax.\n"},"exemptCertificateType":{"type":"string","description":"Type of tax exemption certificate that the customer holds. Requires Zuora Tax.\n"},"exemptDescription":{"type":"string","description":"Description of the tax exemption certificate that the customer holds. Requires Zuora Tax.\n"},"exemptEffectiveDate":{"type":"string","format":"date","description":"Date when the customer tax exemption starts. Requires Zuora Tax.\n\nFormat: `yyyy-mm-dd`. Defaults to the current date.\n"},"exemptEntityUseCode":{"type":"string","maxLength":64,"description":"A unique entity use code to apply exemptions in Avalara AvaTax.\n\nThis account-level field is required only when you choose Avalara as your tax engine. See [Exempt Transactions](https://developer.avalara.com/avatax/handling-tax-exempt-customers/)for more details.\n"},"exemptExpirationDate":{"type":"string","format":"date","description":"Date when the customer tax exemption expires. Requires Zuora Tax.\n\nFormat: `yyyy-mm-dd`. Defaults to the current date.\n"},"exemptIssuingJurisdiction":{"type":"string","description":"Jurisdiction in which the customer tax exemption certificate was issued.\n"},"exemptStatus":{"type":"string","description":"Status of the account tax exemption. Requires Zuora Tax.\n\nRequired if you use Zuora Tax. This field is unavailable if Zuora Tax is not used.\n\nValues: `Yes`, `No`(default), `pendingVerification`. Note that the value will be set to `No` if no input.\n"}},"description":"Container for tax exempt information, used to establish the tax exempt status of a customer account.\n","title":"PostAccountTypeTaxInfo"},"PostAccountTypeCustomerTypeNs":{"type":"string","enum":["Company","Individual"],"description":"Value of the Customer Type field for the corresponding customer account in NetSuite. The Customer Type field is used when the customer account is created in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"PostAccountTypeCustomerTypeNs"},"PostAccountTypeSynctoNetSuiteNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the account should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"PostAccountTypeSynctoNetSuiteNs"},"POSTAccountType":{"type":"object","properties":{"accountNumber":{"type":"string","description":"A unique account number, up to 50 characters that do not begin with the default account number prefix.  If no account number is specified, one is generated.\n"},"additionalEmailAddresses":{"type":"array","items":{"type":"string"},"description":"A list of additional email addresses to receive email notifications. Use commas to separate email addresses.\n"},"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply to invoices.\n"},"applyCredit":{"type":"boolean","description":"Whether to automatically apply credit memos or unapplied payments, or both to an invoice.\n\nIf the value is `true`, the credit memo or unapplied payment, or both will be automatically applied to the invoice. If no value is specified or the value is `false`, no action is taken.\n\n**Note:** This field 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"},"applyCreditBalance":{"type":"boolean","description":"Applies a credit balance to an invoice.\n\nIf the value is `true`, the credit balance is applied to the invoice. If the value is `false`, no action is taken.\n\nPrerequisite: `invoice` must be `true`.\n\nTo view the credit balance adjustment, retrieve the details of the invoice using the Get Invoices method.\n\n\n**Note:** \n  - If you are using the field `invoiceCollect` rather than the field `invoice`, the `invoiceCollect` value must be `true`.\n  - This field is deprecated if you have the Invoice Settlement feature enabled. \n"},"autoPay":{"type":"boolean","description":"Whether future payments are to be automatically billed when they are due. \n\n- If this field is set to `true`, you must specify either the `creditCard` field or the `hpmCreditCardPaymentMethodId` field, but not both.\n- If this field is set to `false`, you can specify neither the `creditCard` field nor the `hpmCreditCardPaymentMethodId` field.\n"},"batch":{"type":"string","description":"The alias name given to a batch. A string of 50 characters or\nless.\n\n**Note**: By default, you have 50 configurable account batches. To increase the limit to 200 batches, you must have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Performance_Booster_Elite\" target=\"_blank\">Performance Booster Elite</a> package.\n"},"billCycleDay":{"type":"integer","format":"int64","description":"The account's bill cycle day (BCD), when bill runs generate invoices for the account.  Specify any day of the month (1-31, where 31 = end-of-month), or 0 for auto-set.\n\nRequired if no subscription will be created. \n\nOptional if a subscription is created and defaults to the day-of-the-month of the subscription's `contractEffectiveDate`.\n"},"billToContact":{"$ref":"#/components/schemas/POSTAccountTypeBillToContact"},"collect":{"type":"boolean","default":true,"description":"Collects an automatic payment for a subscription. The collection generated in this operation is only for this subscription, not for the entire customer account.\n\nIf the value is `true`, the automatic payment is collected. If the value is `false`, no action is taken.\n\nPrerequisite: The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `196.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"communicationProfileId":{"type":"string","description":"The ID of the communication profile that this account is linked to.\n\nYou can provide either or both of the `communicationProfileId` and `profileNumber` fields.\n\nIf both are provided, the request will fail if they do not refer to the same communication profile.\n\nIf none is provided, the default communication profile will be used for this account.\n"},"creditCard":{"$ref":"#/components/schemas/POSTAccountTypeCreditCard"},"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"creditMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.\n"},"crmId":{"type":"string","description":"CRM account ID for the account, up to 100 characters.\n"},"currency":{"type":"string","description":"A currency as defined in Billing Settings in the Zuora UI.\n\nFor payment method authorization, if the `paymentMethod` > `currencyCode` field is specified, `currencyCode` is used. Otherwise, this `currency` field is used for payment method authorization. If no currency is specified for the account, the default currency of the account is then used.\n"},"customerServiceRepName":{"type":"string","maxLength":50,"description":"Name of the account's customer service representative, if applicable.\n"},"debitMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.\n"},"documentDate":{"type":"string","format":"date","description":"The date of the billing document, in `yyyy-mm-dd` format. It represents the invoice date for invoices, credit memo date for credit memos, and debit memo date for debit memos.\n\n- If this field is specified, the specified date is used as the billing document date. \n- If this field is not specified, the date specified in the `targetDate` is used as the billing document date.\n"},"einvoiceProfile":{"$ref":"#/components/schemas/PostAccountEInvoiceProfile"},"gatewayRoutingEligible":{"type":"boolean","default":false,"description":"Indicates whether to include the applicable billing accounts to gateway routing for controlled adoption. \n"},"hpmCreditCardPaymentMethodId":{"type":"string","description":"The ID of the payment method associated with this account. You can use this field to set the default payment method for the account. The payment method ID specified in this field will be set as the default payment method for this account. You can pass the ID of any valid payment method, including a  system-generated payment method ID, into this field.\n\nIf the `autoPay` field is set to `true`, you must provide the credit card payment method ID for either this field or the `creditCard` field, but not both.\n\nFor the Credit Card Reference Transaction payment method, you can specify the payment method ID in this field or use the `paymentMethod` field to create a CC Reference Transaction payment method for an account.\n"},"invoiceDeliveryPrefsEmail":{"type":"boolean","default":false,"description":"Whether the customer wants to receive invoices through email. \n"},"invoiceDeliveryPrefsPrint":{"type":"boolean","default":false,"description":"Whether the customer wants to receive printed invoices, such as through postal mail.\n"},"invoiceTemplateId":{"type":"string","description":"Invoice template ID or template number, configured in Billing Settings in the Zuora UI.\n"},"name":{"type":"string","description":"Account name, up to 255 characters.\n"},"notes":{"type":"string","description":"A string of up to 65,535 characters."},"organizationLabel":{"type":"string","description":"Name of the organization that the account belongs to.  \n\nThis field is only required when you have already turned on Multi-Org feature.    \n"},"parentId":{"type":"string","description":"Identifier of the parent customer account for this Account object. The length is 32 characters. Use this field if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\" target=\"_blank\">Customer Hierarchy</a> enabled."},"partnerAccount":{"type":"boolean","default":false,"description":"Whether the customer account is a partner, distributor, or reseller. \n\n\nYou can set this field to `true` if you have business with distributors or resellers, or operating in B2B model to manage numerous subscriptions through concurrent API requests. After this field is set to `true`, the calculation of account metrics is performed asynchronously during operations such as subscription creation, order changes, invoice generation, and payments.\n\n \n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\" target=\"_blank\">Reseller Account</a> feature enabled.\n"},"paymentGateway":{"type":"string","description":"The name of the payment gateway instance. If null or left unassigned, the Account will use the Default Gateway.\n"},"paymentMethod":{"$ref":"#/components/schemas/POSTPaymentMethodRequest"},"paymentTerm":{"type":"string","description":"Payment terms for this account. Possible values are: `Due Upon Receipt`, `Net 30`, `Net 60`, `Net 90`.\n\n**Note**: If you want to specify a payment term when creating a new account, you must set a value in this field. If you do not set a value in this field, Zuora will use the default value set in **Billing Settings** > **Payment Terms** from Zuora UI.\n"},"profileNumber":{"type":"string","description":"The number of the communication profile that this account is linked to.\n\nYou can provide either or both of the `communicationProfileId` and `profileNumber` fields.\n\nIf both are provided, the request will fail if they do not refer to the same communication profile.\n\nIf none is provided, the default communication profile will be used for this account.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number provided by your customer for services, products, or both purchased."},"runBilling":{"type":"boolean","default":true,"description":"Creates an invoice for a subscription. If you have the Invoice Settlement feature enabled, a credit memo might also be created based on the [invoice and credit memo generation rule](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/B_Credit_and_Debit_Memos/Rules_for_generating_invoices_and_credit_memos). \n\n\nThe billing documents generated\nin this operation is only for this subscription, not for the entire\ncustomer account.\n\n\nPossible values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement feature enabled, a credit memo might also be created.\n\n\n- `false`: No invoice is created.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `196.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"salesRep":{"type":"string","description":"The name of the sales representative associated with this account, if applicable. Maximum of 50 characters."},"sequenceSetId":{"type":["string","null"],"description":"The ID or number of the billing document sequence set to assign to the customer account. \n\nThe billing documents to generate for this account will adopt the prefix and starting document number configured in the sequence set.\n\nIf a customer account has no assigned billing document sequence set, billing documents generated for this account adopt the prefix and starting document number from the default sequence set.\n"},"shipToContact":{"$ref":"#/components/schemas/CreateAccountShipToContact"},"shipToSameAsBillTo":{"type":"boolean","description":"Whether the ship-to contact and bill-to contact are the same entity.\n\nThe created account has the same bill-to contact and ship-to contact entity only when all the following conditions are met in the request body:\n\n- This field is set to `true`. \n\n- A bill-to contact is specified.\n\n- No ship-to contact is specified.\n"},"soldToContact":{"$ref":"#/components/schemas/POSTAccountTypeSoldToContact"},"soldToSameAsBillTo":{"type":"boolean","description":"Whether the sold-to contact and bill-to contact are the same entity. \n\nThe created account has the same bill-to contact and sold-to contact entity only when all the following conditions are met in the request body:\n\n- This field is set to `true`. \n- A bill-to contact is specified.\n- No sold-to contact is specified.\n"},"subscription":{"$ref":"#/components/schemas/POSTAccountTypeSubscription"},"summaryStatementTemplateId":{"type":["string","null"],"description":"The summary statement template ID or number. When a user attempts to generate a summary statement from the \"Account Summary Statement\" screen, the system utilizes this template to produce the PDF.\n"},"tagging":{"type":"string"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice or a credit memo is generated, as yyyy-mm-dd. Default is current date.\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `211.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n\n**Note:** The credit memo is only available only if you have the Invoice Settlement feature enabled.\n"},"taxInfo":{"$ref":"#/components/schemas/PostAccountTypeTaxInfo","description":"Container for tax exempt information, used to establish the tax exempt status of a customer account.\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Value of the Class field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"CustomerType__NS":{"$ref":"#/components/schemas/PostAccountTypeCustomerTypeNs","description":"Value of the Customer Type field for the corresponding customer account in NetSuite. The Customer Type field is used when the customer account is created in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Value of the Department field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the account's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Value of the Location field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Value of the Subsidiary field for the corresponding customer account in NetSuite. The Subsidiary field is required if you use NetSuite OneWorld. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the account was sychronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"$ref":"#/components/schemas/PostAccountTypeSynctoNetSuiteNs","description":"Specifies whether the account should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["billToContact","currency","name"],"description":"Container for custom fields of an Account object.\n","title":"POSTAccountType"},"POSTAccountResponseType":{"type":"object","properties":{"accountId":{"type":"string","description":"Auto-generated account ID.\n"},"accountNumber":{"type":"string","description":"Account number.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact.\n"},"contractedMrr":{"type":"string","format":"decimal","description":"Contracted monthly recurring revenue of the subscription.\n"},"creditMemoId":{"type":"string","description":"The credit memo ID, if a credit memo is generated during the subscription process.\n\n**Note:** This field 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"},"invoiceId":{"type":"string","description":"ID of the invoice generated at account creation, if applicable.\n"},"paidAmount":{"type":"string","format":"decimal","description":"Amount collected on the invoice generated at account creation, if applicable.\n"},"paymentId":{"type":"string","description":"ID of the payment collected on the invoice generated at account creation, if applicable.\n"},"paymentMethodId":{"type":"string","description":"ID of the payment method that was set up at account creation, which automatically becomes the default payment method for this account.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact.\n"},"subscriptionId":{"type":"string","description":"ID of the subscription that was set up at account creation, if applicable.\n"},"subscriptionNumber":{"type":"string","description":"Number of the subscription that was set up at account creation, if applicable.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"totalContractedValue":{"type":"string","format":"decimal","description":"Total contracted value of the subscription.\n"}},"title":"POSTAccountResponseType"},"GetAccountTypeBasicInfoCustomerTypeNs":{"type":"string","enum":["Company","Individual"],"description":"Value of the Customer Type field for the corresponding customer account in NetSuite. The Customer Type field is used when the customer account is created in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetAccountTypeBasicInfoCustomerTypeNs"},"GetAccountTypeBasicInfoSynctoNetSuiteNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the account should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetAccountTypeBasicInfoSynctoNetSuiteNs"},"GETAccountTypeBasicInfo":{"type":"object","properties":{"accountNumber":{"type":"string","description":"Account number.\n"},"batch":{"type":"string","description":"The alias name given to a batch. A string of 50 characters or less.\n"},"communicationProfileId":{"type":"string","description":"The ID of the communication profile that this account is linked to."},"creditMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.\n"},"crmId":{"type":"string","description":"CRM account ID for the account, up to 100 characters.\n"},"customerServiceRepName":{"type":"string","maxLength":50,"description":"Name of the account's customer service representative, if applicable.\n"},"debitMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.\n"},"id":{"type":"string","description":"Account ID.\n"},"invoiceTemplateId":{"type":["string","null"],"description":"Invoice template ID, configured in Billing Settings in the Zuora UI.\n"},"lastMetricsUpdate":{"type":"string","description":"The date and time when account metrics are last updated, if the account is a partner account.\n\n**Note**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\" target=\"_blank\">Reseller Account</a> feature enabled.\n  - If you have the Reseller Account feature enabled, and set the `partnerAccount` field to `false` for an account, the value of the `lastMetricsUpdate` field is automatically set to `null` in the response. \n  - If you ever set the `partnerAccount` field to `true` for an account, the value of `lastMetricsUpdate` field is the time when the account metrics are last updated.\n       \n"},"name":{"type":"string","description":"Account name.\n"},"notes":{"type":"string","description":"Notes associated with the account, up to 65,535 characters.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"parentId":{"type":"string","description":"Identifier of the parent customer account for this Account object. The length is 32 characters. Use this field if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\" target=\"_blank\">Customer Hierarchy</a> enabled."},"partnerAccount":{"type":"boolean","description":"Whether the customer account is a partner, distributor, or reseller. \n\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\" target=\"_blank\">Reseller Account</a> feature enabled.\n"},"profileNumber":{"type":"string","description":"The number of the communication profile that this account is linked to."},"purchaseOrderNumber":{"type":"string","description":"The purchase order number provided by your customer for services, products, or both purchased."},"salesRep":{"type":"string","description":"The name of the sales representative associated with this account, if applicable. Maximum of 50 characters."},"sequenceSetId":{"type":["string","null"],"description":"The ID of the billing document sequence set that is assigned to the customer account. \n"},"summaryStatementTemplateId":{"type":["string","null"],"description":"The summary statement template ID. When a user attempts to generate a summary statement from the \"Account Summary Statement\" screen, the system utilizes this template to produce the PDF."},"status":{"type":"string","description":"Account status; possible values are: `Active`, `Draft`, `Canceled`.\n"},"tags":{"type":"string"},"Class__NS":{"type":"string","maxLength":255,"description":"Value of the Class field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"CustomerType__NS":{"$ref":"#/components/schemas/GetAccountTypeBasicInfoCustomerTypeNs","description":"Value of the Customer Type field for the corresponding customer account in NetSuite. The Customer Type field is used when the customer account is created in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Value of the Department field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the account's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Value of the Location field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Value of the Subsidiary field for the corresponding customer account in NetSuite. The Subsidiary field is required if you use NetSuite OneWorld. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the account was sychronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"$ref":"#/components/schemas/GetAccountTypeBasicInfoSynctoNetSuiteNs","description":"Specifies whether the account should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for basic information about the account. \n\n**Notes**:\n- In the \"Retrieve an order\" operation, if the `getAccountDetails` query parameter is set to `true`, the subscription owner account details `subscriptionOwnerAccountDetails` and invoice owner account details `existingAccountDetails` will be in the response. \n- In the \"Retrieve a subscription by key\" operation, the returned result differs based on the following query parameters: \n  - If the `getSubscriptionOwnerDetails` query parameter is set to `true`, the subscription owner account details `accountOwnerDetails` will be in the response.\n  - If the `getInvoiceOwnerDetails` query parameter is set to `true`, the invoice owner account details `invoiceOwnerAccountDetails` will be in the response.\n  - If both query parameters are set to `true`, the subscription owner account details `accountOwnerDetails` and invoice owner account details `invoiceOwnerAccountDetails` will be in the response.\n","title":"GETAccountTypeBasicInfo"},"GETAccountTypeBillToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"city":{"type":"string","maxLength":100,"description":"City\n"},"country":{"type":["string","null"],"description":"Full country name. This field does not contain the ISO-standard abbreviation of the country name.\n"},"county":{"type":["string","null"],"maxLength":100,"description":"Zuora Tax uses this information to calculate county taxation.          "},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"homePhone":{"type":"string","description":"Home phone number, 40 characters or less.\n"},"id":{"type":"string","description":"ID of the person to bill for the account, 32 characters or less."},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"mobilePhone":{"type":"string","description":"Mobile phone number, 40 characters or less.\n"},"nickname":{"type":"string","description":"Nickname for this contact.\n"},"otherPhone":{"type":["string","null"],"description":"Other phone number, 40 characters or less.\n"},"otherPhoneType":{"type":["string","null"],"description":"Possible values are: `Work`, `Mobile`, `Home`, `Other`.\n"},"personalEmail":{"type":"string","maxLength":80,"description":"Personal email address.\n"},"state":{"type":"string","maxLength":100,"description":"Full state name. This field does not contain the ISO-standard abbreviation of the state name.\n"},"taxRegion":{"type":["string","null"],"maxLength":100,"description":"A region string, defined in your Zuora tax rules.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"description":"Container for bill-to contact information.\n","title":"GETAccountTypeBillToContact"},"GetAccountTypeBillingAndPaymentBcdSettingOption":{"type":"string","enum":["ManualSet","AutoSet"],"description":"Bill cycle day setting option. Indicates whether the account’s bill cycle day is managed manually or automatically.\n  - `ManualSet`: The bill cycle day is explicitly set to a specific day of the month (1–31).\n  - `AutoSet`: The bill cycle day is automatically determined by Zuora. The bill cycle day is assigned when the first subscription is created for the account.\n\nThis field is system-derived and read-only. Its value is automatically determined based on the `billCycleDay` field.\n","title":"GetAccountTypeBillingAndPaymentBcdSettingOption"},"GetAccountTypeBillingAndPayment":{"type":"object","properties":{"additionalEmailAddresses":{"type":"array","items":{"type":"string"},"description":"A list of additional email addresses to receive email notifications.\n"},"autoPay":{"type":"boolean","description":"Whether future payments are automatically collected when they are due during a payment run.\n\n"},"billCycleDay":{"type":"integer","format":"int64","description":"Billing cycle day (BCD), the day of the month when a bill run generates invoices for the account.\n"},"bcdSettingOption":{"$ref":"#/components/schemas/GetAccountTypeBillingAndPaymentBcdSettingOption","description":"Bill cycle day setting option. Indicates whether the account’s bill cycle day is managed manually or automatically.\n  - `ManualSet`: The bill cycle day is explicitly set to a specific day of the month (1–31).\n  - `AutoSet`: The bill cycle day is automatically determined by Zuora. The bill cycle day is assigned when the first subscription is created for the account.\n\nThis field is system-derived and read-only. Its value is automatically determined based on the `billCycleDay` field.\n"},"currency":{"type":"string","description":"A currency defined in the web-based UI administrative settings.\n"},"defaultPaymentMethodId":{"type":"string","description":"ID of the default payment method for the account.\n"},"invoiceDeliveryPrefsEmail":{"type":"boolean","description":"Whether the customer wants to receive invoices through email. \n"},"invoiceDeliveryPrefsPrint":{"type":"boolean","description":"Whether the customer wants to receive printed invoices, such as through postal mail.\n"},"paymentMethodCascadingConsent":{"type":"boolean","description":"`true` indicates the consent from your customer to use the Cascading Payment Method feature was collected. \n`false` indicates the consent was not collected and the Cascading Payment Method feature is not enabled.\n"},"paymentGateway":{"type":"string","description":"The name of the payment gateway instance. If null or left unassigned, the Account will use the Default Gateway.\n"},"paymentTerm":{"type":"string","description":"A payment-terms indicator defined in the web-based UI administrative settings, e.g., \"Net 30\".\n"}},"description":"Container for billing and payment information for the account.","title":"GetAccountTypeBillingAndPayment"},"GetAccountEInvoiceProfileBusinessCategory":{"type":"string","enum":["B2B","B2C","B2G"],"description":"The high-level category of the business.\n","title":"GetAccountEInvoiceProfileBusinessCategory"},"GetAccountEInvoiceProfile":{"type":"object","properties":{"businessCategory":{"$ref":"#/components/schemas/GetAccountEInvoiceProfileBusinessCategory","description":"The high-level category of the business.\n"},"businessName":{"type":"string","maxLength":255,"description":"The full official name that the Buyer is registered with the relevant legal authority.\n"},"businessNumber":{"type":"string","description":"The unique identifier number of the legal entity or person that you do business with.\n\nFor example, you must use a GSTIN for India.\n"},"businessNumberSchemeId":{"type":"string","description":"The identification scheme identifier that an official registrar issues to identify the Buyer as a legal entity or person.\n"},"enabled":{"type":"boolean","description":"Whether the e-invoicing profile for the customer account is enabled. \n\nIf the following conditions are met, all billing documents for one account can be submitted to an e-invoicing service provider to be generated in electronic format:\n- The account must be configured to generate e-invoice files for billing documents.\n- The billing document must be in Posted status.\n- A business region must be created for the billing country contact, and be linked to an e-invoicing service provider.\n"},"endpointId":{"type":"string","description":"The Buyer's electronic address, to which the application-level response to the billing document might be delivered.\n"},"endpointSchemeId":{"type":"string","description":"The identification scheme identifier of the Buyer’s electronic address.\n"},"taxRegisterNumber":{"type":"string","description":"The Buyer's VAT identifier (also known as the Buyer's VAT identification number) or the local identification (defined by the Buyer’s address) of the Buyer for tax purposes, or a reference that enables the Buyer to state the registered tax status.\n"}},"description":"Container for e-invoicing profile information for this account.\n\n**Note**: This field 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","title":"GetAccountEInvoiceProfile"},"GetAccountTypeMetrics":{"type":"object","properties":{"balance":{"type":"string","format":"decimal","description":"The customer's total invoice balance minus credit balance.\n"},"contractedMrr":{"type":"string","format":"decimal","description":"Future expected MRR that accounts for future upgrades, downgrades, upsells and cancellations.\n"},"creditBalance":{"type":"string","format":"decimal","description":"Current credit balance.\n"},"reservedPaymentAmount":{"type":"string","title":"float","description":"The Reserved Payment Amount of the customer account. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information. \n"},"totalDebitMemoBalance":{"type":"string","format":"decimal","description":"**Note:** This field 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\nTotal balance of all posted debit memos.\n"},"totalInvoiceBalance":{"type":"string","format":"decimal","description":"Total balance of all posted invoices.\n"},"unappliedCreditMemoAmount":{"type":"string","format":"decimal","description":"**Note:** This field 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\nTotal unapplied amount of all posted credit memos.\n"},"unappliedPaymentAmount":{"type":"string","format":"decimal","description":"**Note:** This field 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\nTotal unapplied amount of all posted payments.\n"}},"description":"Container for account metrics of the account's default currency. \nIf you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled, the `metricsData` field provides account metrics of different currencies.\n","title":"GetAccountTypeMetrics"},"GETAccountCurrencyMetricsType":{"type":"object","properties":{"balance":{"type":"string","description":"The total balance in this currency.\n"},"contractedMrr":{"type":"string","format":"decimal","description":"The future expected Monthly Recurring Revenue (MRR) in this currency, accounting for future upgrades, downgrades, upsells, and cancellations.\n"},"currency":{"type":"string","description":"The currency that metrics are aggregated based on.\n"},"reservedPaymentAmount":{"type":"string","format":"decimal","description":"The reserved payment amount of the customer account in this currency. 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_Cash_with_Drawdown\" target=\"_blank\">Prepaid Cash with Drawdown</a>.\n"},"totalDebitMemoBalance":{"type":"string","format":"decimal","description":"The total balance of all posted debit memos in this currency.\n\n**Note:** This field is only available if you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/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/Zuora_Billing/Bill_your_customers/Adjust_invoice_amount[…]ment/AC_Invoice_Settlement_migration_checklist_and_guide\" target=\"_blank\">Invoice Settlement Enablement and Checklist Guide</a> for more information.\n"},"totalInvoiceBalance":{"type":"string","format":"decimal","description":"The total balance of all posted invoices in this currency.\n"},"unappliedCreditMemoAmount":{"type":"string","format":"decimal","description":"The total unapplied amount of all posted credit memos in this currency.\n"},"unappliedPaymentAmount":{"type":"string","format":"decimal","description":"The total unapplied amount of all posted payments in this currency.\n\n**Note:** This field 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"}},"title":"GETAccountCurrencyMetricsType"},"GetAccountTypeShipToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"city":{"type":"string","description":"City, 40 characters or less.\n"},"country":{"type":["string","null"],"description":"Full country name. This field does not contain the ISO-standard abbreviation of the country name.\n"},"county":{"type":"string","description":"County; 32 characters or less. Zuora tax uses this information to calculate county taxation.          "},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"homePhone":{"type":"string","description":"Home phone number, 40 characters or less.\n"},"id":{"type":"string","description":"ID of the person who bought the subscription associated with the account, 32 characters or less."},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"mobilePhone":{"type":"string","description":"Mobile phone number, 40 characters or less.\n"},"nickname":{"type":"string","description":"Nickname for this contact.\n"},"otherPhone":{"type":"string","description":"Other phone number, 40 characters or less.\n"},"otherPhoneType":{"type":"string","description":"Possible values are: `Work`, `Mobile`, `Home`, `Other`.\n"},"personalEmail":{"type":"string","maxLength":80,"description":"Personal email address.\n"},"state":{"type":"string","description":"Full state name. This field does not contain the ISO-standard abbreviation of the state name.\n"},"taxRegion":{"type":"string","description":"A region string, defined in your Zuora tax rules.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"description":"Container for ship-to contact information. Uses the same field structure as billToContact.\n","title":"GetAccountTypeShipToContact"},"GETAccountTypeSoldToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"city":{"type":"string","description":"City, 40 characters or less.\n"},"country":{"type":["string","null"],"description":"Full country name. This field does not contain the ISO-standard abbreviation of the country name.\n"},"county":{"type":"string","description":"County; 32 characters or less. Zuora tax uses this information to calculate county taxation.          "},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"homePhone":{"type":"string","description":"Home phone number, 40 characters or less.\n"},"id":{"type":"string","description":"ID of the person who bought the subscription associated with the account, 32 characters or less."},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"mobilePhone":{"type":"string","description":"Mobile phone number, 40 characters or less.\n"},"nickname":{"type":"string","description":"Nickname for this contact.\n"},"otherPhone":{"type":"string","description":"Other phone number, 40 characters or less.\n"},"otherPhoneType":{"type":"string","description":"Possible values are: `Work`, `Mobile`, `Home`, `Other`.\n"},"personalEmail":{"type":"string","maxLength":80,"description":"Personal email address.\n"},"state":{"type":"string","description":"Full state name. This field does not contain the ISO-standard abbreviation of the state name.\n"},"taxRegion":{"type":"string","description":"A region string, defined in your Zuora tax rules.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"description":"Container for sold-to contact information. Uses the same field structure as billToContact.\n","title":"GETAccountTypeSoldToContact"},"GetAccountTypeTaxInfo":{"type":"object","properties":{"VATId":{"type":"string","description":"EU Value Added Tax ID.\n"},"companyCode":{"type":"string","description":"Unique code that identifies a company account in Avalara.\n"},"exemptCertificateId":{"type":"string","description":"ID of the customer tax exemption certificate.\n"},"exemptCertificateType":{"type":"string","description":"Type of tax exemption certificate that the customer holds.\n"},"exemptDescription":{"type":"string","description":"Description of the tax exemption certificate that the customer holds.\n"},"exemptEffectiveDate":{"type":"string","format":"date","description":"Date when the customer tax exemption starts.\n"},"exemptEntityUseCode":{"type":"string","maxLength":64,"description":"A unique entity use code to apply exemptions in Avalara AvaTax.\n\nThis account-level field is required only when you choose Avalara as your tax engine. See [Exempt Transactions](https://developer.avalara.com/avatax/handling-tax-exempt-customers/)for more details.\n"},"exemptExpirationDate":{"type":"string","format":"date","description":"Date when the customer tax exemption expires.\n"},"exemptIssuingJurisdiction":{"type":"string","description":"Jurisdiction in which the customer tax exemption certificate was issued.\n"},"exemptStatus":{"type":"string","description":"Status of the account tax exemption.\n"}},"description":"Container for tax exempt information, used to establish the tax exempt status of a customer account.\n","title":"GetAccountTypeTaxInfo"},"GETAccountType":{"type":"object","properties":{"basicInfo":{"$ref":"#/components/schemas/GETAccountTypeBasicInfo"},"billToContact":{"$ref":"#/components/schemas/GETAccountTypeBillToContact"},"billingAndPayment":{"$ref":"#/components/schemas/GetAccountTypeBillingAndPayment","description":"Container for billing and payment information for the account."},"einvoiceProfile":{"$ref":"#/components/schemas/GetAccountEInvoiceProfile"},"gatewayRoutingEligible":{"type":"boolean","description":"Returns `true` if the applicable billing accounts were was processed successfully for gateway routing .\n"},"metrics":{"$ref":"#/components/schemas/GetAccountTypeMetrics","description":"Container for account metrics of the account's default currency. \nIf you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled, the `metricsData` field provides account metrics of different currencies.\n"},"metricsData":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountCurrencyMetricsType"},"description":"Container for account metrics of different currencies.\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"shipToContact":{"$ref":"#/components/schemas/GetAccountTypeShipToContact"},"soldToContact":{"$ref":"#/components/schemas/GETAccountTypeSoldToContact"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"taxInfo":{"$ref":"#/components/schemas/GetAccountTypeTaxInfo","description":"Container for tax exempt information, used to establish the tax exempt status of a customer account.\n"}},"title":"GETAccountType"},"PUTAccountTypeBillToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"city":{"type":"string","maxLength":100,"description":"City\n"},"country":{"type":"string","description":"Country; must be a valid country name or abbreviation. If using Zuora Tax, you must specify a country in the sold-to contact to calculate tax. A bill-to contact may be used if no sold-to contact is provided.\n"},"county":{"type":"string","maxLength":100,"description":"May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"homePhone":{"type":"string","description":"Home phone number, 40 characters or less.\n"},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"mobilePhone":{"type":"string","description":"Mobile phone number, 40 characters or less.\n"},"nickname":{"type":"string","description":"Nickname for this contact\n"},"otherPhone":{"type":"string","description":"Other phone number, 40 characters or less.\n"},"otherPhoneType":{"type":"string","description":"Possible values are: `Work`, `Mobile`, `Home`, `Other`.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address.\n"},"state":{"type":"string","maxLength":100,"description":"State; must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>. If using Zuora Tax, be aware that Zuora Tax requires a state (in the US) or province (in Canada) in this field for the sold-to contact to calculate tax, and that a bill-to contact may be used if no sold-to contact is provided.\n"},"taxRegion":{"type":"string","maxLength":100,"description":"If using Zuora Tax, a region string as optionally defined in your tax rules. Not required.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"description":"Container for bill-to contact information for this account.\n","title":"PUTAccountTypeBillToContact"},"PutAccountEinvoiceProfileBusinessCategory":{"type":"string","enum":["B2B","B2C","B2G"],"description":"The high-level category of the business.\n","title":"PutAccountEinvoiceProfileBusinessCategory"},"PUTAccountEinvoiceProfile":{"type":"object","properties":{"businessCategory":{"$ref":"#/components/schemas/PutAccountEinvoiceProfileBusinessCategory","description":"The high-level category of the business.\n"},"businessName":{"type":"string","maxLength":255,"description":"Legal Business Name. The full formal name by which the Buyer is registered with the relevant legal authority. "},"businessNumber":{"type":"string","description":"Buyer legal registration identifier. An identifier issued by an official registrar that identifies the Buyer as a legal entity or person. GSTIN of buyer for India. "},"businessNumberSchemeId":{"type":"string","description":"Business Number Schema Id. The identification scheme identifier of the Buyer legal registration identifier. "},"enabled":{"type":"boolean","description":"Enable e-invoice for the account. All invoices generated from this account can be submitted to generate e-invoices when invoices meet the conditions: A business region must be created for the billing country contact, and it must be linked to a service provider. The account must be enabled to generate e-invoices. The invoice must be in the \"Posted\" status. "},"endpointId":{"type":"string","description":"Buyer electronic address.Identifies the Buyer's electronic address to which the invoice is delivered.\n"},"endpointSchemeId":{"type":"string","description":"Buyer electronic address identification scheme identifier. "},"taxRegisterNumber":{"type":"string","description":"Buyer VAT identifier. The Buyer's VAT identifier (also known as Buyer VAT identification number).\n"}},"description":"Container for profile information for this account.\n\n**Note**: This field is available only if you have the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\ntarget=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n","title":"PUTAccountEinvoiceProfile"},"UpdateAccountShipToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"city":{"type":"string","maxLength":100,"description":"City\n"},"country":{"type":"string","description":"Country; must be a valid country name or abbreviation.\n"},"county":{"type":"string","maxLength":100,"description":"May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"homePhone":{"type":"string","description":"Home phone number, 40 characters or less.\n"},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"mobilePhone":{"type":"string","description":"Mobile phone number, 40 characters or less.\n"},"nickname":{"type":"string","description":"Nickname for this contact\n"},"otherPhone":{"type":"string","description":"Other phone number, 40 characters or less.\n"},"otherPhoneType":{"type":"string","description":"Possible values are: `Work`, `Mobile`, `Home`, `Other`.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address.\n"},"state":{"type":"string","maxLength":100,"description":"State; must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>.\n"},"taxRegion":{"type":"string","maxLength":100,"description":"If using Zuora Tax, a region string as optionally defined in your tax rules. Not required.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"description":"Container for optional ship-to contact.\n","title":"UpdateAccountShipToContact"},"PUTAccountTypeSoldToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"city":{"type":"string","description":"City, 100 characters or less.\n"},"country":{"type":"string","description":"Country; must be a valid country name or abbreviation. If using Zuora Tax, you must specify a country in the sold-to contact to calculate tax. A bill-to contact may be used if no sold-to contact is provided.\n"},"county":{"type":"string","description":"County; 100 characters or less. May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"homePhone":{"type":"string","description":"Home phone number, 40 characters or less.\n"},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"mobilePhone":{"type":"string","description":"Mobile phone number, 40 characters or less.\n"},"nickname":{"type":"string","description":"Nickname for this contact\n"},"otherPhone":{"type":"string","description":"Other phone number, 40 characters or less.\n"},"otherPhoneType":{"type":"string","description":"Possible values are: `Work`, `Mobile`, `Home`, `Other`.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address.\n"},"state":{"type":"string","description":"100 characters or less.\nState; must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>. If using Zuora Tax, be aware that Zuora Tax  requires a state (in the US) or province (in Canada) in this field for the sold-to contact to calculate tax, and that a bill-to contact may be used if no sold-to contact is provided.\n"},"taxRegion":{"type":"string","description":"100 characters or less.\nIf using Zuora Tax, a region string as optionally defined in your tax rules. Not required.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"description":"Container for optional sold-to contact.\n","title":"PUTAccountTypeSoldToContact"},"PutAccountTypeTaxInfo":{"type":"object","properties":{"VATId":{"type":"string","description":"EU Value Added Tax ID. \n\n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).\n"},"companyCode":{"type":"string","description":"Unique code that identifies a company account in Avalara. Use this field to calculate taxes based on origin and sold-to addresses in Avalara.\n\n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com). \n"},"exemptCertificateId":{"type":"string","description":"ID of the customer tax exemption certificate. Requires Zuora Tax.\n"},"exemptCertificateType":{"type":"string","description":"Type of tax exemption certificate that the customer holds. Requires Zuora Tax.\n"},"exemptDescription":{"type":"string","description":"Description of the tax exemption certificate that the customer holds. Requires Zuora Tax.\n"},"exemptEffectiveDate":{"type":"string","format":"date","description":"Date when the customer tax exemption starts. Requires Zuora Tax.\n\nFormat: `yyyy-mm-dd`. Defaults to the current date.\n"},"exemptEntityUseCode":{"type":"string","maxLength":64,"description":"A unique entity use code to apply exemptions in Avalara AvaTax.\n\nThis account-level field is required only when you choose Avalara as your tax engine. See [Exempt Transactions](https://developer.avalara.com/avatax/handling-tax-exempt-customers/)for more details.\n"},"exemptExpirationDate":{"type":"string","format":"date","description":"Date when the customer tax exemption expires. Requires Zuora Tax.\n\nFormat: `yyyy-mm-dd`. Defaults to the current date.\n"},"exemptIssuingJurisdiction":{"type":"string","description":"Jurisdiction in which the customer tax exemption certificate was issued.\n"},"exemptStatus":{"type":"string","description":"Status of the account tax exemption. Requires Zuora Tax.\n\nRequired if you use Zuora Tax. This field is unavailable if Zuora Tax is not used.\n\nValues: `Yes`, `No`(default), `pendingVerification`. Note that the value will be set to `No` if no input.\n"}},"description":"Container for tax exempt information, used to establish the tax exempt status of a customer account.\n","title":"PutAccountTypeTaxInfo"},"PutAccountTypeCustomerTypeNs":{"type":"string","enum":["Company","Individual"],"description":"Value of the Customer Type field for the corresponding customer account in NetSuite. The Customer Type field is used when the customer account is created in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"PutAccountTypeCustomerTypeNs"},"PutAccountTypeSynctoNetSuiteNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the account should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"PutAccountTypeSynctoNetSuiteNs"},"PUTAccountType":{"type":"object","properties":{"additionalEmailAddresses":{"type":"array","items":{"type":"string"},"description":"A list of additional email addresses to receive email notifications. Use commas to separate email addresses.\n"},"autoPay":{"type":"boolean","description":"Whether future payments are to be automatically billed when they are due. \n"},"batch":{"type":"string","description":"The alias name given to a batch. A string of 50 characters or\nless.\n\n**Note**: By default, you have 50 configurable account batches. To increase the limit to 200 batches, you must have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Performance_Booster_Elite\" target=\"_blank\">Performance Booster Elite</a> package.\n"},"billCycleDay":{"type":"integer","description":"Sets the bill cycle day (BCD) for the charge. The BCD determines\nwhich day of the month the customer is billed. Values: Any activated system-defined bill cycle day （`1`-`31`）\n"},"billToContact":{"$ref":"#/components/schemas/PUTAccountTypeBillToContact"},"billToContactId":{"type":"string","description":"The ID of a contact that will be the bill-to contact of the current account. \n"},"communicationProfileId":{"type":"string","description":"The ID of the communication profile that this account is linked to.\n\nYou can provide either or both of the `communicationProfileId` and `profileNumber` fields.\n\nIf both are provided, the request will fail if they do not refer to the same communication profile.\n"},"creditMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.\n"},"crmId":{"type":"string","description":"CRM account ID for the account, up to 100 characters.\n"},"customerServiceRepName":{"type":"string","maxLength":50,"description":"Name of the account’s customer service representative, if applicable.\n"},"debitMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.\n"},"defaultPaymentMethodId":{"type":"string","maxLength":64,"description":"ID of the default payment method for the account.\n\nValues: a valid ID for an existing payment method.\n"},"einvoiceProfile":{"$ref":"#/components/schemas/PUTAccountEinvoiceProfile"},"gatewayRoutingEligible":{"type":"boolean","default":false,"description":"Indicates whether to include the applicable billing accounts to gateway routing for controlled adoption. \n"},"invoiceDeliveryPrefsEmail":{"type":"boolean","description":"Whether the customer wants to receive invoices through email. \n\nThe default value is `false`.\n"},"invoiceDeliveryPrefsPrint":{"type":"boolean","description":"Whether the customer wants to receive printed invoices, such as through postal mail.\n\nThe default value is `false`.\n"},"invoiceTemplateId":{"type":"string","description":"Invoice template ID, configured in Billing Settings in the Zuora UI.\n"},"name":{"type":"string","description":"Account name, up to 255 characters.\n"},"notes":{"type":"string","description":"A string of up to 65,535 characters.\n"},"parentId":{"type":"string","description":"Identifier of the parent customer account for this Account object. The length is 32 characters. Use this field if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\" target=\"_blank\">Customer Hierarchy</a> enabled."},"partnerAccount":{"type":"boolean","default":false,"description":"Whether the customer account is a partner, distributor, or reseller. \n\n\nYou can set this field to `true` if you have business with distributors or resellers, or operating in B2B model to manage numerous subscriptions through concurrent API requests. After this field is set to `true`, the calculation of account metrics is performed asynchronously during operations such as subscription creation, order changes, invoice generation, and payments.\n\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\" target=\"_blank\">Reseller Account</a> feature enabled.\n"},"paymentGateway":{"type":"string","description":"The name of the payment gateway instance. If null or left unassigned, the Account will use the Default Gateway.\n"},"paymentTerm":{"type":"string","description":"Payment terms for this account. Possible values are `Due Upon Receipt`, `Net 30`, `Net 60`, `Net 90`."},"profileNumber":{"type":"string","description":"The number of the communication profile that this account is linked to.\n\nYou can provide either or both of the `communicationProfileId` and `profileNumber` fields.\n\nIf both are provided, the request will fail if they do not refer to the same communication profile.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number provided by your customer for services, products, or both purchased."},"salesRep":{"type":"string","description":"The name of the sales representative associated with this account, if applicable. Maximum of 50 characters."},"sequenceSetId":{"type":["string","null"],"description":"The ID of the billing document sequence set to assign to the customer account. \n\nThe billing documents to generate for this account will adopt the prefix and starting document number configured in the sequence set.\n\nIf a customer account has no assigned billing document sequence set, billing documents generated for this account adopt the prefix and starting document number from the default sequence set.\n"},"shipToContact":{"$ref":"#/components/schemas/UpdateAccountShipToContact"},"shipToContactId":{"type":"string","description":"The ID of a contact that will be the ship-to contact of the current account.\n"},"soldToContact":{"$ref":"#/components/schemas/PUTAccountTypeSoldToContact"},"soldToContactId":{"type":"string","description":"The ID of a contact that will be the sold-to contact of the current account. \n"},"tagging":{"type":"string"},"summaryStatementTemplateId":{"type":["string","null"],"description":"The summary statement template ID or number. When a user attempts to generate a summary statement from the \"Account Summary Statement\" screen, the system utilizes this template to produce the PDF.\n"},"taxInfo":{"$ref":"#/components/schemas/PutAccountTypeTaxInfo","description":"Container for tax exempt information, used to establish the tax exempt status of a customer account.\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Value of the Class field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"CustomerType__NS":{"$ref":"#/components/schemas/PutAccountTypeCustomerTypeNs","description":"Value of the Customer Type field for the corresponding customer account in NetSuite. The Customer Type field is used when the customer account is created in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Value of the Department field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the account's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Value of the Location field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Value of the Subsidiary field for the corresponding customer account in NetSuite. The Subsidiary field is required if you use NetSuite OneWorld. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the account was sychronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"$ref":"#/components/schemas/PutAccountTypeSynctoNetSuiteNs","description":"Specifies whether the account should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of an Account object.\n","title":"PUTAccountType"},"DeleteAccountResponseTypeJobStatus":{"type":"string","enum":["Pending"],"description":"The status of the account deletion operation. \n","title":"DeleteAccountResponseTypeJobStatus"},"DeleteAccountResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of the response.\n"},"message":{"type":"string","description":"The detail information of the error response.\n"}},"title":"DeleteAccountResponseTypeReasonsItems"},"DeleteAccountResponseType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the deleted account.\n"},"jobId":{"type":"string","description":"The ID of the job that handles the account deletion operation. \n\nYou can specify the value of this field as the value of the `jobId` path parameter in the [Retrieve an operation job](https://developer.zuora.com/api-references/api/operation/GET_OperationJob/) API operation to query job information.\n"},"jobStatus":{"$ref":"#/components/schemas/DeleteAccountResponseTypeJobStatus","description":"The status of the account deletion operation. \n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/DeleteAccountResponseTypeReasonsItems"}},"success":{"type":"boolean","description":"Whether the call succeeded.\n"}},"title":"DeleteAccountResponseType"},"GETAccountPMAccountHolderInfo":{"type":"object","properties":{"accountHolderName":{"type":"string","maxLength":60,"description":"The full name of the account holder.\n"},"addressLine1":{"type":"string","description":"The first line of the address for the account holder.\n"},"addressLine2":{"type":"string","description":"The second line of the address for the account holder. \n"},"city":{"type":"string","description":"The city where the account holder stays. \n"},"country":{"type":["string","null"],"description":"The country where the account holder stays.\n\nWhen creating a payment method through a translated UI or Payment Page, a country name in a translated language might be selected. Regardless of the country texts selected when creating the payment method, only the supported country name returns in this field. For a complete list of supported country names, 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>. Internationalization is not supported for the API field value.\n"},"email":{"type":"string","description":"The email address of the account holder.\n"},"phone":{"type":"string","description":"The phone number of the account holder.\n"},"state":{"type":"string","description":"The state where the account holder stays.\n"},"zipCode":{"type":"string","description":"The zip code for the address of the account holder.\n"}},"description":"The account holder information.\n","title":"GETAccountPMAccountHolderInfo"},"GetPaymentMethodResponseForAccountAccountVerificationStatus":{"type":"string","enum":["Active","Expired","Expiring","Inactive"],"description":"Displays the status of the account.\n**Note:** \n- `Active` - Access token is active. \n- `Expired` - Access token has expired and must be linked again. \n- `Expiring` - Access token will expire in few days(7 days for Plaid) and must be linked again\n- `Inactive` - The end customer has revoked the account pemission. The end customer can login again and select the same method for the access token to be linked again.\n","title":"GetPaymentMethodResponseForAccountAccountVerificationStatus"},"GetPaymentMethodResponseForAccountExistingMandate":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is an existing mandate.\n","title":"GetPaymentMethodResponseForAccountExistingMandate"},"PostAccountPmMandateInfoExistingMandateStatus":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is an existing mandate.\n","title":"PostAccountPmMandateInfoExistingMandateStatus"},"PostAccountPmMandateInfoMandateReceivedStatus":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is received from the gateway\n","title":"PostAccountPmMandateInfoMandateReceivedStatus"},"PostAccountPmMandateInfoMitConsentAgreementSrc":{"type":"string","enum":["External"],"description":"Required if you set the `mitProfileAction` field. Specify how the consent agreement has been established with the customer. The allowed value is `External`. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.\n","title":"PostAccountPmMandateInfoMitConsentAgreementSrc"},"PostAccountPmMandateInfoMitProfileAction":{"type":"string","enum":["Activate","Persist"],"description":"Specifies how Zuora creates and activates the stored credential profile. Only applicable if you set the `status` field to `Active`.\n\n* `Activate` (default) - Use this value if you are creating the stored credential profile after receiving the customer's consent.\n\n  Zuora will create the stored credential profile then send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile. If the CIT succeeds, the status of the stored credential profile will be `Active`. If the CIT does not succeed, Zuora will not create a stored credential profile.\n  \n  If the payment gateway does not support the stored credential transaction framework, the status of the stored credential profile will be `Agreed`.\n\n\n* `Persist` - Use this value if the stored credential profile represents a stored credential profile in an external system. The status of the payment method's stored credential profile will be `Active`.\n\nIf you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Activate` set to this field.\n","title":"PostAccountPmMandateInfoMitProfileAction"},"POSTAccountPMMandateInfo":{"type":"object","properties":{"existingMandateStatus":{"$ref":"#/components/schemas/PostAccountPmMandateInfoExistingMandateStatus","description":"Indicates whether the mandate is an existing mandate.\n"},"mandateCreationDate":{"type":"string","format":"date","description":"The date on which the mandate was created.\n"},"mandateId":{"type":"string","description":"The mandate ID.\n"},"mandateReason":{"type":"string","description":"The reason of the mandate from the gateway side.\n"},"mandateReceivedStatus":{"$ref":"#/components/schemas/PostAccountPmMandateInfoMandateReceivedStatus","description":"Indicates whether the mandate is received from the gateway\n"},"mandateStatus":{"type":"string","description":"The status of the mandate from the gateway side.\n"},"mandateUpdateDate":{"type":"string","format":"date","description":"The date on which the mandate was updated.\n"},"mitConsentAgreementRef":{"type":"string","description":"Reference for the consent agreement that you have established with the customer.  \n"},"mitConsentAgreementSrc":{"$ref":"#/components/schemas/PostAccountPmMandateInfoMitConsentAgreementSrc","description":"Required if you set the `mitProfileAction` field. Specify how the consent agreement has been established with the customer. The allowed value is `External`. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.\n"},"mitProfileAction":{"$ref":"#/components/schemas/PostAccountPmMandateInfoMitProfileAction","description":"Specifies how Zuora creates and activates the stored credential profile. Only applicable if you set the `status` field to `Active`.\n\n* `Activate` (default) - Use this value if you are creating the stored credential profile after receiving the customer's consent.\n\n  Zuora will create the stored credential profile then send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile. If the CIT succeeds, the status of the stored credential profile will be `Active`. If the CIT does not succeed, Zuora will not create a stored credential profile.\n  \n  If the payment gateway does not support the stored credential transaction framework, the status of the stored credential profile will be `Agreed`.\n\n\n* `Persist` - Use this value if the stored credential profile represents a stored credential profile in an external system. The status of the payment method's stored credential profile will be `Active`.\n\nIf you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Activate` set to this field.\n"},"mitProfileAgreedOn":{"type":"string","format":"date","description":"The date on which the stored credential profile is agreed. The date format is `yyyy-mm-dd`.\n"},"mitProfileType":{"type":"string","description":"Indicates the type of the stored credential profile. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Recurring` set to this field.\n"},"mitTransactionId":{"type":"string","maxLength":128,"description":"Specifies the ID of the transaction. Only applicable if you set the `mitProfileAction` field to `Persist`.\n"}},"description":"The mandate information for the Credit Card, Apple Pay, Google Pay, Credit Card Reference Transaction, ACH, or Bank Transfer payment method.\n\nThe following mandate fields are common to all supported payment methods:\n* `mandateId`\n* `mandateReason`\n* `mandateStatus`\n\nThe following mandate fields are specific to the ACH and Bank Transfer payment methods:\n* `mandateReceivedStatus`\n* `existingMandateStatus`\n* `mandateCreationDate`\n* `mandateUpdateDate`\n\nThe following mandate fields are specific to the Credit Card, Apple Pay, and Google Pay payment methods:\n* `mitTransactionId`\n* `mitProfileAgreedOn`\n* `mitConsentAgreementRef`\n* `mitConsentAgreementSrc`\n* `mitProfileType`\n* `mitProfileAction`\n","title":"POSTAccountPMMandateInfo"},"GetPaymentMethodResponseForAccountStatus":{"type":"string","enum":["Active","Closed","Scrubbed"],"description":"The status of the payment method.\n","title":"GetPaymentMethodResponseForAccountStatus"},"GetPaymentMethodResponseForAccountType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay"],"description":"The type of the payment method.\n","title":"GetPaymentMethodResponseForAccountType"},"GETPaymentMethodResponseForAccount":{"type":"object","properties":{"accountHolderInfo":{"$ref":"#/components/schemas/GETAccountPMAccountHolderInfo"},"accountVerificationService":{"type":"string","description":"Displays the name of the service provider. For example, Plaid.\n"},"accountVerificationStatus":{"$ref":"#/components/schemas/GetPaymentMethodResponseForAccountAccountVerificationStatus","description":"Displays the status of the account.\n**Note:** \n- `Active` - Access token is active. \n- `Expired` - Access token has expired and must be linked again. \n- `Expiring` - Access token will expire in few days(7 days for Plaid) and must be linked again\n- `Inactive` - The end customer has revoked the account pemission. The end customer can login again and select the same method for the access token to be linked again.\n"},"bankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the payment method's number, such as the credit card number or account number. Banks use this number to identify a payment method.\n"},"createdBy":{"type":"string","description":"ID of the user who created this payment method."},"createdOn":{"type":"string","format":"date-time","description":"The date and time when the payment method was created, in `yyyy-mm-dd hh:mm:ss` format.\n"},"cardNumber":{"type":"string","description":"The masked credit card number.\n\nWhen `cardNumber` is `null`, the following fields will not be returned:\n  - `expirationMonth`\n  - `expirationYear`\n  - `accountHolderInfo`\n"},"creditCardType":{"type":"string","description":"The type of the credit card or debit card.\n\nPossible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).\n\n**Note:** This field is only returned for the Credit Card and Debit Card payment types.\n"},"deviceSessionId":{"type":"string","description":"The session ID of the user when the `PaymentMethod` was created or updated.\n"},"existingMandate":{"$ref":"#/components/schemas/GetPaymentMethodResponseForAccountExistingMandate","description":"Indicates whether the mandate is an existing mandate.\n"},"id":{"type":"string","description":"The payment method ID.\n"},"ipAddress":{"type":"string","description":"The IP address of the user when the payment method was created or updated.\n"},"isDefault":{"type":"boolean","description":"Indicates whether this payment method is the default payment method for the account.\n"},"lastFailedSaleTransactionDate":{"type":"string","description":"The date of the last failed attempt to collect payment with this payment method.\n"},"lastTransaction":{"type":"string","description":"Indicates the occurrence and status of the last transaction."},"lastTransactionTime":{"type":"string","format":"date-time","description":"The time when the last transaction of this payment method happened."},"mandateInfo":{"$ref":"#/components/schemas/POSTAccountPMMandateInfo"},"maxConsecutivePaymentFailures":{"type":"integer","description":"The number of allowable consecutive failures Zuora attempts with the payment method before stopping.\n"},"numConsecutiveFailures":{"type":"integer","description":"The number of consecutive failed payments for this payment method. It is reset to `0` upon successful payment. \n"},"paymentRetryWindow":{"type":"integer","description":"The retry interval setting, which prevents making a payment attempt if the last failed attempt was within the last specified number of hours.\n"},"secondTokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data.\n\n**Note:** This field is only returned for the Credit Card Reference Transaction payment type.\n"},"status":{"$ref":"#/components/schemas/GetPaymentMethodResponseForAccountStatus","description":"The status of the payment method.\n"},"tokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data or represents a gateway's unique customer profile.\n\n**Note:** This field is only returned for the Credit Card Reference Transaction payment type.\n"},"totalNumberOfErrorPayments":{"type":"integer","description":"The number of error payments that used this payment method.\n"},"totalNumberOfProcessedPayments":{"type":"integer","description":"The number of successful payments that used this payment method.\n"},"type":{"$ref":"#/components/schemas/GetPaymentMethodResponseForAccountType","description":"The type of the payment method.\n"},"updatedBy":{"type":"string","description":"ID of the user who made the last update to this payment method."},"updatedOn":{"type":"string","format":"date-time","description":"The last date and time when the payment method was updated, in `yyyy-mm-dd hh:mm:ss` format.\n"},"useDefaultRetryRule":{"type":"boolean","description":"Indicates whether this payment method uses the default retry rules configured in the Zuora Payments settings.\n"},"IBAN":{"type":"string","description":"The International Bank Account Number used to create the SEPA payment method. The value is masked.\n"},"accountNumber":{"type":"string","description":"The number of the customer's bank account and it is masked.\n"},"bankCode":{"type":"string","description":"The sort code or number that identifies the bank. This is also known as the sort code.         \n"},"bankTransferType":{"type":"string","description":"The type of the Bank Transfer payment method. For example, `SEPA`.\n"},"branchCode":{"type":"string","description":"The branch code of the bank used for Direct Debit.\n"},"businessIdentificationCode":{"type":"string","description":"The BIC code used for SEPA. The value is masked.       \n"},"identityNumber":{"type":"string","description":"The identity number of the account holder or the cardholder.\n"},"bankABACode":{"type":"string","description":"The nine-digit routing number or ABA number used by banks. This field is only required if the `type` field is set to `ACH`.\n"},"bankAccountName":{"type":"string","description":"The name of the account holder, which can be either a person or a company. This field is only required if the `type` field is set to `ACH`.\n"},"expirationMonth":{"type":"integer","description":"One or two digits expiration month (1-12).\n"},"expirationYear":{"type":"integer","description":"Four-digit expiration year.\n"},"securityCode":{"type":"string","description":"The CVV or CVV2 security code for the credit card or debit card.\n            Only required if changing expirationMonth, expirationYear, or cardHolderName.\n            To ensure PCI compliance, this value isn''t stored and can''t be queried. \n"},"BAID":{"type":"string","description":"ID of a PayPal billing agreement. For example, I-1TJ3GAGG82Y9.\n"},"email":{"type":"string","description":"Email address associated with the PayPal payment method. \n"},"preapprovalKey":{"type":"string","description":"The PayPal preapproval key.                \n"},"googleBIN":{"type":"string","description":"This field is only available for Google Pay payment methods.\n"},"googleCardNumber":{"type":"string","description":"This field is only available for Google Pay payment methods.\n"},"googleCardType":{"type":"string","description":"This field is only available for Google Pay payment methods.\n\nFor Google Pay payment methods on Adyen, the first 100 characters of [paymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant) returned from Adyen are stored in this field.\n"},"googleExpiryDate":{"type":"string","description":"This field is only available for Google Pay payment methods.\n"},"googleGatewayToken":{"type":"string","description":"This field is only available for Google Pay payment methods.\n"},"appleBIN":{"type":"string","description":"This field is only available for Apple Pay payment methods.\n"},"appleCardNumber":{"type":"string","description":"This field is only available for Apple Pay payment methods.\n"},"appleCardType":{"type":"string","description":"This field is only available for Apple Pay payment methods.\n\nFor Apple Pay payment methods on Adyen, the first 100 characters of [paymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant) returned from Adyen are stored in this field.\n"},"appleExpiryDate":{"type":"string","description":"This field is only available for Apple Pay payment methods.\n"},"appleGatewayToken":{"type":"string","description":"This field is only available for Apple Pay payment methods.\n"}},"description":"Container for custom fields of a payment method object.\n","title":"GETPaymentMethodResponseForAccount"},"GETAccountPaymentMethodType":{"type":"object","properties":{"defaultPaymentMethodId":{"type":"string","description":"ID of the default payment method for the account.\n"},"paymentGateway":{"type":"string","description":"The name of the payment gateway instance. If null or left unassigned, the Account will use the Default Gateway.\n"},"returnedPaymentMethodType":{"type":"array","items":{"$ref":"#/components/schemas/GETPaymentMethodResponseForAccount"},"description":"Container for a specific type of payment method on the customer account. For example, `creditcard`, `debitcard`, `creditcardreferencetransaction`, `ach`, etc. Each `returnedPaymentMethodType` array contains one or more payment methods of that payment method type.\n\n**Note:** The response could return more than one payment method type arrays. See **Response samples** as an example.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"description":"Container for 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\n**Note:** The response could return more than one custom payment methods.\n","title":"GETAccountPaymentMethodType"},"GetCascadingPaymentMethodsConfigurationResponsePrioritiesItems":{"type":"object","properties":{"paymentMethodId":{"type":["string","null"],"description":"The ID of a payment method.\n"},"order":{"type":"integer","minimum":1,"description":"The order of the payment method in the priority list. For example, `1` indicates the payment method is the first one in the priority list, and `2` indicates it is the second.\n\nThe first payment method in the priority list is the default payment method of the customer account.\n"}},"title":"GetCascadingPaymentMethodsConfigurationResponsePrioritiesItems"},"GetCascadingPaymentMethodsConfigurationResponse":{"type":"object","properties":{"consent":{"type":"boolean","description":"`true` indicates the consent from your customer to use the Cascading Payment Method feature was collected. `false` indicates the consent was not collected and the Cascading Payment Method feature is not enabled.\n"},"priorities":{"type":"array","items":{"$ref":"#/components/schemas/GetCascadingPaymentMethodsConfigurationResponsePrioritiesItems"},"description":"Container for the priority configuration of payment methods. \n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GetCascadingPaymentMethodsConfigurationResponse"},"PutCascadingPaymentMethodsConfigurationRequestPrioritiesItems":{"type":"object","properties":{"paymentMethodId":{"type":"string","description":"The ID of a payment method.\n"},"order":{"type":"integer","minimum":1,"description":"The order of the payment method in the priority list. For example, `1` indicates the payment method is the first one in the priority list, and `2` indicates it is the second.\n\nThe first payment method in the priority list will be the default payment method of the customer account.\n"}},"required":["paymentMethodId","order"],"title":"PutCascadingPaymentMethodsConfigurationRequestPrioritiesItems"},"PutCascadingPaymentMethodsConfigurationRequest":{"type":"object","properties":{"consent":{"type":"boolean","description":"`true` indicates that you have collected consent from your customer to use the Cascading Payment Method feature. `false` indicates the consent was not collected and the Cascading Payment Method feature is not enabled.\n\nThe `priorities` field can be specified only if `consent` is `true`.\n"},"priorities":{"type":"array","items":{"$ref":"#/components/schemas/PutCascadingPaymentMethodsConfigurationRequestPrioritiesItems"},"description":"Container for the priority configuration of payment methods. You can add up to three payment methods to this container. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B2_Cascade_payment_methods\" target=\"_blank\">Cascade payment methods</a>.\n\n`priorities` is required if `consent` is `true`.\n"}},"title":"PutCascadingPaymentMethodsConfigurationRequest"},"GetAccountSummaryTypeBasicInfoBcdSettingOption":{"type":"string","enum":["ManualSet","AutoSet"],"description":"Bill cycle day setting option. Indicates whether the account’s bill cycle day is managed manually or automatically.\n  - `ManualSet`: The bill cycle day is explicitly set to a specific day of the month (1–31).\n  - `AutoSet`: The bill cycle day is automatically determined by Zuora. The bill cycle day is assigned when the first subscription is created for the account.\n\n  This field is system-derived and read-only. Its value is automatically determined based on the `billCycleDay` field.\n","title":"GetAccountSummaryTypeBasicInfoBcdSettingOption"},"GetAccountSummaryTypeBasicInfoDefaultPaymentMethodPaymentMethodType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","BankTransfer","PayPal","AdyenApplePay","AdyenGooglePay","GooglePay"],"description":"Type of the payment method. For non-Credit-Card payment methods, only the `id` and `paymentMethodType` fields are returned.\n","title":"GetAccountSummaryTypeBasicInfoDefaultPaymentMethodPaymentMethodType"},"GetAccountSummaryTypeBasicInfoDefaultPaymentMethod":{"type":"object","properties":{"creditCardExpirationMonth":{"type":"string","description":"Two-digit numeric card expiration month as `mm`.\n"},"creditCardExpirationYear":{"type":"string","description":"Four-digit card expiration year as `yyyy`.\n"},"creditCardNumber":{"type":"string","description":"Credit card number, 16 characters or less, displayed in masked format (e.g., ************1234).\n"},"creditCardType":{"type":"string","description":"The type of the credit card.\n\nPossible values  include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Methods](https://knowledgecenter.zuora.com/Zuora_Central/Billing_and_Payments/L_Payment_Methods/Supported_Payment_Methods).\n"},"id":{"type":"string","description":"ID of the default payment method associated with this account.\n"},"paymentMethodType":{"$ref":"#/components/schemas/GetAccountSummaryTypeBasicInfoDefaultPaymentMethodPaymentMethodType","description":"Type of the payment method. For non-Credit-Card payment methods, only the `id` and `paymentMethodType` fields are returned.\n"}},"description":"Information of the default payment method for the account.\n","title":"GetAccountSummaryTypeBasicInfoDefaultPaymentMethod"},"GetAccountSummaryTypeBasicInfoCustomerTypeNs":{"type":"string","enum":["Company","Individual"],"description":"Value of the Customer Type field for the corresponding customer account in NetSuite. The Customer Type field is used when the customer account is created in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetAccountSummaryTypeBasicInfoCustomerTypeNs"},"GetAccountSummaryTypeBasicInfoSynctoNetSuiteNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the account should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetAccountSummaryTypeBasicInfoSynctoNetSuiteNs"},"GETAccountSummaryTypeBasicInfo":{"type":"object","properties":{"accountNumber":{"type":"string","description":"Account number.\n"},"additionalEmailAddresses":{"type":"array","items":{"type":"string"},"description":"A list of additional email addresses to receive email notifications.\n"},"autoPay":{"type":"boolean","description":"Whether future payments are automatically collected when they are due during a payment run.\n"},"balance":{"type":"string","format":"decimal","description":"Current outstanding balance.\n"},"batch":{"type":"string","description":"The alias name given to a batch. A string of 50 characters or less.\n"},"billCycleDay":{"type":"string","description":"Billing cycle day (BCD), the day of the month when a bill run generates invoices for the account.\n"},"bcdSettingOption":{"$ref":"#/components/schemas/GetAccountSummaryTypeBasicInfoBcdSettingOption","description":"Bill cycle day setting option. Indicates whether the account’s bill cycle day is managed manually or automatically.\n  - `ManualSet`: The bill cycle day is explicitly set to a specific day of the month (1–31).\n  - `AutoSet`: The bill cycle day is automatically determined by Zuora. The bill cycle day is assigned when the first subscription is created for the account.\n\n  This field is system-derived and read-only. Its value is automatically determined based on the `billCycleDay` field.\n"},"currency":{"type":"string","description":"A currency as defined in Billing Settings in the Zuora UI.\n"},"defaultPaymentMethod":{"$ref":"#/components/schemas/GetAccountSummaryTypeBasicInfoDefaultPaymentMethod","description":"Information of the default payment method for the account.\n"},"id":{"type":"string","description":"Account ID.\n"},"invoiceDeliveryPrefsEmail":{"type":"boolean","description":"Whether the customer wants to receive invoices through email. \n"},"invoiceDeliveryPrefsPrint":{"type":"boolean","description":"Whether the customer wants to receive printed invoices, such as through postal mail.\n"},"lastInvoiceDate":{"type":"string","format":"date","description":"Date of the most recent invoice for the account; null if no invoice has ever been generated.\n"},"lastMetricsUpdate":{"type":"string","description":"The date and time when account metrics are last updated, if the account is a partner account.\n\n**Note**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\" target=\"_blank\">Reseller Account</a> feature enabled.\n  - If you have the Reseller Account feature enabled, and set the `partnerAccount` field to `false` for an account, the value of the `lastMetricsUpdate` field is automatically set to `null` in the response. \n  - If you ever set the `partnerAccount` field to `true` for an account, the value of `lastMetricsUpdate` field is the time when the account metrics are last updated.\n  \n"},"lastPaymentAmount":{"type":"string","format":"decimal","description":"Amount of the most recent payment collected for the account; null if no payment has ever been collected.\n"},"lastPaymentDate":{"type":"string","format":"date","description":"Date of the most recent payment collected for the account. Null if no payment has ever been collected.\n"},"name":{"type":"string","description":"Account name.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"partnerAccount":{"type":"boolean","description":"Whether the customer account is a partner, distributor, or reseller. \n\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\" target=\"_blank\">Reseller Account</a> feature enabled.\n"},"paymentMethodCascadingConsent":{"type":"boolean","description":"`true` indicates the consent from your customer to use the Cascading Payment Method feature was collected. \n`false` indicates the consent was not collected and the Cascading Payment Method feature is not enabled.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number provided by your customer for services, products, or both purchased."},"status":{"type":"string","description":"Account status; possible values are: `Active`, `Draft`, `Canceled`.\n"},"tags":{"type":"string"},"Class__NS":{"type":"string","maxLength":255,"description":"Value of the Class field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"CustomerType__NS":{"$ref":"#/components/schemas/GetAccountSummaryTypeBasicInfoCustomerTypeNs","description":"Value of the Customer Type field for the corresponding customer account in NetSuite. The Customer Type field is used when the customer account is created in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Value of the Department field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the account's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Value of the Location field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Value of the Subsidiary field for the corresponding customer account in NetSuite. The Subsidiary field is required if you use NetSuite OneWorld. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the account was sychronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"$ref":"#/components/schemas/GetAccountSummaryTypeBasicInfoSynctoNetSuiteNs","description":"Specifies whether the account should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for basic information about the account.\n","title":"GETAccountSummaryTypeBasicInfo"},"GETAccountSummaryTypeBillToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"city":{"type":"string","description":"City, 40 characters or less.\n"},"country":{"type":["string","null"],"description":"Full country name. This field does not contain the ISO-standard abbreviation of the country name.\n"},"county":{"type":["string","null"],"description":"County; 32 characters or less. Zuora Tax uses this information to calculate county taxation.          "},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"id":{"type":"string","description":"Contact ID.\n"},"isSpecifiedInSubscription":{"type":"boolean","default":false,"description":"If `true`, this contact is specified at the subscription level and is not inherited from the customer account.\n"},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"state":{"type":"string","description":"Full state name. This field does not contain the ISO-standard abbreviation of the state name.\n"},"taxRegion":{"type":"string","description":"A region string, defined in your Zuora tax rules.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"description":"Container for bill-to contact information. \n\n**Notes**: \n  - If the bill-to contact is specified on the subscription, its value is populated in this field. For more information about how to specify the bill-to contact on the subscription, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Leverage_advanced_capabilities/Flexible_Billing/Flexible_Billing_Attributes/A_Overview_of_Flexible_Billing_Attributes#Billing_attributes_for_this_feature\" target=\"_blank\">Overview of Flexible Billing Attributes</a>.\n  - If the bill-to contact is not specified on the subscription, the bill-to contact on the invoice owner account will be populated in this field.\n","title":"GETAccountSummaryTypeBillToContact"},"GETAccountSummaryInvoiceType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"Invoice amount before adjustments, discounts, and similar items.\n"},"balance":{"type":"string","format":"decimal","description":"Balance due on the invoice.\n"},"dueDate":{"type":"string","format":"date","description":"Due date as `yyyy-mm-dd`.\n"},"id":{"type":"string","description":"Invoice ID.\n"},"invoiceDate":{"type":"string","format":"date","description":"Invoice date as `yyyy-mm-dd`.\n"},"invoiceNumber":{"type":"string","description":"Invoice number.\n"},"status":{"type":"string","description":"Invoice status - not the payment status of the invoice, just the status of the invoice itself. \nPossible values are: `Posted`, `Draft`, `Canceled`, `Error`.\n"}},"title":"GETAccountSummaryInvoiceType"},"GETAccountSummaryPaymentInvoiceType":{"type":"object","properties":{"appliedPaymentAmount":{"type":"string","format":"decimal","description":"Amount of payment applied to the invoice.\n"},"invoiceId":{"type":"string","description":"Invoice ID.\n"},"invoiceNumber":{"type":"string","description":"Invoice number.\n"}},"title":"GETAccountSummaryPaymentInvoiceType"},"GETAccountSummaryPaymentType":{"type":"object","properties":{"effectiveDate":{"type":"string","format":"date","description":"Effective date as `yyyy-mm-dd`.\n"},"id":{"type":"string","description":"Payment ID.\n"},"paidInvoices":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountSummaryPaymentInvoiceType"},"description":"Container for paid invoices for this subscription.\n"},"paymentNumber":{"type":"string","description":"Payment number.\n"},"paymentType":{"type":"string","description":"Payment type; possible values are: `External`, `Electronic`.\n"},"status":{"type":"string","description":"Payment status. Possible values are: `Draft`, `Processing`, `Processed`, `Error`, `Voided`, `Canceled`, `Posted`.\n"}},"title":"GETAccountSummaryPaymentType"},"GetAccountSummaryTypeShipToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"city":{"type":"string","description":"City, 40 characters or less.\n"},"country":{"type":["string","null"],"description":"Full country name. This field does not contain the ISO-standard abbreviation of the country name.\n"},"county":{"type":["string","null"],"description":"County; 32 characters or less. Zuora Tax uses this information to calculate county taxation.          "},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"id":{"type":"string","description":"Contact ID.\n"},"isSpecifiedInSubscription":{"type":"boolean","default":false,"description":"If `true`, this contact is specified at the subscription level and is not inherited from the customer account.\n"},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"state":{"type":"string","description":"Full state name. This field does not contain the ISO-standard abbreviation of the state name.\n"},"taxRegion":{"type":"string","description":"A region string, defined in your Zuora tax rules.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"description":"Container for ship-to contact information.\n\n**Notes**: \n  - If the ship-to contact is specified on the subscription, its value is populated in this field. For more information about how to specify the ship-to contact on the subscription, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Leverage_advanced_capabilities/Flexible_Billing/Flexible_Billing_Attributes/A_Overview_of_Flexible_Billing_Attributes#Billing_attributes_for_this_feature\" target=\"_blank\">Overview of Flexible Billing Attributes</a>.\n  - If the ship-to contact is not specified on the subscription, the ship-to contact on the subscription owner account will be populated in this field.\n","title":"GetAccountSummaryTypeShipToContact"},"GETAccountSummaryTypeSoldToContact":{"type":"object","properties":{"address1":{"type":"string","description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"city":{"type":"string","description":"City, 40 characters or less.\n"},"country":{"type":["string","null"],"description":"Full country name. This field does not contain the ISO-standard abbreviation of the country name.\n"},"county":{"type":["string","null"],"description":"County; 32 characters or less. Zuora Tax uses this information to calculate county taxation.          "},"fax":{"type":"string","description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","description":"First name, 100 characters or less.\n"},"id":{"type":"string","description":"Contact ID.\n"},"isSpecifiedInSubscription":{"type":"boolean","default":false,"description":"If `true`, this contact is specified at the subscription level and is not inherited from the customer account.\n"},"lastName":{"type":"string","description":"Last name, 100 characters or less.\n"},"state":{"type":"string","description":"Full state name. This field does not contain the ISO-standard abbreviation of the state name.\n"},"taxRegion":{"type":"string","description":"A region string, defined in your Zuora tax rules.\n"},"workEmail":{"type":"string","description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"description":"Container for sold-to contact information. \n\n**Notes**: \n  - If the sold-to contact is specified on the subscription, its value is populated in this field. For more information about how to specify the sold-to contact on the subscription, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Leverage_advanced_capabilities/Flexible_Billing/Flexible_Billing_Attributes/A_Overview_of_Flexible_Billing_Attributes#Billing_attributes_for_this_feature\" target=\"_blank\">Overview of Flexible Billing Attributes</a>.\n  - If the sold-to contact is not specified on the subscription, the sold-to contact on the subscription owner account will be populated in this field.\n","title":"GETAccountSummaryTypeSoldToContact"},"GETAccountSummarySubscriptionRatePlanType":{"type":"object","properties":{"productId":{"type":"string","description":"Product ID.\n"},"productName":{"type":"string","description":"Product name.\n"},"productRatePlanId":{"type":"string","description":"Product Rate Plan ID.\n"},"productSku":{"type":"string"},"ratePlanName":{"type":"string","description":"Rate plan name.\n"}},"title":"GETAccountSummarySubscriptionRatePlanType"},"GETAccountSummarySubscriptionType":{"type":"object","properties":{"autoRenew":{"type":"boolean","description":"If `true`, auto-renew is enabled. If `false`, auto-renew is disabled.\n"},"id":{"type":"string","description":"Subscription ID.\n"},"initialTerm":{"type":"string","description":"Duration of the initial subscription term in whole months. \n"},"ratePlans":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountSummarySubscriptionRatePlanType"},"description":"Container for rate plans for this subscription.\n"},"renewalTerm":{"type":"string","description":"Duration of the renewal term in whole months.\n"},"status":{"type":"string","description":"Subscription status; possible values are: `Draft`, `PendingActivation`, `PendingAcceptance`, `Active`, `Cancelled`, `Expired`.\n"},"subscriptionNumber":{"type":"string","description":"Subscription Number.\n"},"subscriptionStartDate":{"type":"string","format":"date","description":"Subscription start date.\n"},"termEndDate":{"type":"string","format":"date","description":"End date of the subscription term. If the subscription is evergreen, this is either null or equal to the cancellation date, as appropriate.\n"},"termStartDate":{"type":"string","format":"date","description":"Start date of the subscription term. If this is a renewal subscription, this date is different than the subscription start date.\n"},"termType":{"type":"string","description":"Possible values are: `TERMED`, `EVERGREEN`.\n"},"CpqBundleJsonId__QT":{"type":"string","maxLength":32,"description":"The Bundle product structures from Zuora Quotes if you utilize Bundling in Salesforce. Do not change the value in this field.\n"},"OpportunityCloseDate__QT":{"type":"string","format":"date","description":"The closing date of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"OpportunityName__QT":{"type":"string","maxLength":100,"description":"The unique identifier of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteBusinessType__QT":{"type":"string","maxLength":32,"description":"The specific identifier for the type of business transaction the Quote represents such as New, Upsell, Downsell, Renewal or Churn. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteNumber__QT":{"type":"string","maxLength":32,"description":"The unique identifier of the Quote. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteType__QT":{"type":"string","maxLength":32,"description":"The Quote type that represents the subscription lifecycle stage such as New, Amendment, Renew or Cancel. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the subscription's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Project__NS":{"type":"string","maxLength":255,"description":"The NetSuite project that the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SalesOrder__NS":{"type":"string","maxLength":255,"description":"The NetSuite sales order than the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the subscription was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Subscription object.\n","title":"GETAccountSummarySubscriptionType"},"GetAccountSummaryTypeTaxInfo":{"type":"object","properties":{"VATId":{"type":"string","description":"EU Value Added Tax ID.\n"},"companyCode":{"type":"string","description":"Unique code that identifies a company account in Avalara.\n"},"exemptCertificateId":{"type":"string","description":"ID of the customer tax exemption certificate.\n"},"exemptCertificateType":{"type":"string","description":"Type of tax exemption certificate that the customer holds.\n"},"exemptDescription":{"type":"string","description":"Description of the tax exemption certificate that the customer holds.\n"},"exemptEffectiveDate":{"type":"string","format":"date","description":"Date when the customer tax exemption starts.\n"},"exemptEntityUseCode":{"type":"string","maxLength":64,"description":"A unique entity use code to apply exemptions in Avalara AvaTax.\n\nThis account-level field is required only when you choose Avalara as your tax engine. See [Exempt Transactions](https://developer.avalara.com/avatax/handling-tax-exempt-customers/)for more details.\n"},"exemptExpirationDate":{"type":"string","format":"date","description":"Date when the customer tax exemption expires.\n"},"exemptIssuingJurisdiction":{"type":"string","description":"Jurisdiction in which the customer tax exemption certificate was issued.\n"},"exemptStatus":{"type":"string","description":"Status of the account tax exemption.\n"}},"description":"Container for tax exempt information, used to establish the tax exempt status of a customer account.\n","title":"GetAccountSummaryTypeTaxInfo"},"GETAccountSummaryUsageType":{"type":"object","properties":{"quantity":{"type":"string","format":"decimal","description":"Number of units used.\n"},"startDate":{"type":"string","format":"date","description":"The start date of a usage period as `yyyy-mm`. Zuora uses this field value to determine the usage date.\n"},"unitOfMeasure":{"type":"string","description":"Unit by which consumption is measured, as configured in the Billing Settings section of the web-based UI.\n"}},"title":"GETAccountSummaryUsageType"},"GETAccountSummaryType":{"type":"object","properties":{"basicInfo":{"$ref":"#/components/schemas/GETAccountSummaryTypeBasicInfo"},"billToContact":{"$ref":"#/components/schemas/GETAccountSummaryTypeBillToContact"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountSummaryInvoiceType"},"description":"Container for invoices. Only returns the last 6 invoices.\n"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountSummaryPaymentType"},"description":"Container for payments. Only returns the last 6 payments.\n"},"shipToContact":{"$ref":"#/components/schemas/GetAccountSummaryTypeShipToContact"},"soldToContact":{"$ref":"#/components/schemas/GETAccountSummaryTypeSoldToContact"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountSummarySubscriptionType"},"description":"Container for subscriptions.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"taxInfo":{"$ref":"#/components/schemas/GetAccountSummaryTypeTaxInfo","description":"Container for tax exempt information, used to establish the tax exempt status of a customer account.\n"},"usage":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountSummaryUsageType"},"description":"Container for usage data. Only returns the last 6 months of usage.\n\n**Note:** If the Active Rating feature is enabled, no usage data is returned in the response body field.\n"}},"title":"GETAccountSummaryType"},"PostContactTypeOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"The type of the additional phone number.\n","title":"PostContactTypeOtherPhoneType"},"POSTContactType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with the contact. \n\n**Note**: When creating a contact, you must specify `accountNumber`, `accountId`, or both in the request body. If both fields are specified, they must correspond to the same account.\n"},"accountNumber":{"type":"string","description":"The number of the customer account associated with the contact. \n\n**Note**: When creating a contact, you must specify `accountNumber`, `accountId`, or both in the request body. If both fields are specified, they must correspond to the same account.\n"},"address1":{"type":"string","maxLength":255,"description":"The first line of the contact's address, which is often a street address or business name.\n"},"address2":{"type":"string","maxLength":255,"description":"The second line of the contact's address.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"city":{"type":"string","maxLength":100,"description":"The city of the contact's address.\n"},"contactDescription":{"type":"string","maxLength":100,"description":"A description for the contact.\n"},"country":{"type":"string","maxLength":64,"description":"The country of the contact's address. Either a full name or an ISO code is supported.\n"},"county":{"type":"string","maxLength":100,"description":"The county. May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","maxLength":40,"description":"The contact's fax number.\n"},"firstName":{"type":"string","maxLength":100,"description":"The contact's first name.\n"},"homePhone":{"type":"string","maxLength":40,"description":"The contact's home phone number.\n"},"lastName":{"type":"string","maxLength":100,"description":"The contact's last name.\n"},"mobilePhone":{"type":"string","maxLength":100,"description":"The mobile phone number of the contact.\n"},"nickname":{"type":"string","maxLength":100,"description":"A nickname for the contact.\n"},"otherPhone":{"type":"string","maxLength":40,"description":"An additional phone number for the contact.\n"},"otherPhoneType":{"$ref":"#/components/schemas/PostContactTypeOtherPhoneType","description":"The type of the additional phone number.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"The contact's personal email address.\n"},"state":{"type":"string","maxLength":100,"description":"The state or province of the contact's address. Either a full name or an abbreviation code is supported.\n"},"taxRegion":{"type":"string","maxLength":100,"description":"If using Zuora Tax, a region string as optionally defined in your tax rules. Not required.\n"},"workEmail":{"type":"string","maxLength":80,"description":"The contact's business email address.\n"},"workPhone":{"type":"string","maxLength":40,"description":"The contact's business phone number.\n"},"zipCode":{"type":"string","maxLength":20,"description":"The zip code for the contact's address.\n"}},"required":["firstName","lastName"],"description":"Container for custom fields of a Contact object.\n","title":"POSTContactType"},"ContactResponseOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"The type of the additional phone number.\n","title":"ContactResponseOtherPhoneType"},"ContactResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with the contact.\n"},"accountNumber":{"type":"string","description":"The number of the customer account associated with the contact.\n"},"address1":{"type":"string","maxLength":255,"description":"The first line of the contact's address, which is often a street address or business name.\n"},"address2":{"type":"string","maxLength":255,"description":"The second line of the contact's address.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"city":{"type":"string","maxLength":40,"description":"The city of the contact's address.\n"},"contactDescription":{"type":"string","maxLength":100,"description":"A description for the contact.\n"},"country":{"type":"string","maxLength":64,"description":"The full country name of the contact's address.\n"},"county":{"type":"string","maxLength":32,"description":"The county. May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","maxLength":40,"description":"The contact's fax number. \n"},"firstName":{"type":"string","maxLength":100,"description":"The contact's first name.\n"},"homePhone":{"type":"string","maxLength":40,"description":"The contact's home phone number.\n"},"lastName":{"type":"string","maxLength":100,"description":"The contact's last name.\n"},"mobilePhone":{"type":"string","maxLength":100,"description":"The mobile phone number of the contact.\n"},"nickname":{"type":"string","maxLength":100,"description":"A nickname for the contact.\n"},"otherPhone":{"type":"string","maxLength":40,"description":"An additional phone number for the contact.\n"},"otherPhoneType":{"$ref":"#/components/schemas/ContactResponseOtherPhoneType","description":"The type of the additional phone number.\n"},"personalEmail":{"type":"string","maxLength":80,"description":"The contact's personal email address.\n"},"state":{"type":"string","maxLength":40,"description":"The full state or province name of the contact's address.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"taxRegion":{"type":"string","maxLength":32,"description":"If using Zuora Tax, a region string as optionally defined in your tax rules. Not required.\n"},"workEmail":{"type":"string","maxLength":80,"description":"The contact's business email address.\n"},"workPhone":{"type":"string","maxLength":40,"description":"The contact's business phone number.\n"},"zipCode":{"type":"string","maxLength":20,"description":"The zip code for the contact's address.\n"}},"description":"Container for custom fields of a Contact object.\n","title":"ContactResponse"},"PutContactTypeOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"The type of the additional phone number.\n","title":"PutContactTypeOtherPhoneType"},"PUTContactType":{"type":"object","properties":{"address1":{"type":"string","maxLength":255,"description":"The first line of the contact's address, which is often a street address or business name.\n"},"address2":{"type":"string","maxLength":255,"description":"The second line of the contact's address.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"city":{"type":"string","maxLength":100,"description":"The city of the contact's address.\n"},"contactDescription":{"type":"string","maxLength":100,"description":"A description for the contact.\n"},"country":{"type":"string","maxLength":64,"description":"The country of the contact's address. Either a full name or an ISO code is supported.\n"},"county":{"type":"string","maxLength":100,"description":"The county. May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","maxLength":40,"description":"The contact's fax number.\n"},"firstName":{"type":"string","maxLength":100,"description":"The contact's first name.\n"},"homePhone":{"type":"string","maxLength":40,"description":"The contact's home phone number.\n"},"lastName":{"type":"string","maxLength":100,"description":"The contact's last name.\n"},"mobilePhone":{"type":"string","maxLength":100,"description":"The mobile phone number of the contact.\n"},"nickname":{"type":"string","maxLength":100,"description":"A nickname for the contact.\n"},"otherPhone":{"type":"string","maxLength":40,"description":"An additional phone number for the contact.\n"},"otherPhoneType":{"$ref":"#/components/schemas/PutContactTypeOtherPhoneType","description":"The type of the additional phone number.\n"},"personalEmail":{"type":"string","maxLength":80,"description":"The contact's personal email address.\n"},"state":{"type":"string","maxLength":100,"description":"The state or province of the contact's address. Either a full name or an abbreviation code is supported.\n"},"taxRegion":{"type":"string","maxLength":100,"description":"If using Zuora Tax, a region string as optionally defined in your tax rules. Not required.\n"},"workEmail":{"type":"string","maxLength":80,"description":"The contact's business email address.\n"},"workPhone":{"type":"string","maxLength":40,"description":"The contact's business phone number.\n"},"zipCode":{"type":"string","maxLength":20,"description":"The zip code for the contact's address.\n"}},"description":"Container for custom fields of a Contact object.\n","title":"PUTContactType"},"PUTTransferContact":{"type":"object","properties":{"destinationAccountKey":{"type":"string","description":"The ID or number of the destination account.\n"}},"title":"PUTTransferContact"},"GetContactSnapshotResponseOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"The type of the additional phone number.\n","title":"GetContactSnapshotResponseOtherPhoneType"},"GETContactSnapshotResponse":{"type":"object","properties":{"address1":{"type":"string","description":"The first line for the address of the contact, which is often a street address or business name.\n"},"address2":{"type":"string","description":"The second line for the address of the contact, which is mostly the locality.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n\nThis field is available only if you have turned on the Ship To Contact feature. You can turn on the feature through the self-service interface for <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\" target=\"_blank\">Feature Management</a>.\n"},"city":{"type":"string","description":"The city for the address of the contact.\n"},"contactId":{"type":"string","description":"The Zuora ID of the contact who the snapshot belongs to.\n"},"country":{"type":["string","null"],"description":"The country for the address of the contact.\n"},"county":{"type":"string","description":"The county for the address of the contact. The field value might optionally be used by Zuora Tax to calculate county tax.\n"},"description":{"type":"string","description":"A description of the contact.\n"},"fax":{"type":"string","format":"number","description":"The fax number of the contact.\n"},"firstName":{"type":"string","description":"The first name of the contact.\n"},"homePhone":{"type":"string","format":"number","description":"The home phone number of the contact.\n"},"id":{"type":"string","description":"The unique ID of the contact snapshot.\n"},"lastName":{"type":"string","description":"The last name of the contact.\n"},"mobilePhone":{"type":"string","format":"number","description":"The mobile phone number of the contact.\n"},"nickname":{"type":"string","description":"A nickname for the contact.\n"},"otherPhone":{"type":"string","description":"An additional phone number for the contact.\n"},"otherPhoneType":{"$ref":"#/components/schemas/GetContactSnapshotResponseOtherPhoneType","description":"The type of the additional phone number.\n"},"personalEmail":{"type":"string","maxLength":80,"description":"The personal email address of the contact.\n"},"postalCode":{"type":"string","format":"number","description":"The postal code for the address of the contact.\n"},"state":{"type":"string","description":"The state or province for the address of the contact.\n"},"taxRegion":{"type":"string","description":"If using Zuora Tax rules.\n"},"workEmail":{"type":"string","description":"The business email address of the contact.\n"},"workPhone":{"type":"string","format":"number","description":"The business email address of the contact.\n"}},"description":"Container for custom fields of a Contact Snapshot object.\n","title":"GETContactSnapshotResponse"},"CustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields.\n","title":"CustomFields"},"ContactInfoOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"Specifies the type of phone number in the `otherPhone` field.\n","title":"ContactInfoOtherPhoneType"},"ContactInfo":{"type":"object","properties":{"address1":{"type":"string","maxLength":255,"description":"First line of the contact's address. This is often a street address or a business name.\n"},"address2":{"type":"string","maxLength":255,"description":"Second line of the contact's address.\n"},"city":{"type":"string","maxLength":100,"description":"City of the contact's address.\n"},"contactDescription":{"type":"string","maxLength":100,"description":"A description for the contact.\n"},"country":{"type":"string","maxLength":64,"description":"Country; must be a valid country name or abbreviation. If using [Zuora Tax](https://knowledgecenter.zuora.com/Zuora_Billing/Taxes/A_Zuora_Tax), you must specify a country in the bill-to contact to calculate tax.\n"},"county":{"type":"string","maxLength":100,"description":"County of the contact's address.\n"},"customFields":{"$ref":"#/components/schemas/CustomFields"},"fax":{"type":"string","maxLength":40,"description":"Fax number of the contact.\n"},"firstName":{"type":"string","maxLength":100,"description":"First name of the contact.\n"},"homePhone":{"type":"string","maxLength":40,"description":"Home phone number of the contact.\n"},"lastName":{"type":"string","maxLength":100},"mobilePhone":{"type":"string","maxLength":40,"description":"Mobile phone number of the contact.\n"},"nickname":{"type":"string","maxLength":100,"description":"Nickname of the contact.\n"},"otherPhone":{"type":"string","maxLength":40,"description":"Additional phone number of the contact. Use the `otherPhoneType` field to specify the type of phone number.\n"},"otherPhoneType":{"$ref":"#/components/schemas/ContactInfoOtherPhoneType","description":"Specifies the type of phone number in the `otherPhone` field.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address of the contact.\n"},"postalCode":{"type":"string","maxLength":20,"description":"ZIP code or other postal code of the contact's address.\n"},"state":{"type":"string","maxLength":100,"description":"State or province of the contact's address.\n"},"taxRegion":{"type":"string","maxLength":100,"description":"Region defined in your taxation rules. Only applicable if you use Zuora Tax.\n"},"workEmail":{"type":"string","format":"email","maxLength":80,"description":"Business email address of the contact.\n"},"workPhone":{"type":"string","maxLength":40,"description":"Business phone number of the contact.\n"}},"required":["firstName","lastName"],"description":"Contact details associated with an account.\n","title":"ContactInfo"},"SignUpPaymentMethodType":{"type":"string","enum":["PayPalEC","PayPalNativeEC","PayPalAdaptive","CreditCard","CreditCardReferenceTransaction"],"description":"Type of payment method. The following types of the payment method are supported:\n","title":"SignUpPaymentMethodType"},"SignUpCreatePaymentMethodCardholderInfo":{"type":"object","properties":{"addressLine1":{"type":"string","description":"First address line, 255 characters or less.\n"},"addressLine2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"cardHolderName":{"type":"string","description":"The card holder's full name as it appears on the card, e.g., \"John J Smith\", 50 characters or less.\n"},"city":{"type":"string","description":"City, 40 characters or less.\n"},"country":{"type":"string","description":"Country, must be a valid country name or abbreviation.\n"},"email":{"type":"string","description":"Card holder's email address, 80 characters or less.\n"},"phone":{"type":"string","description":"Phone number, 40 characters or less.\n"},"state":{"type":"string","description":"State; must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>.\n"},"zipCode":{"type":"string","description":"Zip code, 20 characters or less.\n"}},"required":["cardHolderName"],"description":"Container for cardholder information. If provided, Zuora will\nonly use this information for this card. Otherwise, Zuora will use\nthe account''s existing bill-to contact information for this card.\n","title":"SignUpCreatePaymentMethodCardholderInfo"},"SignUpPaymentMethodMitConsentAgreementSrc":{"type":"string","enum":["External"],"description":"Required if you set the `mitProfileAction` field. Specifies how the consent agreement has been established with the customer. The allowed value is `External`. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.\n","title":"SignUpPaymentMethodMitConsentAgreementSrc"},"SignUpPaymentMethodMitProfileAction":{"type":"string","enum":["Activate","Persist"],"description":"Specifies how Zuora creates and activates the stored credential profile. If you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Activate` set to this field.\n","title":"SignUpPaymentMethodMitProfileAction"},"SignUpPaymentMethodMitProfileType":{"type":"string","enum":["Recurring"],"description":"Required if you set the `mitProfileAction` field. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Recurring` set to this field.\n","title":"SignUpPaymentMethodMitProfileType"},"SignUpPaymentMethod":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/SignUpPaymentMethodType","description":"Type of payment method. The following types of the payment method are supported:\n"},"secondTokenId":{"type":"string","description":"The second token id of CreditCardReferenceTransaction.\n"},"tokenId":{"type":"string","description":"The token id of payment method, required field of CreditCardReferenceTransaction type.\n"},"BAID":{"type":"string","description":"ID of a PayPal billing agreement, for example, I-1TJ3GAGG82Y9.\n"},"email":{"type":"string","description":"Email address associated with the payment method. This field is only supported for PayPal payment methods and is required if you want to create any of the following PayPal payment methods:\n  - PayPal Express Checkout payment method \n  - PayPal Adaptive payment method\n  - PayPal Commerce Platform payment method\n"},"preapprovalKey":{"type":"string","description":"The PayPal preapproval key.\n"},"cardHolderInfo":{"$ref":"#/components/schemas/SignUpCreatePaymentMethodCardholderInfo"},"cardNumber":{"type":"string","description":"Credit card number.\n"},"cardType":{"type":"string","description":"The type of the credit card.\n\nPossible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).\n"},"checkDuplicated":{"type":"boolean"},"expirationMonth":{"type":"string","description":"One or two digit expiration month (1-12) of the credit card.\n"},"expirationYear":{"type":"string","description":"Four-digit expiration year of the credit card.\n"},"mitConsentAgreementRef":{"type":"string","maxLength":128,"description":"Specifies your reference for the stored credential consent agreement that you have established with the customer. Only applicable if you set the `mitProfileAction` field.\n"},"mitConsentAgreementSrc":{"$ref":"#/components/schemas/SignUpPaymentMethodMitConsentAgreementSrc","description":"Required if you set the `mitProfileAction` field. Specifies how the consent agreement has been established with the customer. The allowed value is `External`. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.\n"},"mitNetworkTransactionId":{"type":"string","maxLength":128,"description":"Specifies the ID of a network transaction. Only applicable if you set the `mitProfileAction` field to `Persist`.\n"},"mitProfileAction":{"$ref":"#/components/schemas/SignUpPaymentMethodMitProfileAction","description":"Specifies how Zuora creates and activates the stored credential profile. If you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Activate` set to this field.\n"},"mitProfileAgreedOn":{"type":"string","format":"date","description":"The date on which the profile is agreed. The date format is `yyyy-mm-dd`.\n"},"mitProfileType":{"$ref":"#/components/schemas/SignUpPaymentMethodMitProfileType","description":"Required if you set the `mitProfileAction` field. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Recurring` set to this field.\n"},"securityCode":{"type":"string","description":"CVV or CVV2 security code of the credit card.\n\nTo ensure PCI compliance, this value is not stored and cannot be queried.\n"},"accountKey":{"type":"string","description":"Internal ID of the customer account that will own the payment method.\n"},"authGateway":{"type":"string","description":"Internal ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method.\n\nIf you do not set this field, Zuora will use one of the following payment gateways instead:\n\n* The default payment gateway of the customer account that owns the payment method, if the `accountKey` field is set.\n* The default payment gateway of your Zuora tenant, if the `accountKey` field is not set.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n"},"makeDefault":{"type":"boolean","default":false,"description":"Specifies whether the payment method will be the default payment method of the customer account that owns the payment method. Only applicable if the `accountKey` field is set.\n"}},"required":["type"],"description":"Container for custom fields of a payment method object.\n","title":"SignUpPaymentMethod"},"SignUpTaxInfoExemptStatus":{"type":"string","enum":["No","Yes","PendingVerification"],"default":"No","description":"Status of the account tax exemption. Applicable if you use Zuora Tax or Connect tax engines. Required if you use Zuora Tax. \n","title":"SignUpTaxInfoExemptStatus"},"SignUpTaxInfo":{"type":"object","properties":{"VATId":{"type":"string","maxLength":25,"description":"EU Value Added Tax ID.\n\n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).\n"},"companyCode":{"type":"string","maxLength":50,"description":"Unique code that identifies a company account in Avalara. Use this field to calculate taxes based on origin and sold-to addresses in Avalara.\n\n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).\n"},"exemptCertificateId":{"type":"string","maxLength":32,"description":"ID of the customer tax exemption certificate. Applicable if you use Zuora Tax or Connect tax engines.\n"},"exemptCertificateType":{"type":"string","maxLength":32,"description":"Type of tax exemption certificate that the customer holds. Applicable if you use Zuora Tax or Connect tax engines.\n"},"exemptDescription":{"type":"string","maxLength":500,"description":"Description of the tax exemption certificate that the customer holds. Applicable if you use Zuora Tax or Connect tax engines.\n"},"exemptEffectiveDate":{"type":"string","format":"date","description":"Date when the customer tax exemption starts, in YYYY-MM-DD format. Applicable if you use Zuora Tax or Connect tax engines.\n"},"exemptExpirationDate":{"type":"string","format":"date","description":"Date when the customer tax exemption expires, in YYYY-MM-DD format. Applicable if you use Zuora Tax or Connect tax engines.\n"},"exemptIssuingJurisdiction":{"type":"string","maxLength":32,"description":"Jurisdiction in which the customer tax exemption certificate was issued.\n"},"exemptStatus":{"$ref":"#/components/schemas/SignUpTaxInfoExemptStatus","default":"No","description":"Status of the account tax exemption. Applicable if you use Zuora Tax or Connect tax engines. Required if you use Zuora Tax. \n"}},"description":"Information about the tax exempt status of a customer account.\n","title":"SignUpTaxInfo"},"AccountData":{"type":"object","properties":{"accountNumber":{"type":"string","maxLength":70},"autoPay":{"type":"boolean","description":"Specifies whether future payments are to be automatically billed when they are due. Possible values are `true`, `false`."},"batch":{"type":"string","description":"**Note**: By default, you have 50 configurable account batches. To increase the limit to 200 batches, you must have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Performance_Booster_Elite\" target=\"_blank\">Performance Booster Elite</a> package.\n"},"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that the account prefers billing periods to begin on. If set to 0, the bill cycle day will be set as \"AutoSet\"."},"billToContact":{"$ref":"#/components/schemas/ContactInfo"},"communicationProfileId":{"type":"string"},"creditMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.\n"},"crmId":{"type":"string","maxLength":100},"currency":{"type":"string","description":"3 uppercase character currency code.\n\n**Note**: Specify this field only for a new account to be created; do not specify this field to update an existing account.\n\n\nFor payment method authorization, if the `paymentMethod` > `currencyCode` field is specified, `currencyCode` is used. Otherwise, this `currency` field is used for payment method authorization. If no currency is specified for the account, the default currency of the account is then used.\n"},"customFields":{"$ref":"#/components/schemas/CustomFields"},"debitMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.\n"},"invoiceTemplateId":{"type":"string"},"name":{"type":"string","maxLength":255},"notes":{"type":"string","maxLength":65535},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentMethod":{"$ref":"#/components/schemas/SignUpPaymentMethod"},"paymentTerm":{"type":"string"},"purchaseOrderNumber":{"type":"string","maxLength":100,"description":"The number of the purchase order associated with this account. Purchase order information generally comes from customers.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the billing document sequence set to assign to the customer account. \n\nThe billing documents to generate for this account will adopt the prefix and starting document number configured in the sequence set.\n"},"shipToContact":{"$ref":"#/components/schemas/ContactInfo"},"soldToContact":{"$ref":"#/components/schemas/ContactInfo"},"taxInfo":{"$ref":"#/components/schemas/SignUpTaxInfo"}},"required":["billCycleDay","billToContact","currency","name"],"description":"The information of the account that you are to create through the \"Sign up\" operation.\n","title":"AccountData"},"Options":{"type":"object","properties":{"billingTargetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice is generated. See [What is a Target Date?](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs/Creating_Bill_Runs#What_is_a_Target_Date.3F)."},"collectPayment":{"type":"boolean","description":"Indicates if the current request needs to collect payments. This value can not be 'true' when 'runBilling' flag is 'false'."},"maxSubscriptionsPerAccount":{"type":"number","format":"double"},"runBilling":{"type":"boolean","description":"Indicates if the current request needs to generate an invoice. The invoice will be generated against all subscriptions included in this order."}},"description":"Invoice or Payment.","title":"Options"},"PaymentData":{"type":"object","properties":{"authTransactionId":{"type":"string","description":"The authorization transaction ID from the payment gateway.\n"},"authorizedAmount":{"type":"number","format":"double","description":"The amount that is authorized before this API call. Only used for the Delay Capture function.\n"},"authorizedCurrency":{"type":"string","description":"The authorization of currency code that occurs before this API call. We will verify whether it is same as the account's currency."}},"title":"PaymentData"},"RatePlan":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/CustomFields"},"productRatePlanId":{"type":"string","description":"Internal identifier of the product rate plan that the rate plan is based on.\n"}},"title":"RatePlan"},"RatePlans":{"type":"array","items":{"$ref":"#/components/schemas/RatePlan"},"title":"RatePlans"},"TermInfoInitialTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Unit of time that the first term is measured in. Only applicable if the value of the `termType` field is `TERMED`.\n","title":"TermInfoInitialTermPeriodType"},"TermInfoInitialTermTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"Type of the first term. If the value of this field is `TERMED`, the first term has a predefined duration based on the value of the `period` field. If the value of this field is `EVERGREEN`, the first term does not have a predefined duration.\n","title":"TermInfoInitialTermTermType"},"TermInfo_initialTerm":{"type":"object","properties":{"period":{"type":"integer","description":"Duration of the first term in months, years, days, or weeks, depending on the value of the `periodType` field. Only applicable if the value of the `termType` field is `TERMED`.\n"},"periodType":{"$ref":"#/components/schemas/TermInfoInitialTermPeriodType","description":"Unit of time that the first term is measured in. Only applicable if the value of the `termType` field is `TERMED`.\n"},"startDate":{"type":"string","format":"date","description":"Start date of the first term, in YYYY-MM-DD format.\n"},"termType":{"$ref":"#/components/schemas/TermInfoInitialTermTermType","description":"Type of the first term. If the value of this field is `TERMED`, the first term has a predefined duration based on the value of the `period` field. If the value of this field is `EVERGREEN`, the first term does not have a predefined duration.\n"}},"required":["termType"],"description":"Information about the first term of the subscription.\n","title":"TermInfo_initialTerm"},"TermInfoRenewalSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"description":"Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.\n\n* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.\n* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.\n","title":"TermInfoRenewalSetting"},"TermInfoRenewalTermsPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Unit of time that the renewal term is measured in.\n","title":"TermInfoRenewalTermsPeriodType"},"TermInfo_renewalTerms":{"type":"object","properties":{"period":{"type":"integer","description":"Duration of the renewal term in months, years, days, or weeks, depending on the value of the `periodType` field.\n"},"periodType":{"$ref":"#/components/schemas/TermInfoRenewalTermsPeriodType","description":"Unit of time that the renewal term is measured in.\n"}},"title":"TermInfo_renewalTerms"},"TermInfo":{"type":"object","properties":{"autoRenew":{"type":"boolean","description":"Specifies whether the subscription automatically renews at the end of the each term. Only applicable if the type of the first term is `TERMED`.\n"},"initialTerm":{"$ref":"#/components/schemas/TermInfo_initialTerm"},"renewalSetting":{"$ref":"#/components/schemas/TermInfoRenewalSetting","description":"Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.\n\n* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.\n* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.\n"},"renewalTerms":{"$ref":"#/components/schemas/TermInfo_renewalTerms"}},"required":["initialTerm"],"description":"Container for the terms and renewal settings of the subscription.\n","title":"TermInfo"},"SubscriptionData":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/CustomFields"},"invoiceSeparately":{"type":"boolean","description":"Specifies whether the subscription appears on a separate invoice when Zuora generates invoices.\n"},"notes":{"type":"string","maxLength":500,"description":"Notes about the subscription. These notes are only visible to Zuora users.\n"},"ratePlans":{"$ref":"#/components/schemas/RatePlans"},"startDate":{"type":"string","format":"date"},"subscriptionNumber":{"type":"string","maxLength":100,"description":"Subscription number of the subscription to create, for example, A-S00000001.\n\nIf you do not set this field, Zuora will generate a subscription number.\n"},"terms":{"$ref":"#/components/schemas/TermInfo"}},"title":"SubscriptionData"},"SignUpRequest":{"type":"object","properties":{"accountData":{"$ref":"#/components/schemas/AccountData"},"accountIdentifierField":{"type":"string","description":"Specify the name of the field that holds external account id"},"customFields":{"$ref":"#/components/schemas/CustomFields"},"options":{"$ref":"#/components/schemas/Options"},"paymentData":{"$ref":"#/components/schemas/PaymentData"},"subscriptionData":{"$ref":"#/components/schemas/SubscriptionData"}},"title":"SignUpRequest"},"SignUpResponse_reasons":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"SignUpResponse_reasons"},"SignUpResponseStatus":{"type":"string","enum":["Completed","Pending"],"description":"Status of the order. `Pending` is only applicable for an order that contains a `CreateSubscription` order action.","title":"SignUpResponseStatus"},"SignUpResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"The account id for the order."},"accountNumber":{"type":"string","description":"The account number for the order."},"creditMemoId":{"type":"string","description":"An array of the credit memo id generated in this order request. The credit memo is only available if you have the Invoice Settlement feature enabled."},"creditMemoNumber":{"type":"string","description":"An array of the credit memo numbers generated in this order request. The credit memo is only available if you have the Invoice Settlement feature enabled."},"invoiceId":{"type":"string","description":"The invoice id generated in this order request"},"invoiceNumber":{"type":"string","description":"The invoice number generated in this order request"},"orderNumber":{"type":"string","description":"The order number of the order created."},"paidAmount":{"type":"string","description":"The total amount collected in this order request."},"paymentId":{"type":"string","description":"The payment id that is collected in this order request."},"paymentNumber":{"type":"string","description":"The payment number that is collected in this order request."},"processId":{"type":"string","description":"The Id of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/SignUpResponse_reasons"}},"status":{"$ref":"#/components/schemas/SignUpResponseStatus","description":"Status of the order. `Pending` is only applicable for an order that contains a `CreateSubscription` order action."},"subscriptionId":{"type":"string","description":"The subscription id of the order."},"subscriptionNumber":{"type":"string","description":"The subscription number of the order."},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"SignUpResponse"},"PostOrderPreviewRequestTypeCategory":{"type":"string","enum":["NewSales","Return"],"default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n","title":"PostOrderPreviewRequestTypeCategory"},"OrderObjectCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of an Order object.\n","title":"OrderObjectCustomFields"},"CreateOrderOrderLineItemBillingRule":{"type":"string","enum":["TriggerWithoutFulfillment","TriggerAsFulfillmentOccurs"],"default":"TriggerWithoutFulfillment","description":"The billing rule for the Order Line Item.\n","title":"CreateOrderOrderLineItemBillingRule"},"OrderLineItemCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of an Order Line Item object.\n","title":"OrderLineItemCustomFields"},"CreateOrderOrderLineItemInlineDiscountType":{"type":"string","enum":["Percentage","FixedAmount","None"],"description":"Use this field to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nUse this field together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n","title":"CreateOrderOrderLineItemInlineDiscountType"},"CreateOrderOrderLineItemItemCategory":{"type":"string","enum":["Sales","Return"],"default":"Sales","description":"The category for the Order Line Item, to indicate a product sale or return.\n","title":"CreateOrderOrderLineItemItemCategory"},"CreateOrderOrderLineItemItemState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Cancelled"],"description":"The state of an Order Line Item. If you want to generate billing documents for order line items, you must set this field to `SentToBilling`. For invoice preview, you do not need to set this field.\n\nSee [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n","title":"CreateOrderOrderLineItemItemState"},"CreateOrderOrderLineItemItemType":{"type":"string","enum":["Product","Fee","Services"],"description":"The type of the Order Line Item. \n","title":"CreateOrderOrderLineItemItemType"},"CreateOrderOrderLineItemRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"CreateOrderOrderLineItemRevenueRecognitionTiming"},"CreateOrderOrderLineItemRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"CreateOrderOrderLineItemRevenueAmortizationMethod"},"CreateOrderOrderLineItemTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode for the Order Line Item.\n","title":"CreateOrderOrderLineItemTaxMode"},"CreateOrderOrderLineItem":{"type":"object","properties":{"UOM":{"type":"string","description":"Specifies the units to measure usage.\n"},"accountingCode":{"type":"string","description":"The accounting code for the Order Line Item.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"amountPerUnit":{"type":"number","format":"double","description":"The actual charged amount per unit for the Order Line Item.\n\nIf you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"billTargetDate":{"type":"string","format":"date","description":"The target date for the Order Line Item to be picked up by bill run for billing.\n"},"billTo":{"type":"string","description":"The ID of the bill-to contact of an order line item. Specify an existing contact under the billing account as the bill-to contact of the order line item. The billing account is the order account.\n\n**Note**: If an order's category is set to **Return** in a return Order Line Item, it will inherit the original Order Line Item's `billTo` contact automatically. You cannot specify a different value.\n"},"billingRule":{"$ref":"#/components/schemas/CreateOrderOrderLineItemBillingRule","default":"TriggerWithoutFulfillment","description":"The billing rule for the Order Line Item.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"currency":{"type":"string","description":"The currency for the order line item. You can specify a currency when creating an order line item through the \"Create an order\" operation.\n"},"customFields":{"$ref":"#/components/schemas/OrderLineItemCustomFields"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferred revenue accounting code for the Order Line Item.\n"},"description":{"type":"string","maxLength":500,"description":"The description of the Order Line Item.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude Order Line Item related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude Order Line Item from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled.\n"},"inlineDiscountPerUnit":{"type":"number","format":"double","description":"Use this field in accordance with the `inlineDiscountType` field, in the following manner:\n* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.\n* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.\n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"inlineDiscountType":{"$ref":"#/components/schemas/CreateOrderOrderLineItemInlineDiscountType","description":"Use this field to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nUse this field together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue\nrecognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"itemCategory":{"$ref":"#/components/schemas/CreateOrderOrderLineItemItemCategory","default":"Sales","description":"The category for the Order Line Item, to indicate a product sale or return.\n"},"itemName":{"type":"string","description":"The name of the Order Line Item.\n"},"itemNumber":{"type":"string","description":"The number of the Order Line Item. Use this field to specify a custom item number for your Order Line Item. If you are to use this field,  you must set all the item numbers in an order when there are several order line items in the order.\n"},"itemState":{"$ref":"#/components/schemas/CreateOrderOrderLineItemItemState","description":"The state of an Order Line Item. If you want to generate billing documents for order line items, you must set this field to `SentToBilling`. For invoice preview, you do not need to set this field.\n\nSee [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n"},"itemType":{"$ref":"#/components/schemas/CreateOrderOrderLineItemItemType","description":"The type of the Order Line Item. \n"},"listPricePerUnit":{"type":"number","format":"double","description":"The list price per unit for the Order Line Item.\n"},"originalOrderLineItemNumber":{"type":"string","description":"The number of the original sale order line item for a return order line item. \n"},"originalOrderNumber":{"type":"string","description":"The number of the original sale order for a return order line item. \n"},"ownerAccountNumber":{"type":"string","description":"Use this field to assign an existing account as the owner of an order line item.\n"},"productCode":{"type":"string","description":"The product code for the Order Line Item.\n"},"productRatePlanChargeId":{"type":"string","description":"ID of a product rate plan charge. Only one-time charges are supported.\n\nIf you do not have the **Create Order Line Items Without Product Catalog** billing permission, you must specify this field to create the order line item from an existing product rate plan charge.\n"},"purchaseOrderNumber":{"type":"string","description":"Used by customers to specify the Purchase Order Number provided by the buyer.\n"},"quantity":{"type":"number","format":"double","description":"The quantity of units, such as the number of authors in a hosted wiki service.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognized revenue accounting code for the Order Line Item.\n"},"relatedSubscriptionNumber":{"type":"string","description":"Use this field to relate an order line item to a subscription when you create the order line item.\n\n* To relate an order line item to a new subscription which is yet to create in the same \"Create an order\" call, use this field in combination with the `subscriptions` > `subscriptionNumber` field in the \"Create an order\" operation. Specify this field to the same value as that of the `subscriptions` > `subscriptionNumber` field when you make the \"Create an order\" call.\n* To relate an order line item to an existing subscription, specify this field to the subscription number of the existing subscription.\n"},"revenueRecognitionRule":{"type":"string","description":"The Revenue Recognition rule for the Order Line Item.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/CreateOrderOrderLineItemRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/CreateOrderOrderLineItemRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the order line item.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"sequenceSetId":{"type":"string","description":"The ID of the sequence set associated with the order line item.\n\n\n**Note**: \n  - This field is only available in the request body if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature enabled. Otherwise, the response value for this field is `null`.\n  - If you don't specify this field in the request during the creation, OLI uses the value from the account automatically.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"paymentTerm":{"type":"string","description":"The payment term name associated with the order line item.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you don't specify this field in the request during the creation, OLI uses the value from the account automatically.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the order line item.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you don't specify this field in the request during the creation, OLI uses the value from the account automatically.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"shipTo":{"type":"string","description":"Use this field to assign an existing account as the ship-to contact of an order line item, by the following rules:\n\n* If the `ownerAccountNumber` field is set, then this field must be the ID of a contact that belongs to the owner account of the order line item. \n\n* If the `ownerAccountNumber` field is not set, then this field must be the ID of a contact that belongs to the billing account of the order line item. The billing account is the order account.\n\n\n**Note**: If an order's category is set to **Return** in a return Order Line Item, it will inherit the original Order Line Item's `shipTo` contact automatically. You cannot specify a different value.\n"},"soldTo":{"description":"Use this field to assign an existing account as the sold-to contact of an order line item, by the following rules:\n\n* If the `ownerAccountNumber` field is set, then this field must be the ID of a contact that belongs to the owner account of the order line item. \n* If the `ownerAccountNumber` field is not set, then this field must be the ID of a contact that belongs to the billing account of the order line item. The billing account is the order account.\n\n**Note**: If an order's category is set to **Return** in a return Order Line Item, it will inherit the original Order Line Item's `soldTo` contact automatically. You cannot specify a different value.\n"},"taxCode":{"type":"string","description":"The tax code for the Order Line Item.\n"},"taxMode":{"$ref":"#/components/schemas/CreateOrderOrderLineItemTaxMode","description":"The tax mode for the Order Line Item.\n"},"transactionEndDate":{"type":"string","format":"date","description":"The date a transaction is completed. The default value of this field is the transaction start date. Also, the value of this field should always equal or be later than the value of the `transactionStartDate` field.\n"},"transactionStartDate":{"type":"string","format":"date","description":"The date a transaction starts. The default value of this field is the order date.\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"}},"title":"CreateOrderOrderLineItem"},"AccountObjectCustomFields":{"type":"object","properties":{},"description":"Container for custom fields of an Account object.\n","title":"AccountObjectCustomFields"},"PreviewContactInfo":{"type":"object","properties":{"address1":{"type":"string","maxLength":255,"description":"First line of the contact's address. This is often a street address or a business name.\n"},"address2":{"type":"string","maxLength":255,"description":"Second line of the contact's address.\n"},"city":{"type":"string","maxLength":100},"country":{"type":"string","maxLength":64,"description":"Country; must be a valid country name or abbreviation. If using Zuora Tax, you must specify a country to calculate tax."},"county":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"state":{"type":"string","maxLength":100},"taxRegion":{"type":"string","maxLength":100}},"description":"Contact details associated with an account.\n","title":"PreviewContactInfo"},"TaxInfoExemptStatus":{"type":"string","enum":["No","Yes","PendingVerification"],"default":"No","description":"Status of the account tax exemption. Applicable if you use Zuora Tax or Connect tax engines. Required if you use Zuora Tax. \n","title":"TaxInfoExemptStatus"},"TaxInfo":{"type":"object","properties":{"VATId":{"type":"string","maxLength":25,"description":"EU Value Added Tax ID.\n\n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).\n"},"companyCode":{"type":"string","maxLength":50,"description":"Unique code that identifies a company account in Avalara. Use this field to calculate taxes based on origin and sold-to addresses in Avalara.\n\n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).\n"},"exemptCertificateId":{"type":"string","maxLength":32,"description":"ID of the customer tax exemption certificate. Applicable if you use Zuora Tax or Connect tax engines.\n"},"exemptCertificateType":{"type":"string","maxLength":32,"description":"Type of tax exemption certificate that the customer holds. Applicable if you use Zuora Tax or Connect tax engines.\n"},"exemptDescription":{"type":"string","maxLength":500,"description":"Description of the tax exemption certificate that the customer holds. Applicable if you use Zuora Tax or Connect tax engines.\n"},"exemptEffectiveDate":{"type":"string","format":"date","description":"Date when the customer tax exemption starts, in YYYY-MM-DD format. Applicable if you use Zuora Tax or Connect tax engines.\n"},"exemptExpirationDate":{"type":"string","format":"date","description":"Date when the customer tax exemption expires, in YYYY-MM-DD format. Applicable if you use Zuora Tax or Connect tax engines.\n"},"exemptIssuingJurisdiction":{"type":"string","maxLength":32,"description":"Jurisdiction in which the customer tax exemption certificate was issued.\n"},"exemptStatus":{"$ref":"#/components/schemas/TaxInfoExemptStatus","default":"No","description":"Status of the account tax exemption. Applicable if you use Zuora Tax or Connect tax engines. Required if you use Zuora Tax. \n"}},"description":"Information about the tax exempt status of a customer account.\n","title":"TaxInfo"},"PreviewAccountInfo":{"type":"object","properties":{"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that the account prefers billing periods to begin on. If set to 0, the bill cycle day will be set as \"AutoSet\"."},"currency":{"type":"string","maxLength":3,"description":"ISO 3-letter currency code (uppercase). For example, USD.\n"},"customFields":{"$ref":"#/components/schemas/AccountObjectCustomFields"},"shipToContact":{"$ref":"#/components/schemas/PreviewContactInfo"},"soldToContact":{"$ref":"#/components/schemas/PreviewContactInfo"},"taxInfo":{"$ref":"#/components/schemas/TaxInfo"}},"required":["billCycleDay","currency"],"description":"Information about the account that will own the order.\n","title":"PreviewAccountInfo"},"PreviewOptionsPreviewThruType":{"type":"string","enum":["SpecificDate","TermEnd","NumberOfPeriods"],"description":"The options on how the preview through date is calculated. Available for preview only. \n- If you set this field to `SpecificDate`, you must specify a specific date in the `specificPreviewThruDate` field. If you also set `billTargetDate` in the `orderLineItems` field, order line items whose `billTargetDate` is no later than `specificPreviewThruDate` are returned.\n\n- If you set this field to `NumberOfPeriods`, you must use the `previewNumberOfPeriods` field to specify how many periods you want to preview. In case the order only contains an order line item but not contains a subscription, if you also set `billTargetDate` in the `orderLineItems` field, order line items whose `billTargetDate` is no later than today are returned.\n\n- The `TermEnd` option is invalid when any subscription included in this order is evergreen. In case the order only contains an order line item but not contains a subscription, if you set this field to `TermEnd` and set `billTargetDate` in the `orderLineItems` field, order line items whose `billTargetDate` is no later than today are returned.\n","title":"PreviewOptionsPreviewThruType"},"PreviewOptionsPreviewTypesItems":{"type":"string","enum":["ChargeMetrics","BillingDocs","OrderDeltaMetrics","OrderMetrics","RampMetrics","RampDeltaMetrics"],"title":"PreviewOptionsPreviewTypesItems"},"PreviewOptionsChargeTypeToExcludeItems":{"type":"string","enum":["OneTime","Recurring","Usage"],"title":"PreviewOptionsChargeTypeToExcludeItems"},"PreviewOptions":{"type":"object","properties":{"previewNumberOfPeriods":{"type":"integer","description":"The number of periods to preview when the value of the `previewThroughType` field is set to `NumberOfPeriods`.\n"},"previewThruType":{"$ref":"#/components/schemas/PreviewOptionsPreviewThruType","description":"The options on how the preview through date is calculated. Available for preview only. \n- If you set this field to `SpecificDate`, you must specify a specific date in the `specificPreviewThruDate` field. If you also set `billTargetDate` in the `orderLineItems` field, order line items whose `billTargetDate` is no later than `specificPreviewThruDate` are returned.\n\n- If you set this field to `NumberOfPeriods`, you must use the `previewNumberOfPeriods` field to specify how many periods you want to preview. In case the order only contains an order line item but not contains a subscription, if you also set `billTargetDate` in the `orderLineItems` field, order line items whose `billTargetDate` is no later than today are returned.\n\n- The `TermEnd` option is invalid when any subscription included in this order is evergreen. In case the order only contains an order line item but not contains a subscription, if you set this field to `TermEnd` and set `billTargetDate` in the `orderLineItems` field, order line items whose `billTargetDate` is no later than today are returned.\n"},"previewTypes":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOptionsPreviewTypesItems"},"description":"One or more types of the preview. It can include:\n\n* ChargeMetrics: charge level metrics will be returned in the response, including: `cmrr`, `tcv`, `tcb`, and `tax`.\n* BillingDocs: `invoices` and `creditMemos` will be returned in the response. Note `creditMemos` is only available if the Invoice Settlement feature is enabled.\n* OrderDeltaMetrics: order delta metrics will be returned in the response, including: `orderDeltaMrr`, `orderDeltaTcb` and  `orderDeltaTcv`.\n* OrderMetrics: order metrics will be returned in the response, including: `quantity`, `mrr`, `tcb`, `tcv`, and `elp`. **Note:** As of Zuora Billing Release 306, Zuora has upgraded the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders). The new methodologies are reflected in the OrderDeltaMetrics. It is recommended that all customers use the [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics). If you are an existing [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders) customer and want to migrate to Order Delta Metrics, submit a request at [Zuora Global Support](https://support.zuora.com/). Whereas new customers, and existing customers not currently on [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders), will no longer have access to Order Metrics, existing customers currently using Order Metrics will continue to be supported.\n* RampMetrics: ramp metrics will be returned in the response, including: `quantity`, `mrr`, `tcb`, `tcv` metrics for each charge and each ramp interval.\n* RampDeltaMetrics: ramp metrics changes will be returned in the response, including: `deltaQuantity`, `deltaMrr`, `deltaTcb`, `deltaTcv` metrics for each charge and each ramp interval.\n"},"skipTax":{"type":"boolean","default":false,"description":"If set to true, the system will bypass the tax calculation during order preview."},"specificPreviewThruDate":{"type":"string","format":"date","description":"The end date of the order preview. You can preview the invoice charges through the preview through date. (Invoice preview only)\n\n\n**Note:** This field is only applicable if the 'previewThruType' field is set to 'SpecificDate'.\n"},"validateScheduledOrders":{"type":"boolean","default":true,"description":"By default, scheduled orders are validated during order preview to ensure all orders can be executed successfully. If you do not want to validate all scheduled orders during order preview, set this field to `false`.\n"},"chargeTypeToExclude":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOptionsChargeTypeToExcludeItems"},"description":"The charge types to exclude from the forecast run.\n"}},"title":"PreviewOptions"},"SubscriptionObjectCustomFields":{"type":"object","properties":{},"description":"Container for custom fields of a Subscription object.\n","title":"SubscriptionObjectCustomFields"},"PreviewOrderChargeOverrideBillingBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek"],"description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n","title":"PreviewOrderChargeOverrideBillingBillCycleType"},"PreviewOrderChargeOverrideBillingBillingPeriod":{"type":"string","enum":["Month","Quarter","Semi_Annual","Annual","Eighteen_Months","Two_Years","Three_Years","Five_Years","Specific_Months","Subscription_Term","Week","Specific_Weeks","Specific_Days"],"description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n","title":"PreviewOrderChargeOverrideBillingBillingPeriod"},"PreviewOrderChargeOverrideBillingBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart"],"description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges.\n","title":"PreviewOrderChargeOverrideBillingBillingPeriodAlignment"},"PreviewOrderChargeOverrideBillingBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n","title":"PreviewOrderChargeOverrideBillingBillingTiming"},"PreviewOrderChargeOverrideBillingWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n","title":"PreviewOrderChargeOverrideBillingWeeklyBillCycleDay"},"PreviewOrderChargeOverrideBilling":{"type":"object","properties":{"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.\n"},"billCycleType":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideBillingBillCycleType","description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n"},"billingPeriod":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideBillingBillingPeriod","description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideBillingBillingPeriodAlignment","description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges.\n"},"billingTiming":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideBillingBillingTiming","description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n"},"specificBillingPeriod":{"type":"integer","description":"Duration of each billing period in months or weeks, depending on the value of the `billingPeriod` field. Only applicable if the value of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideBillingWeeklyBillCycleDay","description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n"}},"description":"Billing information about the charge.\n","title":"PreviewOrderChargeOverrideBilling"},"PreviewOrderChargeOverrideChargeFunction":{"type":"string","enum":["CommitmentTrueUp","CreditCommitment"],"description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"PreviewOrderChargeOverrideChargeFunction"},"PreviewOrderChargeOverrideCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n","title":"PreviewOrderChargeOverrideCreditOption"},"RatePlanChargeObjectCustomFields":{"type":"object","properties":{},"description":"Container for custom fields of a Rate Plan Charge object.\n","title":"RatePlanChargeObjectCustomFields"},"PreviewOrderChargeOverrideDrawdownScope":{"type":"string","enum":["SUBSCRIPTION","ACCOUNT"],"description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"PreviewOrderChargeOverrideDrawdownScope"},"EndConditionsEndDateCondition":{"type":"string","enum":["Subscription_End","Fixed_Period","Specific_End_Date"],"description":"Condition for the charge to become inactive.\n\n- If the value of this field is `Fixed_Period`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n- If the value of this field is `Specific_End_Date`, use the `specificEndDate` field to specify the date when the charge becomes inactive.\n","title":"EndConditionsEndDateCondition"},"EndConditionsEndDatePolicy":{"type":"string","enum":["AlignToApplyToCharge","SpecificEndDate","FixedPeriod"],"description":"End date policy of the discount charge to become active when the **Apply to billing period partially** checkbox is selected from the product catalog UI or the `applyToBillingPeriodPartially` field is set as true from the \"CRUD: Create a product rate plan charge\" operation. \n\n- If the value of this field is `FixedPeriod`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n- If the value of this field is `SpecificEndDate`, use the `specificEndDate` field to specify the date when the charge becomes inactive.\n\n**Notes**: \n- You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n- You can use either `endDateCondition` or `endDatePolicy` to define when a discount charge ends, but not both at the same time.\n","title":"EndConditionsEndDatePolicy"},"EndConditionsUpToPeriodsType":{"type":"string","enum":["Billing_Periods","Days","Weeks","Months","Years"],"description":"Unit of time that the charge duration is measured in. Only applicable if the value of the `endDateCondition` field is `Fixed_Period`.\n","title":"EndConditionsUpToPeriodsType"},"EndConditions":{"type":"object","properties":{"endDateCondition":{"$ref":"#/components/schemas/EndConditionsEndDateCondition","description":"Condition for the charge to become inactive.\n\n- If the value of this field is `Fixed_Period`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n- If the value of this field is `Specific_End_Date`, use the `specificEndDate` field to specify the date when the charge becomes inactive.\n"},"endDatePolicy":{"$ref":"#/components/schemas/EndConditionsEndDatePolicy","description":"End date policy of the discount charge to become active when the **Apply to billing period partially** checkbox is selected from the product catalog UI or the `applyToBillingPeriodPartially` field is set as true from the \"CRUD: Create a product rate plan charge\" operation. \n\n- If the value of this field is `FixedPeriod`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n- If the value of this field is `SpecificEndDate`, use the `specificEndDate` field to specify the date when the charge becomes inactive.\n\n**Notes**: \n- You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n- You can use either `endDateCondition` or `endDatePolicy` to define when a discount charge ends, but not both at the same time.\n"},"specificEndDate":{"type":"string","format":"date","description":"Date in YYYY-MM-DD format. Only applicable if the value of the `endDateCondition` field is `Specific_End_Date`.\n"},"upToPeriods":{"type":"integer","description":"Duration of the charge in billing periods, days, weeks, months, or years, depending on the value of the `upToPeriodsType` field. Only applicable if the value of the `endDateCondition` field is `Fixed_Period`.\n"},"upToPeriodsType":{"$ref":"#/components/schemas/EndConditionsUpToPeriodsType","description":"Unit of time that the charge duration is measured in. Only applicable if the value of the `endDateCondition` field is `Fixed_Period`.\n"}},"description":"Specifies when a charge becomes inactive.\n","title":"EndConditions"},"NegotiatedItems":{"type":"object","properties":{"items":{"type":"object","additionalProperties":{"description":"Any type"},"description":"The rate card entry object.\n\n\n  **Note:** For more information, refer to the rate card definition in the product catalog."}},"title":"NegotiatedItems"},"PreviewOrderChargeOverridePrepaymentUnitType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"PreviewOrderChargeOverridePrepaymentUnitType"},"ChargeModelDataOverrideChargeModelConfiguration":{"type":"object","properties":{"customFieldPerUnitRate":{"type":"string","description":"The custom field that carries the per-unit rate for each usage record. For example, `perUnitAmount__c`.\n\nThis field is only available for the usage-based charges that use the Pre-Rated Per Unit Pricing charge model. The charge model 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.\n"},"customFieldTotalAmount":{"type":"string","description":"The custom field that carries the total amount to charge for a usage record. For example, `totalAmount__c`. \n\nThis field is only available for the usage-based charges that use the Pre-Rated Pricing charge model. The charge model 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.\n"},"formula":{"type":"string","description":"The pricing formula to calculate actual rating amount.\n\nThis field is only available for charges that use the Multi-Attribute Pricing charge model.\n"}},"title":"ChargeModelDataOverrideChargeModelConfiguration"},"ChargeTierPriceFormat":{"type":"string","enum":["FlatFee","PerUnit"],"description":"Specifies whether the tier has a fixed price or a per-unit price.\n","title":"ChargeTierPriceFormat"},"ChargeTier":{"type":"object","properties":{"endingUnit":{"type":"number","format":"double","description":"Limit on the number of units for which the tier is effective.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"},"price":{"type":"number","format":"double","description":"Price or per-unit price of the tier, depending on the value of the `priceFormat` field.\n"},"priceFormat":{"$ref":"#/components/schemas/ChargeTierPriceFormat","description":"Specifies whether the tier has a fixed price or a per-unit price.\n"},"startingUnit":{"type":"number","format":"double","description":"Number of units at which the tier becomes effective.\n"},"tier":{"type":"integer","minimum":1,"description":"Index of the tier in the charge.\n"}},"required":["price","priceFormat","startingUnit","tier"],"title":"ChargeTier"},"ChargeModelDataOverride":{"type":"object","properties":{"chargeModelConfiguration":{"$ref":"#/components/schemas/ChargeModelDataOverrideChargeModelConfiguration"},"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased. This field is used if the Multi-Attribute Pricing formula uses the `quantity()` function.\n\nThis field is only available for one-time and recurring charges that use the Multi-Attribute Pricing charge model.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"},"description":"List of cumulative pricing tiers in the charge.\n\n**Note**: When you override the tiers of a usage-based charge using High Water Mark Pricing charge model, you have to provide all of the tiers, including the ones you do not want to change. The new tiers will completely override the previous ones. The High Water Mark Pricing charge models are 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.\n"}},"description":"Container for charge model configuration data.\n\n**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. The High Water Mark and Pre-Rated Pricing charge models are 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.\n","title":"ChargeModelDataOverride"},"DiscountPricingOverrideApplyDiscountTo":{"type":"string","enum":["ONETIME","RECURRING","USAGE","ONETIMERECURRING","ONETIMEUSAGE","RECURRINGUSAGE","ONETIMERECURRINGUSAGE"],"description":"Specifies which type of charge the discount charge applies to.\n","title":"DiscountPricingOverrideApplyDiscountTo"},"DiscountApplyDetail":{"type":"object","properties":{"productRatePlanChargeId":{"type":"string","description":"Product Rate Plan Charge Id of the discount apply to.\n"},"productRatePlanId":{"type":"string","description":"Product Rate Plan Id of the discount apply to.\n"}},"required":["productRatePlanChargeId","productRatePlanId"],"title":"DiscountApplyDetail"},"DiscountPricingOverrideDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"DiscountPricingOverrideDiscountLevel"},"DiscountPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n","title":"DiscountPricingOverridePriceChangeOption"},"DiscountPricingOverride":{"type":"object","properties":{"applyDiscountTo":{"$ref":"#/components/schemas/DiscountPricingOverrideApplyDiscountTo","description":"Specifies which type of charge the discount charge applies to.\n"},"applyToBillingPeriodPartially":{"type":"boolean","description":"Allow the discount duration to be aligned with the billing period partially.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"discountAmount":{"type":"number","format":"double","description":"Only applicable if the discount charge is a fixed-amount discount.\n"},"discountApplyDetails":{"type":"array","items":{"$ref":"#/components/schemas/DiscountApplyDetail"},"description":"Charge list of discount be applied to.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"discountClass":{"type":"string","description":"The discount class defines the sequence in which discount product rate plan charges are applied.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"discountLevel":{"$ref":"#/components/schemas/DiscountPricingOverrideDiscountLevel","description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"discountPercentage":{"type":"number","format":"double","description":"Only applicable if the discount charge is a percentage discount.\n"},"originalDiscountAmount":{"type":"number","format":"double","description":"The manufacturer's suggested retail discount price for standalone charge.\n\nOnly applicable if the standalone discount charge is a fixed-amount discount.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"originalDiscountPercentage":{"type":"number","format":"double","description":"The manufacturer's suggested retail discount percentage for standalone charge.\n\nOnly applicable if the standalone discount charge is a percentage discount.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"originalListDiscountAmount":{"type":"number","format":"double","description":"The original discount amount listed for sale by a manufacturer or retailer.\n"},"originalListDiscountPercentage":{"type":"number","format":"double","description":"The original discount percentage listed for sale by a manufacturer or retailer.\n"},"priceChangeOption":{"$ref":"#/components/schemas/DiscountPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n"}},"description":"Pricing information about a discount charge.\n","title":"DiscountPricingOverride"},"OneTimeFlatFeePricingOverride":{"type":"object","properties":{"listPrice":{"type":"number","format":"double","description":"Price of the charge.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"}},"required":["listPrice"],"description":"Pricing information about a one-time charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n","title":"OneTimeFlatFeePricingOverride"},"OneTimePerUnitPricingOverride":{"type":"object","properties":{"listPrice":{"type":"number","format":"double","description":"Per-unit price of the charge.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"},"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"uom":{"type":"number","format":"double","description":"Unit of measure of the standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"}},"description":"Pricing information about a one-time charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit purchased.\n","title":"OneTimePerUnitPricingOverride"},"OneTimeTieredPricingOverride":{"type":"object","properties":{"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"},"description":"List of cumulative pricing tiers in the charge.\n"},"uom":{"type":"number","format":"double","description":"Unit of measure of the standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"}},"description":"Pricing information about a one-time charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are purchased.\n","title":"OneTimeTieredPricingOverride"},"OneTimeVolumePricingOverride":{"type":"object","properties":{"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"},"description":"List of variable pricing tiers in the charge.\n"},"uom":{"type":"number","format":"double","description":"Unit of measure of the standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"}},"description":"Pricing information about a one-time charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are purchased.\n","title":"OneTimeVolumePricingOverride"},"RecurringCalculatedPricingOverride":{"type":"object","properties":{"clearingExistingMinimumAmount":{"type":"boolean","description":"Set this field to `true` to reset the minimum amount to null.\n"},"clearingExistingMaximumAmount":{"type":"boolean","description":"Set this field to `true` to reset the maximum amount to null.\n"},"eligibleAccountConditions":{"type":"object","additionalProperties":{"description":"Any type"},"description":"A filter expression (single condition or nested condition groups with logical relations) that defines which accounts’ charges are considered in the calculation. If omitted, the system defaults to the calculated charge’s subscription account.\nSee <a href=\"https://docs.zuora.com?resourceId=billing-overview-orders\" target=\"_blank\">Orders</a> for more information. \n- relation: the logical relation with the condition group. Supported values are: and, or. Only two levels of nested condition groups are supported.\n- conditions: \n  - field: name of the condition field. Refer to the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/build-product-and-prices/set-up-product-catalog/create-product-rate-plan-charges/configure-calculated-percentage-of-spend-charges/define-the-scope-of-eligible-charges\" target=\"_blank\">legitimate condition fields</a>.\n  - operator: the logical operator. Supported values are: `eq`, `neq`, `nl` (is null), `nnl` (is not null).\n  - value: the value of the condition field. You can either enter specific values manually or use the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/build-product-and-prices/set-up-product-catalog/create-product-rate-plan-charges/configure-calculated-percentage-of-spend-charges/define-the-scope-of-eligible-charges\" target=\"_blank\">predefined condition values</a>.\n"},"eligibleChargeConditions":{"type":"object","additionalProperties":{"description":"Any type"},"description":"A filter expression (single condition or nested condition groups with logical relations) that defines which rate plan charges contribute to the calculation; if omitted, the scope defaults to “All charges” (i.e., all charges under the selected accounts are eligible). \nSee <a href=\"https://docs.zuora.com?resourceId=billing-overview-orders\" target=\"_blank\">Orders</a> for more information. \n- relation: the logical relation with the condition group. Supported values are: and, or. Only two levels of nested condition groups are supported.\n- conditions: \n  - field: name of the condition field. Refer to the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/build-product-and-prices/set-up-product-catalog/create-product-rate-plan-charges/configure-calculated-percentage-of-spend-charges/define-the-scope-of-eligible-charges\" target=\"_blank\">legitimate condition fields</a>. \n  - operator: the logical operator. Supported values are: `eq`, `neq`, `nl` (is null), `nnl` (is not null).\n  - value: the value of the condition field. You can either enter specific values manually or use the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/build-product-and-prices/set-up-product-catalog/create-product-rate-plan-charges/configure-calculated-percentage-of-spend-charges/define-the-scope-of-eligible-charges\" target=\"_blank\">predefined condition values</a>.\n"},"minimumAmount":{"type":"number","format":"double","description":"Non-negative currency amount that establishes the lower bound for the calculated charge in a billing period. If the calculated amount is less than this value, the invoice amount will be set to the minimum value.\n"},"maximumAmount":{"type":"number","format":"double","description":"Non-negative currency amount that establishes the upper bound for the calculated charge in a billing period. If the calculated amount exceeds this value, the invoice amount will be set to the maximum value.\n"},"percentage":{"type":"number","format":"double","description":"The specific rate applied to the total eligible spend to determine the base invoice amount before any minimum or maximum amount is applied.\n"}},"required":["percentage"],"description":"Pricing information about a recurring charge that uses the \"calculated\" charge model.\n","title":"RecurringCalculatedPricingOverride"},"RecurringDeliveryPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"RecurringDeliveryPricingOverridePriceChangeOption"},"DeliveryScheduleParamsFrequency":{"type":"string","enum":["Weekly"],"description":"Specifies the frequency for delivery schedule\n","title":"DeliveryScheduleParamsFrequency"},"DeliveryScheduleParams":{"type":"object","properties":{"frequency":{"$ref":"#/components/schemas/DeliveryScheduleParamsFrequency","description":"Specifies the frequency for delivery schedule\n"},"friday":{"type":"boolean","description":"Indicates whether delivery on friday.\n"},"monday":{"type":"boolean","description":"Indicates whether delivery on monday.\n"},"saturday":{"type":"boolean","description":"Indicates whether delivery on saturday.\n"},"sunday":{"type":"boolean","description":"Indicates whether delivery on sunday.\n"},"thursday":{"type":"boolean","description":"Indicates whether delivery on thursday.\n"},"tuesday":{"type":"boolean","description":"Indicates whether delivery on tuesday.\n"},"wednesday":{"type":"boolean","description":"Indicates whether delivery on wednesday.\n"}},"title":"DeliveryScheduleParams"},"RecurringDeliveryPricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/RecurringDeliveryPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"deliverySchedule":{"$ref":"#/components/schemas/DeliveryScheduleParams"},"listPrice":{"type":"number","format":"double","description":"Price of the charge in each recurring period.\n"}},"description":"Pricing information about a recurring charge that uses the Delivery Pricing charge model. In this charge model, the charge has a fixed price. This field is only available if you have the Delivery Pricing charge model enabled.\n","title":"RecurringDeliveryPricingOverride"},"RecurringFlatFeePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"RecurringFlatFeePricingOverridePriceChangeOption"},"RecurringFlatFeePricingOverrideListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months"],"description":"Specifies the duration of each recurring period.\n","title":"RecurringFlatFeePricingOverrideListPriceBase"},"RecurringFlatFeePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/RecurringFlatFeePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double","description":"Price of the charge in each recurring period.\n"},"listPriceBase":{"$ref":"#/components/schemas/RecurringFlatFeePricingOverrideListPriceBase","description":"Specifies the duration of each recurring period.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"},"specificListPriceBase":{"type":"integer","minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `listPriceBase` field to `Per_Specific_Months`.\n\n**Note**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.              \n"}},"description":"Pricing information about a recurring charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n","title":"RecurringFlatFeePricingOverride"},"RecurringPerUnitPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"RecurringPerUnitPricingOverridePriceChangeOption"},"RecurringPerUnitPricingOverrideListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months"],"description":"Specifies the duration of each recurring period.\n","title":"RecurringPerUnitPricingOverrideListPriceBase"},"RecurringPerUnitPricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/RecurringPerUnitPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double","description":"Per-unit price of the charge in each recurring period.\n"},"listPriceBase":{"$ref":"#/components/schemas/RecurringPerUnitPricingOverrideListPriceBase","description":"Specifies the duration of each recurring period.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"},"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"specificListPriceBase":{"type":"integer","minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `listPriceBase` field to `Per_Specific_Months`.\n\n**Note**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.              \n"},"uom":{"type":"number","format":"double","description":"Unit of measure of the standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"}},"description":"Pricing information about a recurring charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit purchased.\n","title":"RecurringPerUnitPricingOverride"},"RecurringTieredPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"RecurringTieredPricingOverridePriceChangeOption"},"RecurringTieredPricingOverrideListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months"],"description":"Specifies the duration of each recurring period.\n","title":"RecurringTieredPricingOverrideListPriceBase"},"RecurringTieredPricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/RecurringTieredPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPriceBase":{"$ref":"#/components/schemas/RecurringTieredPricingOverrideListPriceBase","description":"Specifies the duration of each recurring period.\n"},"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"specificListPriceBase":{"type":"integer","minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `listPriceBase` field to `Per_Specific_Months`.\n\n**Note**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.              \n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"},"description":"List of cumulative pricing tiers in the charge.\n"},"uom":{"type":"number","format":"double","description":"Unit of measure of the standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"}},"description":"Pricing information about a recurring charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are purchased.\n","title":"RecurringTieredPricingOverride"},"RecurringVolumePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"RecurringVolumePricingOverridePriceChangeOption"},"RecurringVolumePricingOverrideListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months"],"description":"Specifies the duration of each recurring period.\n","title":"RecurringVolumePricingOverrideListPriceBase"},"RecurringVolumePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/RecurringVolumePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPriceBase":{"$ref":"#/components/schemas/RecurringVolumePricingOverrideListPriceBase","description":"Specifies the duration of each recurring period.\n"},"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"specificListPriceBase":{"type":"integer","minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `listPriceBase` field to `Per_Specific_Months`.\n\n**Note**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.              \n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"},"description":"List of variable pricing tiers in the charge.\n"},"uom":{"type":"number","format":"double","description":"Unit of measure of the standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"}},"description":"Pricing information about a recurring charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are purchased.\n","title":"RecurringVolumePricingOverride"},"PreviewOrderChargeOverridePricing":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/ChargeModelDataOverride"},"discount":{"$ref":"#/components/schemas/DiscountPricingOverride"},"oneTimeFlatFee":{"$ref":"#/components/schemas/OneTimeFlatFeePricingOverride"},"oneTimePerUnit":{"$ref":"#/components/schemas/OneTimePerUnitPricingOverride"},"oneTimeTiered":{"$ref":"#/components/schemas/OneTimeTieredPricingOverride"},"oneTimeVolume":{"$ref":"#/components/schemas/OneTimeVolumePricingOverride"},"recurringCalculated":{"$ref":"#/components/schemas/RecurringCalculatedPricingOverride"},"recurringDeliveryBased":{"$ref":"#/components/schemas/RecurringDeliveryPricingOverride"},"recurringFlatFee":{"$ref":"#/components/schemas/RecurringFlatFeePricingOverride"},"recurringPerUnit":{"$ref":"#/components/schemas/RecurringPerUnitPricingOverride"},"recurringTiered":{"$ref":"#/components/schemas/RecurringTieredPricingOverride"},"recurringVolume":{"$ref":"#/components/schemas/RecurringVolumePricingOverride"}},"description":"Pricing information about the charge.\n","title":"PreviewOrderChargeOverridePricing"},"PreviewOrderChargeOverrideProrationOption":{"type":"string","enum":["NoProration","TimeBasedProration","DefaultFromTenantSetting","ChargeFullPeriod","CustomizeProrationOptionOverrides"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n","title":"PreviewOrderChargeOverrideProrationOption"},"PreviewOrderChargeOverrideRatingPropertiesOverrideProrationUnit":{"type":"string","enum":["ProrateByDay","ProrateByMonthFirst"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n","title":"PreviewOrderChargeOverrideRatingPropertiesOverrideProrationUnit"},"PreviewOrderChargeOverrideRatingPropertiesOverrideDaysInMonth":{"type":"string","enum":["UseActualDays","Assume30Days","Assume30DaysStrict"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n","title":"PreviewOrderChargeOverrideRatingPropertiesOverrideDaysInMonth"},"PreviewOrderChargeOverrideRatingPropertiesOverride":{"type":"object","properties":{"isProratePartialMonth":{"type":"boolean","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify whether to prorate the recurring charge for a partial month. The tenant-level proration option will be overridden.\n"},"prorationUnit":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideRatingPropertiesOverrideProrationUnit","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n"},"daysInMonth":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideRatingPropertiesOverrideDaysInMonth","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n"}},"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n","title":"PreviewOrderChargeOverrideRatingPropertiesOverride"},"PreviewOrderChargeOverrideRevRecTriggerCondition":{"type":"string","enum":["Contract Effective Date","Service Activation Date","Customer Acceptance Date"],"description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n","title":"PreviewOrderChargeOverrideRevRecTriggerCondition"},"PreviewOrderChargeOverrideRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n","title":"PreviewOrderChargeOverrideRevenueRecognitionTiming"},"PreviewOrderChargeOverrideRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n","title":"PreviewOrderChargeOverrideRevenueAmortizationMethod"},"PreviewOrderChargeOverrideRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"PreviewOrderChargeOverrideRolloverApply"},"PreviewOrderTriggerParamsTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance","SpecificDate"],"description":"Condition for the charge to become active.\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n","title":"PreviewOrderTriggerParamsTriggerEvent"},"PreviewOrderTriggerParams":{"type":"object","properties":{"specificTriggerDate":{"type":"string","format":"date","description":"Date in YYYY-MM-DD format. Only applicable if the value of the `triggerEvent` field is `SpecificDate`. \n\nWhile this field is applicable, if this field is not set, your `CreateSubscription` order action creates a `Pending` order and a `Pending Acceptance` subscription. If at the same time the service activation date is required and not set, a `Pending Activation` subscription is created.\n"},"triggerEvent":{"$ref":"#/components/schemas/PreviewOrderTriggerParamsTriggerEvent","description":"Condition for the charge to become active.\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n"}},"description":"Specifies when a charge becomes active.\n","title":"PreviewOrderTriggerParams"},"PreviewOrderChargeOverrideValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n","title":"PreviewOrderChargeOverrideValidityPeriodType"},"PreviewOrderChargeOverrideTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode of a charge.  This field is available when the `taxable` field is set to `true`.\n","title":"PreviewOrderChargeOverrideTaxMode"},"PreviewOrderChargeOverride":{"type":"object","properties":{"accountReceivableAccountingCode":{"type":"string","description":"The accountReceivableAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>, <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a>, and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Get_started_with_Invoice_Settlement/AA_Overview_of_Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> features are enabled.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The adjustmentLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The adjustmentRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"billing":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideBilling","description":"Billing information about the charge.\n"},"chargeFunction":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideChargeFunction","description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"creditOption":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideCreditOption","description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n"},"chargeModel":{"type":"string","description":"The chargeModel of a standalone charge.\n\n\nSupported charge models:\n\n* `FlatFee`\n\n* `PerUnit`\n\n* `Volume`\n\n* `Tiered`\n\n* `DiscountFixedAmount`\n\n* `DiscountPercentage`\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"chargeNumber":{"type":"string","maxLength":50,"description":"Charge number of the charge. For example, C-00000307.\n\n* If you do not set this field, Zuora will generate a charge number starting with a default prefix, for example, C-. This default prefix is predefined in **Billing Settings** > **Define Default Subscription and Order Settings**.\n* If you want to use a custom charge number, do not use the default prefix predefined in **Billing Settings** > **Define Default Subscription and Order Settings**. Use your own prefix, for example, SC-. \n"},"chargeType":{"type":"string","description":"The chargeType of a standalone charge.\n\nSupported charge types:\n\n* `OneTime`\n\n* `Recurring`\n\n* `Usage`\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"contractAssetAccountingCode":{"type":"string","description":"The contractAssetAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The contractLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The contractRecognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferredRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"description":{"type":"string","maxLength":500,"description":"Description of the charge.\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"drawdownScope":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideDrawdownScope","description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"endDate":{"$ref":"#/components/schemas/EndConditions"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nIf you specify `SpecificDate` in the `startDate` > `triggerEvent` field and want to create a completed order and an active subscription, you must specify either the `estimatedStartDate` or `startDate` > `specificTriggerDate` field:\n\n- `estimatedStartDate`: The charge will be in pending status.\n\n- `specificTriggerDate`: The charge will be in active status.\n\nThe value of this field must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge.\n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\nIf both the following features are enabled in your tenant, you must ensure the `excludeItemBillingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge. In addition, if the `excludeItemBookingFromRevenueAccounting` field in a Create Subscription or Add Product order action is set to `false`, you must also set the `excludeItemBillingFromRevenueAccounting` field in this order action to `false`.\n  * Prepaid with Drawdown\n  * Unbilled Usage\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled.\n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charges from revenue accounting.\n\nIf both the following features are enabled in your tenant, you must ensure the `excludeItemBookingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge.\n  * Prepaid with Drawdown\n  * Unbilled Usage\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled.\n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe value is either \"True\" or \"False\". It determines whether the rollover fields are needed.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue\nrecognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"name":{"type":"string","description":"The name of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"negotiatedPriceTable":{"type":"array","items":{"$ref":"#/components/schemas/NegotiatedItems"},"description":"Array of negotiated price table information. The rate card entries provided in the array will override \nthe existing rate card entries in the standard price table to form a negotiated price table that will be    \nused during pricing evaluation.\n\n\n**Note:** To enable the Negotiated Price Table feature, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.                  \n"},"pobPolicy":{"type":"string","description":"The pobPolicy of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"prepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaymentUnitType":{"$ref":"#/components/schemas/PreviewOrderChargeOverridePrepaymentUnitType","description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"pricing":{"$ref":"#/components/schemas/PreviewOrderChargeOverridePricing","description":"Pricing information about the charge.\n"},"pricingAttributes":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for pricing attribute and value that provide additional context for dynamic pricing. The pricing attribute values are used to get the charge’s list price from the product catalog. For the pricing attribute mapped to a Zuora object field, Zuora will retrieve the value automatically, you don’t need to pass its value explicitly. If you pass a value that doesn’t match the actual value of the Zuora object, an error will be returned. \nNote that for any pricing attribute mapped to the field of Zuora object Usage, because its value is only determined when the usage record arrives, you can’t provide a value via Orders API payload and Zuora will not retrieve its value automatically.    \n\n\n**Note:** To enable Dynamic Pricing, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"productCategory":{"type":"string","description":"The productCategory of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productClass":{"type":"string","description":"The productClass of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productFamily":{"type":"string","description":"The productFamily of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productLine":{"type":"string","description":"The productLine of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productRatePlanChargeId":{"type":"string","description":"Internal identifier of the product rate plan charge that the charge is based on.\n"},"productRatePlanChargeNumber":{"type":"string","description":"Number of a product rate-plan charge for this subscription.\n"},"prorationOption":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideProrationOption","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n"},"ratingPropertiesOverride":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideRatingPropertiesOverride","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"revRecCode":{"type":"string","maxLength":70,"description":"Revenue Recognition Code\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideRevRecTriggerCondition","description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n"},"revenueRecognitionRuleName":{"type":"string","description":"Specifies the revenue recognition rule, such as `Recognize upon invoicing` or `Recognize daily over time`.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n"},"rolloverApply":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"rolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"startDate":{"$ref":"#/components/schemas/PreviewOrderTriggerParams"},"unBilledReceivablesAccountingCode":{"type":"string","description":"The unBilledReceivablesAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.\n"},"upsellOriginChargeNumber":{"type":"string","description":"The identifier of the original upselling charge associated with the current charge.\n\nFor a termed subscription, you can now use the \"Create an order\" API operation to perform an Add Product order action to make a product quantity upsell for per unit recurring charges. The benefit is that the charge added by this approach will be automatically combined with the original existing charge for which you want to upsell when the subscription is renewed. The approach is as follows:\n* Use an Add Product order action to add a charge that is of the same charge type, charge model, and charge end date as the existing per unit recurring charge for which you want to make a quantity upsell.\n\n* In the preceding charge to add, use the `upsellOriginChargeNumber` field to specify the existing rate plan charge for which you want to make the quantity upsell.\n\nNote that a termed subscription with such upsell charges can not be changed to an evergreen subscription.   \n\n**Note**: The Quantity Upsell 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. If you want to join this early adopter program, submit a request at [Zuora Global\n  Support](https://support.zuora.com).  \n"},"validityPeriodType":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideValidityPeriodType","description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n"},"taxCode":{"type":"string","description":"The tax code of a charge. This field is available when the `taxable` field is set to `true`. \n"},"taxMode":{"$ref":"#/components/schemas/PreviewOrderChargeOverrideTaxMode","description":"The tax mode of a charge.  This field is available when the `taxable` field is set to `true`.\n"},"taxable":{"type":"boolean","description":"The flag indicates whether the charge is taxable. If this field is set to `true`, you must specify the `taxCode` and `taxMode` fields.\n"}},"required":["productRatePlanChargeId"],"description":"Charge associated with a rate plan.\n","title":"PreviewOrderChargeOverride"},"OrdersRatePlanObjectCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of the Rate Plan object. The custom fields of the Rate Plan object are used when rate plans are subscribed.\n","title":"OrdersRatePlanObjectCustomFields"},"RatePlanFeatureOverrideCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"A container for custom fields of the feature.\n","title":"RatePlanFeatureOverrideCustomFields"},"CreateOrderRatePlanFeatureOverride":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/RatePlanFeatureOverrideCustomFields"},"description":{"type":"string","maxLength":500,"description":"A description of the feature."},"featureId":{"type":"string","description":"Internal identifier of the feature in the product catalog.\n"}},"required":["featureId"],"description":"Information about feature in rate plan.\n","title":"CreateOrderRatePlanFeatureOverride"},"PreviewOrderRatePlanOverride":{"type":"object","properties":{"chargeOverrides":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderChargeOverride"},"description":"List of charges associated with the rate plan.\n"},"clearingExistingFeatures":{"type":"boolean","description":"Specifies whether all features in the rate plan will be cleared.\n"},"customFields":{"$ref":"#/components/schemas/OrdersRatePlanObjectCustomFields"},"isAddingSubsetCharges":{"type":"boolean","description":"Specifies whether to add a subset of charges to the subscription.\n\n\n**Note:** To access this field for adding a subset of charges, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isFromExternalCatalog":{"type":"boolean","description":"Indicates whether the rate plan is created from the Zuora product catalog or from an external product catalog.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productRatePlanId":{"type":"string","description":"Internal identifier of the product rate plan that the rate plan is based on.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanName":{"type":"string","description":"Name of the standalone rate plan.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"subscriptionProductFeatures":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderRatePlanFeatureOverride"},"description":"List of features associated with the rate plan.\nThe system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:\n* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.\n* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.\n"},"subscriptionRatePlanNumber":{"type":"string","maxLength":50,"description":"Number of a subscription rate plan for this subscription.\n"}},"required":["productRatePlanId"],"description":"Information about an order action of type `AddProduct`.\n","title":"PreviewOrderRatePlanOverride"},"CancelSubscriptionCancellationPolicy":{"type":"string","enum":["EndOfCurrentTerm","EndOfLastInvoicePeriod","SpecificDate"],"title":"CancelSubscriptionCancellationPolicy"},"CancelSubscription":{"type":"object","properties":{"cancellationEffectiveDate":{"type":"string","format":"date"},"cancellationPolicy":{"$ref":"#/components/schemas/CancelSubscriptionCancellationPolicy"}},"required":["cancellationPolicy"],"description":"Information about an order action of type `CancelSubscription`.\n","title":"CancelSubscription"},"PreviewOrderCreateChangePlanEffectivePolicy":{"type":"string","enum":["EffectiveImmediately","EffectiveEndOfBillingPeriod","SpecificDate"],"description":"The default value for the `effectivePolicy` field is as follows:\n  * If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n  * If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n  * Otherwise, the effective policy is `SpecificDate` by default.\n\n**Notes**: \n  * When setting this field to `EffectiveEndOfBillingPeriod`, you cannot set the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/W_Subscription_and_Amendment_Dates#Billing_Trigger_Dates\" target=\"_blank\">billing trigger dates</a> for the subscription as the system will automatically set the trigger dates to the end of billing period, and you cannot set the following billing trigger date settings to `Yes`:\n    * <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Default_Subscription_and_Order_Settings#Require_Customer_Acceptance_of_Orders.3F\" target=\"_blank\">Require Customer Acceptance of Orders?</a>\n    * <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Default_Subscription_and_Order_Settings#Require_Service_Activation_of_Orders.3F\" target=\"_blank\">Require Service Activation of Orders?</a>\n  \n  * When setting this field to `SpecificDate`, you must also set the contract effective date in the `triggerDates` field as follows:\n    * Set the `name` field as `ContractEffective`\n    * Specify a date for the `triggerDate` field\n","title":"PreviewOrderCreateChangePlanEffectivePolicy"},"PreviewOrderChangePlanChargeOverrideBillingBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek"],"description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n","title":"PreviewOrderChangePlanChargeOverrideBillingBillCycleType"},"PreviewOrderChangePlanChargeOverrideBillingBillingPeriod":{"type":"string","enum":["Month","Quarter","Semi_Annual","Annual","Eighteen_Months","Two_Years","Three_Years","Five_Years","Specific_Months","Subscription_Term","Week","Specific_Weeks","Specific_Days"],"description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n","title":"PreviewOrderChangePlanChargeOverrideBillingBillingPeriod"},"PreviewOrderChangePlanChargeOverrideBillingBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart"],"description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n","title":"PreviewOrderChangePlanChargeOverrideBillingBillingPeriodAlignment"},"PreviewOrderChangePlanChargeOverrideBillingBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n","title":"PreviewOrderChangePlanChargeOverrideBillingBillingTiming"},"PreviewOrderChangePlanChargeOverrideBillingWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n","title":"PreviewOrderChangePlanChargeOverrideBillingWeeklyBillCycleDay"},"PreviewOrderChangePlanChargeOverrideBilling":{"type":"object","properties":{"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.\n"},"billCycleType":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideBillingBillCycleType","description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n"},"billingPeriod":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideBillingBillingPeriod","description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideBillingBillingPeriodAlignment","description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n"},"billingTiming":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideBillingBillingTiming","description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n"},"specificBillingPeriod":{"type":"integer","description":"Duration of each billing period in months or weeks, depending on the value of the `billingPeriod` field. Only applicable if the value of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideBillingWeeklyBillCycleDay","description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n"}},"description":"Billing information about the charge.\n","title":"PreviewOrderChangePlanChargeOverrideBilling"},"PreviewOrderChangePlanChargeOverrideChargeFunction":{"type":"string","enum":["CommitmentTrueUp","CreditCommitment"],"description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"PreviewOrderChangePlanChargeOverrideChargeFunction"},"PreviewOrderChangePlanChargeOverrideCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n","title":"PreviewOrderChangePlanChargeOverrideCreditOption"},"PreviewOrderChangePlanChargeOverrideDrawdownScope":{"type":"string","enum":["SUBSCRIPTION","ACCOUNT"],"description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"PreviewOrderChangePlanChargeOverrideDrawdownScope"},"PreviewOrderChangePlanChargeOverridePrepaymentUnitType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"PreviewOrderChangePlanChargeOverridePrepaymentUnitType"},"PreviewOrderChangePlanChargeOverridePricing":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/ChargeModelDataOverride"},"discount":{"$ref":"#/components/schemas/DiscountPricingOverride"},"oneTimeFlatFee":{"$ref":"#/components/schemas/OneTimeFlatFeePricingOverride"},"oneTimePerUnit":{"$ref":"#/components/schemas/OneTimePerUnitPricingOverride"},"oneTimeTiered":{"$ref":"#/components/schemas/OneTimeTieredPricingOverride"},"oneTimeVolume":{"$ref":"#/components/schemas/OneTimeVolumePricingOverride"},"recurringCalculated":{"$ref":"#/components/schemas/RecurringCalculatedPricingOverride"},"recurringDeliveryBased":{"$ref":"#/components/schemas/RecurringDeliveryPricingOverride"},"recurringFlatFee":{"$ref":"#/components/schemas/RecurringFlatFeePricingOverride"},"recurringPerUnit":{"$ref":"#/components/schemas/RecurringPerUnitPricingOverride"},"recurringTiered":{"$ref":"#/components/schemas/RecurringTieredPricingOverride"},"recurringVolume":{"$ref":"#/components/schemas/RecurringVolumePricingOverride"}},"description":"Pricing information about the charge.\n","title":"PreviewOrderChangePlanChargeOverridePricing"},"PreviewOrderChangePlanChargeOverrideProrationOption":{"type":"string","enum":["NoProration","TimeBasedProration","DefaultFromTenantSetting","ChargeFullPeriod","CustomizeProrationOptionOverrides"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n","title":"PreviewOrderChangePlanChargeOverrideProrationOption"},"PreviewOrderChangePlanChargeOverrideRatingPropertiesOverrideProrationUnit":{"type":"string","enum":["ProrateByDay","ProrateByMonthFirst"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n","title":"PreviewOrderChangePlanChargeOverrideRatingPropertiesOverrideProrationUnit"},"PreviewOrderChangePlanChargeOverrideRatingPropertiesOverrideDaysInMonth":{"type":"string","enum":["UseActualDays","Assume30Days","Assume30DaysStrict"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n","title":"PreviewOrderChangePlanChargeOverrideRatingPropertiesOverrideDaysInMonth"},"PreviewOrderChangePlanChargeOverrideRatingPropertiesOverride":{"type":"object","properties":{"isProratePartialMonth":{"type":"boolean","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify whether to prorate the recurring charge for a partial month. The tenant-level proration option will be overridden.\n"},"prorationUnit":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideRatingPropertiesOverrideProrationUnit","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n"},"daysInMonth":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideRatingPropertiesOverrideDaysInMonth","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n"}},"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n","title":"PreviewOrderChangePlanChargeOverrideRatingPropertiesOverride"},"PreviewOrderChangePlanChargeOverrideRevRecTriggerCondition":{"type":"string","enum":["Contract Effective Date","Service Activation Date","Customer Acceptance Date"],"description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n","title":"PreviewOrderChangePlanChargeOverrideRevRecTriggerCondition"},"PreviewOrderChangePlanChargeOverrideRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n","title":"PreviewOrderChangePlanChargeOverrideRevenueRecognitionTiming"},"PreviewOrderChangePlanChargeOverrideRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n","title":"PreviewOrderChangePlanChargeOverrideRevenueAmortizationMethod"},"PreviewOrderChangePlanChargeOverrideRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"PreviewOrderChangePlanChargeOverrideRolloverApply"},"CreateOrderTriggerParamsStartDatePolicy":{"type":"string","enum":["AlignToApplyToCharge","SpecificDate","EndOfLastInvoicePeriodOfApplyToCharge","FixedPeriodAfterApplyToChargeStartDate"],"description":"Start date policy of the discount charge to become active when the **Apply to billing period partially** checkbox is selected from the product catalog UI or the `applyToBillingPeriodPartially` field is set as true from the \"CRUD: Create a product rate plan charge\" operation.\n\n- If the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n- If the value of this field is `FixedPeriodAfterApplyToChargeStartDate`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n\n**Notes**: \n  - You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field. \n  - You can use either `triggerEvent` or `startDatePolicy` to define when a discount charge starts, but not both at the same time.\n","title":"CreateOrderTriggerParamsStartDatePolicy"},"CreateOrderTriggerParamsStartPeriodsType":{"type":"string","enum":["Days","Weeks","Months","Years"],"description":"Unit of time that the discount charge duration is measured in. Only applicable if the value of the `startDatePolicy` field is `FixedPeriodAfterApplyToChargeStartDate`.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n","title":"CreateOrderTriggerParamsStartPeriodsType"},"CreateOrderTriggerParamsTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance","SpecificDate"],"description":"Condition for the charge to become active.\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n","title":"CreateOrderTriggerParamsTriggerEvent"},"CreateOrderTriggerParams":{"type":"object","properties":{"periodsAfterChargeStart":{"type":"integer","description":"Duration of the discount charge in days, weeks, months, or years, depending on the value of the `startPeriodsType` field. Only applicable if the value of the `startDatePolicy` field is `FixedPeriodAfterApplyToChargeStartDate`.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"specificTriggerDate":{"type":"string","format":"date","description":"Date in YYYY-MM-DD format. Only applicable if the value of the `triggerEvent` field is `SpecificDate`. \n\nWhile this field is applicable, if this field is not set, your `CreateSubscription` order action creates a `Pending` order and a `Pending Acceptance` subscription. If at the same time the service activation date is required and not set, a `Pending Activation` subscription is created.\n\nWhile this field is applicable, if this field is not set, the following order actions create a `Pending` order but do not impact the subscription status. **Note**: This feature is in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n"},"startDatePolicy":{"$ref":"#/components/schemas/CreateOrderTriggerParamsStartDatePolicy","description":"Start date policy of the discount charge to become active when the **Apply to billing period partially** checkbox is selected from the product catalog UI or the `applyToBillingPeriodPartially` field is set as true from the \"CRUD: Create a product rate plan charge\" operation.\n\n- If the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n- If the value of this field is `FixedPeriodAfterApplyToChargeStartDate`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n\n**Notes**: \n  - You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field. \n  - You can use either `triggerEvent` or `startDatePolicy` to define when a discount charge starts, but not both at the same time.\n"},"startPeriodsType":{"$ref":"#/components/schemas/CreateOrderTriggerParamsStartPeriodsType","description":"Unit of time that the discount charge duration is measured in. Only applicable if the value of the `startDatePolicy` field is `FixedPeriodAfterApplyToChargeStartDate`.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"triggerEvent":{"$ref":"#/components/schemas/CreateOrderTriggerParamsTriggerEvent","description":"Condition for the charge to become active.\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n"}},"description":"Specifies when a charge becomes active.\n","title":"CreateOrderTriggerParams"},"PreviewOrderChangePlanChargeOverrideValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n","title":"PreviewOrderChangePlanChargeOverrideValidityPeriodType"},"PreviewOrderChangePlanChargeOverride":{"type":"object","properties":{"accountReceivableAccountingCode":{"type":"string","description":"The accountReceivableAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>, <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a>, and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Get_started_with_Invoice_Settlement/AA_Overview_of_Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> features are enabled.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The adjustmentLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The adjustmentRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"billing":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideBilling","description":"Billing information about the charge.\n"},"chargeFunction":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideChargeFunction","description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"creditOption":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideCreditOption","description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n"},"chargeModel":{"type":"string","description":"The chargeModel of a standalone charge.\n\n\nSupported charge models:\n\n* `FlatFee`\n\n* `PerUnit`\n\n* `Volume`\n\n* `Tiered`\n\n* `DiscountFixedAmount`\n\n* `DiscountPercentage`\n\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"chargeNumber":{"type":"string","maxLength":50,"description":"Charge number of the charge. For example, C-00000307.\n\n* If you do not set this field, Zuora will generate a charge number starting with a default prefix, for example, C-. This default prefix is predefined in **Billing Settings** > **Define Default Subscription and Order Settings**.\n* If you want to use a custom charge number, do not use the default prefix predefined in **Billing Settings** > **Define Default Subscription and Order Settings**. Use your own prefix, for example, SC-.\n"},"chargeType":{"type":"string","description":"The chargeType of a standalone charge.\n\nSupported charge types:\n\n* `OneTime`\n\n* `Recurring`\n\n* `Usage`\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"contractAssetAccountingCode":{"type":"string","description":"The contractAssetAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The contractLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The contractRecognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferredRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"description":{"type":"string","maxLength":500,"description":"Description of the charge.\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"drawdownScope":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideDrawdownScope","description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"endDate":{"$ref":"#/components/schemas/EndConditions"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nIf you specify `SpecificDate` in the `startDate` > `triggerEvent` field and want to create a completed order and an active subscription, you must specify either the `estimatedStartDate` or `startDate` > `specificTriggerDate` field:\n\n- `estimatedStartDate`: The charge will be in pending status.\n\n- `specificTriggerDate`: The charge will be in active status.\n\nThe value of this field must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge.\n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charges from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe value is either \"True\" or \"False\". It determines whether the rollover fields are needed.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue\nrecognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"negotiatedPriceTable":{"type":"array","items":{"$ref":"#/components/schemas/NegotiatedItems"},"description":"Array of negotiated price table information. The rate card entries provided in the array will override\nthe existing rate card entries in the standard price table to form a negotiated price table that will be   \nused during pricing evaluation.\n\n**Note:** To enable the Negotiated Price Table feature, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.                 \n"},"name":{"type":"string","description":"The name of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"pobPolicy":{"type":"string","description":"The pobPolicy of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"prepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaymentUnitType":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverridePrepaymentUnitType","description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"pricing":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverridePricing","description":"Pricing information about the charge.\n"},"pricingAttributes":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for pricing attribute and value that provide additional context for dynamic pricing. The pricing attribute values are used to get the charge’s list price from the product catalog. For the pricing attribute mapped to a Zuora object field, Zuora will retrieve the value automatically, you don’t need to pass its value explicitly. If you pass a value that doesn’t match the actual value of the Zuora object, an error will be returned.\nNote that for any pricing attribute mapped to the field of Zuora object Usage, because its value is only determined when the usage record arrives, you can’t provide a value via Orders API payload and Zuora will not retrieve its value automatically.   \n\n\n**Note:** To enable Dynamic Pricing, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"productCategory":{"type":"string","description":"The productCategory of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productClass":{"type":"string","description":"The productClass of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productFamily":{"type":"string","description":"The productFamily of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productLine":{"type":"string","description":"The productLine of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productRatePlanChargeId":{"type":"string","description":"Internal identifier of the product rate plan charge that the charge is based on.\n"},"productRatePlanChargeNumber":{"type":"string","description":"Number of a product rate-plan charge for this subscription.\n"},"prorationOption":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideProrationOption","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n"},"ratingPropertiesOverride":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideRatingPropertiesOverride","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"revRecCode":{"type":"string","maxLength":70,"description":"Revenue Recognition Code\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideRevRecTriggerCondition","description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n"},"revenueRecognitionRuleName":{"type":"string","description":"Specifies the revenue recognition rule, such as `Recognize upon invoicing` or `Recognize daily over time`.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n"},"rolloverApply":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period length of the rollover fund.\n"},"rolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"startDate":{"$ref":"#/components/schemas/CreateOrderTriggerParams"},"taxCode":{"type":"string","description":"The taxCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"taxMode":{"type":"string","description":"The taxMode of a standalone charge. \n\nValues:\n* `TaxExclusive`\n* `TaxInclusive`\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"unBilledReceivablesAccountingCode":{"type":"string","description":"The unBilledReceivablesAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.\n"},"upsellOriginChargeNumber":{"type":"string","description":"The identifier of the original upselling charge associated with the current charge.\n\nFor a termed subscription, you can now use the \"Create an order\" API operation to perform an Add Product order action to make a product quantity upsell for per unit recurring charges. The benefit is that the charge added by this approach will be automatically combined with the original existing charge for which you want to upsell when the subscription is renewed. The approach is as follows:\n* Use an Add Product order action to add a charge that is of the same charge type, charge model, and charge end date as the existing per unit recurring charge for which you want to make a quantity upsell.\n\n* In the preceding charge to add, use the `upsellOriginChargeNumber` field to specify the existing rate plan charge for which you want to make the quantity upsell.\n\nNote that a termed subscription with such upsell charges can not be changed to an evergreen subscription.   \n\n**Note**: The Quantity Upsell 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. If you want to join this early adopter program, submit a request at [Zuora Global\n  Support](https://support.zuora.com).  \n"},"validityPeriodType":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverrideValidityPeriodType","description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n"}},"required":["productRatePlanChargeId"],"description":"Charge associated with a rate plan.\n","title":"PreviewOrderChangePlanChargeOverride"},"PreviewOrderChangePlanRatePlanOverride":{"type":"object","properties":{"chargeOverrides":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderChangePlanChargeOverride"},"description":"List of charges associated with the rate plan.\n"},"clearingExistingFeatures":{"type":"boolean","description":"Specifies whether all features in the rate plan will be cleared.\n"},"customFields":{"$ref":"#/components/schemas/OrdersRatePlanObjectCustomFields"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.\n\n**Note:** If both `externalCatalogPlanId` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"subscriptionRatePlanNumber":{"type":"string","maxLength":50,"description":"Number of a subscription rate plan for this subscription.\n"},"isFromExternalCatalog":{"type":"boolean","description":"Indicates whether the rate plan is created from the Zuora product catalog or from an external product catalog.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productRatePlanId":{"type":"string","description":"Internal identifier of the product rate plan that the rate plan is based on.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanName":{"type":"string","description":"Name of the standalone rate plan.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"subscriptionProductFeatures":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderRatePlanFeatureOverride"},"description":"List of features associated with the rate plan.\nThe system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:\n* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.\n* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.\n"}},"description":"Information about the new product rate plan to add. \n","title":"PreviewOrderChangePlanRatePlanOverride"},"PreviewOrderCreateChangePlanSubType":{"type":"string","enum":["Upgrade","Downgrade","Crossgrade","PlanChanged"],"description":"Use this field to choose the sub type for your change plan order action.\n\nHowever, if you do not set this field, the field will be automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n","title":"PreviewOrderCreateChangePlanSubType"},"PreviewOrderCreateChangePlan":{"type":"object","properties":{"effectivePolicy":{"$ref":"#/components/schemas/PreviewOrderCreateChangePlanEffectivePolicy","description":"The default value for the `effectivePolicy` field is as follows:\n  * If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n  * If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n  * Otherwise, the effective policy is `SpecificDate` by default.\n\n**Notes**: \n  * When setting this field to `EffectiveEndOfBillingPeriod`, you cannot set the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/W_Subscription_and_Amendment_Dates#Billing_Trigger_Dates\" target=\"_blank\">billing trigger dates</a> for the subscription as the system will automatically set the trigger dates to the end of billing period, and you cannot set the following billing trigger date settings to `Yes`:\n    * <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Default_Subscription_and_Order_Settings#Require_Customer_Acceptance_of_Orders.3F\" target=\"_blank\">Require Customer Acceptance of Orders?</a>\n    * <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Default_Subscription_and_Order_Settings#Require_Service_Activation_of_Orders.3F\" target=\"_blank\">Require Service Activation of Orders?</a>\n  \n  * When setting this field to `SpecificDate`, you must also set the contract effective date in the `triggerDates` field as follows:\n    * Set the `name` field as `ContractEffective`\n    * Specify a date for the `triggerDate` field\n"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the rate plan to be removed. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to remove the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.\n\n**Note:** Please provide only one of `externalCatalogPlanId`, `ratePlanId` or `productRatePlanId`. If more than 1 field is provided then the request would fail.\n"},"newProductRatePlan":{"$ref":"#/components/schemas/PreviewOrderChangePlanRatePlanOverride"},"productRatePlanId":{"type":"string","description":"ID of the product rate plan that the removed rate plan is based on.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanId":{"type":"string","description":"ID of the rate plan to remove. This can be the latest version or any history version of ID. Note that the removal of a rate plan through the Change Plan order action supports the function of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/Order_actions_tutorials/E2_Remove_rate_plan_on_subscription_before_future-dated_removals\" target=\"_blank\">removal before future-dated removals</a>, as in a Remove Product order action.\n"},"resetBcd":{"type":"boolean","default":false,"description":"If resetBcd is true then reset the Account BCD to the effective date; if it is false keep the original BCD.\n\n**Note**: If the rate plan change is an upgrade (the `subType` field is `Upgrade`), then the effective policy is `EffectiveImmediately` by default. In this case, if you do not specify the `resetBcd` field, the system sets this field to `true` while BCD is the effective date.\n"},"subType":{"$ref":"#/components/schemas/PreviewOrderCreateChangePlanSubType","description":"Use this field to choose the sub type for your change plan order action.\n\nHowever, if you do not set this field, the field will be automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a rate plan for this subscription.\n"}},"required":["newProductRatePlan"],"description":"Information about an order action of type `ChangePlan`. \n\nUse the change plan type of order action to replace the existing rate plans in a subscription with other rate plans.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n\nIf you want to create a pending order through the \"change plan\" order action, and if the charge's trigger condition is `Specific Date`, you must set a charge number in the `chargeNumber` field for the \"change plan\" order action. In this case, if you do not set it, Zuora will not generate the charge number for you.\n\nSee more information about pending orders in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/Pending_orders_and_subscriptions\" target=\"_blank\">Pending orders and subscriptions</a>.\n","title":"PreviewOrderCreateChangePlan"},"BillToContactPostOrderOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"Specifies the type of phone number in the `otherPhone` field.\n","title":"BillToContactPostOrderOtherPhoneType"},"BillToContactPostOrder":{"type":"object","properties":{"address1":{"type":"string","maxLength":255,"description":"First line of the contact's address. This is often a street address or a business name.\n"},"address2":{"type":"string","maxLength":255,"description":"Second line of the contact's address.\n"},"city":{"type":"string","maxLength":100,"description":"City of the contact's address.\n"},"contactDescription":{"type":"string","maxLength":100,"description":"A description for the contact.\n"},"country":{"type":"string","maxLength":64,"description":"Country; must be a valid country name or abbreviation. If using Zuora Tax, you must specify a country in the bill-to contact to calculate tax.\n"},"county":{"type":"string","maxLength":100,"description":"County of the contact's address.\n"},"fax":{"type":"string","maxLength":40,"description":"Fax number of the contact.\n"},"firstName":{"type":"string","maxLength":100,"description":"First name of the contact.\n"},"homePhone":{"type":"string","maxLength":40,"description":"Home phone number of the contact.\n"},"lastName":{"type":"string","maxLength":100,"description":"Last name of the contact.\n"},"mobilePhone":{"type":"string","maxLength":40,"description":"Mobile phone number of the contact.\n"},"nickname":{"type":"string","maxLength":100,"description":"Nickname of the contact.\n"},"otherPhone":{"type":"string","maxLength":40,"description":"Additional phone number of the contact. Use the `otherPhoneType` field to specify the type of phone number.\n"},"otherPhoneType":{"$ref":"#/components/schemas/BillToContactPostOrderOtherPhoneType","description":"Specifies the type of phone number in the `otherPhone` field.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address of the contact.\n"},"postalCode":{"type":"string","maxLength":20,"description":"ZIP code or other postal code of the contact's address.\n"},"state":{"type":"string","maxLength":100,"description":"State or province of the contact's address.\n"},"taxRegion":{"type":["string","null"],"maxLength":100,"description":"Region defined in your taxation rules. Only applicable if you use Zuora Tax.\n"},"workEmail":{"type":"string","format":"email","maxLength":80,"description":"Business email address of the contact.\n"},"workPhone":{"type":"string","maxLength":40,"description":"Business phone number of the contact.\n"}},"required":["firstName","lastName"],"description":"Container for custom fields of a Contact object.\n","title":"BillToContactPostOrder"},"AccountCreditCardHolder":{"type":"object","properties":{"addressLine1":{"type":"string","maxLength":255,"description":"First line of the cardholder's address.\n"},"addressLine2":{"type":"string","maxLength":255,"description":"Second line of the cardholder's address.\n"},"cardHolderName":{"type":"string","maxLength":50,"description":"Full name of the cardholder as it appears on the card. For example, \"John J Smith\", 50 characters or less. The value must consist only of US-ASCII characters and must not  include special characters."},"city":{"type":"string","maxLength":40,"description":"City of the cardholder's address.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"country":{"type":"string","maxLength":64,"description":"Country of the cardholder's address. The value of this field must be a valid country name or abbreviation.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"email":{"type":"string","maxLength":80,"description":"Email address of the cardholder.\n"},"phone":{"type":"string","maxLength":40,"description":"Phone number of the cardholder.\n"},"state":{"type":"string","maxLength":50,"description":"State or province of the cardholder's address.\n"},"zipCode":{"type":"string","maxLength":20,"description":"ZIP code or other postal code of the cardholder's address.\n"}},"description":"Information about the cardholder of a credit card payment method associated with an account. If you do not provide information about the cardholder, Zuora uses the account's bill-to contact.\n","title":"AccountCreditCardHolder"},"CreditCardCardType":{"type":"string","enum":["Visa","MasterCard","AmericanExpress","Discover","JCB","Diners","CUP","Maestro","Electron","AppleVisa","AppleMasterCard","AppleAmericanExpress","AppleDiscover","AppleJCB","Elo","Hipercard","Naranja","Nativa","TarjetaShopping","Cencosud","Argencard","Cabal"],"description":"Type of card.\n","title":"CreditCardCardType"},"creditCard":{"type":"object","properties":{"cardHolderInfo":{"$ref":"#/components/schemas/AccountCreditCardHolder"},"cardNumber":{"type":"string","description":"Card number. Once set, you cannot update or query the value of this field. The value of this field is only available in masked format. For example, XXXX-XXXX-XXXX-1234 (hyphens must not be used when you set the credit card number).\n"},"cardType":{"$ref":"#/components/schemas/CreditCardCardType","description":"Type of card.\n"},"expirationMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Expiration date of the card.\n"},"expirationYear":{"type":"integer","minimum":1980,"maximum":2500,"description":"Expiration year of the card.\n"},"securityCode":{"type":"string","description":"CVV or CVV2 security code of the card. To ensure PCI compliance, Zuora does not store the value of this field.\n"}},"description":"Default payment method associated with an account. Only credit card payment methods are supported.\n","title":"creditCard"},"SoldToContactPostOrderOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"Specifies the type of phone number in the `otherPhone` field.\n","title":"SoldToContactPostOrderOtherPhoneType"},"SoldToContactPostOrder":{"type":"object","properties":{"address1":{"type":"string","maxLength":255,"description":"First line of the contact's address. This is often a street address or a business name.\n"},"address2":{"type":"string","maxLength":255,"description":"Second line of the contact's address.\n"},"city":{"type":"string","maxLength":100,"description":"City of the contact's address.\n"},"contactDescription":{"type":"string","maxLength":100,"description":"A description for the contact.          \n"},"country":{"type":"string","maxLength":64,"description":"Country; must be a valid country name or abbreviation. If using Zuora Tax, you must specify a country in the sold-to contact to calculate tax. A bill-to contact may be used if no sold-to contact is provided.\n"},"county":{"type":"string","maxLength":100,"description":"County of the contact's address.\n"},"fax":{"type":"string","maxLength":40,"description":"Fax number of the contact.\n"},"firstName":{"type":"string","maxLength":100,"description":"First name of the contact.\n"},"homePhone":{"type":"string","maxLength":40,"description":"Home phone number of the contact.\n"},"lastName":{"type":"string","maxLength":100,"description":"Last name of the contact.\n"},"mobilePhone":{"type":"string","maxLength":40,"description":"Mobile phone number of the contact.\n"},"nickname":{"type":"string","maxLength":100,"description":"Nickname of the contact.\n"},"otherPhone":{"type":"string","maxLength":40,"description":"Additional phone number of the contact. Use the `otherPhoneType` field to specify the type of phone number.\n"},"otherPhoneType":{"$ref":"#/components/schemas/SoldToContactPostOrderOtherPhoneType","description":"Specifies the type of phone number in the `otherPhone` field.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address of the contact.\n"},"postalCode":{"type":"string","maxLength":20,"description":"ZIP code or other postal code of the contact's address.\n"},"state":{"type":"string","maxLength":100,"description":"State or province of the contact's address.\n"},"taxRegion":{"type":["string","null"],"maxLength":100,"description":"Region defined in your taxation rules. Only applicable if you use Zuora Tax.\n"},"workEmail":{"type":"string","format":"email","maxLength":80,"description":"Business email address of the contact.\n"},"workPhone":{"type":"string","maxLength":40,"description":"Business phone number of the contact.\n"}},"required":["firstName","lastName"],"description":"Container for custom fields of a Contact object.\n","title":"SoldToContactPostOrder"},"PreviewOrderCreateSubscriptionNewSubscriptionOwnerAccount":{"type":"object","properties":{"accountNumber":{"type":"string","maxLength":70,"description":"Account number. For example, A00000001.\n"},"additionalEmailAddresses":{"type":"string","maxLength":1200,"description":"List of additional email addresses to receive emailed invoices. Values should be a comma-separated list of email addresses.\n"},"allowInvoiceEdit":{"type":"boolean","description":"Indicates if associated invoices can be edited.\nValues are: \n\n* `true`\n* `false` (default)\n"},"autoPay":{"type":"boolean","description":"Specifies whether future payments are automatically billed when they are due.\n"},"batch":{"type":"string","description":"Name of the billing batch that the account belongs to. For example, Batch1.\n"},"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that the account prefers billing periods to begin on. If set to 0, the bill cycle day will be set as \"AutoSet\".\n"},"billToContact":{"$ref":"#/components/schemas/BillToContactPostOrder"},"communicationProfileId":{"type":"string","description":"Internal identifier of the communication profile that Zuora uses when sending notifications to the account's contacts.\n"},"creditCard":{"$ref":"#/components/schemas/creditCard"},"creditMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.\n"},"crmId":{"type":"string","maxLength":100,"description":"External identifier of the account in a CRM system.\n"},"currency":{"type":"string","description":"ISO 3-letter currency code (uppercase). For example, USD.\n"},"customFields":{"$ref":"#/components/schemas/AccountObjectCustomFields"},"customerServiceRepName":{"type":"string","maxLength":50,"description":"Name of the account's customer service representative, if applicable.\n"},"debitMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.\n"},"hpmCreditCardPaymentMethodId":{"type":"string","description":"The ID of the payment method associated with this account. The payment method specified for this field will be set as the default payment method of the account.\n\nIf the `autoPay` field is set to `true`, you must provide the credit card payment method ID for either this field or the `creditCard` field,\nbut not both.\n\nFor a specified credit card payment method, it is recommended that [the support for stored credential transactions](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Stored_credential_transactions) for this payment method is already enabled.\n"},"invoiceDeliveryPrefsEmail":{"type":"boolean","description":"Specifies whether to turn on the invoice delivery method 'Email' for the new account. \nValues are: \n\n* `true` (default). Turn on the invoice delivery method 'Email' for the new account.\n* `false`. Turn off the invoice delivery method 'Email' for the new account.         \n"},"invoiceDeliveryPrefsPrint":{"type":"boolean","description":"Specifies whether to turn on the invoice delivery method 'Print' for the new account.\nValues are: \n\n* `true`. Turn on the invoice delivery method 'Print' for the new account.\n* `false` (default). Turn off the invoice delivery method 'Print' for the new account.\n"},"invoiceTemplateId":{"type":"string","description":"Internal identifier of the invoice template that Zuora uses when generating invoices for the account.\n"},"name":{"type":"string","maxLength":255,"description":"Account name.\n"},"notes":{"type":"string","maxLength":65535,"description":"Notes about the account. These notes are only visible to Zuora users.\n"},"parentId":{"type":"string","description":"Identifier of the parent customer account for this Account object. Use this field if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\" target=\"_blank\">Customer Hierarchy</a> enabled."},"paymentGateway":{"type":"string","maxLength":40,"description":"The payment gateway that Zuora uses when processing electronic payments and refunds for the account. If you do not specify this field or if the value of this field is null, Zuora uses your default payment gateway.\n"},"paymentMethod":{"$ref":"#/components/schemas/POSTPaymentMethodRequest"},"paymentTerm":{"type":"string","description":"Name of the payment term associated with the account. For example, \"Net 30\". The payment term determines the due dates of invoices.\n"},"purchaseOrderNumber":{"type":"string","maxLength":100,"description":"The number of the purchase order associated with this account. Purchase order information generally comes from customers.\n"},"salesRep":{"type":"string","maxLength":50,"description":"The name of the sales representative associated with this account, if applicable.\n"},"soldToContact":{"$ref":"#/components/schemas/SoldToContactPostOrder"},"taxInfo":{"$ref":"#/components/schemas/TaxInfo"}},"required":["billCycleDay","billToContact","currency","name"],"description":"Information about a new account that will own the subscription. Only available if you have enabled the Owner Transfer feature.\n\n**Note:** The Owner Transfer feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n\nIf you do not set this field or the `subscriptionOwnerAccountNumber` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `subscriptionOwnerAccountNumber` field.\n","title":"PreviewOrderCreateSubscriptionNewSubscriptionOwnerAccount"},"PreviewOrderCreateSubscriptionTermsInitialTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Unit of time that the first term is measured in. Only applicable if the value of the `termType` field is `TERMED`.\n","title":"PreviewOrderCreateSubscriptionTermsInitialTermPeriodType"},"PreviewOrderCreateSubscriptionTermsInitialTermTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"Type of the first term. If the value of this field is `TERMED`, the first term has a predefined duration based on the value of the `period` field. If the value of this field is `EVERGREEN`, the first term does not have a predefined duration.\n","title":"PreviewOrderCreateSubscriptionTermsInitialTermTermType"},"PreviewOrderCreateSubscriptionTermsInitialTerm":{"type":"object","properties":{"period":{"type":"integer","description":"Duration of the first term in months, years, days, or weeks, depending on the value of the `periodType` field. Only applicable if the value of the `termType` field is `TERMED`.\n"},"periodType":{"$ref":"#/components/schemas/PreviewOrderCreateSubscriptionTermsInitialTermPeriodType","description":"Unit of time that the first term is measured in. Only applicable if the value of the `termType` field is `TERMED`.\n"},"startDate":{"type":"string","format":"date","description":"Start date of the first term, in YYYY-MM-DD format.\n"},"endDate":{"type":"string","format":"date","description":"End date of the first term, in YYYY-MM-DD format.\n"},"termType":{"$ref":"#/components/schemas/PreviewOrderCreateSubscriptionTermsInitialTermTermType","description":"Type of the first term. If the value of this field is `TERMED`, the first term has a predefined duration based on the value of the `period` field. If the value of this field is `EVERGREEN`, the first term does not have a predefined duration.\n"}},"required":["termType"],"description":"Information about the first term of the subscription.\n","title":"PreviewOrderCreateSubscriptionTermsInitialTerm"},"PreviewOrderCreateSubscriptionTermsRenewalSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"description":"Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.\n\n* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.\n* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.\n","title":"PreviewOrderCreateSubscriptionTermsRenewalSetting"},"RenewalTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Unit of time that the renewal term is measured in.\n","title":"RenewalTermPeriodType"},"RenewalTerm":{"type":"object","properties":{"period":{"type":"integer","description":"Duration of the renewal term in months, years, days, or weeks, depending on the value of the `periodType` field.\n"},"periodType":{"$ref":"#/components/schemas/RenewalTermPeriodType","description":"Unit of time that the renewal term is measured in.\n"}},"title":"RenewalTerm"},"PreviewOrderCreateSubscriptionTerms":{"type":"object","properties":{"autoRenew":{"type":"boolean","description":"Specifies whether the subscription automatically renews at the end of the each term. Only applicable if the type of the first term is `TERMED`.\n"},"initialTerm":{"$ref":"#/components/schemas/PreviewOrderCreateSubscriptionTermsInitialTerm","description":"Information about the first term of the subscription.\n"},"renewalSetting":{"$ref":"#/components/schemas/PreviewOrderCreateSubscriptionTermsRenewalSetting","description":"Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.\n\n* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.\n* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.\n"},"renewalTerms":{"type":"array","items":{"$ref":"#/components/schemas/RenewalTerm"},"description":"List of renewal terms of the subscription. Only applicable if the type of the first term is `TERMED` and the value of the `renewalSetting` field is `RENEW_WITH_SPECIFIC_TERM`.\n"}},"required":["initialTerm"],"description":"Container for the terms and renewal settings of the subscription.\n","title":"PreviewOrderCreateSubscriptionTerms"},"PreviewOrderCreateSubscription":{"type":"object","properties":{"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"currency":{"type":"string","maxLength":3,"description":"The code of currency that is used for this subscription. If the currency is not selected, the default currency from the account will be used.\n\nAll subscriptions in the same order must use the same currency. The currency for a subscription cannot be changed.\n\n**Note**: \n  This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the subscription.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceSeparately":{"type":"boolean","description":"Specifies whether the subscription appears on a separate invoice when Zuora generates invoices.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"newSubscriptionOwnerAccount":{"$ref":"#/components/schemas/PreviewOrderCreateSubscriptionNewSubscriptionOwnerAccount","description":"Information about a new account that will own the subscription. Only available if you have enabled the Owner Transfer feature.\n\n**Note:** The Owner Transfer feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n\nIf you do not set this field or the `subscriptionOwnerAccountNumber` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `subscriptionOwnerAccountNumber` field.\n"},"notes":{"type":"string","maxLength":500,"description":"Notes about the subscription. These notes are only visible to Zuora users.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For example, `Net 30`. The payment term determines the due dates of invoices.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the subscription. It must be a contact of the subscription owner.\n\n\n**Note**:\n  To access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"subscribeToRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderRatePlanOverride"},"description":"List of rate plans associated with the subscription.\n"},"subscriptionNumber":{"type":"string","maxLength":100,"description":"Subscription number of the subscription. For example, A-S00000001.\n\nIf you do not set this field, Zuora will generate the subscription number.\n"},"subscriptionOwnerAccountNumber":{"type":"string","maxLength":70,"description":"Account number of an existing account that will own the subscription. For example, A00000001.\n\nIf you do not set this field or the `newSubscriptionOwnerAccount` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `newSubscriptionOwnerAccount` field.\n"},"invoiceOwnerAccountNumber":{"type":"string","maxLength":70,"description":"Account number of an existing account that will own the invoice. For example, A00000001. If you do not set this field, the account that owns the order will also own this invoice.\n"},"terms":{"$ref":"#/components/schemas/PreviewOrderCreateSubscriptionTerms","description":"Container for the terms and renewal settings of the subscription.\n"}},"description":"Information about an order action of type `CreateSubscription`.\n","title":"PreviewOrderCreateSubscription"},"OrderActionObjectCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of an Order Action object.\n","title":"OrderActionObjectCustomFields"},"OwnerTransferPaymentProfile":{"type":"object","properties":{"paymentGatewayId":{"type":"string","description":"The ID of the gateway instance that processes the payment.\n\nThis field remains unset, if you do not provide value.\n"},"paymentMethodId":{"type":"string","description":"The ID of the payment method.\n\nThis field remains unset, if you do not provide value.\n"}},"description":"Container for payment gateway and payment method details of a payment. If you do not set this field, the payment method and payment gateway values cannot be set in the subscription.\n\n**Note:**\n  - If multiple order actions are specified, they will be applied in the same order they appear in the API payload.\n  - If one or more of these order actions include the `paymentProfile` element, the changes will be applied in sequence, and the result will be consistent with the last `paymentProfile` element.\n","title":"OwnerTransferPaymentProfile"},"OwnerTransfer":{"type":"object","properties":{"billToContactId":{"type":"string","description":"The contact id of the bill to contact that the subscription is being transferred to.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"clearingExistingBillToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing bill-to contact ID at the subscription level. This field is mutually exclusive with the `billToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingInvoiceGroupNumber":{"type":"boolean","default":false,"description":"Whether to clear the existing invoice group number at the subscription level. This field is mutually exclusive with the `invoiceGroupNumber` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingInvoiceTemplate":{"type":"boolean","default":false,"description":"Whether to clear the existing invoice template ID at the subscription level. This field is mutually exclusive with the `invoiceTemplateId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingPaymentTerm":{"type":"boolean","default":false,"description":"Whether to clear the existing payment term at the subscription level. This field is mutually exclusive with the `paymentTerm` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingSequenceSet":{"type":"boolean","default":false,"description":"Whether to clear the existing sequence set ID at the subscription level. This field is mutually exclusive with the `sequenceSetId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingShipToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing ship-to contact ID at the subscription level. This field is mutually exclusive with the `shipToContactId` field.\n\n**Note:** \n   To access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"clearingExistingSoldToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing sold-to contact ID at the subscription level. This field is mutually exclusive with the `soldToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"destinationAccountNumber":{"type":"string","description":"The account number of the account that the subscription is being transferred to.\n"},"destinationInvoiceAccountNumber":{"type":"string","description":"The account number of the invoice owner account that the subscription is being transferred to.\n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the subscription.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"paymentProfile":{"$ref":"#/components/schemas/OwnerTransferPaymentProfile","description":"Container for payment gateway and payment method details of a payment. If you do not set this field, the payment method and payment gateway values cannot be set in the subscription.\n\n**Note:**\n  - If multiple order actions are specified, they will be applied in the same order they appear in the API payload.\n  - If one or more of these order actions include the `paymentProfile` element, the changes will be applied in sequence, and the result will be consistent with the last `paymentProfile` element.\n"},"paymentTerm":{"type":"string","description":"Name of the payment term associated with the account. For example, \"Net 30\". The payment term determines the due dates of invoices.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the subscription.\n\n**Note**:\n  To access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"}},"description":"Information about an order action of type `OwnerTransfer`.\n\n**Note:** The Owner Transfer feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n","title":"OwnerTransfer"},"RemoveProductCustomFields":{"type":"object","properties":{},"description":"Custom fields of the Rate Plan object. The name of each custom field has\nthe form <code>*customField*__c</code>. Custom field names are case\nsensitive. See [Manage Custom\nFields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields)\nfor more information.\n","title":"RemoveProductCustomFields"},"OrderActionRatePlanChargeRemoveCustomFields":{"type":"object","properties":{},"description":"Custom fields of the Rate Plan Charge object. The name of each custom field has the form <code>*customField*__c</code>. Custom field names are case sensitive. See [Manage Custom Fields](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Manage_Custom_Fields) for more information.\n","title":"OrderActionRatePlanChargeRemoveCustomFields"},"OrderActionRatePlanChargeRemove":{"type":"object","properties":{"chargeNumber":{"type":"string","description":"Read only. Identifies the charge to be updated.\n"},"productRatePlanChargeId":{"type":"string","description":"Identifier of the rate plan that was updated.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"uniqueToken":{"type":"string","description":"A unique string to represent the rate plan charge in the order. The unique token is used to perform multiple actions against a newly added rate plan. For example, if you want to add and update a product in the same order, you would assign a unique token to the product rate plan when added and use that token in future order actions.\n"},"customFields":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/OrderActionRatePlanChargeRemoveCustomFields"},"description":"Container for custom fields of a Rate Plan Charge object.\n"}},"description":"The JSON object containing the information for a charge update(custom fields only) in the\n'RemoveProduct' type order action.\nA custom field of rate plan charge can be updated from a subscription through one\norder action.\n- If you update customFields of a charge while removing a rate plan, specify the following fields:\n  - `chargeNumber`\n  - `productRatePlanChargeId`\n  - `productRatePlanNumber`\n  - `uniqueToken`\n  - `customFields`\n","title":"OrderActionRatePlanChargeRemove"},"RemoveProduct":{"type":"object","properties":{"externalCatalogPlanId":{"type":"string","description":"An external ID of the rate plan to be removed. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to remove the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.\n\n**Note:** If both `externalCatalogPlanId` and `ratePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanId":{"type":"string","description":"ID of the rate plan to remove. This can be the latest version or any history version of ID.\n"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a rate plan for this subscription.\n"},"uniqueToken":{"type":"string","description":"Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora."},"customFields":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RemoveProductCustomFields"},"description":"Container for custom fields of a Rate Plan object.\n"},"chargeUpdates":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeRemove"}}},"description":"Information about an order action of type `RemoveProduct`.\n","title":"RemoveProduct"},"RenewSubscription":{"type":"object","properties":{"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"clearingExistingBillToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing bill-to contact ID at the subscription level. This field is mutually exclusive with the `billToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingInvoiceGroupNumber":{"type":"boolean","default":false,"description":"Whether to clear the existing invoice group number at the subscription level. This field is mutually exclusive with the `invoiceGroupNumber` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingInvoiceTemplate":{"type":"boolean","default":false,"description":"Whether to clear the existing invoice template ID at the subscription level. This field is mutually exclusive with the `invoiceTemplateId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingPaymentTerm":{"type":"boolean","default":false,"description":"Whether to clear the existing payment term at the subscription level. This field is mutually exclusive with the `paymentTerm` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingSequenceSet":{"type":"boolean","default":false,"description":"Whether to clear the existing sequence set ID at the subscription level. This field is mutually exclusive with the `sequenceSetId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingShipToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing ship-to contact ID at the subscription level. This field is mutually exclusive with the `shipToContactId` field.\n\n**Note:** \n   To access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"clearingExistingSoldToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing sold-to contact ID at the subscription level. This field is mutually exclusive with the `soldToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the subscription.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceTemplateId":{"type":["string","null"],"description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For example, `Net 30`. The payment term determines the due dates of invoices.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body..\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n  \n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the subscription.\n\n**Note:**\n   To access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"}},"description":"Information about an order action of type `RenewSubscription`.\n","title":"RenewSubscription"},"CreateOrderResumeResumePeriodsType":{"type":"string","enum":["Day","Week","Month","Year"],"description":"This field is applicable only when the `resumePolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`. It must be used together with the `resumePeriods` field.\n\nThe period type used to specify when a subscription resumption takes effect. The subscription suspension will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n","title":"CreateOrderResumeResumePeriodsType"},"CreateOrderResumeResumePolicy":{"type":"string","enum":["Today","FixedPeriodsFromSuspendDate","FixedPeriodsFromToday","SpecificDate","SuspendDate"],"description":"Resume methods. Specify a way to resume a subscription. See [Resume Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Resume_a_Subscription#Resume_Date) for more information.\n\nIf `SuspendDate` is specfied, the resumption will take place on the same day as the suspension. \n","title":"CreateOrderResumeResumePolicy"},"CreateOrderResume":{"type":"object","properties":{"extendsTerm":{"type":"boolean","description":"Specifies whether to extend the subscription term by the length of time the suspension is in effect.\n"},"resumePeriods":{"type":"integer","description":"This field is applicable only when the `resumePolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`. It must be used together with the `resumePeriodsType` field. \n\nThe total number of the periods used to specify when a subscription resumption takes effect. The subscription resumption will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n"},"resumePeriodsType":{"$ref":"#/components/schemas/CreateOrderResumeResumePeriodsType","description":"This field is applicable only when the `resumePolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`. It must be used together with the `resumePeriods` field.\n\nThe period type used to specify when a subscription resumption takes effect. The subscription suspension will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n"},"resumePolicy":{"$ref":"#/components/schemas/CreateOrderResumeResumePolicy","description":"Resume methods. Specify a way to resume a subscription. See [Resume Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Resume_a_Subscription#Resume_Date) for more information.\n\nIf `SuspendDate` is specfied, the resumption will take place on the same day as the suspension. \n"},"resumeSpecificDate":{"type":"string","format":"date","description":"This field is applicable only when the `resumePolicy` field is set to `SpecificDate`.\n\nA specific date when the subscription resumption takes effect, in YYYY-MM-DD format. The value should not be earlier than the subscription suspension date.\n"}},"required":["resumePolicy"],"description":"Information about an order action of type `Resume`.\n","title":"CreateOrderResume"},"CreateOrderSuspendSuspendPeriodsType":{"type":"string","enum":["Day","Week","Month","Year"],"description":"This field is applicable only when the `suspendPolicy` field is set to `FixedPeriodsFromToday`. It must be used together with the `suspendPeriods` field.\n\nThe period type used to specify when a subscription suspension takes effect. The subscription suspension will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n","title":"CreateOrderSuspendSuspendPeriodsType"},"CreateOrderSuspendSuspendPolicy":{"type":"string","enum":["Today","EndOfLastInvoicePeriod","FixedPeriodsFromToday","SpecificDate"],"description":"Suspend methods. Specify a way to suspend a subscription. See [Suspend Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Suspend_a_Subscription#Suspend_Date) for more information.\n","title":"CreateOrderSuspendSuspendPolicy"},"CreateOrderSuspend":{"type":"object","properties":{"suspendPeriods":{"type":"integer","description":"This field is applicable only when the `suspendPolicy` field is set to `FixedPeriodsFromToday`. It must be used together with the `suspendPeriodsType` field. \n\nThe total number of the periods used to specify when a subscription suspension takes effect. The subscription suspension will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n"},"suspendPeriodsType":{"$ref":"#/components/schemas/CreateOrderSuspendSuspendPeriodsType","description":"This field is applicable only when the `suspendPolicy` field is set to `FixedPeriodsFromToday`. It must be used together with the `suspendPeriods` field.\n\nThe period type used to specify when a subscription suspension takes effect. The subscription suspension will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n"},"suspendPolicy":{"$ref":"#/components/schemas/CreateOrderSuspendSuspendPolicy","description":"Suspend methods. Specify a way to suspend a subscription. See [Suspend Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Suspend_a_Subscription#Suspend_Date) for more information.\n"},"suspendSpecificDate":{"type":"string","format":"date","description":"This field is applicable only when the `suspendPolicy` field is set to `SpecificDate`.\n\nA specific date when the subscription suspension takes effect, in YYYY-MM-DD format. The value should not be earlier than the subscription's contract effective date or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) than the subscription's term end date.\n"}},"required":["suspendPolicy"],"description":"Information about an order action of type `Suspend`.\n","title":"CreateOrderSuspend"},"LastTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Specify only when the termType is 'TERMED'.","title":"LastTermPeriodType"},"LastTermTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"title":"LastTermTermType"},"LastTerm":{"type":"object","properties":{"period":{"type":"integer","minimum":0,"description":"Specify only when the termType is 'TERMED'."},"periodType":{"$ref":"#/components/schemas/LastTermPeriodType","description":"Specify only when the termType is 'TERMED'."},"startDate":{"type":"string","format":"date","description":"The start date of the current term. You can change the term start date of a renewed subscription through a T&Cs order action. However, when changing it to an earlier date, this date must not be earlier than the term start date of the current term before this T&Cs.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the current term, in YYYY-MM-DD format.\n"},"termType":{"$ref":"#/components/schemas/LastTermTermType"}},"required":["termType"],"description":"The length of the period for the current subscription term.","title":"LastTerm"},"CreateOrderTermsAndConditionsPaymentProfile":{"type":"object","properties":{"paymentGatewayId":{"type":"string","description":"The ID of the gateway instance that processes the payment.\n\nThis field remains unset, if you do not provide value.\n"},"paymentMethodId":{"type":"string","description":"The ID of the payment method.\n\nThis field remains unset, if you do not provide value.\n"}},"description":"Container for payment gateway and payment method details of a payment. If you do not set this field, the payment method and payment gateway values cannot be set in the subscription.\n\n**Note:**\n  - If multiple order actions are specified, they will be applied in the same order they appear in the API payload.\n  - If one or more of these order actions include the `paymentProfile` element, the changes will be applied in sequence, and the result will be consistent with the last `paymentProfile` element.\n","title":"CreateOrderTermsAndConditionsPaymentProfile"},"CreateOrderTermsAndConditionsRenewalSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"title":"CreateOrderTermsAndConditionsRenewalSetting"},"CreateOrderTermsAndConditions":{"type":"object","properties":{"autoRenew":{"type":"boolean"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"clearingExistingBillToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing bill-to contact ID at the subscription level. This field is mutually exclusive with the `billToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingInvoiceGroupNumber":{"type":"boolean","default":false,"description":"Whether to clear the existing invoice group number at the subscription level. This field is mutually exclusive with the `invoiceGroupNumber` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingInvoiceTemplate":{"type":"boolean","default":false,"description":"Whether to clear the existing invoice template ID at the subscription level. This field is mutually exclusive with the `invoiceTemplateId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingPaymentTerm":{"type":"boolean","default":false,"description":"Whether to clear the existing payment term at the subscription level. This field is mutually exclusive with the `paymentTerm` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingSequenceSet":{"type":"boolean","default":false,"description":"Whether to clear the existing sequence set ID at the subscription level. This field is mutually exclusive with the `sequenceSetId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingShipToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing ship-to contact ID at the subscription level. This field is mutually exclusive with the `shipToContactId` field.\n\n**Note**:\n  To access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"clearingExistingSoldToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing sold-to contact ID at the subscription level. This field is mutually exclusive with the `soldToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"communicationProfileId":{"type":"string","description":"The ID of the communication profile associated with the subscription.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\n    feature turned on. The value is `null` in the response body without this feature turned on.\n"},"clearingExistingCommunicationProfile":{"type":"boolean","default":false,"description":"Whether to clear the existing communication profile at the subscription\nlevel. This field is mutually exclusive with the `communicationProfileId` field.\n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the subscription.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceSeparately":{"type":"boolean","description":"Specifies whether the subscription appears on a separate invoice while generating invoices."},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"lastTerm":{"$ref":"#/components/schemas/LastTerm"},"paymentProfile":{"$ref":"#/components/schemas/CreateOrderTermsAndConditionsPaymentProfile","description":"Container for payment gateway and payment method details of a payment. If you do not set this field, the payment method and payment gateway values cannot be set in the subscription.\n\n**Note:**\n  - If multiple order actions are specified, they will be applied in the same order they appear in the API payload.\n  - If one or more of these order actions include the `paymentProfile` element, the changes will be applied in sequence, and the result will be consistent with the last `paymentProfile` element.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For example, `Net 30`. The payment term determines the due dates of invoices.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"renewalSetting":{"$ref":"#/components/schemas/CreateOrderTermsAndConditionsRenewalSetting"},"renewalTerms":{"type":"array","items":{"$ref":"#/components/schemas/RenewalTerm"}},"scheduledCancelDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be canceled. The subscription is not canceled until the date specified in this field.\n"},"scheduledSuspendDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be suspended. The subscription is not suspended until the date specified in this field. \n"},"scheduledResumeDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be resumed. The subscription is not resumed until the date specified in this field. \n"},"clearingScheduledCancelDate":{"type":"boolean","default":false,"description":"Whether to clear the value of the `scheduledCancelDate` field. \n\n**Note**: Do not set this field and the `scheduledCancelDate` field simultaneously. \n"},"clearingScheduledSuspendDate":{"type":"boolean","default":false,"description":"Whether to clear the value of the `scheduledSuspendDate` field. \n\n**Note**: Do not set this field and the `scheduledSuspendDate` field simultaneously. \n"},"clearingScheduledResumeDate":{"type":"boolean","default":false,"description":"Whether to clear the value of the `scheduledResumeDate` field.\n\n**Note**: Do not set this field and the `scheduledResumeDate` field simultaneously. \n"},"sequenceSetId":{"type":"string","description":"The ID of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the subscription.\n\n**Note**:\n  To access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"}},"description":"Information about an order action of type `TermsAndConditions`.\n","title":"CreateOrderTermsAndConditions"},"TriggerDateName":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance"],"description":"Name of the trigger date of the order action.\n","title":"TriggerDateName"},"TriggerDate":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/TriggerDateName","description":"Name of the trigger date of the order action.\n"},"triggerDate":{"type":"string","format":"date","description":"Trigger date in YYYY-MM-DD format.\n"}},"title":"TriggerDate"},"PreviewOrderOrderActionType":{"type":"string","enum":["CreateSubscription","TermsAndConditions","AddProduct","UpdateProduct","RemoveProduct","RenewSubscription","CancelSubscription","OwnerTransfer","Suspend","Resume","ChangePlan"],"description":"Type of order action.\n\nUnless the type of order action is `RenewSubscription`, you must use the corresponding field to provide information about the order action. For example, if the type of order action is `AddProduct`, you must set the `addProduct` field.\n\nZuora returns an error if you set a field that corresponds to a different type of order action. For example, if the type of order action is `AddProduct`, Zuora returns an error if you set the `updateProduct` field.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n","title":"PreviewOrderOrderActionType"},"BillingUpdateBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart"],"description":"**Note**: This field is not supported in one time charges.\n","title":"BillingUpdateBillingPeriodAlignment"},"BillingUpdate":{"type":"object","properties":{"billingPeriodAlignment":{"$ref":"#/components/schemas/BillingUpdateBillingPeriodAlignment","description":"**Note**: This field is not supported in one time charges.\n"}},"title":"BillingUpdate"},"DiscountPricingUpdateApplyDiscountTo":{"type":"string","enum":["ONETIME","RECURRING","USAGE","ONETIMERECURRING","ONETIMEUSAGE","RECURRINGUSAGE","ONETIMERECURRINGUSAGE"],"description":"Specifies which type of charge the discount charge applies to.\n","title":"DiscountPricingUpdateApplyDiscountTo"},"DiscountPricingUpdateDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"DiscountPricingUpdateDiscountLevel"},"DiscountPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n","title":"DiscountPricingUpdatePriceChangeOption"},"DiscountPricingUpdate":{"type":"object","properties":{"applyDiscountTo":{"$ref":"#/components/schemas/DiscountPricingUpdateApplyDiscountTo","description":"Specifies which type of charge the discount charge applies to.\n"},"discountLevel":{"$ref":"#/components/schemas/DiscountPricingUpdateDiscountLevel","description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"discountPercentage":{"type":"number","format":"double","description":"The amount of the discount as a percentage. This field is only used for percentage discounts.\n"},"originalListDiscountPercentage":{"type":"number","format":"double","description":"The original discount percentage listed for sale by a manufacturer or retailer.\n"},"priceChangeOption":{"$ref":"#/components/schemas/DiscountPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n"}},"title":"DiscountPricingUpdate"},"RecurringCalculatedPricingUpdate":{"type":"object","properties":{"clearingExistingMinimumAmount":{"type":"boolean","description":"Set it to `true` to reset the minimum amount to null.\n"},"clearingExistingMaximumAmount":{"type":"boolean","description":"Set it to `true` to reset the maximum amount to null.\n"},"minimumAmount":{"type":"number","format":"double","description":"Non-negative currency amount that establishes the lower bound for the calculated charge in a billing period. If the calculated amount is less than this value, the invoice amount will be set to the minimum value.\n"},"maximumAmount":{"type":"number","format":"double","description":"Non-negative currency amount that establishes the upper bound for the calculated charge in a billing period. If the calculated amount exceeds this value, the invoice amount will be set to the maximum value.\n"},"percentage":{"type":"number","format":"double","description":"The specific rate applied to the total eligible spend to determine the base invoice amount before any minimum or maximum amount is applied.\n"}},"required":["percentage"],"description":"Pricing information about a recurring charge that uses the \"calculated\" charge model.\n","title":"RecurringCalculatedPricingUpdate"},"RecurringFlatFeePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"RecurringFlatFeePricingUpdatePriceChangeOption"},"RecurringFlatFeePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/RecurringFlatFeePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"}},"title":"RecurringFlatFeePricingUpdate"},"RecurringPerUnitPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"RecurringPerUnitPricingUpdatePriceChangeOption"},"RecurringPerUnitPricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/RecurringPerUnitPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"},"quantity":{"type":"number","format":"double","minimum":0}},"title":"RecurringPerUnitPricingUpdate"},"RecurringTieredPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"RecurringTieredPricingUpdatePriceChangeOption"},"RecurringTieredPricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/RecurringTieredPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"quantity":{"type":"number","format":"double","minimum":0},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"}}},"title":"RecurringTieredPricingUpdate"},"RecurringVolumePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"RecurringVolumePricingUpdatePriceChangeOption"},"RecurringVolumePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/RecurringVolumePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"quantity":{"type":"number","format":"double","minimum":0},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"}}},"title":"RecurringVolumePricingUpdate"},"PreviewOrderPricingUpdate":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/ChargeModelDataOverride","description":"Container for charge model configuration data.\n\n**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. The High Water Mark and Pre-Rated Pricing charge models are 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.\n"},"discount":{"$ref":"#/components/schemas/DiscountPricingUpdate","description":"Pricing information about a discount charge.\n"},"recurringCalcualated":{"$ref":"#/components/schemas/RecurringCalculatedPricingUpdate"},"recurringFlatFee":{"$ref":"#/components/schemas/RecurringFlatFeePricingUpdate","description":"Pricing information about a recurring charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n"},"recurringPerUnit":{"$ref":"#/components/schemas/RecurringPerUnitPricingUpdate","description":"Pricing information about a recurring charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit purchased.\n"},"recurringTiered":{"$ref":"#/components/schemas/RecurringTieredPricingUpdate","description":"Pricing information about a recurring charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are purchased.\n"},"recurringVolume":{"$ref":"#/components/schemas/RecurringVolumePricingUpdate","description":"Pricing information about a recurring charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are purchased.\n"}},"title":"PreviewOrderPricingUpdate"},"PreviewOrderChargeUpdate":{"type":"object","properties":{"billing":{"$ref":"#/components/schemas/BillingUpdate"},"chargeNumber":{"type":"string","description":"The number of the charge to be updated. The value of this field is inherited from the `subscriptions` > `orderActions` > `addProduct` > `chargeOverrides` > `chargeNumber` field.\n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"},"description":{"type":"string"},"effectiveDate":{"$ref":"#/components/schemas/PreviewOrderTriggerParams"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nThe value of this field must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge.\n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"negotiatedPriceTable":{"type":"array","items":{"$ref":"#/components/schemas/NegotiatedItems"},"description":"Array of negotiated price table information. The rate card entries provided in the array will override the existing rate card entries in the standard price table to form a negotiated price table that will be    \nused during pricing evaluation.\n\n\n**Note:** To enable the Negotiated Price Table feature, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>. \n"},"prepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).      \n"},"pricingAttributes":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for pricing attribute and value that provide additional context for dynamic pricing. The pricing attribute values included in the array will update the existing values. For the pricing attribute mapped to a Zuora object field, Zuora will retrieve the value automatically, you don’t need to pass its value explicitly. If you pass a value that doesn’t match the actual value of the Zuora object, an error will be returned.\nNote that for any pricing attribute mapped to the field of Zuora object Usage, because its value is only determined when the usage record arrives, you can’t provide a value via Orders API payload and Zuora will not retrieve its value automatically.\n\n\n\n**Note:** To enable Dynamic Pricing, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.              \n"},"pricing":{"$ref":"#/components/schemas/PreviewOrderPricingUpdate","description":"Pricing information about the charge.\n"},"productRatePlanChargeId":{"type":"string","description":"ID of a product rate plan charge for this subscription. When `isAddingSubsetCharges` is set to true, the product rate charge specified by `productRatePlanChargeId` is added to the existing rate plan specified by `ratePlanId`.\n"},"productRatePlanChargeNumber":{"type":"string","description":"Number of a product rate plan charge for this subscription. When `isAddingSubsetCharges` is set to true, the product rate charge specified by `productRatePlanChargeNumber` is added to the existing rate plan specified by `ratePlanId`.\n"},"uniqueToken":{"type":"string","description":"A unique string to represent the rate plan charge in the order. The unique token is used to perform multiple actions against a newly added rate plan charge. For example, if you want to add and update a product in the same order, assign a unique token to the newly added rate plan charge and use that token in future order actions.\n"}},"title":"PreviewOrderChargeUpdate"},"PreviewOrderRatePlanUpdate":{"type":"object","properties":{"chargeUpdates":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderChargeUpdate"},"description":"Array of the JSON objects containing the information for a charge update in the `updateProduct` type of order action.\n\nWhen previewing an `updateProduct` order action, either the `chargeNumber` or `uniqueToken` field is required to specify the charge to update.\n"},"clearingExistingFeatures":{"type":"boolean","description":"Specifies whether all features in the rate plan will be cleared.\n"},"customFields":{"$ref":"#/components/schemas/OrdersRatePlanObjectCustomFields"},"isAddingSubsetCharges":{"type":"boolean","description":"Specifies whether to add a subset of charges to the subscription.\n\n\n**Note:** To access this field for adding a subset of charges, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanId":{"type":"string","description":"The id of the rate plan to be updated. It can be the latest version or any history version id.\n"},"specificUpdateDate":{"type":"string","format":"date","description":"The specific date when the Update Product order action takes effect.  This field allows you to update a charge before a future-dated Update Product order action on the subscription. The format of the date is yyyy-mm-dd.\n\n**Note**: After you use this option, the charge's `TriggerEvent` field value will be changed to `SpecificDate`. \n\nSee [Update a Product on Subscription with Future-dated Updates](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Update_a_Product_in_a_Subscription/Update_a_Product_on_Subscription_with_Future-dated_Updates) for more information about this feature.\n"},"subscriptionProductFeatures":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderRatePlanFeatureOverride"},"description":"List of features associated with the rate plan.\nThe system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:\n* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.\n* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.\n"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a rate plan for this subscription.\n"},"uniqueToken":{"type":"string","description":"A unique string to represent the rate plan in the order. The unique token is used to perform multiple actions against a newly added rate plan. For example, if you want to add and update a product in the same order, assign a unique token to the newly added rate plan and use that token in future order actions.\n"}},"description":"Information about an order action of type `UpdateProduct`.\n","title":"PreviewOrderRatePlanUpdate"},"PreviewOrderOrderAction":{"type":"object","properties":{"addProduct":{"$ref":"#/components/schemas/PreviewOrderRatePlanOverride"},"cancelSubscription":{"$ref":"#/components/schemas/CancelSubscription"},"changePlan":{"$ref":"#/components/schemas/PreviewOrderCreateChangePlan"},"changeReason":{"type":"string","description":"The change reason set for an order action when an order is created.\n"},"createSubscription":{"$ref":"#/components/schemas/PreviewOrderCreateSubscription"},"customFields":{"$ref":"#/components/schemas/OrderActionObjectCustomFields"},"ownerTransfer":{"$ref":"#/components/schemas/OwnerTransfer"},"removeProduct":{"$ref":"#/components/schemas/RemoveProduct"},"renewSubscription":{"$ref":"#/components/schemas/RenewSubscription"},"resume":{"$ref":"#/components/schemas/CreateOrderResume"},"suspend":{"$ref":"#/components/schemas/CreateOrderSuspend"},"termsAndConditions":{"$ref":"#/components/schemas/CreateOrderTermsAndConditions"},"triggerDates":{"type":"array","items":{"$ref":"#/components/schemas/TriggerDate"},"description":"Container for the contract effective, service activation, and customer acceptance dates of the order action. \n\nIf the service activation date is set as a required field in Default Subscription Settings, skipping this field in a `CreateSubscription` order action of your JSON request will result in a `Pending` order and a `Pending Activation` subscription.\n\nIf the customer acceptance date is set as a required field in Default Subscription Settings, skipping this field in a `CreateSubscription` order action of your JSON request will result in a `Pending` order and a `Pending Acceptance` subscription. If the service activation date field is at the same time required and skipped (or set as null), it will be a `Pending Activation` subscription.\n"},"type":{"$ref":"#/components/schemas/PreviewOrderOrderActionType","description":"Type of order action.\n\nUnless the type of order action is `RenewSubscription`, you must use the corresponding field to provide information about the order action. For example, if the type of order action is `AddProduct`, you must set the `addProduct` field.\n\nZuora returns an error if you set a field that corresponds to a different type of order action. For example, if the type of order action is `AddProduct`, Zuora returns an error if you set the `updateProduct` field.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n"},"updateProduct":{"$ref":"#/components/schemas/PreviewOrderRatePlanUpdate"}},"required":["type"],"title":"PreviewOrderOrderAction"},"QuoteObjectFields":{"type":"object","properties":{"OpportunityCloseDate__QT":{"type":"string","description":"The closing date of the Opportunity.\n\nThis field is used in Zuora Reporting Data Sources to report on Subscription metrics.\n\nIf the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"OpportunityName__QT":{"type":"string","description":"The unique identifier of the Opportunity. \n\nThis field is used in the Zuora Reporting Data Sources to report on Subscription metrics.\n\nIf the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n\n**Character limit**: 100\n"},"QuoteBusinessType__QT":{"type":"string","description":"The specific identifier for the type of business transaction the Quote represents such as New, Upsell, Downsell, Renewal or Churn.\n\nThis field is used in the Zuora Reporting Data Sources to report on Subscription metrics.\n\nIf the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n\n**Character limit**: 32\n"},"QuoteNumber__QT":{"type":"string","description":"The unique identifier of the Quote.\n\nThis field is used in the Zuora Reporting Data Sources to report on Subscription metrics.\n\nIf the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n\n**Character limit**: 32\n"},"QuoteType__QT":{"type":"string","description":"The Quote type that represents the subscription lifecycle stage such as New, Amendment, Renew or Cancel.\n\nThis field is used in the Zuora Reporting Data Sources to report on Subscription metrics.\n\nIf the subscription was originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n\n**Character limit**: 32\n"}},"description":"The fields populated for a quote when a quote is sent to Zuora Billing from Zuora Quote.\n","title":"QuoteObjectFields"},"RampChargeRequest":{"type":"object","properties":{"chargeNumber":{"type":"string","description":"The number of the rate plan charge."},"uniqueToken":{"type":"string","description":"Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.\n"}},"title":"RampChargeRequest"},"RampIntervalRequest":{"type":"object","properties":{"description":{"type":"string","description":"The short description of the interval."},"endDate":{"type":"string","format":"date","description":"The end date of the interval."},"name":{"type":"string","description":"The name of the interval."},"startDate":{"type":"string","format":"date","description":"The start date of the interval."}},"required":["endDate","startDate"],"description":"Container for the intervals that the ramp is split into in its timeline. Zuora can report metrics for this specific period.\n","title":"RampIntervalRequest"},"RampRequest":{"type":"object","properties":{"charges":{"type":"array","items":{"$ref":"#/components/schemas/RampChargeRequest"},"description":"Container for the rate plan charges that are considered as part of the ramp deal.\n\n* If this field is not specified, all the one-time and recurring regular charges of the new subscription are automatically considered as part of the ramp deal.\n* If this field is specified, either 'chargeNumber' or 'uniqueToken' must be specified.\n"},"delete":{"type":"boolean","description":"Whether to remove the ramp definition from the new subscription. If you want to remove the ramp definition, this field is the only required field for the `ramp` object.  \n"},"description":{"type":"string","description":"The short description of the ramp."},"intervals":{"type":"array","items":{"$ref":"#/components/schemas/RampIntervalRequest"},"description":"Container for the intervals that the ramp is split into in its timeline. \n\nIt is required when you want to create or update the ramp definition. The ramp intervals cannot have any overlap or gap between each other.\n"},"name":{"type":"string","description":"The name of the ramp."}},"description":"Container of the ramp definitions. It is used to create, update, or remove the ramp definition for the new subscription.\n","title":"RampRequest"},"PostOrderPreviewRequestTypeSubscriptionsItems":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/SubscriptionObjectCustomFields"},"notes":{"type":"string","maxLength":1000,"description":"Notes about the subscription. These notes are only visible to Zuora users. Notes set in this field will override the value of the `notes` field within the createSubscription order action.\n"},"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderOrderAction"},"description":"The actions to be applied to the subscription. Order actions will be stored with the sequence when it was provided in the request."},"quote":{"$ref":"#/components/schemas/QuoteObjectFields"},"ramp":{"$ref":"#/components/schemas/RampRequest"},"subscriptionNumber":{"type":"string","description":"Leave this field empty to represent new subscription creation, or specify a subscription number to update an existing subscription.\n"}},"title":"PostOrderPreviewRequestTypeSubscriptionsItems"},"POSTOrderPreviewRequestType":{"type":"object","properties":{"category":{"$ref":"#/components/schemas/PostOrderPreviewRequestTypeCategory","default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n"},"customFields":{"$ref":"#/components/schemas/OrderObjectCustomFields"},"description":{"type":"string","maxLength":500,"description":"A description of the order."},"existingAccountId":{"type":"string","description":"The account ID under which this order will be created.  This field sets the default invoice owner account and subscription owner account for any new subscriptions in the order.  To override these defaults for individual subscriptions, use the `subscriptionOwnerAccountNumber` and `invoiceOwnerAccountNumber` nested fields in the `subscriptions` field. \n\n**Note:** You can specify either the `existingAccountNumber` or `existingAccountId` field, but not both.\n"},"existingAccountNumber":{"type":"string","maxLength":70,"description":"The account number under which this order will be created.  This field sets the default invoice owner account and subscription owner account for any new subscriptions in the order. To override these defaults for individual subscriptions, use the `subscriptionOwnerAccountNumber` and `invoiceOwnerAccountNumber` nested fields in the `subscriptions` field.\n"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. All of the order actions under this order will use this order date as the contract effective date."},"orderLineItems":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderOrderLineItem"},"description":"[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) are non subscription based items created by an Order, representing transactional charges such as one-time fees, physical goods, or professional service charges that are not sold as subscription services. \n\nWith the Order Line Items feature enabled, you can now launch non-subscription and unified monetization business models in Zuora, in addition to subscription business models. \n\nIf you do not have the **Create Order Line Items Without Product Catalog** billing permission, you can only create order  line items from existing products by specifying the product rate plan charge ID in the `productRatePlanChargeId` field.  For more information about billing permissions, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/System_Management/Administrator_Settings/User_Roles/d_Billing_Roles\" target=\"_blank\">Billing Roles</a>.\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"},"orderNumber":{"type":"string","maxLength":100,"description":"The order number of this order.   \n**Note:** The characters `#`, `?`, and `/` are not allowed in this field. Additionally, to ensure compatibility with the UI when viewing orders, use only the following special characters: `_`,`-`, `.`, `~`, `*`, `(`, `)`, and `'`.\n"},"previewAccountInfo":{"$ref":"#/components/schemas/PreviewAccountInfo"},"previewOptions":{"$ref":"#/components/schemas/PreviewOptions"},"reasonCode":{"type":"string","maxLength":255,"description":"Values of reason code configured in **Billing Settings** > **Configure Reason Codes** through Zuora UI. Indicates the reason when a return order line item occurs.\n"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderPreviewRequestTypeSubscriptionsItems"},"description":"Each item includes a set of order actions, which will be applied to the same base subscription. When you create an order that involves multiple subscriptions, these subscriptions can have different invoice owner accounts or subscription owner accounts. "}},"required":["orderDate","previewOptions"],"title":"POSTOrderPreviewRequestType"},"PostOrderPreviewResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"PostOrderPreviewResponseTypeReasonsItems"},"ChargePreviewMetricsCmrr":{"type":"object","properties":{"discount":{"type":"number","format":"double","description":"Total discountCmrr of all discount charges which are applied to one specific recurring charge. This value is calculated from the rating results for the latest subscription version in the order. Only selects the applied discount charge when its endDateCondition is \"Subscription_End\"."},"discountDelta":{"type":"number","format":"double","description":"Delta discountCmrr value between the order base and the latest subscription version."},"regular":{"type":"number","format":"double"},"regularDelta":{"type":"number","format":"double"}},"title":"ChargePreviewMetricsCmrr"},"ChargePreviewMetricsTax":{"type":"object","properties":{"discount":{"type":"number","format":"double","description":"Total tax amount of all discount charges which are applied to one specific recurring charge. This value is calculated from the rating results for the latest subscription version in the order."},"discountDelta":{"type":"number","format":"double","description":"Delta discount TAX value between the base and the latest subscription version in the order for the specific recurring charge."},"regular":{"type":"number","format":"double"},"regularDelta":{"type":"number","format":"double","description":"Delta tax value between the base and the latest subscription version in the order."}},"title":"ChargePreviewMetricsTax"},"ChargePreviewMetricsTcb":{"type":"object","properties":{"discount":{"type":"number","format":"double","description":"Total contract billing amount of all discount charges which are applied to one specific recurring charge. This value is calculated from the rating results for the latest subscription version in the order."},"discountDelta":{"type":"number","format":"double","description":"Delta discount TCB value between the base and the latest subscription version for specific recurring charge in the order."},"regular":{"type":"number","format":"double"},"regularDelta":{"type":"number","format":"double","description":"Delta TCB value between the base and the latest subscription version in the order."}},"title":"ChargePreviewMetricsTcb"},"ChargePreviewMetricsTcv":{"type":"object","properties":{"discount":{"type":"number","format":"double","description":"Always equals to discountTcb."},"discountDelta":{"type":"number","format":"double","description":"Always equals to delta discountTcb."},"regular":{"type":"number","format":"double"},"regularDelta":{"type":"number","format":"double"}},"title":"ChargePreviewMetricsTcv"},"ChargePreviewMetrics":{"type":"object","properties":{"chargeNumber":{"type":"string"},"cmrr":{"$ref":"#/components/schemas/ChargePreviewMetricsCmrr"},"originRatePlanId":{"type":"string"},"productRatePlanChargeId":{"type":"string"},"productRatePlanId":{"type":"string"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a subscription rate plan for this subscription.\n"},"tax":{"$ref":"#/components/schemas/ChargePreviewMetricsTax"},"tcb":{"$ref":"#/components/schemas/ChargePreviewMetricsTcb"},"tcv":{"$ref":"#/components/schemas/ChargePreviewMetricsTcv"}},"title":"ChargePreviewMetrics"},"PreviewOrderResultChargeMetricsItems":{"type":"object","properties":{"charges":{"type":"array","items":{"$ref":"#/components/schemas/ChargePreviewMetrics"}},"subscriptionNumber":{"type":"string","description":"The number of the subscription that has been affected by this order. When creating a subscription, this value will not show if the subscription number was not specified in the request."}},"title":"PreviewOrderResultChargeMetricsItems"},"InvoiceItemPreviewResultAdditionalInfo":{"type":"object","properties":{"numberOfDeliveries":{"type":"number","format":"double","description":"The number of deliveries dedicated to the Delivery Pricing charges. \n**Note**: This field is available only if you have the Delivery Pricing feature enabled.\n"},"quantity":{"type":"number","format":"double"},"unitOfMeasure":{"type":"string"}},"title":"InvoiceItemPreviewResultAdditionalInfo"},"InvoiceItemPreviewResultProcessingType":{"type":"string","enum":["Charge","Discount","Tax"],"title":"InvoiceItemPreviewResultProcessingType"},"InvoiceItemPreviewResultTaxationItemsItemsTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"Enum:\"Percentage\" \"FlatFee\". The type of the tax rate applied to the invoice.\n","title":"InvoiceItemPreviewResultTaxationItemsItemsTaxRateType"},"InvoiceItemPreviewResultTaxationItemsItems":{"type":"object","properties":{"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"id":{"type":"string","description":"The ID of the taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the taxCode field.\n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of the tax applied to the invoice.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific invoice.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","description":"The date when the tax is applied to the invoice.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the invoice.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/InvoiceItemPreviewResultTaxationItemsItemsTaxRateType","description":"Enum:\"Percentage\" \"FlatFee\". The type of the tax rate applied to the invoice.\n"}},"title":"InvoiceItemPreviewResultTaxationItemsItems"},"InvoiceItemPreviewResult":{"type":"object","properties":{"additionalInfo":{"$ref":"#/components/schemas/InvoiceItemPreviewResultAdditionalInfo"},"amountWithoutTax":{"type":"number","format":"double"},"appliedToChargeNumber":{"type":"string","description":"Available when the chargeNumber of the charge that discount applies to was specified in the request or when the order is amending an existing subscription."},"chargeDescription":{"type":"string"},"chargeName":{"type":"string"},"chargeNumber":{"type":["string","null"],"description":"Available when the `chargeNumber` field was specified in the request or when the order is amending an existing subscription."},"orderLineItemNumber":{"type":["string","null"],"description":"A sequential number auto-assigned for each of order line items in a order, used as an index, for example, \"1\"."},"processingType":{"$ref":"#/components/schemas/InvoiceItemPreviewResultProcessingType"},"productName":{"type":"string"},"productRatePlanChargeId":{"type":"string","description":"The product rate plan charge ID in this `productRatePlanChargeId` field belongs to a product rate plan specified through the `subscribeToRatePlans` > `productRatePlanId` field. \nTherefore, this `productRatePlanChargeId` field has a value only when the `subscribeToRatePlans` > `productRatePlanId` field is specified during the subscription creation. \nThis `productRatePlanChargeId` field does not indicate a product rate plan charge associated with an order line item.\n"},"serviceEndDate":{"type":"string","format":"date"},"serviceStartDate":{"type":"string","format":"date"},"subscriptionNumber":{"type":["string","null"],"description":"The number of the subscription.\n"},"taxAmount":{"type":"number","format":"double"},"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceItemPreviewResultTaxationItemsItems"},"description":"List of taxation items.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `309.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the invoice item.\n"}},"title":"InvoiceItemPreviewResult"},"PreviewOrderResultCreditMemosItems":{"type":"object","properties":{"amount":{"type":"number","format":"double"},"amountWithoutTax":{"type":"number","format":"double"},"creditMemoItems":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceItemPreviewResult"}},"targetDate":{"type":"string","format":"date"},"taxAmount":{"type":"number","format":"double"}},"title":"PreviewOrderResultCreditMemosItems"},"InvoiceItemSummary":{"type":"object","properties":{"previewInvoiceSequence":{"type":"number","format":"double","description":"The sequence number of the invoice to be billed.\n"},"subTotal":{"type":"number","format":"double","description":"The aggregated subtotal amount of the invoice.\n"},"discountAmount":{"type":"number","format":"double","description":"The aggregated discount amount of the invoice.\n"},"taxAmount":{"type":"number","format":"double","description":"The aggregated tax amount of the invoice.\n"},"total":{"type":"number","format":"double","description":"The aggregated total amount of the invoice.\n"},"servicePeriodStartDate":{"type":"string","format":"date","description":"The start date of the period being billed.\n"},"servicePeriodEndDate":{"type":"string","format":"date","description":"The end date of the period being billed.\n"}},"title":"InvoiceItemSummary"},"PreviewOrderResultInvoicesItems":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The total amount of the invoice.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The amount of the invoice without tax.\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceItemPreviewResult"},"description":"The invoice items on the invoice.\n"},"targetDate":{"type":"string","format":"date","description":"The target date to bill the invoice.\n"},"taxAmount":{"type":"number","format":"double","description":"The total tax amount of the invoice.\n"},"invoiceItemSummary":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceItemSummary"},"description":"The aggregated summary data for all future invoices to be billed within the preview period.\n\nThis field is returned only if you set the `summarizeInvoiceItem` query parameter to `true`.\n"}},"title":"PreviewOrderResultInvoicesItems"},"OrderDeltaMrr":{"type":"object","properties":{"chargeNumber":{"type":"string","description":"The charge number for the associated Rate Plan Charge. This field can be null if the metric is generated for an Order Line Item.\n"},"currency":{"type":"string","description":"ISO 3-letter currency code (uppercase). For example, USD.\n"},"endDate":{"type":"string","format":"date","description":"The end date for the order delta metric.\n"},"grossAmount":{"type":"number","format":"double","description":"The gross amount for the metric. The is the amount excluding applied discount.\n"},"netAmount":{"type":"number","format":"double","description":"The net amount for the metric. The is the amount with discounts applied\n"},"orderActionId":{"type":"string","description":"The Id for the related Order Action. This field can be null if the metric is generated for an Order Line Item.\n"},"orderActionSequence":{"type":"string","description":"The sequence for the related Order Action. This field can be null if the metric is generated for an Order Line Item.\n"},"orderActionType":{"type":"string","description":"The type for the related Order Action. This field can be null if the metric is generated for an Order Line Item.\n"},"orderLineItemNumber":{"type":"string","description":"A sequential number auto-assigned for each of order line items in a order, used as an index, for example, \"1\".\n"},"productRatePlanChargeId":{"type":"string","description":"The Id for the associated Product Rate Plan Charge. This field can be null if the Order Line Item is not associated with a Product Rate Plan Charge.\n"},"ratePlanChargeId":{"type":"string","description":"The id for the associated Rate Plan Charge. This field can be null if the metric is generated for an Order Line Item.\n"},"startDate":{"type":"string","format":"date","description":"The start date for the order delta metric.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription. This field can be null if the metric is generated for an Order Line Item.\n"}},"description":"Order Delta Mrr. This is a metric that reflects the change to the TCV on rate plan charge object as the result of the order.\n","title":"OrderDeltaMrr"},"OrderDeltaTcb":{"type":"object","properties":{"chargeNumber":{"type":"string","description":"The charge number for the associated Rate Plan Charge. This field can be null if the metric is generated for an Order Line Item.\n"},"currency":{"type":"string","description":"ISO 3-letter currency code (uppercase). For example, USD.\n"},"endDate":{"type":"string","format":"date","description":"The end date for the order delta metric.\n"},"grossAmount":{"type":"number","format":"double","description":"The gross amount for the metric. The is the amount excluding applied discount.\n"},"netAmount":{"type":"number","format":"double","description":"The net amount for the metric. The is the amount with discounts applied\n"},"orderActionId":{"type":"string","description":"The Id for the related Order Action. This field can be null if the metric is generated for an Order Line Item.\n"},"orderActionSequence":{"type":"string","description":"The sequence for the related Order Action. This field can be null if the metric is generated for an Order Line Item.\n"},"orderActionType":{"type":"string","description":"The type for the related Order Action. This field can be null if the metric is generated for an Order Line Item.\n"},"orderLineItemNumber":{"type":"string","description":"A sequential number auto-assigned for each of order line items in a order, used as an index, for example, \"1\".\n"},"productRatePlanChargeId":{"type":"string","description":"The Id for the associated Product Rate Plan Charge. This field can be null if the Order Line Item is not associated with a Product Rate Plan Charge.\n"},"ratePlanChargeId":{"type":"string","description":"The id for the associated Rate Plan Charge. This field can be null if the metric is generated for an Order Line Item.\n"},"startDate":{"type":"string","format":"date","description":"The start date for the order delta metric.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription. This field can be null if the metric is generated for an Order Line Item.\n"},"orderLineItemId":{"type":"string","format":"UUID","description":"The sytem generated Id for the Order Line Item. This field can be null if the metric is generated for a Rate Plan Charge.\n"}},"description":"Order Delta Tcb. This is a metric that reflects the change to the estimated billing on Rate Plan Charge object, or the estimated billing for an Order Line Item as the result of the order\n","title":"OrderDeltaTcb"},"OrderDeltaTcv":{"type":"object","properties":{"chargeNumber":{"type":"string","description":"The charge number for the associated Rate Plan Charge. This field can be null if the metric is generated for an Order Line Item.\n"},"currency":{"type":"string","description":"ISO 3-letter currency code (uppercase). For example, USD.\n"},"endDate":{"type":"string","format":"date","description":"The end date for the order delta metric.\n"},"grossAmount":{"type":"number","format":"double","description":"The gross amount for the metric. The is the amount excluding applied discount.\n"},"netAmount":{"type":"number","format":"double","description":"The net amount for the metric. The is the amount with discounts applied\n"},"orderActionId":{"type":"string","description":"The Id for the related Order Action. This field can be null if the metric is generated for an Order Line Item.\n"},"orderActionSequence":{"type":"string","description":"The sequence for the related Order Action. This field can be null if the metric is generated for an Order Line Item.\n"},"orderActionType":{"type":"string","description":"The type for the related Order Action. This field can be null if the metric is generated for an Order Line Item.\n"},"orderLineItemNumber":{"type":"string","description":"A sequential number auto-assigned for each of order line items in a order, used as an index, for example, \"1\".\n"},"productRatePlanChargeId":{"type":"string","description":"The Id for the associated Product Rate Plan Charge. This field can be null if the Order Line Item is not associated with a Product Rate Plan Charge.\n"},"ratePlanChargeId":{"type":"string","description":"The id for the associated Rate Plan Charge. This field can be null if the metric is generated for an Order Line Item.\n"},"startDate":{"type":"string","format":"date","description":"The start date for the order delta metric.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription. This field can be null if the metric is generated for an Order Line Item.\n"},"orderLineItemId":{"type":"string","format":"UUID","description":"The sytem generated Id for the Order Line Item. This field can be null if the metric is generated for subscriptions.\n"}},"description":"Order Delta Tcv. This is a metric that reflects the change to the TCV on Rate Plan Charge object, or the Total Contracted Value for an Order Line Item as the result of the order\n","title":"OrderDeltaTcv"},"PreviewOrderResultOrderDeltaMetrics":{"type":"object","properties":{"orderDeltaMrr":{"type":"array","items":{"$ref":"#/components/schemas/OrderDeltaMrr"}},"orderDeltaTcb":{"type":"array","items":{"$ref":"#/components/schemas/OrderDeltaTcb"}},"orderDeltaTcv":{"type":"array","items":{"$ref":"#/components/schemas/OrderDeltaTcv"}}},"description":"**Note:** As of Zuora Billing Release 306, Zuora has upgraded the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders). The new methodologies are reflected in the following Order Delta Metrics objects. \n* [Order Delta Mrr](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Mrr)\n* [Order Delta Tcv](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcv)\n* [Order Delta Tcb](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcb)\n\nIt is recommended that all customers use the new [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics). If you are an existing [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders) customer and want to migrate to Order Delta Metrics, submit a request at [Zuora Global Support](https://support.zuora.com/).\n","title":"PreviewOrderResultOrderDeltaMetrics"},"OrderItem":{"type":"object","properties":{"endDate":{"type":"string","format":"date","description":"The order item's effective end date, aligned with the end date of an increased quantity order metrics."},"id":{"type":"string","description":"The ID of the order item."},"orderActionId":{"type":"string","description":"Specify the order action that creates this order item."},"quantity":{"type":"number","format":"double","description":"The order item quantity. For the usage charge type, the value of this field is always zero. Also, the Owner Transfer order action always creates an order item whose Quantity field is zero."},"scId":{"type":"string","description":"The ID of the charge segment that gets newly generated when the order item is created."},"startDate":{"type":"string","format":"date","description":"The order item's effective start date, aligned with the start date of an increased quantity order metrics."}},"description":"Represents an order item. An order item is a sales item within an order in the context of the recurring subscription business model. It can be a unit of products or a service, but defined by both quantity and term (the start and end dates). \n\nFor the one time and the recurring charge types, if an order action causes a quantity metric creation (when the delta quantity equals to or is greater than zero), an order item is created.\n\nThe following order actions will create an order item for the one time and recurring charges. The other order actions will refer to an existing order item. Also, the Owner Transfer order action always creates an order item whose quantity field is zero.\n\n  * Create Subscription\n  * Terms and Conditions - Extend Term\n  * Renewal\n  * Update Product - Increase Quantity\n  * Add product\n  * Owner Transfer\n\nFor the usage charge type, if the order action causes a usage increase, an order item is created, and the quantity field of the order item is always zero.\n\nThe following order actions will create an order item for for the usage charges.\n\n  * Create Subscription\n  * Terms and Conditions - Extend Term\n  * Renewal\n  * Add product\n  * Owner Transfer\n","title":"OrderItem"},"TimeSlicedElpNetMetricsGeneratedReason":{"type":"string","enum":["IncreaseQuantity","DecreaseQuantity","ChangePrice","Extension","Contraction"],"description":"Specify the reason why the metrics are generated by the certain order action.\n","title":"TimeSlicedElpNetMetricsGeneratedReason"},"TimeSlicedElpNetMetricsType":{"type":"string","enum":["Regular","Discount"],"description":"The type for ELP is always \"Regular\".","title":"TimeSlicedElpNetMetricsType"},"TimeSlicedElpNetMetrics":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The extended list price which is calculated by the original product catalog list price multiplied by the delta quantity."},"endDate":{"type":"string","format":"date","description":"The latest date that the metric applies."},"generatedReason":{"$ref":"#/components/schemas/TimeSlicedElpNetMetricsGeneratedReason","description":"Specify the reason why the metrics are generated by the certain order action.\n"},"invoiceOwner":{"type":"string","description":"The acount number of the billing account that is billed for the subscription."},"orderItemId":{"type":"string","description":"The ID of the order item referenced by the order metrics."},"startDate":{"type":"string","format":"date","description":"The earliest date that the metric applies."},"subscriptionOwner":{"type":"string","description":"The acount number of the billing account that owns the subscription."},"tax":{"type":"number","format":"double","description":"The tax amount in the metric when the tax permission is enabled."},"termNumber":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/TimeSlicedElpNetMetricsType","description":"The type for ELP is always \"Regular\"."}},"title":"TimeSlicedElpNetMetrics"},"TimeSlicedNetMetricsGeneratedReason":{"type":"string","enum":["IncreaseQuantity","DecreaseQuantity","ChangePrice","Extension","Contraction"],"description":"Specify the reason why the metrics are generated by the certain order action.\n\nThis field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n","title":"TimeSlicedNetMetricsGeneratedReason"},"TimeSlicedNetMetricsType":{"type":"string","enum":["Regular","Discount"],"description":"Indicates whether this metrics is for a regular charge or a discount charge.","title":"TimeSlicedNetMetricsType"},"TimeSlicedNetMetrics":{"type":"object","properties":{"amount":{"type":"number","format":"double"},"discountChargeNumber":{"type":"string"},"endDate":{"type":"string","format":"date"},"generatedReason":{"$ref":"#/components/schemas/TimeSlicedNetMetricsGeneratedReason","description":"Specify the reason why the metrics are generated by the certain order action.\n\nThis field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"invoiceOwner":{"type":"string","description":"The acount number of the billing account that is billed for the subscription."},"orderItemId":{"type":"string","description":"The ID of the order item referenced by the order metrics.\n\nThis field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"startDate":{"type":"string","format":"date"},"subscriptionOwner":{"type":"string","description":"The acount number of the billing account that owns the subscription."},"termNumber":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/TimeSlicedNetMetricsType","description":"Indicates whether this metrics is for a regular charge or a discount charge."}},"title":"TimeSlicedNetMetrics"},"TimeSlicedMetricsGeneratedReason":{"type":"string","enum":["IncreaseQuantity","DecreaseQuantity","ChangePrice","Extension","Contraction"],"description":"Specify the reason why the metrics are generated by the certain order action.\n\nThis field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n","title":"TimeSlicedMetricsGeneratedReason"},"TimeSlicedMetrics":{"type":"object","properties":{"amount":{"type":"number","format":"double"},"endDate":{"type":"string","format":"date"},"generatedReason":{"$ref":"#/components/schemas/TimeSlicedMetricsGeneratedReason","description":"Specify the reason why the metrics are generated by the certain order action.\n\nThis field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"invoiceOwner":{"type":"string","description":"The acount number of the billing account that is billed for the subscription."},"orderItemId":{"type":"string","description":"The ID of the order item referenced by the order metrics.\n\nThis field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"startDate":{"type":"string","format":"date"},"subscriptionOwner":{"type":"string","description":"The acount number of the billing account that owns the subscription."},"termNumber":{"type":"number","format":"double"}},"title":"TimeSlicedMetrics"},"TimeSlicedTcbNetMetricsGeneratedReason":{"type":"string","enum":["IncreaseQuantity","DecreaseQuantity","ChangePrice","Extension","Contraction"],"description":"Specify the reason why the metrics are generated by the certain order action.\n\nThis field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n","title":"TimeSlicedTcbNetMetricsGeneratedReason"},"TimeSlicedTcbNetMetricsType":{"type":"string","enum":["Regular","Discount"],"description":"Indicates whether this metrics is for a regular charge or a discount charge.","title":"TimeSlicedTcbNetMetricsType"},"TimeSlicedTcbNetMetrics":{"type":"object","properties":{"amount":{"type":"number","format":"double"},"discountChargeNumber":{"type":"string"},"endDate":{"type":"string","format":"date"},"generatedReason":{"$ref":"#/components/schemas/TimeSlicedTcbNetMetricsGeneratedReason","description":"Specify the reason why the metrics are generated by the certain order action.\n\nThis field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"invoiceOwner":{"type":"string","description":"The acount number of the billing account that is billed for the subscription."},"orderItemId":{"type":"string","description":"The ID of the order item referenced by the order metrics.\n\nThis field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"startDate":{"type":"string","format":"date"},"subscriptionOwner":{"type":"string","description":"The acount number of the billing account that owns the subscription."},"tax":{"type":"number","format":"double"},"termNumber":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/TimeSlicedTcbNetMetricsType","description":"Indicates whether this metrics is for a regular charge or a discount charge."}},"title":"TimeSlicedTcbNetMetrics"},"orderMetric":{"type":"object","properties":{"chargeNumber":{"type":"string"},"elp":{"type":"array","items":{"$ref":"#/components/schemas/TimeSlicedElpNetMetrics"},"description":"The extended list price which is calculated by the original product catalog list price multiplied by the delta quantity.\n\nThe `elp` nested field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"mrr":{"type":"array","items":{"$ref":"#/components/schemas/TimeSlicedNetMetrics"}},"originRatePlanId":{"type":"string"},"productRatePlanChargeId":{"type":"string"},"productRatePlanId":{"type":"string"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a subscription rate plan for this subscription.\n"},"quantity":{"type":"array","items":{"$ref":"#/components/schemas/TimeSlicedMetrics"}},"tcb":{"type":"array","items":{"$ref":"#/components/schemas/TimeSlicedTcbNetMetrics"},"description":"Total contracted billing which is the forecast value for the total invoice amount."},"tcv":{"type":"array","items":{"$ref":"#/components/schemas/TimeSlicedNetMetrics"},"description":"Total contracted value."}},"description":"The set of order metrics for an order action.","title":"orderMetric"},"PreviewOrderResultOrderMetricsItemsOrderActionsItems":{"type":"object","properties":{"orderItems":{"type":"array","items":{"$ref":"#/components/schemas/OrderItem"},"description":"The `orderItems` nested field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"orderMetrics":{"type":"array","items":{"$ref":"#/components/schemas/orderMetric"},"description":"The container for order metrics.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"sequence":{"type":"string"},"type":{"type":"string"}},"title":"PreviewOrderResultOrderMetricsItemsOrderActionsItems"},"PreviewOrderResultOrderMetricsItems":{"type":"object","properties":{"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderResultOrderMetricsItemsOrderActionsItems"}},"subscriptionNumber":{"type":"string"}},"title":"PreviewOrderResultOrderMetricsItems"},"RampIntervalChargeDeltaMetricsDeltaMrrItems":{"type":"object","properties":{"discount":{"type":"number","format":"double","description":"The discount delta amount for the MRR."},"endDate":{"type":"string","format":"date","description":"The end date."},"gross":{"type":"number","format":"double","description":"The MRR delta amount before discounts charges are applied."},"net":{"type":"number","format":"double","description":"The MRR delta amount after discounts charges are applied."},"startDate":{"type":"string","format":"date","description":"The start date."}},"title":"RampIntervalChargeDeltaMetricsDeltaMrrItems"},"RampIntervalChargeDeltaMetricsDeltaQuantityItems":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The delta amount of the charge quantity."},"endDate":{"type":"string","format":"date","description":"The end date."},"startDate":{"type":"string","format":"date","description":"The start date."}},"title":"RampIntervalChargeDeltaMetricsDeltaQuantityItems"},"RampIntervalChargeDeltaMetrics":{"type":"object","properties":{"chargeNumber":{"type":"string","description":"The number of the rate plan charge."},"deltaDiscountTcb":{"type":"number","format":"double","description":"The discount delta amount for the TCB."},"deltaDiscountTcv":{"type":"number","format":"double","description":"The discount delta amount for the TCV."},"deltaGrossTcb":{"type":"number","format":"double","description":"The TCB delta value before discount charges are applied."},"deltaGrossTcv":{"type":"number","format":"double","description":"The TCV delta value before discount charges are applied."},"deltaMrr":{"type":"array","items":{"$ref":"#/components/schemas/RampIntervalChargeDeltaMetricsDeltaMrrItems"},"description":"The MRR changing history of the current rate plan charge in the current ramp interval."},"deltaNetTcb":{"type":"number","format":"double","description":"The TCB delta value after discount charges are applied."},"deltaNetTcv":{"type":"number","format":"double","description":"The TCV delta value after discount charges are applied."},"deltaQuantity":{"type":"array","items":{"$ref":"#/components/schemas/RampIntervalChargeDeltaMetricsDeltaQuantityItems"},"description":"The charge quantity changing history of the current rate plan charge in the current ramp interval."},"productRatePlanChargeId":{"type":"string","description":"The ID of the corresponding product rate plan charge."},"subscriptionNumber":{"type":"string","description":"The number of the subscription that the current rate plan charge belongs to."}},"title":"RampIntervalChargeDeltaMetrics"},"RampIntervalChargeMetricsMrrItems":{"type":"object","properties":{"discount":{"type":"number","format":"double","description":"The discount amount for the MRR."},"endDate":{"type":"string","format":"date","description":"The end date."},"gross":{"type":"number","format":"double","description":"The gross MRR amount before discounts charges are applied."},"net":{"type":"number","format":"double","description":"The net MRR amount after discounts charges are applied."},"startDate":{"type":"string","format":"date","description":"The start date."}},"title":"RampIntervalChargeMetricsMrrItems"},"RampIntervalChargeMetrics":{"type":"object","properties":{"chargeNumber":{"type":"string","description":"The number of the charge."},"discountTcb":{"type":"number","format":"double","description":"The discount amount for the TCB."},"discountTcv":{"type":"number","format":"double","description":"The discount amount for the TCV."},"endDate":{"type":"string","format":"date","description":"The end date of the rate plan charge in the current ramp interval."},"grossTcb":{"type":"number","format":"double","description":"The gross TCB value before discount charges are applied."},"grossTcv":{"type":"number","format":"double","description":"The gross TCV value before discount charges are applied."},"mrr":{"type":"array","items":{"$ref":"#/components/schemas/RampIntervalChargeMetricsMrrItems"},"description":"The MRR changing history of the current rate plan charge in the current ramp interval."},"netTcb":{"type":"number","format":"double","description":"The net TCB value after discount charges are applied."},"netTcv":{"type":"number","format":"double","description":"The net TCV value after discount charges are applied."},"productRatePlanChargeId":{"type":"string","description":"The ID of the corresponding product rate plan charge."},"quantity":{"type":"number","format":"double","description":"The quantity of the rate plan charge."},"ratePlanChargeId":{"type":"string","description":"The ID of the rate plan charge."},"startDate":{"type":"string","format":"date","description":"The start date of the rate plan charge in the current ramp interval."},"subscriptionNumber":{"type":"string","description":"The number of the subscription that the current rate plan charge belongs to."}},"title":"RampIntervalChargeMetrics"},"OrderRampIntervalMetrics":{"type":"object","properties":{"description":{"type":"string","description":"The short description of the interval."},"discountTcb":{"type":"number","format":"double","description":"The discount amount for the TCB."},"discountTcv":{"type":"number","format":"double","description":"The discount amount for the TCV."},"endDate":{"type":"string","format":"date","description":"The end date of the interval."},"grossTcb":{"type":"number","format":"double","description":"The gross TCB value before discount charges are applied."},"grossTcv":{"type":"number","format":"double","description":"The gross TCV value before discount charges are applied."},"intervalDeltaMetrics":{"type":"array","items":{"$ref":"#/components/schemas/RampIntervalChargeDeltaMetrics"},"description":"Container for the delta metrics for each rate plan charge in each ramp interval. The delta is the difference of the subscription metrics between before and after the order."},"intervalMetrics":{"type":"array","items":{"$ref":"#/components/schemas/RampIntervalChargeMetrics"},"description":"Container for the detailed metrics for each rate plan charge in each ramp interval."},"name":{"type":"string","description":"The name of the interval."},"netTcb":{"type":"number","format":"double","description":"The net TCB value after discount charges are applied."},"netTcv":{"type":"number","format":"double","description":"The net TCV value after discount charges are applied."},"startDate":{"type":"string","format":"date","description":"The start date of the interval."}},"title":"OrderRampIntervalMetrics"},"OrderRampMetrics":{"type":"object","properties":{"description":{"type":"string","description":"The short description of the ramp."},"discountTcb":{"type":"number","format":"double","description":"The discount amount for the TCB."},"discountTcv":{"type":"number","format":"double","description":"The discount amount for the TCV."},"grossTcb":{"type":"number","format":"double","description":"The gross TCB value before discount charges are applied."},"grossTcv":{"type":"number","format":"double","description":"The gross TCV value before discount charges are applied."},"intervals":{"type":"array","items":{"$ref":"#/components/schemas/OrderRampIntervalMetrics"},"description":"The ramp metrics for each ramp intervals in its timeline."},"name":{"type":"string","description":"The name of the ramp."},"netTcb":{"type":"number","format":"double","description":"The net TCB value after discount charges are applied."},"netTcv":{"type":"number","format":"double","description":"The net TCV value after discount charges are applied."},"number":{"type":"string","description":"The number of the ramp. It is automaticcally generated by the billing system."}},"title":"OrderRampMetrics"},"PreviewOrderResult":{"type":"object","properties":{"chargeMetrics":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderResultChargeMetricsItems"}},"creditMemos":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderResultCreditMemosItems"},"description":"This field is only available if you have the Invoice Settlement feature enabled."},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderResultInvoicesItems"}},"orderDeltaMetrics":{"$ref":"#/components/schemas/PreviewOrderResultOrderDeltaMetrics","description":"**Note:** As of Zuora Billing Release 306, Zuora has upgraded the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders). The new methodologies are reflected in the following Order Delta Metrics objects. \n* [Order Delta Mrr](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Mrr)\n* [Order Delta Tcv](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcv)\n* [Order Delta Tcb](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcb)\n\nIt is recommended that all customers use the new [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics). If you are an existing [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders) customer and want to migrate to Order Delta Metrics, submit a request at [Zuora Global Support](https://support.zuora.com/).\n"},"orderMetrics":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderResultOrderMetricsItems"},"description":"**Note:** As of Zuora Billing Release 306, Zuora has upgraded the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders). The new methodologies are reflected in the following Order Delta Metrics objects.  \n* [Order Delta Mrr](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Mrr) \n* [Order Delta Tcv](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcv) \n* [Order Delta Tcb](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcb) \n\nIt is recommended that all customers use the new [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics). If you are an existing [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders) customer and want to migrate to Order Delta Metrics, submit a request at [Zuora Global Support](https://support.zuora.com/). \n\nWhereas new customers, and existing customers not currently on [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders), will no longer have access to Order Metrics, existing customers currently using Order Metrics will continue to be supported.\n"},"rampMetrics":{"type":"array","items":{"$ref":"#/components/schemas/OrderRampMetrics"},"description":"**Note**: This field 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\nThe ramp metrics.\n"}},"description":"The result of each type of preview. Returned only when the current request is preview call.","title":"PreviewOrderResult"},"PostOrderPreviewResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderPreviewResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"previewResult":{"$ref":"#/components/schemas/PreviewOrderResult"}},"title":"PostOrderPreviewResponseType"},"PostOrderPreviewAsyncRequestTypeCategory":{"type":"string","enum":["NewSales","Return"],"default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n","title":"PostOrderPreviewAsyncRequestTypeCategory"},"PostOrderPreviewAsyncRequestTypeSubscriptionsItems":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/SubscriptionObjectCustomFields"},"notes":{"type":"string","maxLength":1000,"description":"Notes about the subscription. These notes are only visible to Zuora users. Notes set in this field will override the value of the `notes` field within the createSubscription order action.\n"},"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/PreviewOrderOrderAction"},"description":"The actions to be applied to the subscription. Order actions will be stored with the sequence when it was provided in the request."},"quote":{"$ref":"#/components/schemas/QuoteObjectFields"},"ramp":{"$ref":"#/components/schemas/RampRequest"},"subscriptionNumber":{"type":"string","description":"Leave this field empty to represent new subscription creation, or specify a subscription number to update an existing subscription.\n"}},"title":"PostOrderPreviewAsyncRequestTypeSubscriptionsItems"},"POSTOrderPreviewAsyncRequestType":{"type":"object","properties":{"category":{"$ref":"#/components/schemas/PostOrderPreviewAsyncRequestTypeCategory","default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n"},"customFields":{"$ref":"#/components/schemas/OrderObjectCustomFields"},"description":{"type":"string","maxLength":500,"description":"A description of the order."},"existingAccountId":{"type":"string","description":"The account ID under which this order will be created.  This field sets the default invoice owner account and subscription owner account for any new subscriptions in the order.  To override these defaults for individual subscriptions, use the `subscriptionOwnerAccountNumber` and `invoiceOwnerAccountNumber` nested fields in the `subscriptions` field. \n\n**Note:** You can specify either the `existingAccountNumber` or `existingAccountId` field, but not both.\n"},"existingAccountNumber":{"type":"string","maxLength":70,"description":"The account number under which this order will be created.  This field sets the default invoice owner account and subscription owner account for any new subscriptions in the order. To override these defaults for individual subscriptions, use the `subscriptionOwnerAccountNumber` and `invoiceOwnerAccountNumber` nested fields in the `subscriptions` field.\n"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. All of the order actions under this order will use this order date as the contract effective date."},"orderLineItems":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderOrderLineItem"},"description":"[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) are non subscription based items created by an Order, representing transactional charges such as one-time fees, physical goods, or professional service charges that are not sold as subscription services. \n\nWith the Order Line Items feature enabled, you can now launch non-subscription and unified monetization business models in Zuora, in addition to subscription business models. \n\nIf you do not have the **Create Order Line Items Without Product Catalog** billing permission, you can only create order  line items from existing products by specifying the product rate plan charge ID in the `productRatePlanChargeId` field.  For more information about billing permissions, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/System_Management/Administrator_Settings/User_Roles/d_Billing_Roles\" target=\"_blank\">Billing Roles</a>.\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"},"orderNumber":{"type":"string","maxLength":100,"description":"The order number of this order.   \n**Note:** The characters `#`, `?`, and `/` are not allowed in this field. Additionally, to ensure compatibility with the UI when viewing orders, use only the following special characters: `_`,`-`, `.`, `~`, `*`, `(`, `)`, and `'`.\n"},"previewAccountInfo":{"$ref":"#/components/schemas/PreviewAccountInfo"},"previewOptions":{"$ref":"#/components/schemas/PreviewOptions"},"reasonCode":{"type":"string","maxLength":255,"description":"Values of reason code configured in **Billing Settings** > **Configure Reason Codes** through Zuora UI. Indicates the reason when a return order line item occurs.\n"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderPreviewAsyncRequestTypeSubscriptionsItems"},"description":"Each item includes a set of order actions, which will be applied to the same base subscription. When you create an order that involves multiple subscriptions, these subscriptions can have different invoice owner accounts or subscription owner accounts. "}},"required":["orderDate","previewOptions"],"title":"POSTOrderPreviewAsyncRequestType"},"Orders_POST_PreviewOrderAsynchronously_Response_202":{"type":"object","properties":{"jobId":{"type":"string","format":"UUID","description":"The ID of an asynchronous job that will be returned for tracking the status and result of the job."}},"title":"Orders_POST_PreviewOrderAsynchronously_Response_202"},"V1OrdersGetParametersStatus":{"type":"string","enum":["all","cancelled","completed","draft","executing","failed","pending","scheduled"],"title":"V1OrdersGetParametersStatus"},"OrderCategory":{"type":"string","enum":["NewSales","Return"],"default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n","title":"OrderCategory"},"CommitmentTypeEnum":{"type":"string","enum":["MinCommitment","MaxCommitment"],"description":"The type of the commitment.\n","title":"CommitmentTypeEnum"},"CommitmentPrepaymentTypeEnum":{"type":"string","enum":["NotPrepaid","FullyPrepaid"],"description":"The prepayment type of the commitment.","title":"CommitmentPrepaymentTypeEnum"},"PeriodAlignmentOptionEnum":{"type":"string","enum":["CommitmentStartDate","SpecificDate"],"default":"CommitmentStartDate","description":"Options for aligning the commitment periods within a commitment.\n","title":"PeriodAlignmentOptionEnum"},"ActionType":{"type":"string","enum":["create","update","cancel"],"description":"The action type of the commitment.\n","title":"ActionType"},"AmountBaseEnum":{"type":"string","enum":["CommitmentPeriod"],"default":"CommitmentPeriod","description":"The level for which the committed amount applies to.","title":"AmountBaseEnum"},"PeriodTypeEnum":{"type":"string","enum":["Month","Quarter","SemiAnnual","Year","SpecificMonths","SinglePeriod"],"default":"Month","description":"The frequency type of the period of the commitment schedule.\n","title":"PeriodTypeEnum"},"PrepaymentFrequencyEnum":{"type":"string","enum":["Month","Quarter","Semi_Annual","Annual","Eighteen_Months","Two_Years","Three_Years","Five_Years","Specific_Months","Week","Specific_Weeks","Specific_Days"],"description":"The prepayment frequency for the prepayment definition. If the value is `Specific_Months`, `Specific_Weeks`, or `Specific_Days`, use the `specificFrequency` field to specify the duration.\n","title":"PrepaymentFrequencyEnum"},"PrepaymentDefinition":{"type":"object","properties":{"prepaymentFrequency":{"$ref":"#/components/schemas/PrepaymentFrequencyEnum"},"specificFrequency":{"type":"integer","description":"The specific frequency length. This field is required when `prepaymentFrequency` is `Specific_Months`, `Specific_Weeks`, or `Specific_Days`."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of a prepayment definition object."}},"description":"The prepayment definition for the commitment schedule.","title":"PrepaymentDefinition"},"GetCommitmentOutputListOrdersSchedulesItems":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the schedule."},"startDate":{"type":"string","description":"The start date of the schedule."},"endDate":{"type":"string","description":"The end date of the schedule."},"totalAmount":{"type":"number","format":"double","description":"The total amount of the schedule."},"action":{"$ref":"#/components/schemas/ActionType"},"amountBase":{"$ref":"#/components/schemas/AmountBaseEnum","default":"CommitmentPeriod"},"periodType":{"$ref":"#/components/schemas/PeriodTypeEnum","default":"Month"},"prepaymentDefinition":{"$ref":"#/components/schemas/PrepaymentDefinition"},"specificPeriodLength":{"type":"integer","description":"The specific period length of each period in the schedule."}},"title":"GetCommitmentOutputListOrdersSchedulesItems"},"GetCommitmentOutputListOrdersTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode of a charge. This field is available when the `taxable` field is set to `true`.\n","title":"GetCommitmentOutputListOrdersTaxMode"},"EligibleAccountConditionOperator":{"type":"string","enum":["eq","neq","gt","lt","gte","lte","lk","in","nl","nnl"],"description":"The operator of a single condition.\n\nExample: \n\n  - eq: equal, field = value \n  - neq: not equal, field != value \n  - gt: greater than, field > value \n  - lt: less than, field < value \n  - gte: greater than or equal, field >= value \n  - lte: less than or equal, field <= value - lk: like, field like value \n  - in: in, field in value, multiple values are separated by commas \n  - nl: null, field is null \n  - nnl: not null, field is not null\n","title":"EligibleAccountConditionOperator"},"EligibleAccountConditionRelation":{"type":"string","enum":["and","or"],"description":"The relation among the conditions.\n","title":"EligibleAccountConditionRelation"},"EligibleAccountCondition":{"type":"object","properties":{"field":{"type":"string","description":"The field name of a single condition.\n"},"operator":{"$ref":"#/components/schemas/EligibleAccountConditionOperator","description":"The operator of a single condition.\n\nExample: \n\n  - eq: equal, field = value \n  - neq: not equal, field != value \n  - gt: greater than, field > value \n  - lt: less than, field < value \n  - gte: greater than or equal, field >= value \n  - lte: less than or equal, field <= value - lk: like, field like value \n  - in: in, field in value, multiple values are separated by commas \n  - nl: null, field is null \n  - nnl: not null, field is not null\n"},"value":{"type":"string","description":"The value of a single condition, which can be a list of values separated by commas.\n\n\n**Notes:** Account Condition only contains account related fields. Support is provided only for the indexed custom fields.\n"},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/EligibleAccountCondition"},"description":"The conditions will be combined by the relation.\n"},"relation":{"$ref":"#/components/schemas/EligibleAccountConditionRelation","description":"The relation among the conditions.\n"}},"description":"The conditions for account level filters for the commitment.","title":"EligibleAccountCondition"},"EligibleChargeConditionOperator":{"type":"string","enum":["eq","neq","gt","lt","gte","lte","lk","in","nl","nnl"],"description":"The operator of a single condition.\n\nExample: \n  \n  - eq: equal, field = value \n  - neq: not equal, field != value \n  - gt: greater than, field > value \n  - lt: less than, field < value \n  - gte: greater than or equal, field >= value \n  - lte: less than or equal, field <= value \n  - lk: like, field like value \n  - in: in, field in value, multiple values are separated by commas \n  - nl: null, field is null \n  - nnl: not null, field is not null\n","title":"EligibleChargeConditionOperator"},"EligibleChargeConditionRelation":{"type":"string","enum":["and","or"],"description":"The relation among the conditions.\n","title":"EligibleChargeConditionRelation"},"EligibleChargeCondition":{"type":"object","properties":{"field":{"type":"string","description":"The field name of a single condition.\n"},"operator":{"$ref":"#/components/schemas/EligibleChargeConditionOperator","description":"The operator of a single condition.\n\nExample: \n  \n  - eq: equal, field = value \n  - neq: not equal, field != value \n  - gt: greater than, field > value \n  - lt: less than, field < value \n  - gte: greater than or equal, field >= value \n  - lte: less than or equal, field <= value \n  - lk: like, field like value \n  - in: in, field in value, multiple values are separated by commas \n  - nl: null, field is null \n  - nnl: not null, field is not null\n"},"value":{"type":"string","description":"The value of a single condition, which can be a list of values separated by commas.\n\n\n**Notes:**  \n- PPDD (PrePaid DrawDown) charge will not be loaded during evaluation. \n- Charge condition only contains charge related fields. Support is provided only for the indexed custom fields.\n- Charge types supports only the OneTime, Recurring and Usage values. \n- Charge models supports only the FlatFee, PerUnit, Overage, Volume Tiered, TieredWithOverage, and Calculated values. \n"},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/EligibleChargeCondition"},"description":"The conditions will be combined by the relation.\n"},"relation":{"$ref":"#/components/schemas/EligibleChargeConditionRelation","description":"The relation among the conditions.\n"}},"description":"The conditions for charge level filters for the commitment.","title":"EligibleChargeCondition"},"CommitmentSettlementType":{"type":"string","enum":["NoSettlement","FullMinimum","CurrentPeriodOnly"],"description":"Settlement type for commitment cancellation.\n\n- `NoSettlement` - No settlement\n- `FullMinimum` - Full minimum due (evaluate the commitment until the commitment end)\n- `CurrentPeriodOnly` - Period minimum due (evaluate the commitment through the cancellation period end)\n","title":"CommitmentSettlementType"},"CommitmentCancellationPolicy":{"type":"object","properties":{"settlementType":{"$ref":"#/components/schemas/CommitmentSettlementType"}},"description":"Cancellation policy for a commitment. Defines how settlements are handled when a commitment is cancelled.","title":"CommitmentCancellationPolicy"},"GetCommitmentOutputListOrdersStatus":{"type":"string","enum":["Cancel1ed","Active","Evaluated","CancelledPendingEvaluation"],"description":"The status of the commitment.","title":"GetCommitmentOutputListOrdersStatus"},"GetCommitmentOutputListOrders":{"type":"object","properties":{"commitmentNumber":{"type":"string","maxLength":100,"description":"The commitment number.\n"},"id":{"type":"string","description":"ID of the commitment.\n"},"name":{"type":"string","maxLength":255,"description":"The name of the commitment. \n"},"type":{"$ref":"#/components/schemas/CommitmentTypeEnum"},"description":{"type":"string","maxLength":500,"description":"The description of the commitment. \n"},"prepaymentType":{"$ref":"#/components/schemas/CommitmentPrepaymentTypeEnum"},"priority":{"type":"integer","description":"It defines the evaluation order of the commitment. The lower the number, the higher the priority.\nWhen two commitments have the same priority, the commitment that was created initially will be evaluated first.\n"},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of a Commitment object."},"specificPeriodAlignmentDate":{"type":"string","format":"date","description":"The specific date for the period alignment. This field is required only if the `periodAlignmentOption` is set to `SpecificDate`."},"periodAlignmentOption":{"$ref":"#/components/schemas/PeriodAlignmentOptionEnum","default":"CommitmentStartDate"},"schedules":{"type":"array","items":{"$ref":"#/components/schemas/GetCommitmentOutputListOrdersSchedulesItems"},"description":"A list of Commitment schedule objects.\n"},"accountReceivableAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the Commitment object for customers. \n"},"adjustmentLiabilityAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"adjustmentRevenueAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"contractAssetAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n\n**Notes:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"contractLiabilityAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n\n**Notes:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"contractRecognizedRevenueAccountingCode":{"description":"The accounting code on the commitment for customers.\n\n\n**Notes:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"deferredRevenueAccountingCode":{"type":"string","maxLength":100,"description":"The deferred revenue accounting code for the commitment.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude commitment related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the commitment is allocation eligible in revenue recognition.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue recognition.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"recognizedRevenueAccountingCode":{"type":"string","maxLength":100,"description":"The recognized revenue accounting code for the commitment.\n"},"revenueAmortizationMethod":{"type":"string","maxLength":200,"description":"This field is used to dictate the type of revenue amortization method.\n"},"revenueRecognitionRule":{"type":"string","maxLength":255,"description":"The revenue recognition rule for the commitment.\n"},"revenueRecognitionTiming":{"type":"string","maxLength":200,"description":"This field is used to dictate the type of revenue recognition timing.\n"},"unbilledReceivablesAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"taxable":{"type":"boolean","description":"The flag to indicate whether the charge is taxable. If this field is set to `true`, both the fields `taxCode` and `taxMode` are required.\n"},"taxCode":{"type":"string","maxLength":100,"description":"The tax code of a charge.\n\n\n**Note:** This field is available when the `taxable` field is set to `true`.\n"},"taxMode":{"$ref":"#/components/schemas/GetCommitmentOutputListOrdersTaxMode","description":"The tax mode of a charge. This field is available when the `taxable` field is set to `true`.\n"},"version":{"type":"integer","description":"Version of the commitment.\n"},"currency":{"type":"string","description":"Currency of the commitment.\n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":true,"description":"The flag to exclude Commitment period from revenue accounting."},"eligibleAccountConditions":{"$ref":"#/components/schemas/EligibleAccountCondition"},"eligibleChargeConditions":{"$ref":"#/components/schemas/EligibleChargeCondition"},"cancellationEffectiveDate":{"type":"string","format":"date","description":"The date when the cancellation takes effect.\n"},"cancellationPolicyOverride":{"$ref":"#/components/schemas/CommitmentCancellationPolicy"},"status":{"$ref":"#/components/schemas/GetCommitmentOutputListOrdersStatus","description":"The status of the commitment."},"action":{"$ref":"#/components/schemas/ActionType"}},"title":"GetCommitmentOutputListOrders"},"OrderExistingAccountDetails":{"type":"object","properties":{"basicInfo":{"$ref":"#/components/schemas/GETAccountTypeBasicInfo"},"billToContact":{"$ref":"#/components/schemas/GETAccountTypeBillToContact"}},"description":"The account basic information that this order has been created under.\n","title":"OrderExistingAccountDetails"},"OrderLineItemRetrieveOrderBillingRule":{"type":"string","enum":["TriggerWithoutFulfillment","TriggerAsFulfillmentOccurs"],"description":"The billing rule of the Order Line Item.\n","title":"OrderLineItemRetrieveOrderBillingRule"},"OrderLineItemRetrieveOrderInlineDiscountType":{"type":"string","enum":["Percentage","FixedAmount","None"],"description":"This field is used to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nThis field is used together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n","title":"OrderLineItemRetrieveOrderInlineDiscountType"},"OrderLineItemRetrieveOrderItemCategory":{"type":"string","enum":["Sales","Return"],"default":"Sales","description":"The category of the Order Line Item, to indicate a product sale or return.\n","title":"OrderLineItemRetrieveOrderItemCategory"},"OrderLineItemRetrieveOrderItemState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Cancelled"],"description":"The state of an Order Line Item. See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n","title":"OrderLineItemRetrieveOrderItemState"},"OrderLineItemRetrieveOrderItemType":{"type":"string","enum":["Product","Fee","Services"],"description":"The type of the Order Line Item. \n","title":"OrderLineItemRetrieveOrderItemType"},"OrderLineItemRetrieveOrderRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"OrderLineItemRetrieveOrderRevenueRecognitionTiming"},"OrderLineItemRetrieveOrderRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"OrderLineItemRetrieveOrderRevenueAmortizationMethod"},"OrderLineItemRetrieveOrderTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode for the Order Line Item.\n","title":"OrderLineItemRetrieveOrderTaxMode"},"OrderLineItemRetrieveOrder":{"type":"object","properties":{"amendedByOrderOn":{"type":"string","description":"The date when the rate plan charge is amended through an order or amendment. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.\n"},"amount":{"type":"number","format":"double","description":"The calculated gross amount for the Order Line Item.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The calculated gross amount for an order line item excluding tax. If the tax mode is tax exclusive, the value of this field equals that of the `amount` field.\n\nIf the tax mode of an order line item is not set, the system treats it as tax exclusive by default. The value of the `amountWithoutTax` field equals that of the `amount` field.\n\nIf you create an order line item from the product catalog, the tax mode and tax code of the product rate plan charge are used for the order line item by default. You can still overwrite this default set-up by setting the tax mode and tax code of the order line item.\n"},"id":{"type":"string","format":"UUID","description":"The sytem generated Id for the Order Line Item.\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the order line item. \n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the OrderLineItem.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the order line item.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\nfeature turned on. The value is `null` in the response body without this feature turned on.\n"},"paymentTerm":{"type":"string","description":"The payment term name associated with the order line item.\n\nThe value of this field is `null` if you have the [Flexible Billing\nAttributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes)\nfeature disabled.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the order line item.\n\nThe value of this field is `null` if you have the [Flexible Billing\nAttributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes)\nfeature disabled.\n"},"itemNumber":{"type":"string","description":"The number for the Order Line Item.\n"},"originalOrderDate":{"type":"string","format":"date","description":"The date when the rate plan charge is created through an order or amendment. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.\n"},"quantityFulfilled":{"type":"number","format":"double","description":"The fulfilled quantity for an order line item.\n"},"quantityPendingFulfillment":{"type":"number","format":"double","description":"The quantity to fulfill for an order line item. \n"},"UOM":{"type":"string","description":"Specifies the units to measure usage.\n"},"accountingCode":{"type":"string","description":"The accounting code for the Order Line Item.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"amountPerUnit":{"type":"number","format":"double","description":"The actual charged amount per unit for the Order Line Item.\n"},"billTargetDate":{"type":"string","format":"date","description":"The target date for the Order Line Item to be picked up by bill run for billing.\n"},"billTo":{"type":"string","description":"The ID of the bill-to contact of an order line item. An existing contact under the billing account is specified as the bill-to contact of the order line item. The billing account is the order account.\n"},"billToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the bill-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `billToSnapshotId` field is exposed while retrieving the order line item details.\n"},"billingRule":{"$ref":"#/components/schemas/OrderLineItemRetrieveOrderBillingRule","description":"The billing rule of the Order Line Item.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"currency":{"type":"string","description":"The currency for the order line item. You can specify a currency when creating an order line item through the \"Create an order\" operation.\n"},"customFields":{"$ref":"#/components/schemas/OrderLineItemCustomFields"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferred revenue accounting code for the Order Line Item.\n"},"description":{"type":"string","description":"The description of the Order Line Item.\n"},"discount":{"type":"number","format":"double","description":"This field shows the total discount amount that is applied to an order line item after the `inlineDiscountType`, `inlineDiscountPerUnit` and `quantity` fields are set.\n\nThe inline discount is applied to the list price of an order line item (see the `listPrice` field).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude Order Line Item related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude Order Line Item from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"inlineDiscountPerUnit":{"type":"number","format":"double","description":"This field is used in accordance with the `inlineDiscountType` field, in the following manner:\n* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.\n* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.\n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"inlineDiscountType":{"$ref":"#/components/schemas/OrderLineItemRetrieveOrderInlineDiscountType","description":"This field is used to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nThis field is used together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"invoiceOwnerAccountId":{"type":"string","description":"The account ID of the invoice owner of the order line item.\n"},"invoiceOwnerAccountName":{"type":"string","description":"The account name of the invoice owner of the order line item.\n"},"invoiceOwnerAccountNumber":{"type":"string","description":"The account number of the invoice owner of the order line item.\n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue\nrecognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"itemCategory":{"$ref":"#/components/schemas/OrderLineItemRetrieveOrderItemCategory","default":"Sales","description":"The category of the Order Line Item, to indicate a product sale or return.\n"},"itemName":{"type":"string","description":"The name of the Order Line Item.\n"},"itemState":{"$ref":"#/components/schemas/OrderLineItemRetrieveOrderItemState","description":"The state of an Order Line Item. See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n"},"itemType":{"$ref":"#/components/schemas/OrderLineItemRetrieveOrderItemType","description":"The type of the Order Line Item. \n"},"listPrice":{"type":"number","format":"double","description":"The extended list price for an order line item, calculated by the formula: listPrice = listPricePerUnit * quantity\n"},"listPricePerUnit":{"type":"number","format":"double","description":"The list price per unit for the Order Line Item.\n"},"originalOrderId":{"type":"string","description":"The ID of the original sale order for a return order line item. \n"},"originalOrderLineItemId":{"type":"string","description":"The ID of the original sale order line item for a return order line item. \n"},"originalOrderLineItemNumber":{"type":"string","description":"The number of the original sale order line item for a return order line item. \n"},"originalOrderNumber":{"type":"string","description":"The number of the original sale order for a return order line item. \n"},"ownerAccountId":{"type":"string","description":"The account ID of the owner of the order line item.\n"},"ownerAccountName":{"type":"string","description":"The account name of the owner of the order line item.\n"},"ownerAccountNumber":{"type":"string","description":"The account number of the owner of the order line item.\n"},"productCode":{"type":"string","description":"The product code for the Order Line Item.\n"},"productRatePlanChargeId":{"type":"string","description":"Id of a Product Rate Plan Charge. Only one-time charges are supported.\n"},"purchaseOrderNumber":{"type":"string","description":"Used by customers to specify the Purchase Order Number provided by the buyer.\n"},"quantity":{"type":"number","format":"double","description":"The quantity of units, such as the number of authors in a hosted wiki service.\n"},"quantityAvailableForReturn":{"type":"number","format":"double","description":"The quantity that can be returned for an order line item. \n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognized revenue accounting code for the Order Line Item.\n"},"relatedSubscriptionNumber":{"type":"string","description":"Use this field to relate an order line item to a subscription when you create the order line item.\n\n* To relate an order line item to a new subscription which is yet to create in the same \"Create an order\" call, use this field in combination with the `subscriptions` > `subscriptionNumber` field in the \"Create order\" operation. Specify this field to the same value as that of the 'subscriptions' > `subscriptionNumber` field when you make the \"Create order\" call.\n* To relate an order line item to an existing subscription, specify this field to the subscription number of the existing subscription.\n"},"requiresFulfillment":{"type":"boolean","description":"The flag to show whether fulfillment is needed or not. It's derived from billing rule of the Order Line Item.\n"},"revenueRecognitionRule":{"type":"string","description":"The Revenue Recognition rule for the Order Line Item.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/OrderLineItemRetrieveOrderRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/OrderLineItemRetrieveOrderRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"shipTo":{"type":"string","description":"The ID of a contact that belongs to the owner acount or billing account of the order line item. Use this field to assign an existing account as the ship-to contact of an order line item. The billing account is the order account.\n"},"shipToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the ship-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `shipToSnapshotId` field is exposed while retrieving the order line item details.\n"},"soldTo":{"type":"string","description":"The ID of a contact that belongs to the owner acount or billing account of the order line item. Use this field to assign an existing account as the sold-to contact of an order line item. The billing account is the order account.\n"},"soldToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the sold-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `soldToSnapshotId` field is exposed while retrieving the order line item details.\n"},"taxCode":{"type":"string","description":"The tax code for the Order Line Item.\n"},"taxMode":{"$ref":"#/components/schemas/OrderLineItemRetrieveOrderTaxMode","description":"The tax mode for the Order Line Item.\n"},"transactionEndDate":{"type":"string","format":"date","description":"The date a transaction is completed. The default value of this field is the transaction start date. Also, the value of this field should always equal or be later than the value of the `transactionStartDate` field.\n"},"transactionStartDate":{"type":"string","format":"date","description":"The date a transaction starts. The default value of this field is the order date.\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"}},"title":"OrderLineItemRetrieveOrder"},"OrderSchedulingOptionsScheduledDatePolicy":{"type":"string","enum":["SpecificDate"],"description":"Date policy of the scheduled order.","title":"OrderSchedulingOptionsScheduledDatePolicy"},"OrderSchedulingOptions":{"type":"object","properties":{"scheduledDate":{"type":"string","format":"date","description":"The date for the order scheduled.\n"},"scheduledDatePolicy":{"$ref":"#/components/schemas/OrderSchedulingOptionsScheduledDatePolicy","description":"Date policy of the scheduled order."}},"description":"Information of scheduled order.\n","title":"OrderSchedulingOptions"},"PostOrderResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"PostOrderResponseTypeReasonsItems"},"CommitmentOutputStatus":{"type":"string","enum":["Cancel1ed","Active","Evaluated","CancelledPendingEvaluation"],"description":"The status of the commitment.","title":"CommitmentOutputStatus"},"CommitmentOutputSchedulesItemsStatus":{"type":"string","enum":["Active","Evaluated","Cancelled","CancelledPendingEvaluation"],"description":"The status of the schedule.","title":"CommitmentOutputSchedulesItemsStatus"},"CommitmentOutputSchedulesItems":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the schedule."},"startDate":{"type":"string","description":"The start date of the schedule."},"endDate":{"type":"string","description":"The end date of the schedule."},"prepaymentDefinition":{"$ref":"#/components/schemas/PrepaymentDefinition"},"totalAmount":{"type":"number","format":"double","description":"The total amount of the schedule."},"status":{"$ref":"#/components/schemas/CommitmentOutputSchedulesItemsStatus","description":"The status of the schedule."}},"title":"CommitmentOutputSchedulesItems"},"CommitmentOutput":{"type":"object","properties":{"id":{"type":"string","description":"ID of the commitment\n"},"commitmentNumber":{"type":"string","description":"Number of the commitment.\n"},"prepaymentType":{"$ref":"#/components/schemas/CommitmentPrepaymentTypeEnum"},"type":{"$ref":"#/components/schemas/CommitmentTypeEnum"},"startDate":{"type":"string","format":"date","description":"The start date of the commitment.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the commitment.\n"},"status":{"$ref":"#/components/schemas/CommitmentOutputStatus","description":"The status of the commitment."},"totalAmount":{"type":"number","format":"double","description":"The total amount of the commitment."},"schedules":{"type":"array","items":{"$ref":"#/components/schemas/CommitmentOutputSchedulesItems"},"description":"A list of Commitment schedule objects.\n"}},"description":"The Commitment object in the \"Create an order\" or \"Update an order\" response.\n","title":"CommitmentOutput"},"PostOrderResponseTypeOrderLineItemsItems":{"type":"object","properties":{"id":{"type":"string","maxLength":32,"description":"The sytem generated Id for the Order Line Item."},"itemNumber":{"type":"string","maxLength":100,"description":"The number for the Order Line Item."}},"title":"PostOrderResponseTypeOrderLineItemsItems"},"PostOrderResponseTypeRampsItems":{"type":"object","properties":{"rampNumber":{"type":"string","maxLength":50,"description":"The number of the ramp definition."},"subscriptionNumber":{"type":"string","maxLength":150,"description":"The number of the subscription that this ramp deal definition is applied to."}},"title":"PostOrderResponseTypeRampsItems"},"PostOrderResponseTypeRefundsItemsStatus":{"type":"string","enum":["Success","Error"],"description":"The status of the refund.","title":"PostOrderResponseTypeRefundsItemsStatus"},"PostOrderResponseTypeRefundsItems":{"type":"object","properties":{"number":{"type":"string","maxLength":32,"description":"The refund number."},"refundInvoiceNumbers":{"type":"array","items":{"type":"string","maxLength":255},"description":"An array of the refunded invoice numbers generated in this order request."},"status":{"$ref":"#/components/schemas/PostOrderResponseTypeRefundsItemsStatus","description":"The status of the refund."}},"title":"PostOrderResponseTypeRefundsItems"},"PostOrderResponseTypeStatus":{"type":"string","enum":["Draft","Pending","Completed","Scheduled"],"description":"Status of the order. `Pending` is only applicable for an order that contains a `CreateSubscription` order action.","title":"PostOrderResponseTypeStatus"},"PostOrderResponseTypeWriteOffItemsStatus":{"type":"string","enum":["Success","Failed"],"description":"The status of the write-off.","title":"PostOrderResponseTypeWriteOffItemsStatus"},"PostOrderResponseTypeWriteOffItems":{"type":"object","properties":{"amount":{"type":"number","format":"double","minimum":9,"maximum":22,"description":"The amount written off from the invoice balance."},"failedReason":{"type":"string","description":"The reason of write-off failure."},"invoiceNumber":{"type":"string","maxLength":255,"description":"The number of the invoice that is written off."},"status":{"$ref":"#/components/schemas/PostOrderResponseTypeWriteOffItemsStatus","description":"The status of the write-off."},"writeOffCreditMemoNumber":{"type":"string","maxLength":255,"description":"The number of the credit memo that is written off."}},"title":"PostOrderResponseTypeWriteOffItems"},"PostOrderResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"accountId":{"type":"string","maxLength":32,"description":"The account ID for the order. This field is returned instead of the `accountNumber` field if the `returnIds` query parameter is set to `true`."},"accountNumber":{"type":"string","maxLength":50,"description":"The account number for the order."},"commitments":{"type":"array","items":{"$ref":"#/components/schemas/CommitmentOutput"},"description":"The commitments created by this order request."},"creditMemoIds":{"type":"array","items":{"type":"string","maxLength":32},"description":"An array of the credit memo IDs generated in this order request. The credit memo is only available if you have the Invoice Settlement feature enabled. This field is returned instead of the `creditMemoNumbers` field if the `returnIds` query parameter is set to `true`."},"creditMemoNumbers":{"type":"array","items":{"type":"string","maxLength":255},"description":"An array of the credit memo numbers generated in this order request. The credit memo is only available if you have the Invoice Settlement feature enabled."},"invoiceIds":{"type":"array","items":{"type":"string","maxLength":32},"description":"An array of the invoice IDs generated in this order request. Normally it includes one invoice ID only, but can include multiple items when a subscription was tagged as invoice separately. This field is returned instead of the `invoiceNumbers` field if the `returnIds` query parameter is set to `true`."},"invoiceNumbers":{"type":"array","items":{"type":"string","maxLength":255},"description":"An array of the invoice numbers generated in this order request. Normally it includes one invoice number only, but can include multiple items when a subscription was tagged as invoice separately."},"orderId":{"type":"string","maxLength":32,"description":"The ID of the order created. This field is returned instead of the `orderNumber` field if the `returnIds` query parameter is set to `true`."},"orderLineItems":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderResponseTypeOrderLineItemsItems"},"description":"[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) are non subscription based items created by an Order, representing transactional charges such as one-time fees, physical goods, or professional service charges that are not sold as subscription services. \n\nWith the Order Line Items feature enabled, you can now launch non-subscription and unified monetization business models in Zuora, in addition to subscription business models. \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"},"orderNumber":{"type":"string","maxLength":100,"description":"The order number of the order created."},"paidAmount":{"type":"string","minLength":9,"maxLength":22,"description":"The total amount collected in this order request."},"paymentId":{"type":"string","maxLength":32,"description":"The payment Id that is collected in this order request. This field is returned instead of the `paymentNumber` field if the `returnIds` query parameter is set to `true`."},"paymentNumber":{"type":"string","maxLength":32,"description":"The payment number that is collected in this order request."},"ramps":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderResponseTypeRampsItems"},"description":"**Note**: This field 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\nThe ramp definitions created by this order request.\n"},"refunds":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderResponseTypeRefundsItems"},"description":"Container for refunds."},"status":{"$ref":"#/components/schemas/PostOrderResponseTypeStatus","description":"Status of the order. `Pending` is only applicable for an order that contains a `CreateSubscription` order action."},"subscriptionIds":{"type":"array","items":{"type":"string","maxLength":32},"description":"Container for the subscription IDs of the subscriptions in an order. This field is returned if the `returnIds` query parameter is set to `true`."},"writeOff":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderResponseTypeWriteOffItems"},"description":"Container for write-offs."}},"description":"Response information of orders.","title":"PostOrderResponseType"},"OrderStatus":{"type":"string","enum":["Draft","Pending","Completed","Cancelled","Scheduled","Executing","Failed"],"description":"The status of the order. If the order contains any `Pending Activation` or `Pending Acceptance` subscription, the order status will be `Pending`; If the order is in draft status, the order status will be `Draft`; otherwise the order status is `Completed`.\n\nThe available order statuses are as follow:\n- `Draft`: The order is in draft status.\n- `Pending`: The order is in pending status.\n- `Completed`: The order is in completed status.\n- `Cancelled`: The draft or scheduled order is cancelled.\n- `Scheduled`: The order is in scheduled status and it is only valid if the Scheduled Orders feature is enabled.\n- `Executing`: The scheduled order is executed by a scheduler and it is only valid if the Scheduled Orders feature is enabled.\n- `Failed`: The scheduled order has failed.\n","title":"OrderStatus"},"OrderSubscriptionsItemsExternallyManagedBy":{"type":"string","enum":["Amazon","Apple","Google","Roku"],"description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n","title":"OrderSubscriptionsItemsExternallyManagedBy"},"ChargeOverrideBillingBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek"],"description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n","title":"ChargeOverrideBillingBillCycleType"},"ChargeOverrideBillingBillingPeriod":{"type":"string","enum":["Month","Quarter","Semi_Annual","Annual","Eighteen_Months","Two_Years","Three_Years","Five_Years","Specific_Months","Subscription_Term","Week","Specific_Weeks","Specific_Days"],"description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n","title":"ChargeOverrideBillingBillingPeriod"},"ChargeOverrideBillingBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart"],"description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n","title":"ChargeOverrideBillingBillingPeriodAlignment"},"ChargeOverrideBillingBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n","title":"ChargeOverrideBillingBillingTiming"},"ChargeOverrideBillingWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n","title":"ChargeOverrideBillingWeeklyBillCycleDay"},"ChargeOverrideBilling":{"type":"object","properties":{"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.\n"},"billCycleType":{"$ref":"#/components/schemas/ChargeOverrideBillingBillCycleType","description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n"},"billingPeriod":{"$ref":"#/components/schemas/ChargeOverrideBillingBillingPeriod","description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/ChargeOverrideBillingBillingPeriodAlignment","description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n"},"billingTiming":{"$ref":"#/components/schemas/ChargeOverrideBillingBillingTiming","description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n"},"specificBillingPeriod":{"type":"integer","description":"Duration of each billing period in months or weeks, depending on the value of the `billingPeriod` field. Only applicable if the value of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/ChargeOverrideBillingWeeklyBillCycleDay","description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n"}},"description":"Billing information about the charge.\n","title":"ChargeOverrideBilling"},"ChargeOverrideChargeFunction":{"type":"string","enum":["CommitmentTrueUp","CreditCommitment"],"description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"ChargeOverrideChargeFunction"},"ChargeOverrideCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n","title":"ChargeOverrideCreditOption"},"ChargeOverrideDrawdownScope":{"type":"string","enum":["SUBSCRIPTION","ACCOUNT"],"description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"ChargeOverrideDrawdownScope"},"ChargeOverridePrepaymentUnitType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"ChargeOverridePrepaymentUnitType"},"RecurringCalculatedPricingOverrideGetOrder":{"type":"object","properties":{"clearingExistingMinimumAmount":{"type":"boolean","description":"Set this field to `true` to reset the minimum amount to null.\n"},"clearingExistingMaximumAmount":{"type":"boolean","description":"Set this field to `true` to reset the maximum amount to null.\n"},"eligibleAccountConditions":{"type":"object","additionalProperties":{"description":"Any type"},"description":"A filter expression (single condition or nested condition groups with logical relations) that defines which accounts’ charges are considered in the calculation. \n"},"eligibleChargeConditions":{"type":"object","additionalProperties":{"description":"Any type"},"description":"A filter expression (single condition or nested condition groups with logical relations) that defines which rate plan charges contribute to the calculation; if omitted, the scope defaults to “All charges” (i.e., all charges under the selected accounts are eligible).\n"},"minimumAmount":{"type":"number","format":"double","description":"Non-negative currency amount that establishes the lower bound for the calculated charge in a billing period. If the calculated amount is less than this value, the invoice amount will be set to the minimum value.\n"},"maximumAmount":{"type":"number","format":"double","description":"Non-negative currency amount that establishes the upper bound for the calculated charge in a billing period. If the calculated amount exceeds this value, the invoice amount will be set to the maximum value.\n"},"percentage":{"type":"number","format":"double","description":"The specific rate applied to the total eligible spend to determine the base invoice amount before any minimum or maximum amount is applied.  \n"}},"required":["percentage"],"description":"Pricing information about a recurring charge that uses the \"calculated\" charge model.\n","title":"RecurringCalculatedPricingOverrideGetOrder"},"UsageFlatFeePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsageFlatFeePricingOverridePriceChangeOption"},"UsageFlatFeePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsageFlatFeePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double","description":"Price of the charge.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"}},"description":"Pricing information about a usage charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n","title":"UsageFlatFeePricingOverride"},"UsageOveragePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsageOveragePricingOverridePriceChangeOption"},"UsageOveragePricingOverrideOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Specifies whether to credit the customer for unused units.\n\nIf the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.\n","title":"UsageOveragePricingOverrideOverageUnusedUnitsCreditOption"},"UsageOveragePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsageOveragePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"includedUnits":{"type":"number","format":"double","minimum":0,"description":"Number of free units that may be consumed.\n"},"numberOfPeriods":{"type":"integer","minimum":1,"description":"Number of periods that Zuora considers when calculating overage charges with overage smoothing.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"},"overagePrice":{"type":"number","format":"double","description":"Price per overage unit consumed.\n"},"overageUnusedUnitsCreditOption":{"$ref":"#/components/schemas/UsageOveragePricingOverrideOverageUnusedUnitsCreditOption","description":"Specifies whether to credit the customer for unused units.\n\nIf the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.\n"},"unusedUnitsCreditRates":{"type":"number","format":"double","description":"Per-unit rate at which to credit the customer for unused units. Only applicable if the value of the `overageUnusedUnitsCreditOption` field is `CreditBySpecificRate`.\n"}},"description":"Pricing information about a usage charge that uses the \"overage\" charge model. In this charge model, the charge has an allowance of free units and a fixed price per additional unit consumed.\n","title":"UsageOveragePricingOverride"},"UsagePerUnitPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsagePerUnitPricingOverridePriceChangeOption"},"UsagePerUnitPricingOverrideRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload"],"description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date. \n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n\n\n  **Note:** For usage charges with **Dynamic Pricing** enabled that use a `Usage` object field to determine the price automatically, you cannot override the `ratingGroup` defined in the product catalog.\n","title":"UsagePerUnitPricingOverrideRatingGroup"},"UsagePerUnitPricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsagePerUnitPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double","description":"Per-unit price of the charge.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"},"ratingGroup":{"$ref":"#/components/schemas/UsagePerUnitPricingOverrideRatingGroup","description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date. \n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n\n\n  **Note:** For usage charges with **Dynamic Pricing** enabled that use a `Usage` object field to determine the price automatically, you cannot override the `ratingGroup` defined in the product catalog.\n"},"uom":{"type":"number","format":"double","description":"Unit of measure of the standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"}},"description":"Pricing information about a usage charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit consumed.\n","title":"UsagePerUnitPricingOverride"},"UsageTieredPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsageTieredPricingOverridePriceChangeOption"},"UsageTieredPricingOverrideRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload"],"description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date. \n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n\n\n  **Note:** For usage charges with **Dynamic Pricing** enabled that use a `Usage` object field to determine the price automatically, you cannot override the `ratingGroup` defined in the product catalog.\n","title":"UsageTieredPricingOverrideRatingGroup"},"UsageTieredPricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsageTieredPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"ratingGroup":{"$ref":"#/components/schemas/UsageTieredPricingOverrideRatingGroup","description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date. \n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n\n\n  **Note:** For usage charges with **Dynamic Pricing** enabled that use a `Usage` object field to determine the price automatically, you cannot override the `ratingGroup` defined in the product catalog.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"},"description":"List of cumulative pricing tiers in the charge.\n"},"uom":{"type":"string","description":"Unit of measure of the standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"}},"description":"Pricing information about a usage charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are consumed.\n","title":"UsageTieredPricingOverride"},"UsageTieredWithOveragePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsageTieredWithOveragePricingOverridePriceChangeOption"},"UsageTieredWithOveragePricingOverrideOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Specifies whether to credit the customer for unused units.\n\nIf the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.\n","title":"UsageTieredWithOveragePricingOverrideOverageUnusedUnitsCreditOption"},"UsageTieredWithOveragePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsageTieredWithOveragePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"numberOfPeriods":{"type":"integer","minimum":1,"description":"Number of periods that Zuora considers when calculating overage charges with overage smoothing.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.        \n"},"overagePrice":{"type":"number","format":"double","description":"Price per overage unit consumed.\n"},"overageUnusedUnitsCreditOption":{"$ref":"#/components/schemas/UsageTieredWithOveragePricingOverrideOverageUnusedUnitsCreditOption","description":"Specifies whether to credit the customer for unused units.\n\nIf the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"},"description":"List of cumulative pricing tiers in the charge.\n"},"unusedUnitsCreditRates":{"type":"number","format":"double","description":"Per-unit rate at which to credit the customer for unused units. Only applicable if the value of the `overageUnusedUnitsCreditOption` field is `CreditBySpecificRate`.\n"}},"description":"Pricing information about a usage charge that uses the \"tiered with overage\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are consumed. The charge also has a fixed price per unit consumed beyond the limit of the final tier.\n","title":"UsageTieredWithOveragePricingOverride"},"UsageVolumePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsageVolumePricingOverridePriceChangeOption"},"UsageVolumePricingOverrideRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload"],"description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date. \n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n\n\n**Note:** For usage charges with **Dynamic Pricing** enabled that use a `Usage` object field to determine the price automatically, you cannot override the `ratingGroup` defined in the product catalog.\n","title":"UsageVolumePricingOverrideRatingGroup"},"UsageVolumePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsageVolumePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"ratingGroup":{"$ref":"#/components/schemas/UsageVolumePricingOverrideRatingGroup","description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date. \n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n\n\n**Note:** For usage charges with **Dynamic Pricing** enabled that use a `Usage` object field to determine the price automatically, you cannot override the `ratingGroup` defined in the product catalog.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"},"description":"List of variable pricing tiers in the charge.\n"},"uom":{"type":"number","format":"double","description":"Unit of measure of the standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"}},"description":"Pricing information about a usage charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are consumed.\n","title":"UsageVolumePricingOverride"},"ChargeOverridePricing":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/ChargeModelDataOverride"},"discount":{"$ref":"#/components/schemas/DiscountPricingOverride"},"oneTimeFlatFee":{"$ref":"#/components/schemas/OneTimeFlatFeePricingOverride"},"oneTimePerUnit":{"$ref":"#/components/schemas/OneTimePerUnitPricingOverride"},"oneTimeTiered":{"$ref":"#/components/schemas/OneTimeTieredPricingOverride"},"oneTimeVolume":{"$ref":"#/components/schemas/OneTimeVolumePricingOverride"},"recurringCalculated":{"$ref":"#/components/schemas/RecurringCalculatedPricingOverrideGetOrder"},"recurringDelivery":{"$ref":"#/components/schemas/RecurringDeliveryPricingOverride"},"recurringFlatFee":{"$ref":"#/components/schemas/RecurringFlatFeePricingOverride"},"recurringPerUnit":{"$ref":"#/components/schemas/RecurringPerUnitPricingOverride"},"recurringTiered":{"$ref":"#/components/schemas/RecurringTieredPricingOverride"},"recurringVolume":{"$ref":"#/components/schemas/RecurringVolumePricingOverride"},"usageFlatFee":{"$ref":"#/components/schemas/UsageFlatFeePricingOverride"},"usageOverage":{"$ref":"#/components/schemas/UsageOveragePricingOverride"},"usagePerUnit":{"$ref":"#/components/schemas/UsagePerUnitPricingOverride"},"usageTiered":{"$ref":"#/components/schemas/UsageTieredPricingOverride"},"usageTieredWithOverage":{"$ref":"#/components/schemas/UsageTieredWithOveragePricingOverride"},"usageVolume":{"$ref":"#/components/schemas/UsageVolumePricingOverride"}},"description":"Pricing information about the charge.\n","title":"ChargeOverridePricing"},"ChargeOverrideProrationOption":{"type":"string","enum":["NoProration","TimeBasedProration","DefaultFromTenantSetting","ChargeFullPeriod","CustomizeProrationOptionOverrides"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n","title":"ChargeOverrideProrationOption"},"ChargeOverrideRatingPropertiesOverrideProrationUnit":{"type":"string","enum":["ProrateByDay","ProrateByMonthFirst"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n","title":"ChargeOverrideRatingPropertiesOverrideProrationUnit"},"ChargeOverrideRatingPropertiesOverrideDaysInMonth":{"type":"string","enum":["UseActualDays","Assume30Days","Assume30DaysStrict"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n","title":"ChargeOverrideRatingPropertiesOverrideDaysInMonth"},"ChargeOverrideRatingPropertiesOverride":{"type":"object","properties":{"isProratePartialMonth":{"type":"boolean","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify whether to prorate the recurring charge for a partial month. The tenant-level proration option will be overridden.\n"},"prorationUnit":{"$ref":"#/components/schemas/ChargeOverrideRatingPropertiesOverrideProrationUnit","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n"},"daysInMonth":{"$ref":"#/components/schemas/ChargeOverrideRatingPropertiesOverrideDaysInMonth","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n"}},"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n","title":"ChargeOverrideRatingPropertiesOverride"},"ChargeOverrideRevRecTriggerCondition":{"type":"string","enum":["Contract Effective Date","Service Activation Date","Customer Acceptance Date"],"description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n","title":"ChargeOverrideRevRecTriggerCondition"},"ChargeOverrideRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"ChargeOverrideRevenueRecognitionTiming"},"ChargeOverrideRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"ChargeOverrideRevenueAmortizationMethod"},"ChargeOverrideRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"ChargeOverrideRolloverApply"},"TriggerParamsStartDatePolicy":{"type":"string","enum":["AlignToApplyToCharge","SpecificDate","EndOfLastInvoicePeriodOfApplyToCharge","FixedPeriodAfterApplyToChargeStartDate"],"description":"Start date policy of the discount charge to become active when the **Apply to billing period partially** checkbox is selected from the product catalog UI or the `applyToBillingPeriodPartially` field is set as true from the \"CRUD: Create a product rate plan charge\" operation. \n\n- If the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n- If the value of this field is `FixedPeriodAfterApplyToChargeStartDate`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n\n**Notes**: \n  - You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field. \n  - You can use either `triggerEvent` or `startDatePolicy` to define when a discount charge starts, but not both at the same time.\n","title":"TriggerParamsStartDatePolicy"},"TriggerParamsStartPeriodsType":{"type":"string","enum":["Days","Weeks","Months","Years"],"description":"Unit of time that the discount charge duration is measured in. Only applicable if the value of the `startDatePolicy` field is `FixedPeriodAfterApplyToChargeStartDate`.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n","title":"TriggerParamsStartPeriodsType"},"TriggerParamsTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance","SpecificDate"],"description":"Condition for the charge to become active.\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n","title":"TriggerParamsTriggerEvent"},"TriggerParams":{"type":"object","properties":{"periodsAfterChargeStart":{"type":"integer","description":"Duration of the discount charge in days, weeks, months, or years, depending on the value of the `startPeriodsType` field. Only applicable if the value of the `startDatePolicy` field is `FixedPeriodAfterApplyToChargeStartDate`.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"specificTriggerDate":{"type":"string","format":"date","description":"Date in YYYY-MM-DD format. Only applicable if the value of the `triggerEvent` field is `SpecificDate`. \n\nWhile this field is applicable, if this field is not set, your `CreateSubscription` order action creates a `Pending` order and a `Pending Acceptance` subscription. If at the same time the service activation date is required and not set, a `Pending Activation` subscription is created.\n\nWhile this field is applicable, if this field is not set, the following order actions create a `Pending` order but do not impact the subscription status. **Note**: This feature is in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n"},"startDatePolicy":{"$ref":"#/components/schemas/TriggerParamsStartDatePolicy","description":"Start date policy of the discount charge to become active when the **Apply to billing period partially** checkbox is selected from the product catalog UI or the `applyToBillingPeriodPartially` field is set as true from the \"CRUD: Create a product rate plan charge\" operation. \n\n- If the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n- If the value of this field is `FixedPeriodAfterApplyToChargeStartDate`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n\n**Notes**: \n  - You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field. \n  - You can use either `triggerEvent` or `startDatePolicy` to define when a discount charge starts, but not both at the same time.\n"},"startPeriodsType":{"$ref":"#/components/schemas/TriggerParamsStartPeriodsType","description":"Unit of time that the discount charge duration is measured in. Only applicable if the value of the `startDatePolicy` field is `FixedPeriodAfterApplyToChargeStartDate`.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"triggerEvent":{"$ref":"#/components/schemas/TriggerParamsTriggerEvent","description":"Condition for the charge to become active.\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n"}},"description":"Specifies when a charge becomes active.\n","title":"TriggerParams"},"ChargeOverrideTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of a charge.  This field is available when the `taxable` field is set to `true`.\n","title":"ChargeOverrideTaxMode"},"ChargeOverrideValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n","title":"ChargeOverrideValidityPeriodType"},"ChargeOverride":{"type":"object","properties":{"accountReceivableAccountingCode":{"type":"string","description":"The accountReceivableAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>, <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a>, and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Get_started_with_Invoice_Settlement/AA_Overview_of_Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> features are enabled.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The adjustmentLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The adjustmentRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"billing":{"$ref":"#/components/schemas/ChargeOverrideBilling","description":"Billing information about the charge.\n"},"chargeFunction":{"$ref":"#/components/schemas/ChargeOverrideChargeFunction","description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"creditOption":{"$ref":"#/components/schemas/ChargeOverrideCreditOption","description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n"},"chargeModel":{"type":"string","description":"The chargeModel of a standalone charge.\n\n\nSupported charge models:\n\n* `FlatFee`\n\n* `PerUnit`\n\n* `Volume`\n\n* `Tiered`\n\n* `DiscountFixedAmount`\n\n* `DiscountPercentage`\n\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"chargeNumber":{"type":"string","maxLength":50,"description":"Charge number of the charge. For example, C-00000307.\n\n* If you do not set this field, Zuora will generate a charge number starting with a default prefix, for example, C-. This default prefix is predefined in **Billing Settings** > **Define Default Subscription and Order Settings**.\n* If you want to use a custom charge number, do not use the default prefix predefined in **Billing Settings** > **Define Default Subscription and Order Settings**. Use your own prefix, for example, SC-.\n"},"chargeType":{"type":"string","description":"The chargeType of a standalone charge.\n\n\nSupported charge types:\n\n* `OneTime`\n\n* `Recurring`\n\n* `Usage`\n\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"contractAssetAccountingCode":{"type":"string","description":"The contractAssetAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The contractLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The contractRecognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferredRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"description":{"type":"string","maxLength":500,"description":"Description of the charge.\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"drawdownScope":{"$ref":"#/components/schemas/ChargeOverrideDrawdownScope","description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"endDate":{"$ref":"#/components/schemas/EndConditions"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nThe value must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge. \n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\nIf both the following features are enabled in your tenant, you must ensure the `excludeItemBillingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge. In addition, if the `excludeItemBookingFromRevenueAccounting` field in an Create Subscription or Add Product order action is set to `false`, you must also set the `excludeItemBillingFromRevenueAccounting` field in this order action to `false`.\n  * Prepaid with Drawdown\n  * Unbilled Usage\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charges from revenue accounting.\n\nIf both the following features are enabled in your tenant, you must ensure the `excludeItemBookingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge.\n  * Prepaid with Drawdown\n  * Unbilled Usage\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe value is either \"True\" or \"False\". It determines whether the rollover fields are needed.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue\nrecognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"name":{"type":"string","description":"The name of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"negotiatedPriceTable":{"type":"array","items":{"$ref":"#/components/schemas/NegotiatedItems"},"description":"Array of negotiated price table rate card entries in the order request.\n\n\n**Note:** To enable the Negotiated Price Table feature, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.                 \n"},"pobPolicy":{"type":"string","description":"The pobPolicy of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"prepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaymentUnitType":{"$ref":"#/components/schemas/ChargeOverridePrepaymentUnitType","description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"pricing":{"$ref":"#/components/schemas/ChargeOverridePricing","description":"Pricing information about the charge.\n"},"pricingAttributes":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for pricing attribute and value in the order request.\n\n\n**Note:** To enable Dynamic Pricing, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"productCategory":{"type":"string","description":"The productCategory of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productClass":{"type":"string","description":"The productClass of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productFamily":{"type":"string","description":"The productFamily of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productLine":{"type":"string","description":"The productLine of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productRatePlanChargeNumber":{"type":"string","description":"Number of a product rate-plan charge for this subscription.\n"},"productRateplanChargeId":{"type":"string","description":"Internal identifier of the product rate plan charge that the charge is based on.\n"},"prorationOption":{"$ref":"#/components/schemas/ChargeOverrideProrationOption","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n"},"ratingPropertiesOverride":{"$ref":"#/components/schemas/ChargeOverrideRatingPropertiesOverride","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"revRecCode":{"type":"string","maxLength":70,"description":"Revenue Recognition Code\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/ChargeOverrideRevRecTriggerCondition","description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n"},"revenueRecognitionRuleName":{"type":"string","description":"Specifies the revenue recognition rule, such as `Recognize upon invoicing` or `Recognize daily over time`.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/ChargeOverrideRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/ChargeOverrideRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"rolloverApply":{"$ref":"#/components/schemas/ChargeOverrideRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"rolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"startDate":{"$ref":"#/components/schemas/TriggerParams"},"taxCode":{"type":"string","description":"The tax code of a charge. This field is available when the `taxable` field is set to `true`.\n"},"taxMode":{"$ref":"#/components/schemas/ChargeOverrideTaxMode","description":"The tax mode of a charge.  This field is available when the `taxable` field is set to `true`.\n"},"taxable":{"type":"boolean","description":"The flag indicates whether the charge is taxable. If this field is set to `true`, the `taxCode` and `taxMode` fields must be specified.\n"},"unBilledReceivablesAccountingCode":{"type":"string","description":"The unBilledReceivablesAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.\n"},"validityPeriodType":{"$ref":"#/components/schemas/ChargeOverrideValidityPeriodType","description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n"}},"required":["productRateplanChargeId"],"description":"Charge associated with a rate plan.\n","title":"ChargeOverride"},"RatePlanFeatureOverride":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/RatePlanFeatureOverrideCustomFields"},"description":{"type":"string","maxLength":500,"description":"A description of the feature."},"featureId":{"type":"string","description":"Internal identifier of the feature in the product catalog.\n"},"id":{"type":"string","description":"Internal identifier of the rate plan feature override.\n"}},"description":"Information about feature in rate plan.\n","title":"RatePlanFeatureOverride"},"RatePlanOverride":{"type":"object","properties":{"chargeOverrides":{"type":"array","items":{"$ref":"#/components/schemas/ChargeOverride"},"description":"List of charges associated with the rate plan.\n"},"clearingExistingFeatures":{"type":"boolean","description":"Specifies whether all features in the rate plan will be cleared.\n"},"customFields":{"$ref":"#/components/schemas/OrdersRatePlanObjectCustomFields"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"isFromExternalCatalog":{"type":"boolean","description":"Indicates whether the rate plan is created from the Zuora product catalog or from an external product catalog.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"newRatePlanId":{"type":"string","description":"Internal identifier of the rate plan.\n"},"productRatePlanId":{"type":"string","description":"Internal identifier of the product rate plan that the rate plan is based on.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanName":{"type":"string","description":"Name of the standalone rate plan.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"subscriptionProductFeatures":{"type":"array","items":{"$ref":"#/components/schemas/RatePlanFeatureOverride"},"description":"List of features associated with the rate plan.\nThe system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:\n* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.\n* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.    \n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.\n"},"subscriptionRatePlanNumber":{"type":"string","maxLength":50,"description":"Number of a subscription rate plan for this subscription.\n"}},"required":["productRatePlanId"],"description":"Rate plan associated with a subscription.\n","title":"RatePlanOverride"},"ChangePlanEffectivePolicy":{"type":"string","enum":["EffectiveImmediately","EffectiveEndOfBillingPeriod","SpecificDate"],"description":"* If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n* If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n* Otherwise, the effective policy is `SpecificDate` by default.\n","title":"ChangePlanEffectivePolicy"},"ChangePlanChargeOverrideGetOrderBillingBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek"],"description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n","title":"ChangePlanChargeOverrideGetOrderBillingBillCycleType"},"ChangePlanChargeOverrideGetOrderBillingBillingPeriod":{"type":"string","enum":["Month","Quarter","Semi_Annual","Annual","Eighteen_Months","Two_Years","Three_Years","Five_Years","Specific_Months","Subscription_Term","Week","Specific_Weeks","Specific_Days"],"description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n","title":"ChangePlanChargeOverrideGetOrderBillingBillingPeriod"},"ChangePlanChargeOverrideGetOrderBillingBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart"],"description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n","title":"ChangePlanChargeOverrideGetOrderBillingBillingPeriodAlignment"},"ChangePlanChargeOverrideGetOrderBillingBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n","title":"ChangePlanChargeOverrideGetOrderBillingBillingTiming"},"ChangePlanChargeOverrideGetOrderBillingWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n","title":"ChangePlanChargeOverrideGetOrderBillingWeeklyBillCycleDay"},"ChangePlanChargeOverrideGetOrderBilling":{"type":"object","properties":{"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.\n"},"billCycleType":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderBillingBillCycleType","description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n"},"billingPeriod":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderBillingBillingPeriod","description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderBillingBillingPeriodAlignment","description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n"},"billingTiming":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderBillingBillingTiming","description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n"},"specificBillingPeriod":{"type":"integer","description":"Duration of each billing period in months or weeks, depending on the value of the `billingPeriod` field. Only applicable if the value of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderBillingWeeklyBillCycleDay","description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n"}},"description":"Billing information about the charge.\n","title":"ChangePlanChargeOverrideGetOrderBilling"},"ChangePlanChargeOverrideGetOrderChargeFunction":{"type":"string","enum":["CommitmentTrueUp","CreditCommitment"],"description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"ChangePlanChargeOverrideGetOrderChargeFunction"},"ChangePlanChargeOverrideGetOrderCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n","title":"ChangePlanChargeOverrideGetOrderCreditOption"},"ChangePlanChargeOverrideGetOrderDrawdownScope":{"type":"string","enum":["SUBSCRIPTION","ACCOUNT"],"description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"ChangePlanChargeOverrideGetOrderDrawdownScope"},"ChangePlanChargeOverrideGetOrderPrepaymentUnitType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"ChangePlanChargeOverrideGetOrderPrepaymentUnitType"},"ChangePlanChargeOverrideGetOrderPricing":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/ChargeModelDataOverride"},"discount":{"$ref":"#/components/schemas/DiscountPricingOverride"},"oneTimeFlatFee":{"$ref":"#/components/schemas/OneTimeFlatFeePricingOverride"},"oneTimePerUnit":{"$ref":"#/components/schemas/OneTimePerUnitPricingOverride"},"oneTimeTiered":{"$ref":"#/components/schemas/OneTimeTieredPricingOverride"},"oneTimeVolume":{"$ref":"#/components/schemas/OneTimeVolumePricingOverride"},"recurringCalculated":{"$ref":"#/components/schemas/RecurringCalculatedPricingOverrideGetOrder"},"recurringDeliveryBased":{"$ref":"#/components/schemas/RecurringDeliveryPricingOverride"},"recurringFlatFee":{"$ref":"#/components/schemas/RecurringFlatFeePricingOverride"},"recurringPerUnit":{"$ref":"#/components/schemas/RecurringPerUnitPricingOverride"},"recurringTiered":{"$ref":"#/components/schemas/RecurringTieredPricingOverride"},"recurringVolume":{"$ref":"#/components/schemas/RecurringVolumePricingOverride"},"usageFlatFee":{"$ref":"#/components/schemas/UsageFlatFeePricingOverride"},"usageOverage":{"$ref":"#/components/schemas/UsageOveragePricingOverride"},"usagePerUnit":{"$ref":"#/components/schemas/UsagePerUnitPricingOverride"},"usageTiered":{"$ref":"#/components/schemas/UsageTieredPricingOverride"},"usageTieredWithOverage":{"$ref":"#/components/schemas/UsageTieredWithOveragePricingOverride"},"usageVolume":{"$ref":"#/components/schemas/UsageVolumePricingOverride"}},"description":"Pricing information about the charge.\n","title":"ChangePlanChargeOverrideGetOrderPricing"},"ChangePlanChargeOverrideGetOrderProrationOption":{"type":"string","enum":["NoProration","TimeBasedProration","DefaultFromTenantSetting","ChargeFullPeriod","CustomizeProrationOptionOverrides"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n","title":"ChangePlanChargeOverrideGetOrderProrationOption"},"ChangePlanChargeOverrideGetOrderRatingPropertiesOverrideProrationUnit":{"type":"string","enum":["ProrateByDay","ProrateByMonthFirst"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n","title":"ChangePlanChargeOverrideGetOrderRatingPropertiesOverrideProrationUnit"},"ChangePlanChargeOverrideGetOrderRatingPropertiesOverrideDaysInMonth":{"type":"string","enum":["UseActualDays","Assume30Days","Assume30DaysStrict"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n","title":"ChangePlanChargeOverrideGetOrderRatingPropertiesOverrideDaysInMonth"},"ChangePlanChargeOverrideGetOrderRatingPropertiesOverride":{"type":"object","properties":{"isProratePartialMonth":{"type":"boolean","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify whether to prorate the recurring charge for a partial month. The tenant-level proration option will be overridden.\n"},"prorationUnit":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderRatingPropertiesOverrideProrationUnit","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n"},"daysInMonth":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderRatingPropertiesOverrideDaysInMonth","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n"}},"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n","title":"ChangePlanChargeOverrideGetOrderRatingPropertiesOverride"},"ChangePlanChargeOverrideGetOrderRevRecTriggerCondition":{"type":"string","enum":["Contract Effective Date","Service Activation Date","Customer Acceptance Date"],"description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n","title":"ChangePlanChargeOverrideGetOrderRevRecTriggerCondition"},"ChangePlanChargeOverrideGetOrderRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n","title":"ChangePlanChargeOverrideGetOrderRevenueRecognitionTiming"},"ChangePlanChargeOverrideGetOrderRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n","title":"ChangePlanChargeOverrideGetOrderRevenueAmortizationMethod"},"ChangePlanChargeOverrideGetOrderRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"ChangePlanChargeOverrideGetOrderRolloverApply"},"ChangePlanChargeOverrideGetOrderValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n","title":"ChangePlanChargeOverrideGetOrderValidityPeriodType"},"ChangePlanChargeOverrideGetOrder":{"type":"object","properties":{"accountReceivableAccountingCode":{"type":"string","description":"The accountReceivableAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>, <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a>, and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Get_started_with_Invoice_Settlement/AA_Overview_of_Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> features are enabled.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The adjustmentLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The adjustmentRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"billing":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderBilling","description":"Billing information about the charge.\n"},"chargeFunction":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderChargeFunction","description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"creditOption":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderCreditOption","description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n"},"chargeModel":{"type":"string","description":"The chargeModel of a standalone charge.\n\n\nSupported charge models:\n\n* `FlatFee`\n\n* `PerUnit`\n\n* `Volume`\n\n* `Tiered`\n\n* `DiscountFixedAmount`\n\n* `DiscountPercentage`\n\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"chargeNumber":{"type":"string","maxLength":50,"description":"Charge number of the charge. For example, C-00000307.\n\n* If you do not set this field, Zuora will generate a charge number starting with a default prefix, for example, C-. This default prefix is predefined in **Billing Settings** > **Define Default Subscription and Order Settings**.\n* If you want to use a custom charge number, do not use the default prefix predefined in **Billing Settings** > **Define Default Subscription and Order Settings**. Use your own prefix, for example, SC-. \n"},"chargeType":{"type":"string","description":"The chargeType of a standalone charge.\n\nSupported charge types:\n\n* `OneTime`\n\n* `Recurring`\n\n* `Usage`\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"contractAssetAccountingCode":{"type":"string","description":"The contractAssetAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The contractLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The contractRecognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferredRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"description":{"type":"string","maxLength":500,"description":"Description of the charge.\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"drawdownScope":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderDrawdownScope","description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"endDate":{"$ref":"#/components/schemas/EndConditions"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nIf you specify `SpecificDate` in the `startDate` > `triggerEvent` field and want to create a completed order and an active subscription, you must specify either the `estimatedStartDate` or `startDate` > `specificTriggerDate` field:\n\n- `estimatedStartDate`: The charge will be in pending status.\n\n- `specificTriggerDate`: The charge will be in active status.\n\nThe value of this field must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge.\n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charges from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe value is either \"True\" or \"False\". It determines whether the rollover fields are needed.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue recognition.\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"name":{"type":"string","description":"The name of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"negotiatedPriceTable":{"type":"array","items":{"$ref":"#/components/schemas/NegotiatedItems"},"description":"Array of negotiated price table information. The rate card entries provided in the array will override the existing rate card entries in the standard price table to form a negotiated price table that will be    \nused during pricing evaluation.\n\n\n**Note:** To enable the Negotiated Price Table feature, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"pobPolicy":{"type":"string","description":"The pobPolicy of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"prepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaymentUnitType":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderPrepaymentUnitType","description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"pricing":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderPricing","description":"Pricing information about the charge.\n"},"pricingAttributes":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for pricing attribute and value that provide additional context for dynamic pricing. The pricing attribute values are used to get the charge’s list price from the product catalog. For the pricing attribute mapped to a Zuora object field, Zuora will retrieve the value automatically, you don’t need to pass its value explicitly. If you pass a value that doesn’t match the actual value of the Zuora object, an error will be returned. \nNote that for any pricing attribute mapped to the field of Zuora object Usage, because its value is only determined when the usage record arrives, you can’t provide a value via Orders API payload and Zuora will not retrieve its value automatically.    \n\n\n**Note:** To enable Dynamic Pricing, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"productCategory":{"type":"string","description":"The productCategory of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productClass":{"type":"string","description":"The productClass of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productFamily":{"type":"string","description":"The productFamily of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productLine":{"type":"string","description":"The productLine of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productRatePlanChargeId":{"type":"string","description":"Internal identifier of the product rate plan charge that the charge is based on. You can specify either `productRatePlanChargeId` or `productRatePlanChargeNumber`.\n"},"productRatePlanChargeNumber":{"type":"string","description":"Number of a product rate-plan charge for this subscription. You can specify either `productRatePlanChargeId` or `productRatePlanChargeNumber`.\n"},"prorationOption":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderProrationOption","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n"},"ratingPropertiesOverride":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderRatingPropertiesOverride","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"revRecCode":{"type":"string","maxLength":70,"description":"Revenue Recognition Code\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderRevRecTriggerCondition","description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n"},"revenueRecognitionRuleName":{"type":"string","description":"Specifies the revenue recognition rule, such as `Recognize upon invoicing` or `Recognize daily over time`.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n"},"rolloverApply":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"rolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"startDate":{"$ref":"#/components/schemas/CreateOrderTriggerParams"},"taxCode":{"type":"string","description":"The taxCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"taxMode":{"type":"string","description":"The taxMode of a standalone charge. \n\nValues:\n* `TaxExclusive`\n* `TaxInclusive`\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"unBilledReceivablesAccountingCode":{"type":"string","description":"The unBilledReceivablesAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.\n"},"upsellOriginChargeNumber":{"type":"string","description":"The identifier of the original upselling charge associated with the current charge.\n\nFor a termed subscription, you can now use the \"Create an order\" API operation to perform an Add Product order action to make a product quantity upsell for per unit recurring charges. The benefit is that the charge added by this approach will be automatically combined with the original existing charge for which you want to upsell when the subscription is renewed. The approach is as follows:\n* Use an Add Product order action to add a charge that is of the same charge type, charge model, and charge end date as the existing per unit recurring charge for which you want to make a quantity upsell.\n\n* In the preceding charge to add, use the `upsellOriginChargeNumber` field to specify the existing rate plan charge for which you want to make the quantity upsell.\n\nNote that a termed subscription with such upsell charges can not be changed to an evergreen subscription.   \n\n**Note**: The Quantity Upsell 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. If you want to join this early adopter program, submit a request at [Zuora Global\n  Support](https://support.zuora.com).  \n"},"validityPeriodType":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrderValidityPeriodType","description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n"}},"required":["productRatePlanChargeId"],"description":"Charge associated with a rate plan.\n","title":"ChangePlanChargeOverrideGetOrder"},"ChangePlanRatePlanOverride":{"type":"object","properties":{"chargeOverrides":{"type":"array","items":{"$ref":"#/components/schemas/ChangePlanChargeOverrideGetOrder"},"description":"List of charges associated with the rate plan.\n"},"clearingExistingFeatures":{"type":"boolean","description":"Specifies whether all features in the rate plan will be cleared.\n"},"customFields":{"$ref":"#/components/schemas/OrdersRatePlanObjectCustomFields"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"productRatePlanId":{"type":"string","description":"Internal identifier of the product rate plan that the rate plan is based on.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"subscriptionProductFeatures":{"type":"array","items":{"$ref":"#/components/schemas/RatePlanFeatureOverride"},"description":"List of features associated with the rate plan.\nThe system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:\n* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.\n* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.\n"}},"description":"Information about the new product rate plan to add. \n","title":"ChangePlanRatePlanOverride"},"ChangePlanSubType":{"type":"string","enum":["Upgrade","Downgrade","Crossgrade","PlanChanged"],"description":"This field is used to choose the sub type for your change plan order action.\n\nHowever, if you do not set this field, the field will be automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n","title":"ChangePlanSubType"},"ChangePlan":{"type":"object","properties":{"effectivePolicy":{"$ref":"#/components/schemas/ChangePlanEffectivePolicy","description":"* If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n* If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n* Otherwise, the effective policy is `SpecificDate` by default.\n"},"newProductRatePlan":{"$ref":"#/components/schemas/ChangePlanRatePlanOverride"},"productRatePlanId":{"type":"string","description":"ID of the rate plan to remove. This can be the latest version or any history version of ID.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanId":{"type":"string","description":"ID of the rate plan to remove. This can be the latest version or any history version of ID.\n"},"subType":{"$ref":"#/components/schemas/ChangePlanSubType","description":"This field is used to choose the sub type for your change plan order action.\n\nHowever, if you do not set this field, the field will be automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a rate plan for this subscription.\n"}},"description":"Information about an order action of type `ChangePlan`.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n","title":"ChangePlan"},"BillToContactOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"Specifies the type of phone number in the `otherPhone` field.\n","title":"BillToContactOtherPhoneType"},"BillToContact":{"type":"object","properties":{"address1":{"type":"string","maxLength":255,"description":"First line of the contact's address. This is often a street address or a business name.\n"},"address2":{"type":"string","maxLength":255,"description":"Second line of the contact's address.\n"},"city":{"type":"string","maxLength":40,"description":"City of the contact's address.\n"},"country":{"type":"string","maxLength":64,"description":"Country; must be a valid country name or abbreviation. If using Zuora Tax, you must specify a country in the bill-to contact to calculate tax.\n"},"county":{"type":"string","maxLength":32,"description":"County of the contact's address.\n"},"fax":{"type":"string","maxLength":40,"description":"Fax number of the contact.\n"},"firstName":{"type":"string","maxLength":100,"description":"First name of the contact.\n"},"homePhone":{"type":"string","maxLength":40,"description":"Home phone number of the contact.\n"},"lastName":{"type":"string","maxLength":100,"description":"Last name of the contact.\n"},"mobilePhone":{"type":"string","maxLength":40,"description":"Mobile phone number of the contact.\n"},"nickname":{"type":"string","maxLength":100,"description":"Nickname of the contact.\n"},"otherPhone":{"type":"string","maxLength":40,"description":"Additional phone number of the contact. Use the `otherPhoneType` field to specify the type of phone number.\n"},"otherPhoneType":{"$ref":"#/components/schemas/BillToContactOtherPhoneType","description":"Specifies the type of phone number in the `otherPhone` field.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address of the contact.\n"},"postalCode":{"type":"string","maxLength":20,"description":"ZIP code or other postal code of the contact's address.\n"},"state":{"type":"string","maxLength":40,"description":"State or province of the contact's address.\n"},"taxRegion":{"type":"string","maxLength":32,"description":"Region defined in your taxation rules. Only applicable if you use Zuora Tax.\n"},"workEmail":{"type":"string","format":"email","maxLength":80,"description":"Business email address of the contact.\n"},"workPhone":{"type":"string","maxLength":40,"description":"Business phone number of the contact.\n"}},"required":["firstName","lastName"],"description":"Container for custom fields of a Contact object.\n","title":"BillToContact"},"SoldToContactOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"Specifies the type of phone number in the `otherPhone` field.\n","title":"SoldToContactOtherPhoneType"},"SoldToContact":{"type":"object","properties":{"address1":{"type":"string","maxLength":255,"description":"First line of the contact's address. This is often a street address or a business name.\n"},"address2":{"type":"string","maxLength":255,"description":"Second line of the contact's address.\n"},"city":{"type":"string","maxLength":40,"description":"City of the contact's address.\n"},"country":{"type":"string","maxLength":64,"description":"Country; must be a valid country name or abbreviation. If using Zuora Tax, you must specify a country in the sold-to contact to calculate tax. A bill-to contact may be used if no sold-to contact is provided.\n"},"county":{"type":"string","maxLength":32,"description":"County of the contact's address.\n"},"fax":{"type":"string","maxLength":40,"description":"Fax number of the contact.\n"},"firstName":{"type":"string","maxLength":100,"description":"First name of the contact.\n"},"homePhone":{"type":"string","maxLength":40,"description":"Home phone number of the contact.\n"},"lastName":{"type":"string","maxLength":100,"description":"Last name of the contact.\n"},"mobilePhone":{"type":"string","maxLength":40,"description":"Mobile phone number of the contact.\n"},"nickname":{"type":"string","maxLength":100,"description":"Nickname of the contact.\n"},"otherPhone":{"type":"string","maxLength":40,"description":"Additional phone number of the contact. Use the `otherPhoneType` field to specify the type of phone number.\n"},"otherPhoneType":{"$ref":"#/components/schemas/SoldToContactOtherPhoneType","description":"Specifies the type of phone number in the `otherPhone` field.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address of the contact.\n"},"postalCode":{"type":"string","maxLength":20,"description":"ZIP code or other postal code of the contact's address.\n"},"state":{"type":"string","maxLength":40,"description":"State or province of the contact's address.\n"},"taxRegion":{"type":["string","null"],"maxLength":32,"description":"Region defined in your taxation rules. Only applicable if you use Zuora Tax.\n"},"workEmail":{"type":"string","format":"email","maxLength":80,"description":"Business email address of the contact.\n"},"workPhone":{"type":"string","maxLength":40,"description":"Business phone number of the contact.\n"}},"required":["firstName","lastName"],"description":"Container for custom fields of a Contact object.\n","title":"SoldToContact"},"CreateSubscriptionNewSubscriptionOwnerAccount":{"type":"object","properties":{"accountNumber":{"type":"string","maxLength":70,"description":"Account number. For example, A00000001.\n"},"autoPay":{"type":"boolean","description":"Specifies whether future payments are automatically billed when they are due.\n"},"batch":{"type":"string","description":"Name of the billing batch that the account belongs to. For example, Batch1.\n"},"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that the account prefers billing periods to begin on. If set to 0, the bill cycle day will be set as \"AutoSet\".\n"},"billToContact":{"$ref":"#/components/schemas/BillToContact"},"communicationProfileId":{"type":"string","description":"Internal identifier of the communication profile that Zuora uses when sending notifications to the account's contacts.\n"},"creditCard":{"$ref":"#/components/schemas/creditCard"},"crmId":{"type":"string","maxLength":100,"description":"External identifier of the account in a CRM system.\n"},"currency":{"type":"string","description":"ISO 3-letter currency code (uppercase). For example, USD.\n"},"customFields":{"$ref":"#/components/schemas/AccountObjectCustomFields"},"hpmCreditCardPaymentMethodId":{"type":"string","description":"The ID of the payment method associated with this account. The payment method specified for this field will be set as the default payment method of the account.\n\nIf the `autoPay` field is set to `true`, you must provide the credit card payment method ID for either this field or the `creditCard` field,\nbut not both.\n\nFor the Credit Card Reference Transaction payment method, you can specify the payment method ID in this field or use the `paymentMethod` field to create a CC Reference Transaction payment method for an account.\n"},"invoiceDeliveryPrefsEmail":{"type":"boolean","description":"Specifies whether to turn on the invoice delivery method 'Email' for the new account. \nValues are: \n\n* `true` (default). Turn on the invoice delivery method 'Email' for the new account.\n* `false`. Turn off the invoice delivery method 'Email' for the new account.         \n"},"invoiceDeliveryPrefsPrint":{"type":"boolean","description":"Specifies whether to turn on the invoice delivery method 'Print' for the new account.\nValues are: \n\n* `true`. Turn on the invoice delivery method 'Print' for the new account.\n* `false` (default). Turn off the invoice delivery method 'Print' for the new account.\n"},"invoiceTemplateId":{"type":"string","description":"Internal identifier of the invoice template that Zuora uses when generating invoices for the account.\n"},"name":{"type":"string","maxLength":70,"description":"Account name.\n"},"notes":{"type":"string","maxLength":65535,"description":"Notes about the account. These notes are only visible to Zuora users.\n"},"parentId":{"type":"string","description":"Identifier of the parent customer account for this Account object. Use this field if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\" target=\"_blank\">Customer Hierarchy</a> enabled."},"paymentGateway":{"type":"string","maxLength":40,"description":"The payment gateway that Zuora uses when processing electronic payments and refunds for the account. If you do not specify this field or if the value of this field is null, Zuora uses your default payment gateway.\n"},"paymentMethod":{"$ref":"#/components/schemas/POSTPaymentMethodRequest"},"paymentTerm":{"type":"string","description":"Name of the payment term associated with the account. For example, \"Net 30\". The payment term determines the due dates of invoices.\n"},"soldToContact":{"$ref":"#/components/schemas/SoldToContact"},"taxInfo":{"$ref":"#/components/schemas/TaxInfo"}},"required":["billCycleDay","billToContact","currency","name"],"description":"Information about a new account that will own the subscription. Only available if you have enabled the Owner Transfer feature.\n\n**Note:** The Owner Transfer feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n\nIf you do not set this field or the `subscriptionOwnerAccountNumber` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `subscriptionOwnerAccountNumber` field.\n","title":"CreateSubscriptionNewSubscriptionOwnerAccount"},"CreateSubscriptionTermsInitialTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Unit of time that the first term is measured in. Only applicable if the value of the `termType` field is `TERMED`.\n","title":"CreateSubscriptionTermsInitialTermPeriodType"},"CreateSubscriptionTermsInitialTermTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"Type of the first term. If the value of this field is `TERMED`, the first term has a predefined duration based on the value of the `period` field. If the value of this field is `EVERGREEN`, the first term does not have a predefined duration.\n","title":"CreateSubscriptionTermsInitialTermTermType"},"CreateSubscriptionTermsInitialTerm":{"type":"object","properties":{"period":{"type":"integer","description":"Duration of the first term in months, years, days, or weeks, depending on the value of the `periodType` field. Only applicable if the value of the `termType` field is `TERMED`.\n"},"periodType":{"$ref":"#/components/schemas/CreateSubscriptionTermsInitialTermPeriodType","description":"Unit of time that the first term is measured in. Only applicable if the value of the `termType` field is `TERMED`.\n"},"startDate":{"type":"string","format":"date","description":"Start date of the first term, in YYYY-MM-DD format.\n"},"termType":{"$ref":"#/components/schemas/CreateSubscriptionTermsInitialTermTermType","description":"Type of the first term. If the value of this field is `TERMED`, the first term has a predefined duration based on the value of the `period` field. If the value of this field is `EVERGREEN`, the first term does not have a predefined duration.\n"}},"required":["termType"],"description":"Information about the first term of the subscription.\n","title":"CreateSubscriptionTermsInitialTerm"},"CreateSubscriptionTermsRenewalSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"description":"Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.\n\n* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.\n* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.\n","title":"CreateSubscriptionTermsRenewalSetting"},"CreateSubscriptionTerms":{"type":"object","properties":{"autoRenew":{"type":"boolean","description":"Specifies whether the subscription automatically renews at the end of the each term. Only applicable if the type of the first term is `TERMED`.\n"},"initialTerm":{"$ref":"#/components/schemas/CreateSubscriptionTermsInitialTerm","description":"Information about the first term of the subscription.\n"},"renewalSetting":{"$ref":"#/components/schemas/CreateSubscriptionTermsRenewalSetting","description":"Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.\n\n* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.\n* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.\n"},"renewalTerms":{"type":"array","items":{"$ref":"#/components/schemas/RenewalTerm"},"description":"List of renewal terms of the subscription. Only applicable if the type of the first term is `TERMED` and the value of the `renewalSetting` field is `RENEW_WITH_SPECIFIC_TERM`.\n"}},"required":["initialTerm","renewalTerms"],"description":"Container for the terms and renewal settings of the subscription.\n","title":"CreateSubscriptionTerms"},"CreateSubscription":{"type":"object","properties":{"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"currency":{"type":"string","maxLength":3,"description":"The code of currency that is used for this subscription. If the currency is not selected, the default currency from the account will be used.\n\nAll subscriptions in the same order must use the same currency. The currency for a subscription cannot be changed.\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the subscription.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"invoiceSeparately":{"type":"boolean","description":"Specifies whether the subscription appears on a separate invoice when Zuora generates invoices.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"newSubscriptionOwnerAccount":{"$ref":"#/components/schemas/CreateSubscriptionNewSubscriptionOwnerAccount","description":"Information about a new account that will own the subscription. Only available if you have enabled the Owner Transfer feature.\n\n**Note:** The Owner Transfer feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n\nIf you do not set this field or the `subscriptionOwnerAccountNumber` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `subscriptionOwnerAccountNumber` field.\n"},"notes":{"type":"string","maxLength":500,"description":"Notes about the subscription. These notes are only visible to Zuora users.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For example, `Net 30`. The payment term determines the due dates of invoices.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the subscription.\n\n\n**Note:** \n   To access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"subscribeToRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/RatePlanOverride"},"description":"List of rate plans associated with the subscription.\n"},"subscriptionNumber":{"type":"string","maxLength":100,"description":"Subscription number of the subscription. For example, A-S00000001.\n\nIf you do not set this field, Zuora will generate the subscription number.\n"},"subscriptionOwnerAccountNumber":{"type":"string","maxLength":70,"description":"Account number of an existing account that will own the subscription. For example, A00000001.\n\nIf you do not set this field or the `newSubscriptionOwnerAccount` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `newSubscriptionOwnerAccount` field.\n"},"invoiceOwnerAccountNumber":{"type":"string","maxLength":70,"description":"Account number of an existing account that will own the invoice. For example, A00000001. If you do not set this field, the account that owns the order will also own this invoice.\n"},"terms":{"$ref":"#/components/schemas/CreateSubscriptionTerms","description":"Container for the terms and renewal settings of the subscription.\n"}},"description":"Information about an order action of type `CreateSubscription`.\n","title":"CreateSubscription"},"GetOrderResumeResumePeriodsType":{"type":"string","enum":["Day","Week","Month","Year"],"description":"This field is applicable only when the `resumePolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`. It must be used together with the `resumePeriods` field. Note this field is not applicable in a Resume order action auto-created by the Order Metrics migration.\n\nThe period type used to specify when a subscription resumption takes effect. The subscription suspension will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n","title":"GetOrderResumeResumePeriodsType"},"GetOrderResumeResumePolicy":{"type":"string","enum":["Today","FixedPeriodsFromSuspendDate","FixedPeriodsFromToday","SpecificDate","SuspendDate"],"description":"Resume methods. Specify a way to resume a subscription. See [Resume Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Resume_a_Subscription#Resume_Date) for more information. Note this field is not applicable in a Resume order action auto-created by the Order Metrics migration.\n\nIf `SuspendDate` is specfied, the resumption will take place on the same day as the suspension. \n","title":"GetOrderResumeResumePolicy"},"GetOrderResume":{"type":"object","properties":{"extendsTerm":{"type":"boolean","description":"Specifies whether to extend the subscription term by the length of time the suspension is in effect. Note this field is not applicable in a Resume order action auto-created by the Order Metrics migration.\n"},"resumeDate":{"type":"string","format":"date","description":"The resume date when the resumption takes effect.\n"},"resumePeriods":{"type":"integer","description":"This field is applicable only when the `resumePolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`. It must be used together with the `resumePeriodsType` field. Note this field is not applicable in a Resume order action auto-created by the Order Metrics migration.\n\nThe total number of the periods used to specify when a subscription resumption takes effect. The subscription resumption will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n"},"resumePeriodsType":{"$ref":"#/components/schemas/GetOrderResumeResumePeriodsType","description":"This field is applicable only when the `resumePolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`. It must be used together with the `resumePeriods` field. Note this field is not applicable in a Resume order action auto-created by the Order Metrics migration.\n\nThe period type used to specify when a subscription resumption takes effect. The subscription suspension will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n"},"resumePolicy":{"$ref":"#/components/schemas/GetOrderResumeResumePolicy","description":"Resume methods. Specify a way to resume a subscription. See [Resume Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Resume_a_Subscription#Resume_Date) for more information. Note this field is not applicable in a Resume order action auto-created by the Order Metrics migration.\n\nIf `SuspendDate` is specfied, the resumption will take place on the same day as the suspension. \n"},"resumeSpecificDate":{"type":["string","null"],"format":"date","description":"This field is applicable only when the `resumePolicy` field is set to `SpecificDate`. Note this field is not applicable in a Resume order action auto-created by the Order Metrics migration.\n\nA specific date when the subscription resumption takes effect, in YYYY-MM-DD format. The value should not be earlier than the subscription suspension date.\n"}},"description":"Information about an order action of type `Resume`.\n","title":"GetOrderResume"},"GetOrderSuspendSuspendPeriodsType":{"type":"string","enum":["Day","Week","Month","Year"],"description":"This field is applicable only when the `suspendPolicy` field is set to `FixedPeriodsFromToday`. It must be used together with the `suspendPeriods` field. Note this field is not applicable in a Suspend order action auto-created by the Order Metrics migration.\n\nThe period type used to specify when a subscription suspension takes effect. The subscription suspension will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n","title":"GetOrderSuspendSuspendPeriodsType"},"GetOrderSuspendSuspendPolicy":{"type":"string","enum":["Today","EndOfLastInvoicePeriod","FixedPeriodsFromToday","SpecificDate"],"description":"Suspend methods. Specify a way to suspend a subscription. See [Suspend Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Suspend_a_Subscription#Suspend_Date) for more information. Note this field is not applicable in a Suspend order action auto-created by the Order Metrics migration.\n","title":"GetOrderSuspendSuspendPolicy"},"GetOrderSuspend":{"type":"object","properties":{"suspendDate":{"type":"string","format":"date","description":"The suspend date when the suspension takes effect. \n"},"suspendPeriods":{"type":["integer","null"],"description":"This field is applicable only when the `suspendPolicy` field is set to `FixedPeriodsFromToday`. It must be used together with the `suspendPeriodsType` field. Note this field is not applicable in a Suspend order action auto-created by the Order Metrics migration.\n\nThe total number of the periods used to specify when a subscription suspension takes effect. The subscription suspension will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n"},"suspendPeriodsType":{"oneOf":[{"$ref":"#/components/schemas/GetOrderSuspendSuspendPeriodsType"},{"type":"null"}],"description":"This field is applicable only when the `suspendPolicy` field is set to `FixedPeriodsFromToday`. It must be used together with the `suspendPeriods` field. Note this field is not applicable in a Suspend order action auto-created by the Order Metrics migration.\n\nThe period type used to specify when a subscription suspension takes effect. The subscription suspension will take place after the specified time frame (`suspendPeriods` multiplied by `suspendPeriodsType`) from today's date. \n"},"suspendPolicy":{"oneOf":[{"$ref":"#/components/schemas/GetOrderSuspendSuspendPolicy"},{"type":"null"}],"description":"Suspend methods. Specify a way to suspend a subscription. See [Suspend Date](https://knowledgecenter.zuora.com/BC_Subscription_Management/Subscriptions/Suspend_a_Subscription#Suspend_Date) for more information. Note this field is not applicable in a Suspend order action auto-created by the Order Metrics migration.\n"},"suspendSpecificDate":{"type":["string","null"],"format":"date","description":"This field is applicable only when the `suspendPolicy` field is set to `SpecificDate`. Note this field is not applicable in a Suspend order action auto-created by the Order Metrics migration.\n\nA specific date when the subscription suspension takes effect, in YYYY-MM-DD format. The value should not be earlier than the subscription's contract effective date or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) than the subscription's term end date.\n"}},"description":"Information about an order action of type `Suspend`.\n","title":"GetOrderSuspend"},"InitialTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Specify only when the termType is 'TERMED'.","title":"InitialTermPeriodType"},"InitialTermTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"title":"InitialTermTermType"},"InitialTerm":{"type":"object","properties":{"period":{"type":"integer","minimum":0,"description":"Specify only when the termType is 'TERMED'."},"periodType":{"$ref":"#/components/schemas/InitialTermPeriodType","description":"Specify only when the termType is 'TERMED'."},"startDate":{"type":"string","format":"date","description":"The start date of the current term.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the current term.\n"},"termType":{"$ref":"#/components/schemas/InitialTermTermType"}},"required":["termType"],"description":"The length of the period for the current subscription term.","title":"InitialTerm"},"TermsAndConditionsRenewalSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"title":"TermsAndConditionsRenewalSetting"},"TermsAndConditions":{"type":"object","properties":{"autoRenew":{"type":"boolean"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"clearingExistingBillToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing bill-to contact ID at the subscription level. This field is mutually exclusive with the `billToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingInvoiceGroupNumber":{"type":"boolean","default":false,"description":"Whether to clear the existing invoice group number at the subscription level. This field is mutually exclusive with the `invoiceGroupNumber` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingInvoiceTemplate":{"type":"boolean","default":false,"description":"Whether to clear the existing invoice template ID at the subscription level. This field is mutually exclusive with the `invoiceTemplateId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingPaymentTerm":{"type":"boolean","default":false,"description":"Whether to clear the existing payment term at the subscription level. This field is mutually exclusive with the `paymentTerm` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingSequenceSet":{"type":"boolean","default":false,"description":"Whether to clear the existing sequence set ID at the subscription level. This field is mutually exclusive with the `sequenceSetId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingShipToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing ship-to contact ID at the subscription level. This field is mutually exclusive with the `shipToContactId` field.\n\nTo access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"clearingExistingSoldToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing sold-to contact ID at the subscription level. This field is mutually exclusive with the `soldToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"initialTerm":{"$ref":"#/components/schemas/InitialTerm"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the subscription.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\n    feature turned on. The value is `null` in the response body without this feature turned on.\n"},"clearingExistingCommunicationProfile":{"type":"boolean","default":false,"description":"Whether to clear the existing communication profile at the subscription\nlevel. This field is mutually exclusive with the `communicationProfileId` field.\n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the subscription.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceTemplateId":{"type":["string","null"],"description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For example, `Net 30`. The payment term determines the due dates of invoices.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"scheduledCancelDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be canceled. The subscription is not canceled until the date specified in this field."},"scheduledSuspendDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be suspended. The subscription is not suspended until the date specified in this field."},"scheduledResumeDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be resumed. The subscription is not resumed until the date specified in this field."},"clearingScheduledCancelDate":{"type":"boolean","description":"Whether to clear the value of the `scheduledCancelDate` field."},"clearingScheduledSuspendDate":{"type":"boolean","description":"Whether to clear the value of the `scheduledSuspendDate` field."},"clearingScheduledResumeDate":{"type":"boolean","description":"Whether to clear the value of the `scheduledResumeDate` field."},"renewalSetting":{"$ref":"#/components/schemas/TermsAndConditionsRenewalSetting"},"renewalTerms":{"type":"array","items":{"$ref":"#/components/schemas/RenewalTerm"}},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n  \n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the subscription.\n\n**Note:** \n    To access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"}},"description":"Information about an order action of type `TermsAndConditions`.\n","title":"TermsAndConditions"},"OrderActionType":{"type":"string","enum":["CreateSubscription","TermsAndConditions","AddProduct","UpdateProduct","RemoveProduct","RenewSubscription","CancelSubscription","OwnerTransfer","Suspend","Resume","ChangePlan"],"description":"Type of the order action.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n","title":"OrderActionType"},"RecurringCalculatedPricingUpdateGetOrder":{"type":"object","properties":{"minimumAmount":{"type":"number","format":"double","description":"Non-negative currency amount that establishes the lower bound for the calculated charge in a billing period. If the calculated amount is less than this value, the invoice amount will be set to the minimum value.\n"},"maximumAmount":{"type":"number","format":"double","description":"Non-negative currency amount that establishes the upper bound for the calculated charge in a billing period. If the calculated amount exceeds this value, the invoice amount will be set to the maximum value.\n"},"percentage":{"type":"number","format":"double","description":"The specific rate applied to the total eligible spend to determine the base invoice amount before any minimum or maximum amount is applied.\n"}},"required":["percentage"],"description":"Pricing information about a recurring charge that uses the \"calculated\" charge model.\n","title":"RecurringCalculatedPricingUpdateGetOrder"},"RecurringDeliveryPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"RecurringDeliveryPricingUpdatePriceChangeOption"},"RecurringDeliveryPricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/RecurringDeliveryPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"deliverySchedule":{"$ref":"#/components/schemas/DeliveryScheduleParams"},"listPrice":{"type":"number","format":"double"}},"title":"RecurringDeliveryPricingUpdate"},"UsageFlatFeePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsageFlatFeePricingUpdatePriceChangeOption"},"UsageFlatFeePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsageFlatFeePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"}},"title":"UsageFlatFeePricingUpdate"},"UsageOveragePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsageOveragePricingUpdatePriceChangeOption"},"UsageOveragePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsageOveragePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"includedUnits":{"type":"number","format":"double","description":"A certain quantity of units for free in the overage charge model. It cannot be negative. It must be 0 and above. Decimals are allowed.\n"},"overagePrice":{"type":"number","format":"double"}},"title":"UsageOveragePricingUpdate"},"UsagePerUnitPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsagePerUnitPricingUpdatePriceChangeOption"},"UsagePerUnitPricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsagePerUnitPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"}},"title":"UsagePerUnitPricingUpdate"},"UsageTieredPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsageTieredPricingUpdatePriceChangeOption"},"UsageTieredPricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsageTieredPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"}}},"title":"UsageTieredPricingUpdate"},"UsageTieredWithOveragePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsageTieredWithOveragePricingUpdatePriceChangeOption"},"UsageTieredWithOveragePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsageTieredWithOveragePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"overagePrice":{"type":"number","format":"double"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"}}},"title":"UsageTieredWithOveragePricingUpdate"},"UsageVolumePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"UsageVolumePricingUpdatePriceChangeOption"},"UsageVolumePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/UsageVolumePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/ChargeTier"}}},"title":"UsageVolumePricingUpdate"},"PricingUpdate":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/ChargeModelDataOverride","description":"Container for charge model configuration data.\n\n**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. The High Water Mark and Pre-Rated Pricing charge models are 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.\n"},"discountdiscount":{"$ref":"#/components/schemas/DiscountPricingUpdate","description":"Pricing information about a discount charge.\n"},"recurringCalculated":{"$ref":"#/components/schemas/RecurringCalculatedPricingUpdateGetOrder"},"recurringDelivery":{"$ref":"#/components/schemas/RecurringDeliveryPricingUpdate","description":"Pricing information about a recurring charge that uses the \"delivery\" charge model. This field is only available if you have the Delivery Pricing charge model enabled.\n"},"recurringFlatFee":{"$ref":"#/components/schemas/RecurringFlatFeePricingUpdate","description":"Pricing information about a recurring charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n"},"recurringPerUnit":{"$ref":"#/components/schemas/RecurringPerUnitPricingUpdate","description":"Pricing information about a recurring charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit purchased.\n"},"recurringTiered":{"$ref":"#/components/schemas/RecurringTieredPricingUpdate","description":"Pricing information about a recurring charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are purchased.\n"},"recurringVolume":{"$ref":"#/components/schemas/RecurringVolumePricingUpdate","description":"Pricing information about a recurring charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are purchased.\n"},"usageFlatFee":{"$ref":"#/components/schemas/UsageFlatFeePricingUpdate","description":"Pricing information about a usage charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n"},"usageOverage":{"$ref":"#/components/schemas/UsageOveragePricingUpdate","description":"Pricing information about a usage charge that uses the \"overage\" charge model. In this charge model, the charge has an allowance of free units and a fixed price per additional unit consumed.\n"},"usagePerUnit":{"$ref":"#/components/schemas/UsagePerUnitPricingUpdate","description":"Pricing information about a usage charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit consumed.\n"},"usageTiered":{"$ref":"#/components/schemas/UsageTieredPricingUpdate","description":"Pricing information about a usage charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are consumed.\n"},"usageTieredWithOverage":{"$ref":"#/components/schemas/UsageTieredWithOveragePricingUpdate","description":"Pricing information about a usage charge that uses the \"tiered with overage\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are consumed. The charge also has a fixed price per unit consumed beyond the limit of the final tier.\n"},"usageVolume":{"$ref":"#/components/schemas/UsageVolumePricingUpdate","description":"Pricing information about a usage charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are consumed.\n"}},"title":"PricingUpdate"},"ChargeUpdate":{"type":"object","properties":{"billing":{"$ref":"#/components/schemas/BillingUpdate"},"chargeNumber":{"type":"string","description":"The number of the charge to be updated. The value of this field is inherited from the `subscriptions` > `orderActions` > `addProduct` > `chargeOverrides` > `chargeNumber` field. \n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"},"description":{"type":"string"},"effectiveDate":{"$ref":"#/components/schemas/TriggerParams"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nThe value must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge. \n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"pricing":{"$ref":"#/components/schemas/PricingUpdate","description":"Pricing information about the charge.\n"},"uniqueToken":{"type":"string","description":"description: |\n  A unique string to represent the rate plan charge in the order. The unique token is used to perform multiple actions against a newly added rate plan charge. For example, if you want to add and update a product in the same order, assign a unique token to the newly added rate plan charge and use that token in future order actions.\n"}},"description":"The JSON object containing the information for a charge update in the 'UpdateProduct' type order action.","title":"ChargeUpdate"},"RatePlanUpdate":{"type":"object","properties":{"chargeUpdates":{"type":"array","items":{"$ref":"#/components/schemas/ChargeUpdate"},"description":"Array of the JSON objects containing the information for a charge update in the `updateProduct` type of order action.\n"},"clearingExistingFeatures":{"type":"boolean","description":"Specifies whether all features in the rate plan will be cleared.\n"},"customFields":{"$ref":"#/components/schemas/OrdersRatePlanObjectCustomFields"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"newRatePlanId":{"type":"string","description":"Internal identifier of the updated rate plan in the new subscription version.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanId":{"type":"string","description":"Internal identifier of the rate plan that was updated. It can be the latest version or any history version id.\n"},"specificUpdateDate":{"type":"string","format":"date","description":"The specific date when the Update Product order action takes effect.  This field allows you to update a charge before a future-dated Update Product order action on the subscription. The format of the date is yyyy-mm-dd.\n\n**Note**: After you use this option, the charge's `TriggerEvent` field value will be changed to `SpecificDate`. \n\nSee [Update a Product on Subscription with Future-dated Updates](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Update_a_Product_in_a_Subscription/Update_a_Product_on_Subscription_with_Future-dated_Updates) for more information about this feature.\n"},"subscriptionProductFeatures":{"type":"array","items":{"$ref":"#/components/schemas/RatePlanFeatureOverride"},"description":"List of features associated with the rate plan.\nThe system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:\n* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.\n* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.\n"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a rate plan for this subscription.\n"},"uniqueToken":{"type":"string","description":"A unique string to represent the rate plan in the order. The unique token is used to perform multiple actions against a newly added rate plan. For example, if you want to add and update a product in the same order, assign a unique token to the newly added rate plan and use that token in future order actions.\n"}},"description":"Information about an order action of type `UpdateProduct`.\n","title":"RatePlanUpdate"},"OrderAction":{"type":"object","properties":{"addProduct":{"$ref":"#/components/schemas/RatePlanOverride"},"cancelSubscription":{"$ref":"#/components/schemas/CancelSubscription"},"changePlan":{"$ref":"#/components/schemas/ChangePlan"},"changeReason":{"type":"string","description":"The change reason set for an order action when an order is created.\n"},"createSubscription":{"$ref":"#/components/schemas/CreateSubscription"},"customFields":{"$ref":"#/components/schemas/OrderActionObjectCustomFields"},"id":{"type":"string","description":"The Id of the order action processed in the order."},"orderItems":{"type":"array","items":{"$ref":"#/components/schemas/OrderItem"},"description":"The `orderItems` nested field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"orderMetrics":{"type":"array","items":{"$ref":"#/components/schemas/orderMetric"},"description":"The container for order metrics.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n\n**Note:** As of Zuora Billing Release 306, Zuora has upgraded the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders). The new methodologies are reflected in the following Order Delta Metrics objects. \n* [Order Delta Mrr](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Mrr)\n* [Order Delta Tcv](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcv)\n* [Order Delta Tcb](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcb)\n\nIt is recommended that all customers use the new [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics). If you are an existing [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders) customer and want to migrate to Order Delta Metrics, submit a request at [Zuora Global Support](https://support.zuora.com/).\n\nWhereas new customers, and existing customers not currently on [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders), will no longer have access to Order Metrics, existing customers currently using Order Metrics will continue to be supported.\n"},"ownerTransfer":{"$ref":"#/components/schemas/OwnerTransfer"},"removeProduct":{"$ref":"#/components/schemas/RemoveProduct"},"renewSubscription":{"$ref":"#/components/schemas/RenewSubscription"},"resume":{"$ref":"#/components/schemas/GetOrderResume"},"sequence":{"type":"integer","description":"The sequence of the order actions processed in the order."},"suspend":{"$ref":"#/components/schemas/GetOrderSuspend"},"termsAndConditions":{"$ref":"#/components/schemas/TermsAndConditions"},"triggerDates":{"type":"array","items":{"$ref":"#/components/schemas/TriggerDate"},"description":"Container for the contract effective, service activation, and customer acceptance dates of the order action. \n\nIf [Zuora is configured to require service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F) and the `ServiceActivation` field is not set for a `CreateSubscription` order action, a `Pending` order and a `Pending Activation` subscription are created.\n\nIf [Zuora is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F) and the `CustomerAcceptance` field is not set for a `CreateSubscription` order action, a `Pending` order and a `Pending Acceptance` subscription are created. At the same time, if the service activation date field is also required and not set, a `Pending` order and a `Pending Activation` subscription are created instead.\n\nIf [Zuora is configured to require service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F) and the `ServiceActivation` field is not set for either of the following order actions, a `Pending` order is created. The subscription status is not impacted. **Note:** This feature is in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n\nIf [Zuora is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F) and the `CustomerAcceptance` field is not set for either of the following order actions, a `Pending` order is created. The subscription status is not impacted. **Note:** This feature is in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n"},"type":{"$ref":"#/components/schemas/OrderActionType","description":"Type of the order action.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n"},"updateProduct":{"$ref":"#/components/schemas/RatePlanUpdate"}},"description":"Represents the processed order action.","title":"OrderAction"},"RampChargeResponse":{"type":"object","properties":{"chargeNumber":{"type":"string","description":"The number of the rate plan charge."}},"title":"RampChargeResponse"},"RampIntervalResponse":{"type":"object","properties":{"description":{"type":"string","description":"The short description of the interval."},"endDate":{"type":"string","format":"date","description":"The end date of the interval."},"name":{"type":"string","description":"The name of the interval."},"startDate":{"type":"string","format":"date","description":"The start date of the interval."}},"title":"RampIntervalResponse"},"RampResponse":{"type":"object","properties":{"charges":{"type":"array","items":{"$ref":"#/components/schemas/RampChargeResponse"},"description":"Container for the rate plan charges that are considered as part of the ramp deal."},"description":{"type":"string","description":"The short description of the ramp."},"id":{"type":"string","description":"The ID of the ramp."},"intervals":{"type":"array","items":{"$ref":"#/components/schemas/RampIntervalResponse"},"description":"Container for the intervals that the ramp is split into in its timeline."},"name":{"type":"string","description":"The name of the ramp."},"number":{"type":"string","description":"The number of the ramp. It is automaticcally generated by the billing system."},"subscriptionNumber":{"type":"string","description":"The number of the subscription that is considered as part of the ramp deal."}},"description":"**Note**: This field is only available if you have the Ramps feature\nenabled. The\n[Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders)\nfeature must be enabled before you can access the\n[Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics)\nfeature. The Ramps feature is available for customers with\nEnterprise and Nine editions by default. If you are a Growth\ncustomer, see [Zuora\nEditions](https://docs.zuora.com/en/entitlements/current-entitlements/zuora-editions)\nfor pricing information coming October 2020.\n\n\nThe ramp definition.\n","title":"RampResponse"},"OrderSubscriptionsItemsSubscriptionOwnerAccountDetails":{"type":"object","properties":{"basicInfo":{"$ref":"#/components/schemas/GETAccountTypeBasicInfo"},"soldToContact":{"$ref":"#/components/schemas/GETAccountTypeSoldToContact"}},"description":"The account basic information that this order has been created under. This is\nalso the invoice owner of the subscriptions included in this order.\n","title":"OrderSubscriptionsItemsSubscriptionOwnerAccountDetails"},"OrderSubscriptionsItems":{"type":"object","properties":{"baseVersion":{"type":"integer","description":"The base version of the subscription."},"customFields":{"$ref":"#/components/schemas/SubscriptionObjectCustomFields"},"externallyManagedBy":{"oneOf":[{"$ref":"#/components/schemas/OrderSubscriptionsItemsExternallyManagedBy"},{"type":"null"}],"description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n"},"newVersion":{"type":"integer","description":"The latest version of the subscription."},"notes":{"type":"string","description":"Notes about the subscription."},"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/OrderAction"}},"quote":{"$ref":"#/components/schemas/QuoteObjectFields"},"ramp":{"$ref":"#/components/schemas/RampResponse"},"sequence":{"type":"integer","description":"The sequence number of a certain subscription processed by the order."},"subscriptionNumber":{"type":"string","description":"The new subscription number for a new subscription created, or the existing subscription number. Unlike the order request, the subscription number here always has a value."},"subscriptionOwnerAccountNumber":{"type":"string","description":"The number of the account that owns the subscription."},"subscriptionOwnerAccountDetails":{"$ref":"#/components/schemas/OrderSubscriptionsItemsSubscriptionOwnerAccountDetails","description":"The account basic information that this order has been created under. This is\nalso the invoice owner of the subscriptions included in this order.\n"}},"title":"OrderSubscriptionsItems"},"Order":{"type":"object","properties":{"category":{"$ref":"#/components/schemas/OrderCategory","default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n"},"commitments":{"type":"array","items":{"$ref":"#/components/schemas/GetCommitmentOutputListOrders"},"description":"A list of commitments.\n"},"createdBy":{"type":"string","description":"The ID of the user who created this order."},"createdDate":{"type":"string","format":"datetime","description":"The time that the order gets created in the system, in the `YYYY-MM-DD HH:MM:SS` format."},"currency":{"type":"string","description":"Currency code."},"customFields":{"$ref":"#/components/schemas/OrderObjectCustomFields"},"description":{"type":"string","maxLength":500,"description":"A description of the order."},"existingAccountNumber":{"type":"string","description":"The account number that this order has been created under.\n"},"existingAccountDetails":{"$ref":"#/components/schemas/OrderExistingAccountDetails","description":"The account basic information that this order has been created under.\n"},"invoiceScheduleId":{"type":"integer","description":"The ID of the invoice schedule associated with the order.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. All the order actions under this order will use this order date as the contract effective date if no additinal contractEffectiveDate is provided."},"orderLineItems":{"type":"array","items":{"$ref":"#/components/schemas/OrderLineItemRetrieveOrder"},"description":"[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) are non subscription based items created by an Order, representing transactional charges such as one-time fees, physical goods, or professional service charges that are not sold as subscription services. \n\nWith the Order Line Items feature enabled, you can now launch non-subscription and unified monetization business models in Zuora, in addition to subscription business models. \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"},"orderNumber":{"type":"string","description":"The order number of the order."},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"reasonCode":{"type":"string","maxLength":255,"description":"Values of reason code configured in **Billing Settings** > **Configure Reason Codes** through Zuora UI. Indicates the reason when a return order line item occurs.\n"},"schedulingOptions":{"$ref":"#/components/schemas/OrderSchedulingOptions","description":"Information of scheduled order.\n"},"scheduledOrderActivationResponse":{"$ref":"#/components/schemas/PostOrderResponseType"},"status":{"$ref":"#/components/schemas/OrderStatus","description":"The status of the order. If the order contains any `Pending Activation` or `Pending Acceptance` subscription, the order status will be `Pending`; If the order is in draft status, the order status will be `Draft`; otherwise the order status is `Completed`.\n\nThe available order statuses are as follow:\n- `Draft`: The order is in draft status.\n- `Pending`: The order is in pending status.\n- `Completed`: The order is in completed status.\n- `Cancelled`: The draft or scheduled order is cancelled.\n- `Scheduled`: The order is in scheduled status and it is only valid if the Scheduled Orders feature is enabled.\n- `Executing`: The scheduled order is executed by a scheduler and it is only valid if the Scheduled Orders feature is enabled.\n- `Failed`: The scheduled order has failed.\n"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/OrderSubscriptionsItems"},"description":"Represents a processed subscription, including the origin request (order actions) that create this version of subscription and the processing result (order metrics). The reference part in the request will be overridden with the info in the new subscription version."},"updatedBy":{"type":"string","description":"The ID of the user who updated this order."},"updatedDate":{"type":"string","format":"datetime","description":"The time that the order gets updated in the system(for example, an order description update), in the `YYYY-MM-DD HH:MM:SS` format."}},"description":"Represents the order information that will be returned in the GET call.","title":"Order"},"GetAllOrdersResponseType":{"type":"object","properties":{"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/Order"}},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GetAllOrdersResponseType"},"PostOrderRequestTypeCategory":{"type":"string","enum":["NewSales","Return"],"default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n","title":"PostOrderRequestTypeCategory"},"ShipToContactPostOrderOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"Specifies the type of phone number in the `otherPhone` field.\n","title":"ShipToContactPostOrderOtherPhoneType"},"ShipToContactPostOrder":{"type":"object","properties":{"address1":{"type":"string","maxLength":255,"description":"First line of the contact's address. This is often a street address or a business name.\n"},"address2":{"type":"string","maxLength":255,"description":"Second line of the contact's address.\n"},"city":{"type":"string","maxLength":100,"description":"City of the contact's address.\n"},"contactDescription":{"type":"string","maxLength":100,"description":"A description for the contact.          \n"},"country":{"type":"string","maxLength":64,"description":"Country; must be a valid country name or abbreviation.\n"},"county":{"type":"string","maxLength":100,"description":"County of the contact's address.\n"},"fax":{"type":"string","maxLength":40,"description":"Fax number of the contact.\n"},"firstName":{"type":"string","maxLength":100,"description":"First name of the contact.\n"},"homePhone":{"type":"string","maxLength":40,"description":"Home phone number of the contact.\n"},"lastName":{"type":"string","maxLength":100,"description":"Last name of the contact.\n"},"mobilePhone":{"type":"string","maxLength":40,"description":"Mobile phone number of the contact.\n"},"nickname":{"type":"string","maxLength":100,"description":"Nickname of the contact.\n"},"otherPhone":{"type":"string","maxLength":40,"description":"Additional phone number of the contact. Use the `otherPhoneType` field to specify the type of phone number.\n"},"otherPhoneType":{"$ref":"#/components/schemas/ShipToContactPostOrderOtherPhoneType","description":"Specifies the type of phone number in the `otherPhone` field.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address of the contact.\n"},"postalCode":{"type":"string","maxLength":20,"description":"ZIP code or other postal code of the contact's address.\n"},"state":{"type":"string","maxLength":100,"description":"State or province of the contact's address.\n"},"taxRegion":{"type":["string","null"],"maxLength":100,"description":"Region defined in your taxation rules. Only applicable if you use Zuora Tax.\n"},"workEmail":{"type":"string","format":"email","maxLength":80,"description":"Business email address of the contact.\n"},"workPhone":{"type":"string","maxLength":40,"description":"Business phone number of the contact.\n"}},"required":["firstName","lastName"],"description":"Container for custom fields of a Contact object.\n","title":"ShipToContactPostOrder"},"CreateOrderNewAccount":{"type":"object","properties":{"accountNumber":{"type":"string","maxLength":70},"additionalEmailAddresses":{"type":"string","maxLength":1200,"description":"List of additional email addresses to receive emailed invoices. Values should be a comma-separated list of email addresses.\n"},"allowInvoiceEdit":{"type":"boolean","description":"Indicates if associated invoices can be edited.\nValues are: \n\n* `true`\n* `false` (default)\n"},"autoPay":{"type":"boolean","description":"Specifies whether future payments are to be automatically billed when they are due. Possible values are `true`, `false`."},"batch":{"type":"string","description":"**Note**: By default, you have 50 configurable account batches. To increase the limit to 200 batches, you must have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Performance_Booster_Elite\" target=\"_blank\">Performance Booster Elite</a> package.\n"},"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that the account prefers billing periods to begin on. If set to 0, the bill cycle day will be set as \"AutoSet\"."},"billToContact":{"$ref":"#/components/schemas/BillToContactPostOrder"},"communicationProfileId":{"type":"string"},"creditCard":{"$ref":"#/components/schemas/creditCard"},"creditMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.\n"},"crmId":{"type":"string","maxLength":100},"currency":{"type":"string","description":"3 uppercase character currency code.\n\nFor payment method authorization, if the `paymentMethod` > `currencyCode` field is specified, `currencyCode` is used. Otherwise, this `currency` field is used for payment method authorization. If no currency is specified for the account, the default currency of the account is then used.\n"},"customFields":{"$ref":"#/components/schemas/AccountObjectCustomFields"},"customerServiceRepName":{"type":"string","maxLength":50,"description":"Name of the account's customer service representative, if applicable.\n"},"debitMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.\n"},"hpmCreditCardPaymentMethodId":{"type":"string","description":"The ID of the payment method associated with this account. The payment method specified for this field will be set as the default payment method of the account.\n\nIf the `autoPay` field is set to `true`, you must provide the credit card payment method ID for either this field or the `creditCard` field,\nbut not both.\n\nFor the Credit Card Reference Transaction payment method, you can specify the payment method ID in this field or use the `paymentMethod` field to create a CC Reference Transaction payment method for an account.\n"},"invoiceDeliveryPrefsEmail":{"type":"boolean","description":"Specifies whether to turn on the invoice delivery method 'Email' for the new account. \nValues are: \n\n* `true` (default). Turn on the invoice delivery method 'Email' for the new account.\n* `false`. Turn off the invoice delivery method 'Email' for the new account.\n"},"invoiceDeliveryPrefsPrint":{"type":"boolean","description":"Specifies whether to turn on the invoice delivery method 'Print' for the new account.\nValues are: \n\n* `true`. Turn on the invoice delivery method 'Print' for the new account.\n* `false` (default). Turn off the invoice delivery method 'Print' for the new account.\n"},"invoiceTemplateId":{"type":"string"},"name":{"type":"string","maxLength":255},"notes":{"type":"string","maxLength":65535},"organizationLabel":{"type":"string","description":"Name of the organization that the account belongs to.  \n\nThis field is only required when you have already turned on Multi-Org feature.    \n"},"parentId":{"type":"string","description":"Identifier of the parent customer account for this Account object. Use this field if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\" target=\"_blank\">Customer Hierarchy</a> enabled."},"partnerAccount":{"type":"boolean","default":false,"description":"Whether the customer account is a partner, distributor, or reseller. \n\n\nYou can set this field to `true` if you have business with distributors or resellers, or operating in B2B model to manage numerous subscriptions through concurrent API requests. After this field is set to `true`, the calculation of account metrics is performed asynchronously during operations such as subscription creation, order changes, invoice generation, and payments.\n\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\" target=\"_blank\">Reseller Account</a> feature enabled.\n"},"paymentGateway":{"type":"string","maxLength":40},"paymentMethod":{"$ref":"#/components/schemas/POSTPaymentMethodRequest"},"paymentTerm":{"type":"string","description":"**Note**: If you want to specify a payment term when creating a new account, you must set a value in this field. If you do not set a value in this field, Zuora will use the default value set in **Billing Settings** > **Payment Terms** from Zuora UI.\n"},"purchaseOrderNumber":{"type":"string","maxLength":100,"description":"The number of the purchase order associated with this account. Purchase order information generally comes from customers.\n"},"salesRep":{"type":"string","maxLength":50,"description":"The name of the sales representative associated with this account, if applicable.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set to assign to the customer account. \n\nThe billing documents to generate for this account will adopt the prefix and starting document number configured in the sequence set.\n"},"shipToContact":{"$ref":"#/components/schemas/ShipToContactPostOrder"},"shipToSameAsBillTo":{"type":"boolean","description":"Whether the ship-to contact and bill-to contact are the same entity. \n\nThe created account has the same bill-to contact and ship-to contact entity only when all the following conditions are met in the request body:\n\n- This field is set to `true`. \n\n- A bill-to contact is specified.\n\n- No ship-to contact is specified.\n"},"soldToContact":{"$ref":"#/components/schemas/SoldToContactPostOrder"},"soldToSameAsBillTo":{"type":"boolean","description":"Whether the sold-to contact and bill-to contact are the same entity. \n\nThe created account has the same bill-to contact and sold-to contact entity only when all the following conditions are met in the request body:\n\n- This field is set to `true`. \n- A bill-to contact is specified.\n- No sold-to contact is specified.\n"},"taxInfo":{"$ref":"#/components/schemas/TaxInfo"}},"required":["billCycleDay","billToContact","currency","name"],"description":"Container for the data access control field.\n","title":"CreateOrderNewAccount"},"ProcessingOptionsOrdersWithDelayedCapturePaymentBillingOptionsChargeTypeToExcludeItems":{"type":"string","enum":["OneTime","Recurring","Usage"],"title":"ProcessingOptionsOrdersWithDelayedCapturePaymentBillingOptionsChargeTypeToExcludeItems"},"ProcessingOptionsOrdersWithDelayedCapturePaymentBillingOptions":{"type":"object","properties":{"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"documentDate":{"type":"string","format":"date","description":"The invoice date displayed on the invoice.\n"},"generateDraftInvoice":{"type":"boolean","description":"Indicates if the current request needs to generate a draft invoice.\n\nValues are:\n\n* `true`\n* `false` (default)\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice is generated. See [What is a Target Date?](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs/Creating_Bill_Runs#What_is_a_Target_Date.3F).\n\n\n**Note**: If you do not specify this field, today's date is used by default.   \n"},"chargeTypeToExclude":{"type":"array","items":{"$ref":"#/components/schemas/ProcessingOptionsOrdersWithDelayedCapturePaymentBillingOptionsChargeTypeToExcludeItems"},"description":"The types of the charges to be excluded from the generation of billing documents.\n"}},"title":"ProcessingOptionsOrdersWithDelayedCapturePaymentBillingOptions"},"ProcessingOptionsOrdersWithDelayedCapturePaymentElectronicPaymentOptionsMitTransactionSource":{"type":"string","enum":["C_Unscheduled","M_Recurring","M_Unscheduled"],"description":"Payment transaction source used by the Chase payment gateway to differentiate the transaction source in Stored Credential Transaction framework.\n  - `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.\n  - `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.\n","title":"ProcessingOptionsOrdersWithDelayedCapturePaymentElectronicPaymentOptionsMitTransactionSource"},"ProcessingOptionsOrdersWithDelayedCapturePaymentElectronicPaymentOptions":{"type":"object","properties":{"authTransactionId":{"type":"string","maxLength":50,"description":"The authorization transaction ID from the payment gateway.\n\nWhen you create a payment to capture the funds that have been authorized through [Create authorization](https://developer.zuora.com/api-references/api/operation/POST_CreateAuthorization/), pass in the `authTransactionId` field. It is highly recommended to also pass in `gatewayOrderId` that you used when authorizing the funds. `authTransactionId` is required, while `gatewayOrderId` is optional.\n"},"gatewayOrderId":{"type":"string","maxLength":50,"description":"A merchant-specified natural key value that can be passed to the electronic payment gateway when a payment is created. If not specified, the payment number will be passed in instead.\n\nGateways check duplicates on the gateway order ID to ensure that the same transaction is not entered twice accidentally. \n\nThis ID can also be used to do reconciliation and tie the payment to a natural key in external systems. The source of this ID varies by merchant. Some merchants use shopping cart order IDs, and others use something different. Merchants use this ID to track transactions in their eCommerce systems.\n\nWhen you create a payment to capture the funds that have been authorized through [Create authorization](https://developer.zuora.com/api-references/api/operation/POST_CreateAuthorization/), pass in the `authTransactionId` field. It is highly recommended to also pass in `gatewayOrderId` that you used when authorizing the funds. `authTransactionId` is required, while `gatewayOrderId` is optional.\n"},"paymentGatewayId":{"type":"string","description":"Specifies the ID of a payment gateway to override the default gateway.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant.\n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"paymentMethodId":{"type":"string","description":"Specifies an electronic payment method. It can be one that has already been associated with an invoice owner, or an orphan payment method, which is not associated with any invoice owner. For an orphan payment method, this operation will then associate it with the account that this order will be created under.\n"},"gatewayOptions":{"type":"object","additionalProperties":{"type":"string"},"description":"The field used to pass gateway-specific parameters and parameter values.\nThe fields supported by gateways vary. For more information, see the\noverview topic of each gateway integration in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways\" target=\"_blank\">Zuora Knowledge Center</a>.\n\nZuora sends all the information that you specified to the gateway. If you\nspecify any unsupported gateway option parameters, they will be ignored\nwithout error prompts.\n"},"mitTransactionSource":{"$ref":"#/components/schemas/ProcessingOptionsOrdersWithDelayedCapturePaymentElectronicPaymentOptionsMitTransactionSource","description":"Payment transaction source used by the Chase payment gateway to differentiate the transaction source in Stored Credential Transaction framework.\n  - `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.\n  - `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.\n"}},"description":"Container for the electronic payment options.\n","title":"ProcessingOptionsOrdersWithDelayedCapturePaymentElectronicPaymentOptions"},"ProcessingOptionsOrdersWithDelayedCapturePaymentWriteOffBehaviorFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"recognizedRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"revenueRecognitionRuleName":{"type":"string","minLength":0,"maxLength":100,"description":"The name of the revenue recognition rule governing the revenue schedule.\n"}},"description":"Container for the finance information related to the credit memo items that are created for invoice write-off.\n","title":"ProcessingOptionsOrdersWithDelayedCapturePaymentWriteOffBehaviorFinanceInformation"},"ProcessingOptionsOrdersWithDelayedCapturePaymentWriteOffBehavior":{"type":"object","properties":{"financeInformation":{"$ref":"#/components/schemas/ProcessingOptionsOrdersWithDelayedCapturePaymentWriteOffBehaviorFinanceInformation","description":"Container for the finance information related to the credit memo items that are created for invoice write-off.\n"}},"description":"The financial information of the credit memo items generated to write off the invoice balance. \n\n**Note:** \n  - All the credit memo items that are used to write off the invoice will be applied with the same financial information.\n  - Credit memo items generated from the unconsumed services of the canceled subscription will not be applied with the finance information specified here.\n","title":"ProcessingOptionsOrdersWithDelayedCapturePaymentWriteOffBehavior"},"processingOptionsOrdersWithDelayedCapturePayment":{"type":"object","properties":{"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply to invoices.\n"},"applyCredit":{"type":"boolean","description":"Whether to automatically apply credit memos or unapplied payments, or both to an invoice.\n\nIf the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.          \n\n\n**Note:** This field 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"},"applyCreditBalance":{"type":"boolean","description":"Indicates if any credit balance on a customer's account is automatically applied to invoices. If no value is specified then this field defaults to false. This feature is not available if you have enabled the Invoice Settlement feature.\n"},"billingOptions":{"$ref":"#/components/schemas/ProcessingOptionsOrdersWithDelayedCapturePaymentBillingOptions"},"collectPayment":{"type":"boolean","description":"Indicates if the current request needs to collect payments. This value can not be 'true' when 'runBilling' flag is 'false'.\n"},"electronicPaymentOptions":{"$ref":"#/components/schemas/ProcessingOptionsOrdersWithDelayedCapturePaymentElectronicPaymentOptions","description":"Container for the electronic payment options.\n"},"refund":{"type":"boolean","description":"Indicates whether to refund after subscription cancelation. Default is `false`. \n\n**Note**: When refunding a subscription that is not invoiced separately, if you do not enable the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Invoice_Settlement/C_Invoice_Item_Settlement\" target=\"_blank\">Invoice Item Settlement</a> feature, you will encounter the following error during the cancel and refund process: “Cancellation/Refund failed because of the following reason: Invoice is linked to multiple subscriptions. Cancellation was not processed.”\n"},"refundAmount":{"type":"number","format":"double","description":"Indicates the amount to be refunded. Required if the `refund` field is `true`.\n"},"refundReasonCode":{"type":"string","description":"A code identifying the reason for the refund transaction. The value must be an existing payment refund reason code listed in **Payments Settings** > **Configure Reason Codes**. If you do not specify the field or leave the field with an empty value, Zuora uses the default payment refund reason code.\n"},"runBilling":{"type":"boolean","description":"Indicates if the current request needs to generate an invoice. The invoice will be generated against all subscriptions included in this order. \n"},"writeOff":{"type":"boolean","description":"Indicates whether to write off the outstanding balance on the invoice after refund. Default is `false`.\n\n**Note**: \n- When refunding a subscription that is not invoiced separately, if you do not enable the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Invoice_Settlement/C_Invoice_Item_Settlement\" target=\"_blank\">Invoice Item Settlement</a> feature, you will encounter the following error during the cancel and refund process: “Cancellation/Refund failed because of the following reason: Invoice is linked to multiple subscriptions. Cancellation was not processed.”\n- The <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> feature must have been enabled for write-off.\n- When this field is set to `true`, the generated credit memos have a reason code of `Write-off` and it cannot be overridden.\n"},"writeOffBehavior":{"$ref":"#/components/schemas/ProcessingOptionsOrdersWithDelayedCapturePaymentWriteOffBehavior","description":"The financial information of the credit memo items generated to write off the invoice balance. \n\n**Note:** \n  - All the credit memo items that are used to write off the invoice will be applied with the same financial information.\n  - Credit memo items generated from the unconsumed services of the canceled subscription will not be applied with the finance information specified here.\n"}},"description":"The container for billing processing options and payment processing options.\n\n**Note:**\n- This field is not supported in draft orders.\n- When you use the \"Create an order\" 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. In this case, neither the invoice will be generated, nor the subscription nor the account will be created.\n- When you use the \"Create an order\" operation to cancel a subscription with `refund` and `writeOff`, if the `refund` or `writeOff` fails, `cancelSubscription`, `runBilling`, and `collectPayment` still can succeed.\n- When you use the \"Create an order\" operation, the `collectPayment` and `refund` fields cannot be set to `true` simultaneously.  Otherwise, the order will not be proceeded.\n","title":"processingOptionsOrdersWithDelayedCapturePayment"},"PostOrderRequestTypeSchedulingOptionsScheduledDatePolicy":{"type":"string","enum":["SpecificDate"],"description":"Date policy of the scheduled order.","title":"PostOrderRequestTypeSchedulingOptionsScheduledDatePolicy"},"PostOrderRequestTypeSchedulingOptions":{"type":"object","properties":{"scheduledDate":{"type":"string","format":"date","description":"The date for the order scheduled.\n"},"scheduledDatePolicy":{"$ref":"#/components/schemas/PostOrderRequestTypeSchedulingOptionsScheduledDatePolicy","description":"Date policy of the scheduled order."}},"description":"Information of scheduled order. \n","title":"PostOrderRequestTypeSchedulingOptions"},"PostOrderRequestTypeStatus":{"type":"string","enum":["Draft","Pending","Completed","Scheduled","Executing","Failed"],"description":"The status of the order. The default value is `Completed`. The following values are supported:\n- `Draft`: The order is in draft status.\n- `Pending`: The order is in pending status.\n- `Completed`: The order is in completed status.\n- `Scheduled`: The order is in scheduled status and it is only valid if the Scheduled Orders feature is enabled.\n- `Executing`: The scheduled order is executed by a scheduler and it is only valid if the Scheduled Orders feature is enabled.\n- `Failed`: The scheduled order has failed.\n\n**Note:** If you have the Pending Subscription Processing feature turned on and want to  create a completed order with an active subscription with pending charges, you must specify  `Completed` in this field because the default order status is `Pending` for this scenario.\n","title":"PostOrderRequestTypeStatus"},"CreateOrderChargeOverrideBillingBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek"],"description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n","title":"CreateOrderChargeOverrideBillingBillCycleType"},"CreateOrderChargeOverrideBillingBillingPeriod":{"type":"string","enum":["Month","Quarter","Semi_Annual","Annual","Eighteen_Months","Two_Years","Three_Years","Five_Years","Specific_Months","Subscription_Term","Week","Specific_Weeks","Specific_Days"],"description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n","title":"CreateOrderChargeOverrideBillingBillingPeriod"},"CreateOrderChargeOverrideBillingBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart"],"description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n","title":"CreateOrderChargeOverrideBillingBillingPeriodAlignment"},"CreateOrderChargeOverrideBillingBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n","title":"CreateOrderChargeOverrideBillingBillingTiming"},"CreateOrderChargeOverrideBillingWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n","title":"CreateOrderChargeOverrideBillingWeeklyBillCycleDay"},"CreateOrderChargeOverrideBilling":{"type":"object","properties":{"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.\n"},"billCycleType":{"$ref":"#/components/schemas/CreateOrderChargeOverrideBillingBillCycleType","description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n"},"billingPeriod":{"$ref":"#/components/schemas/CreateOrderChargeOverrideBillingBillingPeriod","description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/CreateOrderChargeOverrideBillingBillingPeriodAlignment","description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n"},"billingTiming":{"$ref":"#/components/schemas/CreateOrderChargeOverrideBillingBillingTiming","description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n"},"specificBillingPeriod":{"type":"integer","description":"Duration of each billing period in months or weeks, depending on the value of the `billingPeriod` field. Only applicable if the value of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/CreateOrderChargeOverrideBillingWeeklyBillCycleDay","description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n"}},"description":"Billing information about the charge.\n","title":"CreateOrderChargeOverrideBilling"},"CreateOrderChargeOverrideChargeFunction":{"type":"string","enum":["CommitmentTrueUp","CreditCommitment"],"description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"CreateOrderChargeOverrideChargeFunction"},"CreateOrderChargeOverrideCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n","title":"CreateOrderChargeOverrideCreditOption"},"CreateOrderChargeOverrideDrawdownScope":{"type":"string","enum":["SUBSCRIPTION","ACCOUNT"],"description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"CreateOrderChargeOverrideDrawdownScope"},"CreateOrderChargeOverridePrepaymentUnitType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"CreateOrderChargeOverridePrepaymentUnitType"},"CreateOrderChargeOverridePricing":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/ChargeModelDataOverride"},"discount":{"$ref":"#/components/schemas/DiscountPricingOverride"},"oneTimeFlatFee":{"$ref":"#/components/schemas/OneTimeFlatFeePricingOverride"},"oneTimePerUnit":{"$ref":"#/components/schemas/OneTimePerUnitPricingOverride"},"oneTimeTiered":{"$ref":"#/components/schemas/OneTimeTieredPricingOverride"},"oneTimeVolume":{"$ref":"#/components/schemas/OneTimeVolumePricingOverride"},"recurringCalculated":{"$ref":"#/components/schemas/RecurringCalculatedPricingOverride"},"recurringDeliveryBased":{"$ref":"#/components/schemas/RecurringDeliveryPricingOverride"},"recurringFlatFee":{"$ref":"#/components/schemas/RecurringFlatFeePricingOverride"},"recurringPerUnit":{"$ref":"#/components/schemas/RecurringPerUnitPricingOverride"},"recurringTiered":{"$ref":"#/components/schemas/RecurringTieredPricingOverride"},"recurringVolume":{"$ref":"#/components/schemas/RecurringVolumePricingOverride"},"usageFlatFee":{"$ref":"#/components/schemas/UsageFlatFeePricingOverride"},"usageOverage":{"$ref":"#/components/schemas/UsageOveragePricingOverride"},"usagePerUnit":{"$ref":"#/components/schemas/UsagePerUnitPricingOverride"},"usageTiered":{"$ref":"#/components/schemas/UsageTieredPricingOverride"},"usageTieredWithOverage":{"$ref":"#/components/schemas/UsageTieredWithOveragePricingOverride"},"usageVolume":{"$ref":"#/components/schemas/UsageVolumePricingOverride"}},"description":"Pricing information about the charge.\n","title":"CreateOrderChargeOverridePricing"},"CreateOrderChargeOverrideProrationOption":{"type":"string","enum":["NoProration","TimeBasedProration","DefaultFromTenantSetting","ChargeFullPeriod","CustomizeProrationOptionOverrides"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n","title":"CreateOrderChargeOverrideProrationOption"},"CreateOrderChargeOverrideRatingPropertiesOverrideProrationUnit":{"type":"string","enum":["ProrateByDay","ProrateByMonthFirst"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n","title":"CreateOrderChargeOverrideRatingPropertiesOverrideProrationUnit"},"CreateOrderChargeOverrideRatingPropertiesOverrideDaysInMonth":{"type":"string","enum":["UseActualDays","Assume30Days","Assume30DaysStrict"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n","title":"CreateOrderChargeOverrideRatingPropertiesOverrideDaysInMonth"},"CreateOrderChargeOverrideRatingPropertiesOverride":{"type":"object","properties":{"isProratePartialMonth":{"type":"boolean","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify whether to prorate the recurring charge for a partial month. The tenant-level proration option will be overridden.\n"},"prorationUnit":{"$ref":"#/components/schemas/CreateOrderChargeOverrideRatingPropertiesOverrideProrationUnit","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n"},"daysInMonth":{"$ref":"#/components/schemas/CreateOrderChargeOverrideRatingPropertiesOverrideDaysInMonth","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n"}},"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n","title":"CreateOrderChargeOverrideRatingPropertiesOverride"},"CreateOrderChargeOverrideRevRecTriggerCondition":{"type":"string","enum":["Contract Effective Date","Service Activation Date","Customer Acceptance Date"],"description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n","title":"CreateOrderChargeOverrideRevRecTriggerCondition"},"CreateOrderChargeOverrideRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n","title":"CreateOrderChargeOverrideRevenueRecognitionTiming"},"CreateOrderChargeOverrideRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n","title":"CreateOrderChargeOverrideRevenueAmortizationMethod"},"CreateOrderChargeOverrideRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"CreateOrderChargeOverrideRolloverApply"},"CreateOrderChargeOverrideTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of a charge.  This field is available when the `taxable` field is set to `true`.\n","title":"CreateOrderChargeOverrideTaxMode"},"CreateOrderChargeOverrideValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n","title":"CreateOrderChargeOverrideValidityPeriodType"},"CreateOrderChargeOverride":{"type":"object","properties":{"accountReceivableAccountingCode":{"type":"string","description":"The accountReceivableAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>, <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a>, and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Get_started_with_Invoice_Settlement/AA_Overview_of_Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> features are enabled.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The adjustmentLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The adjustmentRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"billing":{"$ref":"#/components/schemas/CreateOrderChargeOverrideBilling","description":"Billing information about the charge.\n"},"chargeFunction":{"$ref":"#/components/schemas/CreateOrderChargeOverrideChargeFunction","description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"creditOption":{"$ref":"#/components/schemas/CreateOrderChargeOverrideCreditOption","description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n"},"chargeModel":{"type":"string","description":"The chargeModel of a standalone charge.\n\n\nSupported charge models:\n\n* `FlatFee`\n\n* `PerUnit`\n\n* `Volume`\n\n* `Tiered`\n\n* `DiscountFixedAmount`\n\n* `DiscountPercentage`\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"chargeNumber":{"type":"string","maxLength":50,"description":"Charge number of the charge. For example, C-00000307.\n\n* If you do not set this field, Zuora will generate a charge number starting with a default prefix, for example, C-. This default prefix is predefined in **Billing Settings** > **Define Default Subscription and Order Settings**.\n* If you want to use a custom charge number, do not use the default prefix predefined in **Billing Settings** > **Define Default Subscription and Order Settings**. Use your own prefix, for example, SC-.\n"},"chargeType":{"type":"string","description":"The chargeType of a standalone charge.\n\n\nSupported charge types:\n\n* `OneTime`\n\n* `Recurring`\n\n* `Usage`\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"contractAssetAccountingCode":{"type":"string","description":"The contractAssetAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The contractLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The contractRecognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferredRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"description":{"type":"string","maxLength":500,"description":"Description of the charge.\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"drawdownScope":{"$ref":"#/components/schemas/CreateOrderChargeOverrideDrawdownScope","description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"endDate":{"$ref":"#/components/schemas/EndConditions"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nIf you specify `SpecificDate` in the `startDate` > `triggerEvent` field and want to create a completed order and an active subscription, you must specify either the `estimatedStartDate` or `startDate` > `specificTriggerDate` field:\n\n- `estimatedStartDate`: The charge will be in pending status.\n\n- `specificTriggerDate`: The charge will be in active status.\n\nThe value of this field must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge.\n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\nIf both the following features are enabled in your tenant, you must ensure the `excludeItemBillingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge. In addition, if the `excludeItemBookingFromRevenueAccounting` field in a Create Subscription or Add Product order action is set to `false`, you must also set the `excludeItemBillingFromRevenueAccounting` field in this order action to `false`.\n  * Prepaid with Drawdown\n  * Unbilled Usage\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charges from revenue accounting.\n\nIf both the following features are enabled in your tenant, you must ensure the `excludeItemBookingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge.\n  * Prepaid with Drawdown\n  * Unbilled Usage\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe value is either \"True\" or \"False\". It determines whether the rollover fields are needed.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue\nrecognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"name":{"type":"string","description":"The name of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"negotiatedPriceTable":{"type":"array","items":{"$ref":"#/components/schemas/NegotiatedItems"},"description":"Array of negotiated price table information. The rate card entries provided in the array will override the existing rate card entries in the standard price table to form a negotiated price table that will be used during pricing evaluation.\n\n\n**Note:** To enable the Negotiated Price Table feature, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.                     \n"},"pobPolicy":{"type":"string","description":"The pobPolicy of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"prepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaymentUnitType":{"$ref":"#/components/schemas/CreateOrderChargeOverridePrepaymentUnitType","description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"pricing":{"$ref":"#/components/schemas/CreateOrderChargeOverridePricing","description":"Pricing information about the charge.\n"},"pricingAttributes":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for pricing attribute and value that provide additional context for dynamic pricing. The pricing attribute values are used to get the charge’s list price from the product catalog. For the pricing attribute mapped to a Zuora object field, Zuora will retrieve the value automatically, you don’t need to pass its value explicitly. If you pass a value that doesn’t match the actual value of the Zuora object, an error will be returned. \nNote that for any pricing attribute mapped to the field of Zuora object Usage, because its value is only determined when the usage record arrives, you can’t provide a value via Orders API payload and Zuora will not retrieve its value automatically.    \n\n\n**Note:** To enable Dynamic Pricing, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"productCategory":{"type":"string","description":"The productCategory of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productClass":{"type":"string","description":"The productClass of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productFamily":{"type":"string","description":"The productFamily of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productLine":{"type":"string","description":"The productLine of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productRatePlanChargeId":{"type":"string","description":"Internal identifier of the product rate plan charge that the charge is based on. You can specify either `productRatePlanChargeId` or `productRatePlanChargeNumber`. When `isAddingSubsetCharges` is set to true, the product rate charge specified by `productRatePlanChargeId` is added to the existing rate plan specified by `ratePlanId`.\n"},"productRatePlanChargeNumber":{"type":"string","description":"Number of a product rate-plan charge for this subscription. You can specify either `productRatePlanChargeId` or `productRatePlanChargeNumber`.\n"},"prorationOption":{"$ref":"#/components/schemas/CreateOrderChargeOverrideProrationOption","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n"},"ratingPropertiesOverride":{"$ref":"#/components/schemas/CreateOrderChargeOverrideRatingPropertiesOverride","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"revRecCode":{"type":"string","maxLength":70,"description":"Revenue Recognition Code\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/CreateOrderChargeOverrideRevRecTriggerCondition","description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n"},"revenueRecognitionRuleName":{"type":"string","description":"Specifies the revenue recognition rule, such as `Recognize upon invoicing` or `Recognize daily over time`.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/CreateOrderChargeOverrideRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/CreateOrderChargeOverrideRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n"},"rolloverApply":{"$ref":"#/components/schemas/CreateOrderChargeOverrideRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"rolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"startDate":{"$ref":"#/components/schemas/CreateOrderTriggerParams"},"taxCode":{"type":"string","description":"The tax code of a charge. This field is available when the `taxable` field is set to `true`.\n"},"taxMode":{"$ref":"#/components/schemas/CreateOrderChargeOverrideTaxMode","description":"The tax mode of a charge.  This field is available when the `taxable` field is set to `true`.\n"},"taxable":{"type":"boolean","description":"The flag indicates whether the charge is taxable. If this field is set to `true`, you must specify the `taxCode` and `taxMode` fields.\n"},"unBilledReceivablesAccountingCode":{"type":"string","description":"The unBilledReceivablesAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.\n"},"upsellOriginChargeNumber":{"type":"string","description":"The identifier of the original upselling charge associated with the current charge.\n\nFor a termed subscription, you can now use the \"Create an order\" API operation to perform an Add Product order action to make a product quantity upsell for per unit recurring charges. The benefit is that the charge added by this approach will be automatically combined with the original existing charge for which you want to upsell when the subscription is renewed. The approach is as follows:\n* Use an Add Product order action to add a charge that is of the same charge type, charge model, and charge end date as the existing per unit recurring charge for which you want to make a quantity upsell.\n\n* In the preceding charge to add, use the `upsellOriginChargeNumber` field to specify the existing rate plan charge for which you want to make the quantity upsell.\n\nNote that a termed subscription with such upsell charges can not be changed to an evergreen subscription.   \n\n**Note**: The Quantity Upsell 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. If you want to join this early adopter program, submit a request at [Zuora Global\n  Support](https://support.zuora.com).  \n"},"validityPeriodType":{"$ref":"#/components/schemas/CreateOrderChargeOverrideValidityPeriodType","description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n"}},"required":["productRatePlanChargeId"],"description":"Charge associated with a rate plan.\n","title":"CreateOrderChargeOverride"},"CreateOrderRatePlanOverride":{"type":"object","properties":{"chargeOverrides":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderChargeOverride"},"description":"List of charges associated with the rate plan.\n"},"clearingExistingFeatures":{"type":"boolean","description":"Specifies whether all features in the rate plan will be cleared.\n"},"customFields":{"$ref":"#/components/schemas/OrdersRatePlanObjectCustomFields"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.\n\n**Note:** If both `externalCatalogPlanId` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"isAddingSubsetCharges":{"type":"boolean","description":"Specifies whether to add a subset of charges to the subscription.\n\n\n**Note:** To access this field for adding a subset of charges, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isFromExternalCatalog":{"type":"boolean","description":"Indicates whether the rate plan is created from the Zuora product catalog or from an external product catalog.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productRatePlanId":{"type":"string","description":"Internal identifier of the product rate plan that the rate plan is based on.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanName":{"type":"string","description":"Name of the standalone rate plan.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"subscriptionProductFeatures":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderRatePlanFeatureOverride"},"description":"List of features associated with the rate plan.\nThe system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:\n* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.\n* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.\n"},"subscriptionRatePlanNumber":{"type":"string","maxLength":50,"description":"Number of a subscription rate plan for this subscription.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.\n"}},"description":"Information about an order action of type `AddProduct`. \n\nIf you want to create a pending order through the \"Add product\" order action, and if the charge's trigger condition is `Specific Date`, you must set a charge number in the `chargeNumber` field for the \"Add product\" order action. In this case, if you do not set it, Zuora will not generate the charge number for you.\n\nSee more information about pending orders in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/Pending_orders_and_subscriptions\" target=\"_blank\">Pending orders and subscriptions</a>. \n","title":"CreateOrderRatePlanOverride"},"CreateChangePlanEffectivePolicy":{"type":"string","enum":["EffectiveImmediately","EffectiveEndOfBillingPeriod","SpecificDate"],"description":"The default value for the `effectivePolicy` field is as follows:\n  * If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n  * If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n  * Otherwise, the effective policy is `SpecificDate` by default.\n\n**Notes**: \n  * When setting this field to `EffectiveEndOfBillingPeriod`, you cannot set the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/W_Subscription_and_Amendment_Dates#Billing_Trigger_Dates\" target=\"_blank\">billing trigger dates</a> for the subscription as the system will automatically set the trigger dates to the end of billing period, and you cannot set the following billing trigger date settings to `Yes`:\n    * <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Default_Subscription_and_Order_Settings#Require_Customer_Acceptance_of_Orders.3F\" target=\"_blank\">Require Customer Acceptance of Orders?</a>\n    * <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Default_Subscription_and_Order_Settings#Require_Service_Activation_of_Orders.3F\" target=\"_blank\">Require Service Activation of Orders?</a>\n  \n  * When setting this field to `SpecificDate`, you must also set the contract effective date in the `triggerDates` field as follows:\n    * Set the `name` field as `ContractEffective`\n    * Specify a date for the `triggerDate` field\n","title":"CreateChangePlanEffectivePolicy"},"ChangePlanChargeOverrideBillingBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek"],"description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n","title":"ChangePlanChargeOverrideBillingBillCycleType"},"ChangePlanChargeOverrideBillingBillingPeriod":{"type":"string","enum":["Month","Quarter","Semi_Annual","Annual","Eighteen_Months","Two_Years","Three_Years","Five_Years","Specific_Months","Subscription_Term","Week","Specific_Weeks","Specific_Days"],"description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n","title":"ChangePlanChargeOverrideBillingBillingPeriod"},"ChangePlanChargeOverrideBillingBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart"],"description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n","title":"ChangePlanChargeOverrideBillingBillingPeriodAlignment"},"ChangePlanChargeOverrideBillingBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n","title":"ChangePlanChargeOverrideBillingBillingTiming"},"ChangePlanChargeOverrideBillingWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n","title":"ChangePlanChargeOverrideBillingWeeklyBillCycleDay"},"ChangePlanChargeOverrideBilling":{"type":"object","properties":{"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.\n"},"billCycleType":{"$ref":"#/components/schemas/ChangePlanChargeOverrideBillingBillCycleType","description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n"},"billingPeriod":{"$ref":"#/components/schemas/ChangePlanChargeOverrideBillingBillingPeriod","description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Days`, `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/ChangePlanChargeOverrideBillingBillingPeriodAlignment","description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n"},"billingTiming":{"$ref":"#/components/schemas/ChangePlanChargeOverrideBillingBillingTiming","description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n"},"specificBillingPeriod":{"type":"integer","description":"Duration of each billing period in months or weeks, depending on the value of the `billingPeriod` field. Only applicable if the value of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/ChangePlanChargeOverrideBillingWeeklyBillCycleDay","description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n"}},"description":"Billing information about the charge.\n","title":"ChangePlanChargeOverrideBilling"},"ChangePlanChargeOverrideChargeFunction":{"type":"string","enum":["CommitmentTrueUp","CreditCommitment"],"description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"ChangePlanChargeOverrideChargeFunction"},"ChangePlanChargeOverrideCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n","title":"ChangePlanChargeOverrideCreditOption"},"ChangePlanChargeOverrideDrawdownScope":{"type":"string","enum":["SUBSCRIPTION","ACCOUNT"],"description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"ChangePlanChargeOverrideDrawdownScope"},"ChangePlanChargeOverridePrepaymentUnitType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n","title":"ChangePlanChargeOverridePrepaymentUnitType"},"ChangePlanChargeOverridePricing":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/ChargeModelDataOverride"},"discount":{"$ref":"#/components/schemas/DiscountPricingOverride"},"oneTimeFlatFee":{"$ref":"#/components/schemas/OneTimeFlatFeePricingOverride"},"oneTimePerUnit":{"$ref":"#/components/schemas/OneTimePerUnitPricingOverride"},"oneTimeTiered":{"$ref":"#/components/schemas/OneTimeTieredPricingOverride"},"oneTimeVolume":{"$ref":"#/components/schemas/OneTimeVolumePricingOverride"},"recurringCalculated":{"$ref":"#/components/schemas/RecurringCalculatedPricingOverride"},"recurringDeliveryBased":{"$ref":"#/components/schemas/RecurringDeliveryPricingOverride"},"recurringFlatFee":{"$ref":"#/components/schemas/RecurringFlatFeePricingOverride"},"recurringPerUnit":{"$ref":"#/components/schemas/RecurringPerUnitPricingOverride"},"recurringTiered":{"$ref":"#/components/schemas/RecurringTieredPricingOverride"},"recurringVolume":{"$ref":"#/components/schemas/RecurringVolumePricingOverride"},"usageFlatFee":{"$ref":"#/components/schemas/UsageFlatFeePricingOverride"},"usageOverage":{"$ref":"#/components/schemas/UsageOveragePricingOverride"},"usagePerUnit":{"$ref":"#/components/schemas/UsagePerUnitPricingOverride"},"usageTiered":{"$ref":"#/components/schemas/UsageTieredPricingOverride"},"usageTieredWithOverage":{"$ref":"#/components/schemas/UsageTieredWithOveragePricingOverride"},"usageVolume":{"$ref":"#/components/schemas/UsageVolumePricingOverride"}},"description":"Pricing information about the charge.\n","title":"ChangePlanChargeOverridePricing"},"ChangePlanChargeOverrideProrationOption":{"type":"string","enum":["NoProration","TimeBasedProration","DefaultFromTenantSetting","ChargeFullPeriod","CustomizeProrationOptionOverrides"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n","title":"ChangePlanChargeOverrideProrationOption"},"ChangePlanChargeOverrideRatingPropertiesOverrideProrationUnit":{"type":"string","enum":["ProrateByDay","ProrateByMonthFirst"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n","title":"ChangePlanChargeOverrideRatingPropertiesOverrideProrationUnit"},"ChangePlanChargeOverrideRatingPropertiesOverrideDaysInMonth":{"type":"string","enum":["UseActualDays","Assume30Days","Assume30DaysStrict"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n","title":"ChangePlanChargeOverrideRatingPropertiesOverrideDaysInMonth"},"ChangePlanChargeOverrideRatingPropertiesOverride":{"type":"object","properties":{"isProratePartialMonth":{"type":"boolean","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify whether to prorate the recurring charge for a partial month. The tenant-level proration option will be overridden.\n"},"prorationUnit":{"$ref":"#/components/schemas/ChangePlanChargeOverrideRatingPropertiesOverrideProrationUnit","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the unit of proration for a recurring charge. The tenant-level proration option will be overridden.\n"},"daysInMonth":{"$ref":"#/components/schemas/ChangePlanChargeOverrideRatingPropertiesOverrideDaysInMonth","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nUse this field to specify the number of days counted for a month when prorating a recurring charge. The tenant-level proration option will be overridden. See more details for each of the following enum values in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/F_Proration#When_prorating_a_month.2C_assume_30_days_in_a_month_or_use_actual_days.3F\" target=\"_blank\">Proration</a>.\n"}},"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n","title":"ChangePlanChargeOverrideRatingPropertiesOverride"},"ChangePlanChargeOverrideRevRecTriggerCondition":{"type":"string","enum":["Contract Effective Date","Service Activation Date","Customer Acceptance Date"],"description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n","title":"ChangePlanChargeOverrideRevRecTriggerCondition"},"ChangePlanChargeOverrideRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n","title":"ChangePlanChargeOverrideRevenueRecognitionTiming"},"ChangePlanChargeOverrideRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n","title":"ChangePlanChargeOverrideRevenueAmortizationMethod"},"ChangePlanChargeOverrideRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"ChangePlanChargeOverrideRolloverApply"},"ChangePlanChargeOverrideValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n","title":"ChangePlanChargeOverrideValidityPeriodType"},"ChangePlanChargeOverride":{"type":"object","properties":{"accountReceivableAccountingCode":{"type":"string","description":"The accountReceivableAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>, <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a>, and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Get_started_with_Invoice_Settlement/AA_Overview_of_Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> features are enabled.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The adjustmentLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The adjustmentRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"billing":{"$ref":"#/components/schemas/ChangePlanChargeOverrideBilling","description":"Billing information about the charge.\n"},"chargeFunction":{"$ref":"#/components/schemas/ChangePlanChargeOverrideChargeFunction","description":"**Note**: This field is only available if you have both the <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> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines what type of charge it is:\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge. \n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"creditOption":{"$ref":"#/components/schemas/ChangePlanChargeOverrideCreditOption","description":"**Note**: This field is only available if you have both the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> features enabled.\n\nWith this field, you can use a standalone order to subscribe to a minimum commitment subscription.\n\nThis field defines the way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n"},"chargeModel":{"type":"string","description":"The chargeModel of a standalone charge.\n\n\nSupported charge models:\n\n* `FlatFee`\n\n* `PerUnit`\n\n* `Volume`\n\n* `Tiered`\n\n* `DiscountFixedAmount`\n\n* `DiscountPercentage`\n\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"chargeNumber":{"type":"string","maxLength":50,"description":"Charge number of the charge. For example, C-00000307.\n\n* If you do not set this field, Zuora will generate a charge number starting with a default prefix, for example, C-. This default prefix is predefined in **Billing Settings** > **Define Default Subscription and Order Settings**.\n* If you want to use a custom charge number, do not use the default prefix predefined in **Billing Settings** > **Define Default Subscription and Order Settings**. Use your own prefix, for example, SC-. \n"},"chargeType":{"type":"string","description":"The chargeType of a standalone charge.\n\nSupported charge types:\n\n* `OneTime`\n\n* `Recurring`\n\n* `Usage`\n\n**Note:** This field is available when the <a\nhref=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\"\ntarget=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"contractAssetAccountingCode":{"type":"string","description":"The contractAssetAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The contractLiabilityAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The contractRecognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferredRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"description":{"type":"string","maxLength":500,"description":"Description of the charge.\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"drawdownScope":{"$ref":"#/components/schemas/ChangePlanChargeOverrideDrawdownScope","description":"The scope in which the funds are applicable for the usage drawdown charges during drawdown. Valid for the charge with function of `Prepayment` or `CommitmentTrueUp`.\n\n\n- `SUBSCRIPTION` - only usage charges of the same subscription can be drawn down. \n- `ACCOUNT` - only usage charges in the same account (subscription owner) can be drawn down. \n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"endDate":{"$ref":"#/components/schemas/EndConditions"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nIf you specify `SpecificDate` in the `startDate` > `triggerEvent` field and want to create a completed order and an active subscription, you must specify either the `estimatedStartDate` or `startDate` > `specificTriggerDate` field:\n\n- `estimatedStartDate`: The charge will be in pending status.\n\n- `specificTriggerDate`: The charge will be in active status.\n\nThe value of this field must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge.\n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charges from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe value is either \"True\" or \"False\". It determines whether the rollover fields are needed.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue recognition.\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"name":{"type":"string","description":"The name of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"negotiatedPriceTable":{"type":"array","items":{"$ref":"#/components/schemas/NegotiatedItems"},"description":"Array of negotiated price table information. The rate card entries provided in the array will override the existing rate card entries in the standard price table to form a negotiated price table that will be    \nused during pricing evaluation.\n\n\n**Note:** To enable the Negotiated Price Table feature, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"pobPolicy":{"type":"string","description":"The pobPolicy of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"prepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaymentUnitType":{"$ref":"#/components/schemas/ChangePlanChargeOverridePrepaymentUnitType","description":"The unit type of the prepayment charge.\n\nFor topup (recurring/one-time) charges, this field indicates what type of funds are created. For drawdown (usage) charges, this field indicates what type of funds are drawn down from those created by topup charges.\n- If the prepaid charge is `UNIT`, it will create a fund with given prepaidUom. \n- If the prepaid charge is `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n      \n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/prepaid-with-drawdown/prepaid-with-drawdown-overview\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n"},"pricing":{"$ref":"#/components/schemas/ChangePlanChargeOverridePricing","description":"Pricing information about the charge.\n"},"pricingAttributes":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for pricing attribute and value that provide additional context for dynamic pricing. The pricing attribute values are used to get the charge’s list price from the product catalog. For the pricing attribute mapped to a Zuora object field, Zuora will retrieve the value automatically, you don’t need to pass its value explicitly. If you pass a value that doesn’t match the actual value of the Zuora object, an error will be returned. \nNote that for any pricing attribute mapped to the field of Zuora object Usage, because its value is only determined when the usage record arrives, you can’t provide a value via Orders API payload and Zuora will not retrieve its value automatically.    \n\n\n**Note:** To enable Dynamic Pricing, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"productCategory":{"type":"string","description":"The productCategory of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productClass":{"type":"string","description":"The productClass of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productFamily":{"type":"string","description":"The productFamily of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productLine":{"type":"string","description":"The productLine of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productRatePlanChargeId":{"type":"string","description":"Internal identifier of the product rate plan charge that the charge is based on. You can specify either `productRatePlanChargeId` or `productRatePlanChargeNumber`.\n"},"productRatePlanChargeNumber":{"type":"string","description":"Number of a product rate-plan charge for this subscription. You can specify either `productRatePlanChargeId` or `productRatePlanChargeNumber`.\n"},"prorationOption":{"$ref":"#/components/schemas/ChangePlanChargeOverrideProrationOption","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n  * `CustomizeProrationOptionOverrides`: charge-level proration option that you can set for a recurring charge. This option means to use the customized charge proration settings that is specified by the `ratingPropertiesOverride` field.\n"},"ratingPropertiesOverride":{"$ref":"#/components/schemas/ChangePlanChargeOverrideRatingPropertiesOverride","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nThis field is used only when the value of the `prorationOption` field is set to `CustomizeProrationOptionOverrides`. \n\nUse this field to specify more customized proration options for a recurring charge when you creating or adding a subscription rate plan charge through an order. The tenant-level proration option will be overridden.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"revRecCode":{"type":"string","maxLength":70,"description":"Revenue Recognition Code\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/ChangePlanChargeOverrideRevRecTriggerCondition","description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date` \n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n"},"revenueRecognitionRuleName":{"type":"string","description":"Specifies the revenue recognition rule, such as `Recognize upon invoicing` or `Recognize daily over time`.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/ChangePlanChargeOverrideRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/ChangePlanChargeOverrideRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have both the Order to Revenue feature and the Standalone Orders feature enabled. \n"},"rolloverApply":{"$ref":"#/components/schemas/ChangePlanChargeOverrideRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"rolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"startDate":{"$ref":"#/components/schemas/CreateOrderTriggerParams"},"taxCode":{"type":"string","description":"The taxCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"taxMode":{"type":"string","description":"The taxMode of a standalone charge. \n\nValues:\n* `TaxExclusive`\n* `TaxInclusive`\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"unBilledReceivablesAccountingCode":{"type":"string","description":"The unBilledReceivablesAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> or <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature are enabled.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.\n"},"upsellOriginChargeNumber":{"type":"string","description":"The identifier of the original upselling charge associated with the current charge.\n\nFor a termed subscription, you can now use the \"Create an order\" API operation to perform an Add Product order action to make a product quantity upsell for per unit recurring charges. The benefit is that the charge added by this approach will be automatically combined with the original existing charge for which you want to upsell when the subscription is renewed. The approach is as follows:\n* Use an Add Product order action to add a charge that is of the same charge type, charge model, and charge end date as the existing per unit recurring charge for which you want to make a quantity upsell.\n\n* In the preceding charge to add, use the `upsellOriginChargeNumber` field to specify the existing rate plan charge for which you want to make the quantity upsell.\n\nNote that a termed subscription with such upsell charges can not be changed to an evergreen subscription.   \n\n**Note**: The Quantity Upsell 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. If you want to join this early adopter program, submit a request at [Zuora Global\n  Support](https://support.zuora.com).  \n"},"validityPeriodType":{"$ref":"#/components/schemas/ChangePlanChargeOverrideValidityPeriodType","description":"**Note**: This field is only available if you have enabled either of the following:\n* <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n* <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a>\n* Both <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment\" target=\"_blank\">Minimum Commitment</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>\n\nYou can use this field in the following scenarios: \n* When you create a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge), use this field to define the period in which the prepayment units are valid to use.\n\n* When you override the setting of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Minimum_Commitment#Commitment_true-up_charge_specific_settings\" target=\"_blank\">commitment true-up charge</a> from the product catalog, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n\n* When you use a standalone order to create a commitment true-up charge, set this field consistently with the value of the `billing` > `billingPeriod` field in this charge.\n"}},"required":["productRatePlanChargeId"],"description":"Charge associated with a rate plan.\n","title":"ChangePlanChargeOverride"},"CreateOrderChangePlanRatePlanOverride":{"type":"object","properties":{"chargeOverrides":{"type":"array","items":{"$ref":"#/components/schemas/ChangePlanChargeOverride"},"description":"List of charges associated with the rate plan.\n"},"clearingExistingFeatures":{"type":"boolean","description":"Specifies whether all features in the rate plan will be cleared.\n"},"customFields":{"$ref":"#/components/schemas/OrdersRatePlanObjectCustomFields"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.\n\n**Note:** If both `externalCatalogPlanId` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"subscriptionRatePlanNumber":{"type":"string","maxLength":50,"description":"Number of a subscription rate plan for this subscription.\n"},"isFromExternalCatalog":{"type":"boolean","description":"Indicates whether the rate plan is created from the Zuora product catalog or from an external product catalog.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"productRatePlanId":{"type":"string","description":"Internal identifier of the product rate plan that the rate plan is based on.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanName":{"type":"string","description":"Name of the standalone rate plan.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> feature is enabled.\n"},"subscriptionProductFeatures":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderRatePlanFeatureOverride"},"description":"List of features associated with the rate plan.\nThe system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:\n* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.\n* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.\n"}},"description":"Information about the new product rate plan to add. \n","title":"CreateOrderChangePlanRatePlanOverride"},"CreateChangePlanSubType":{"type":"string","enum":["Upgrade","Downgrade","Crossgrade","PlanChanged"],"description":"Use this field to choose the sub type for your change plan order action.\n\nHowever, if you do not set this field, the field will be automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n","title":"CreateChangePlanSubType"},"CreateChangePlan":{"type":"object","properties":{"effectivePolicy":{"$ref":"#/components/schemas/CreateChangePlanEffectivePolicy","description":"The default value for the `effectivePolicy` field is as follows:\n  * If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n  * If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n  * Otherwise, the effective policy is `SpecificDate` by default.\n\n**Notes**: \n  * When setting this field to `EffectiveEndOfBillingPeriod`, you cannot set the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/W_Subscription_and_Amendment_Dates#Billing_Trigger_Dates\" target=\"_blank\">billing trigger dates</a> for the subscription as the system will automatically set the trigger dates to the end of billing period, and you cannot set the following billing trigger date settings to `Yes`:\n    * <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Default_Subscription_and_Order_Settings#Require_Customer_Acceptance_of_Orders.3F\" target=\"_blank\">Require Customer Acceptance of Orders?</a>\n    * <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Default_Subscription_and_Order_Settings#Require_Service_Activation_of_Orders.3F\" target=\"_blank\">Require Service Activation of Orders?</a>\n  \n  * When setting this field to `SpecificDate`, you must also set the contract effective date in the `triggerDates` field as follows:\n    * Set the `name` field as `ContractEffective`\n    * Specify a date for the `triggerDate` field\n"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the rate plan to be removed. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to remove the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.\n\n**Note:** Please provide only one of `externalCatalogPlanId`, `ratePlanId` or `productRatePlanId`. If more than 1 field is provided then the request would fail.\n"},"newProductRatePlan":{"$ref":"#/components/schemas/CreateOrderChangePlanRatePlanOverride"},"productRatePlanId":{"type":"string","description":"ID of the product rate plan that the removed rate plan is based on.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanId":{"type":"string","description":"ID of the rate plan to remove. This can be the latest version or any history version of ID. Note that the removal of a rate plan through the Change Plan order action supports the function of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/Order_actions_tutorials/E2_Remove_rate_plan_on_subscription_before_future-dated_removals\" target=\"_blank\">removal before future-dated removals</a>, as in a Remove Product order action.\n"},"resetBcd":{"type":"boolean","default":false,"description":"If resetBcd is true then reset the Account BCD to the effective date; if it is false keep the original BCD. \n\n**Note**: If the rate plan change is an upgrade (the `subType` field is `Upgrade`), then the effective policy is `EffectiveImmediately` by default. In this case, if you do not specify the `resetBcd` field, the system sets this field to `true` while BCD is the effective date. \n"},"subType":{"$ref":"#/components/schemas/CreateChangePlanSubType","description":"Use this field to choose the sub type for your change plan order action.\n\nHowever, if you do not set this field, the field will be automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a rate plan for this subscription.\n"}},"required":["newProductRatePlan"],"description":"Information about an order action of type `ChangePlan`. \n\nUse the change plan type of order action to replace the existing rate plans in a subscription with other rate plans.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n\nIf you want to create a pending order through the \"change plan\" order action, and if the charge's trigger condition is `Specific Date`, you must set a charge number in the `chargeNumber` field for the \"change plan\" order action. In this case, if you do not set it, Zuora will not generate the charge number for you.\n\nSee more information about pending orders in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/Pending_orders_and_subscriptions\" target=\"_blank\">Pending orders and subscriptions</a>.\n","title":"CreateChangePlan"},"CreateOrderCreateSubscriptionNewSubscriptionOwnerAccount":{"type":"object","properties":{"accountNumber":{"type":"string","maxLength":70,"description":"Account number. For example, A00000001.\n"},"additionalEmailAddresses":{"type":"string","maxLength":1200,"description":"List of additional email addresses to receive emailed invoices. Values should be a comma-separated list of email addresses.\n"},"allowInvoiceEdit":{"type":"boolean","description":"Indicates if associated invoices can be edited.\nValues are: \n\n* `true`\n* `false` (default)\n"},"autoPay":{"type":"boolean","description":"Specifies whether future payments are automatically billed when they are due.\n"},"batch":{"type":"string","description":"Name of the billing batch that the account belongs to. For example, Batch1.\n"},"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that the account prefers billing periods to begin on. If set to 0, the bill cycle day will be set as \"AutoSet\".\n"},"billToContact":{"$ref":"#/components/schemas/BillToContactPostOrder"},"communicationProfileId":{"type":"string","description":"Internal identifier of the communication profile that Zuora uses when sending notifications to the account's contacts.\n"},"creditCard":{"$ref":"#/components/schemas/creditCard"},"creditMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the credit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08a6246fdf101626b1b3fe0144b.\n"},"crmId":{"type":"string","maxLength":100,"description":"External identifier of the account in a CRM system.\n"},"currency":{"type":"string","description":"ISO 3-letter currency code (uppercase). For example, USD.\n"},"customFields":{"$ref":"#/components/schemas/AccountObjectCustomFields"},"customerServiceRepName":{"type":"string","maxLength":50,"description":"Name of the account's customer service representative, if applicable.\n"},"debitMemoTemplateId":{"type":"string","description":"**Note:** This field 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\nThe unique ID of the debit memo template, configured in **Billing Settings** > **Manage Billing Document Configuration** through the Zuora UI. For example, 2c92c08d62470a8501626b19d24f19e2.\n"},"hpmCreditCardPaymentMethodId":{"type":"string","description":"The ID of the payment method associated with this account. The payment method specified for this field will be set as the default payment method of the account.\n\nIf the `autoPay` field is set to `true`, you must provide the credit card payment method ID for either this field or the `creditCard` field,\nbut not both.\n\nFor the Credit Card Reference Transaction payment method, you can specify the payment method ID in this field or use the `paymentMethod` field to create a CC Reference Transaction payment method for an account.\n"},"invoiceDeliveryPrefsEmail":{"type":"boolean","description":"Specifies whether to turn on the invoice delivery method 'Email' for the new account. \nValues are: \n\n* `true` (default). Turn on the invoice delivery method 'Email' for the new account.\n* `false`. Turn off the invoice delivery method 'Email' for the new account.         \n"},"invoiceDeliveryPrefsPrint":{"type":"boolean","description":"Specifies whether to turn on the invoice delivery method 'Print' for the new account.\nValues are: \n\n* `true`. Turn on the invoice delivery method 'Print' for the new account.\n* `false` (default). Turn off the invoice delivery method 'Print' for the new account.\n"},"invoiceTemplateId":{"type":"string","description":"Internal identifier of the invoice template that Zuora uses when generating invoices for the account.\n"},"name":{"type":"string","maxLength":255,"description":"Account name.\n"},"notes":{"type":"string","maxLength":65535,"description":"Notes about the account. These notes are only visible to Zuora users.\n"},"parentId":{"type":"string","description":"Identifier of the parent customer account for this Account object. Use this field if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\" target=\"_blank\">Customer Hierarchy</a> enabled."},"paymentGateway":{"type":"string","maxLength":40,"description":"The payment gateway that Zuora uses when processing electronic payments and refunds for the account. If you do not specify this field or if the value of this field is null, Zuora uses your default payment gateway.\n"},"paymentMethod":{"$ref":"#/components/schemas/POSTPaymentMethodRequest"},"paymentTerm":{"type":"string","description":"Name of the payment term associated with the account. For example, \"Net 30\". The payment term determines the due dates of invoices.\n"},"purchaseOrderNumber":{"type":"string","maxLength":100,"description":"The number of the purchase order associated with this account. Purchase order information generally comes from customers.\n"},"salesRep":{"type":"string","maxLength":50,"description":"The name of the sales representative associated with this account, if applicable.\n"},"soldToContact":{"$ref":"#/components/schemas/SoldToContactPostOrder"},"taxInfo":{"$ref":"#/components/schemas/TaxInfo"}},"required":["billCycleDay","billToContact","currency","name"],"description":"Container for the data access control field.\n","title":"CreateOrderCreateSubscriptionNewSubscriptionOwnerAccount"},"CreateOrderCreateSubscriptionPaymentProfile":{"type":"object","properties":{"paymentGatewayId":{"type":"string","description":"The ID of the gateway instance that processes the payment.\n\nThis field remains unset, if you do not provide value.\n"},"paymentMethodId":{"type":"string","description":"The ID of the payment method.\n\nThis field remains unset, if you do not provide value.\n"}},"description":"Container for payment gateway and payment method details of a payment. If you do not set this field, the payment method and payment gateway values cannot be set in the subscription.\n\n**Note:**\n  - If multiple order actions are specified, they will be applied in the same order they appear in the API payload.\n  - If one or more of these order actions include the `paymentProfile` element, the changes will be applied in sequence, and the result will be consistent with the last `paymentProfile` element.\n","title":"CreateOrderCreateSubscriptionPaymentProfile"},"CreateOrderCreateSubscriptionTermsInitialTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Unit of time that the first term is measured in. Only applicable if the value of the `termType` field is `TERMED`.\n","title":"CreateOrderCreateSubscriptionTermsInitialTermPeriodType"},"CreateOrderCreateSubscriptionTermsInitialTermTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"Type of the first term. If the value of this field is `TERMED`, the first term has a predefined duration based on the value of the `period` field. If the value of this field is `EVERGREEN`, the first term does not have a predefined duration.\n","title":"CreateOrderCreateSubscriptionTermsInitialTermTermType"},"CreateOrderCreateSubscriptionTermsInitialTerm":{"type":"object","properties":{"period":{"type":"integer","description":"Duration of the first term in months, years, days, or weeks, depending on the value of the `periodType` field. Only applicable if the value of the `termType` field is `TERMED`.\n"},"periodType":{"$ref":"#/components/schemas/CreateOrderCreateSubscriptionTermsInitialTermPeriodType","description":"Unit of time that the first term is measured in. Only applicable if the value of the `termType` field is `TERMED`.\n"},"startDate":{"type":"string","format":"date","description":"Start date of the first term, in YYYY-MM-DD format.\n"},"endDate":{"type":"string","format":"date","description":"End date of the first term, in YYYY-MM-DD format.\n"},"termType":{"$ref":"#/components/schemas/CreateOrderCreateSubscriptionTermsInitialTermTermType","description":"Type of the first term. If the value of this field is `TERMED`, the first term has a predefined duration based on the value of the `period` field. If the value of this field is `EVERGREEN`, the first term does not have a predefined duration.\n"}},"required":["termType"],"description":"Information about the first term of the subscription.\n","title":"CreateOrderCreateSubscriptionTermsInitialTerm"},"CreateOrderCreateSubscriptionTermsRenewalSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"description":"Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.\n\n* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.\n* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.\n","title":"CreateOrderCreateSubscriptionTermsRenewalSetting"},"CreateOrderCreateSubscriptionTerms":{"type":"object","properties":{"autoRenew":{"type":"boolean","description":"Specifies whether the subscription automatically renews at the end of the each term. Only applicable if the type of the first term is `TERMED`.\n"},"initialTerm":{"$ref":"#/components/schemas/CreateOrderCreateSubscriptionTermsInitialTerm","description":"Information about the first term of the subscription.\n"},"renewalSetting":{"$ref":"#/components/schemas/CreateOrderCreateSubscriptionTermsRenewalSetting","description":"Specifies the type of the terms that follow the first term if the subscription is renewed. Only applicable if the type of the first term is `TERMED`.\n\n* `RENEW_WITH_SPECIFIC_TERM` - Each renewal term has a predefined duration. The first entry in `renewalTerms` specifies the duration of the second term of the subscription, the second entry in `renewalTerms` specifies the duration of the third term of the subscription, and so on. The last entry in `renewalTerms` specifies the ultimate duration of each renewal term.\n* `RENEW_TO_EVERGREEN` - The second term of the subscription does not have a predefined duration.\n"},"renewalTerms":{"type":"array","items":{"$ref":"#/components/schemas/RenewalTerm"},"description":"List of renewal terms of the subscription. Only applicable if the type of the first term is `TERMED` and the value of the `renewalSetting` field is `RENEW_WITH_SPECIFIC_TERM`.\n"}},"required":["initialTerm"],"description":"Container for the terms and renewal settings of the subscription.\n","title":"CreateOrderCreateSubscriptionTerms"},"CreateOrderCreateSubscription":{"type":"object","properties":{"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"currency":{"type":"string","maxLength":3,"description":"The code of currency that is used for this subscription. If the currency is not selected, the default currency from the account will be used.\n\nAll subscriptions in the same order must use the same currency. The currency for a subscription cannot be changed.\n\n**Note**: \n  This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the subscription.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceSeparately":{"type":"boolean","description":"Specifies whether the subscription appears on a separate invoice when Zuora generates invoices.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"newSubscriptionOwnerAccount":{"$ref":"#/components/schemas/CreateOrderCreateSubscriptionNewSubscriptionOwnerAccount"},"notes":{"type":"string","maxLength":500,"description":"Notes about the subscription. These notes are only visible to Zuora users.\n"},"paymentProfile":{"$ref":"#/components/schemas/CreateOrderCreateSubscriptionPaymentProfile","description":"Container for payment gateway and payment method details of a payment. If you do not set this field, the payment method and payment gateway values cannot be set in the subscription.\n\n**Note:**\n  - If multiple order actions are specified, they will be applied in the same order they appear in the API payload.\n  - If one or more of these order actions include the `paymentProfile` element, the changes will be applied in sequence, and the result will be consistent with the last `paymentProfile` element.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For example, `Net 30`. The payment term determines the due dates of invoices.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the subscription. It must be a contact of the subscription owner.\n\n**Note:**\n   To access this field, you must have the <b>ShipToContactSupport</b> permission. If you want to enable this permission, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"subscribeToRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderRatePlanOverride"},"description":"List of rate plans associated with the subscription.\n"},"subscriptionNumber":{"type":"string","maxLength":100,"description":"Subscription number of the subscription. For example, A-S00000001.\n\nIf you do not set this field, Zuora will generate the subscription number.\n"},"subscriptionOwnerAccountNumber":{"type":"string","maxLength":70,"description":"Account number of an existing account that will own the subscription. For example, A00000001.\n\nIf you do not set this field or the `newSubscriptionOwnerAccount` field, the account that owns the order will also own the subscription. Zuora will return an error if you set this field and the `newSubscriptionOwnerAccount` field.\n"},"invoiceOwnerAccountNumber":{"type":"string","maxLength":70,"description":"Account number of an existing account that will own the invoice. For example, A00000001. If you do not set this field, the account that owns the order will also own this invoice.\n"},"terms":{"$ref":"#/components/schemas/CreateOrderCreateSubscriptionTerms","description":"Container for the terms and renewal settings of the subscription.\n"}},"description":"Information about an order action of type `CreateSubscription`.\n","title":"CreateOrderCreateSubscription"},"CreateOrderOrderActionType":{"type":"string","enum":["CreateSubscription","TermsAndConditions","AddProduct","UpdateProduct","RemoveProduct","RenewSubscription","CancelSubscription","OwnerTransfer","Suspend","Resume","ChangePlan"],"description":"Type of order action.\n\nUnless the type of order action is `RenewSubscription`, you must use the corresponding field to provide information about the order action. For example, if the type of order action is `AddProduct`, you must set the `addProduct` field.\n\nZuora returns an error if you set a field that corresponds to a different type of order action. For example, if the type of order action is `AddProduct`, Zuora returns an error if you set the `updateProduct` field.\n\nA [pending order](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/Pending_Order_and_Subscription) supports the following order actions:\n * CreateSubscription\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n * ChangePlan\n\nHowever, pending orders created through all order actions except for \"Create new subscription\":\n * Do not impact the subscription status.\n * Are in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com). \n\nA pending order is created in either of the following conditions:\n * [Zuora is configured to require service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F) and the service activation date is not set in your \"Create an order\" call.\n * [Zuora is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F) and the customer acceptance date is not set in your \"Create an order\" call.\n * When a charge in the subscription has its `triggerEvent` field set as `SpecificDate` and the `specificTriggerDate` field is not set in your \"Create an order\" API call.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n","title":"CreateOrderOrderActionType"},"CreateOrderUpdateProductTriggerParamsTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance","SpecificDate"],"description":"Condition for the charge to become active. If this field is not specified, the value of the field will be defaulted to the trigger event value defined in the product catalog.\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n","title":"CreateOrderUpdateProductTriggerParamsTriggerEvent"},"CreateOrderUpdateProductTriggerParams":{"type":"object","properties":{"specificTriggerDate":{"type":"string","format":"date","description":"Date in YYYY-MM-DD format. Only applicable if the value of the `triggerEvent` field is `SpecificDate`. \n\nWhile this field is applicable, if this field is not set, your `CreateSubscription` order action creates a `Pending` order and a `Pending Acceptance` subscription. If at the same time the service activation date is required and not set, a `Pending Activation` subscription is created.\n\nWhile this field is applicable, if this field is not set, the following order actions create a `Pending` order but do not impact the subscription status. **Note**: This feature is in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n\nWhile this field is applicable, for the `updateProduct` order action, if the Pending order feature as above is not enabled, this field must not be set to null.\n"},"triggerEvent":{"$ref":"#/components/schemas/CreateOrderUpdateProductTriggerParamsTriggerEvent","description":"Condition for the charge to become active. If this field is not specified, the value of the field will be defaulted to the trigger event value defined in the product catalog.\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n"}},"description":"Specifies when a charge becomes active.\n","title":"CreateOrderUpdateProductTriggerParams"},"CreateOrderPricingUpdate":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/ChargeModelDataOverride","description":"Container for charge model configuration data.\n\n**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. The High Water Mark and Pre-Rated Pricing charge models are 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.\n"},"discount":{"$ref":"#/components/schemas/DiscountPricingUpdate","description":"Pricing information about a discount charge.\n"},"recurringCalculated":{"$ref":"#/components/schemas/RecurringCalculatedPricingUpdate","description":"This field is only available if you have the Delivery Pricing charge model enabled.    \n"},"recurringDeliveryBased":{"$ref":"#/components/schemas/RecurringDeliveryPricingUpdate","description":"This field is only available if you have the Delivery Pricing charge model enabled.\n"},"recurringFlatFee":{"$ref":"#/components/schemas/RecurringFlatFeePricingUpdate","description":"Pricing information about a recurring charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n"},"recurringPerUnit":{"$ref":"#/components/schemas/RecurringPerUnitPricingUpdate","description":"Pricing information about a recurring charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit purchased.\n"},"recurringTiered":{"$ref":"#/components/schemas/RecurringTieredPricingUpdate","description":"Pricing information about a recurring charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are purchased.\n"},"recurringVolume":{"$ref":"#/components/schemas/RecurringVolumePricingUpdate","description":"Pricing information about a recurring charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are purchased.\n"},"usageFlatFee":{"$ref":"#/components/schemas/UsageFlatFeePricingUpdate","description":"Pricing information about a usage charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n"},"usageOverage":{"$ref":"#/components/schemas/UsageOveragePricingUpdate","description":"Pricing information about a usage charge that uses the \"overage\" charge model. In this charge model, the charge has an allowance of free units and a fixed price per additional unit consumed.\n"},"usagePerUnit":{"$ref":"#/components/schemas/UsagePerUnitPricingUpdate","description":"Pricing information about a usage charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit consumed.\n"},"usageTiered":{"$ref":"#/components/schemas/UsageTieredPricingUpdate","description":"Pricing information about a usage charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are consumed.\n"},"usageTieredWithOverage":{"$ref":"#/components/schemas/UsageTieredWithOveragePricingUpdate","description":"Pricing information about a usage charge that uses the \"tiered with overage\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are consumed. The charge also has a fixed price per unit consumed beyond the limit of the final tier.\n"},"usageVolume":{"$ref":"#/components/schemas/UsageVolumePricingUpdate","description":"Pricing information about a usage charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are consumed.\n"}},"title":"CreateOrderPricingUpdate"},"CreateOrderChargeUpdate":{"type":"object","properties":{"billing":{"$ref":"#/components/schemas/BillingUpdate"},"chargeNumber":{"type":"string","description":"The number of the charge to be updated. The value of this field is inherited from the `subscriptions` > `orderActions` > `addProduct` > `chargeOverrides` > `chargeNumber` field.\n"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nThe value of this field must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge.\n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"negotiatedPriceTable":{"type":"array","items":{"$ref":"#/components/schemas/NegotiatedItems"},"description":"Array of negotiated price table information. The rate card entries provided in the array will override the existing rate card entries in the standard price table to form a negotiated price table that will be    \nused during pricing evaluation.\n\n\n**Note:** To enable the Negotiated Price Table feature, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"pricingAttributes":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for pricing attribute and value that provide additional context for dynamic pricing. The pricing attribute values included in the array will update the existing values. For the pricing attribute mapped to a Zuora object field, Zuora will retrieve the value automatically, you don’t need to pass its value explicitly. If you pass a value that doesn’t match the actual value of the Zuora object, an error will be returned.\nNote that for any pricing attribute mapped to the field of Zuora object Usage, because its value is only determined when the usage record arrives, you can’t provide a value via Orders API payload and Zuora will not retrieve its value automatically.\n\n\n\n**Note:** To enable Dynamic Pricing, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"productRatePlanChargeId":{"type":"string","description":"ID of a product rate plan charge for this subscription. When `isAddingSubsetCharges` is set to true, the product rate charge specified by `productRatePlanChargeId` is added to the existing rate plan specified by `ratePlanId`.\n"},"productRatePlanChargeNumber":{"type":"string","description":"Number of a product rate plan charge for this subscription. When `isAddingSubsetCharges` is set to true, the product rate charge specified by `productRatePlanChargeNumber` is added to the existing rate plan specified by `ratePlanId`.\n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"},"description":{"type":"string"},"effectiveDate":{"$ref":"#/components/schemas/CreateOrderUpdateProductTriggerParams"},"prepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"pricing":{"$ref":"#/components/schemas/CreateOrderPricingUpdate","description":"Pricing information about the charge.\n"},"uniqueToken":{"type":"string","description":"A unique string to represent the rate plan charge in the order. The unique token is used to perform multiple actions against a newly added rate plan charge. For example, if you want to add and update a product in the same order, assign a unique token to the newly added rate plan charge and use that token in future order actions.\n"}},"description":"The JSON object containing the information for a charge update in the 'UpdateProduct' type order action.\n","title":"CreateOrderChargeUpdate"},"CreateOrderRatePlanUpdate":{"type":"object","properties":{"chargeUpdates":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderChargeUpdate"},"description":"Array of the JSON objects containing the information for a charge update in the `updateProduct` type of order action.\n"},"clearingExistingFeatures":{"type":"boolean","description":"Specifies whether all features in the rate plan will be cleared.\n"},"customFields":{"$ref":"#/components/schemas/OrdersRatePlanObjectCustomFields"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the rate plan to be updated. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to update the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.\n\n**Note:** If both `externalCatalogPlanId` and `ratePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"isAddingSubsetCharges":{"type":"boolean","description":"Specifies whether to add a subset of charges to the subscription.\n\n\n**Note:** To access this field for adding a subset of charges, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanId":{"type":"string","description":"The id of the rate plan to be updated. It can be the latest version or any history version id.\n"},"specificUpdateDate":{"type":"string","format":"date","description":"The specific date when the Update Product order action takes effect.  This field allows you to update a charge before a future-dated Update Product order action on the subscription. The format of the date is yyyy-mm-dd.\n\n**Note**: After you use this option, the charge's `TriggerEvent` field value will be changed to `SpecificDate`. \n\nSee [Update a Product on Subscription with Future-dated Updates](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Update_a_Product_in_a_Subscription/Update_a_Product_on_Subscription_with_Future-dated_Updates) for more information about this feature.\n"},"subscriptionProductFeatures":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderRatePlanFeatureOverride"},"description":"List of features associated with the rate plan.\nThe system compares the `subscriptionProductFeatures` and `featureId` fields in the request with the counterpart fields in a rate plan. The comparison results are as follows:\n* If there is no `subscriptionProductFeatures` field or the field is empty, features in the rate plan remain unchanged. But if the `clearingExistingFeatures` field is additionally set to true, all features in the rate plan are cleared.\n* If the `subscriptionProductFeatures` field contains the `featureId` nested fields, as well as the optional `description` and `customFields` nested fields, the features indicated by the featureId nested fields in the request overwrite all features in the rate plan.\n"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a rate plan for this subscription.\n"},"uniqueToken":{"type":"string","description":"A unique string to represent the rate plan in the order. The unique token is used to perform multiple actions against a newly added rate plan. For example, if you want to add and update a product in the same order, assign a unique token to the newly added rate plan and use that token in future order actions.\n"}},"description":"Information about an order action of type `UpdateProduct`.\n","title":"CreateOrderRatePlanUpdate"},"CreateOrderOrderAction":{"type":"object","properties":{"addProduct":{"$ref":"#/components/schemas/CreateOrderRatePlanOverride"},"cancelSubscription":{"$ref":"#/components/schemas/CancelSubscription"},"changePlan":{"$ref":"#/components/schemas/CreateChangePlan"},"changeReason":{"type":"string","maxLength":255,"description":"The change reason set for an order action when an order is created.\n"},"createSubscription":{"$ref":"#/components/schemas/CreateOrderCreateSubscription"},"customFields":{"$ref":"#/components/schemas/OrderActionObjectCustomFields"},"ownerTransfer":{"$ref":"#/components/schemas/OwnerTransfer"},"removeProduct":{"$ref":"#/components/schemas/RemoveProduct"},"renewSubscription":{"$ref":"#/components/schemas/RenewSubscription"},"resume":{"$ref":"#/components/schemas/CreateOrderResume"},"suspend":{"$ref":"#/components/schemas/CreateOrderSuspend"},"termsAndConditions":{"$ref":"#/components/schemas/CreateOrderTermsAndConditions"},"triggerDates":{"type":"array","items":{"$ref":"#/components/schemas/TriggerDate"},"description":"Container for the contract effective, service activation, and customer acceptance dates of the order action. \n\nIf [Zuora is configured to require service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F) and the `ServiceActivation` field is not set for a `CreateSubscription` order action, a `Pending` order and a `Pending Activation` subscription are created.\n\nIf [Zuora is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F) and the `CustomerAcceptance` field is not set for a `CreateSubscription` order action, a `Pending` order and a `Pending Acceptance` subscription are created. At the same time, if the service activation date field is also required and not set, a `Pending` order and a `Pending Activation` subscription are created instead.\n\nIf [Zuora is configured to require service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F) and the `ServiceActivation` field is not set for either of the following order actions, a `Pending` order is created. The subscription status is not impacted. **Note:** This feature is in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n\nIf [Zuora is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F) and the `CustomerAcceptance` field is not set for either of the following order actions, a `Pending` order is created. The subscription status is not impacted. **Note:** This feature is in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n"},"type":{"$ref":"#/components/schemas/CreateOrderOrderActionType","description":"Type of order action.\n\nUnless the type of order action is `RenewSubscription`, you must use the corresponding field to provide information about the order action. For example, if the type of order action is `AddProduct`, you must set the `addProduct` field.\n\nZuora returns an error if you set a field that corresponds to a different type of order action. For example, if the type of order action is `AddProduct`, Zuora returns an error if you set the `updateProduct` field.\n\nA [pending order](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/Pending_Order_and_Subscription) supports the following order actions:\n * CreateSubscription\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n * ChangePlan\n\nHowever, pending orders created through all order actions except for \"Create new subscription\":\n * Do not impact the subscription status.\n * Are in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com). \n\nA pending order is created in either of the following conditions:\n * [Zuora is configured to require service activation](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Service_Activation_of_Orders.3F) and the service activation date is not set in your \"Create an order\" call.\n * [Zuora is configured to require customer acceptance](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Define_Default_Subscription_Settings#Require_Customer_Acceptance_of_Orders.3F) and the customer acceptance date is not set in your \"Create an order\" call.\n * When a charge in the subscription has its `triggerEvent` field set as `SpecificDate` and the `specificTriggerDate` field is not set in your \"Create an order\" API call.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n"},"updateProduct":{"$ref":"#/components/schemas/CreateOrderRatePlanUpdate"}},"required":["type"],"title":"CreateOrderOrderAction"},"PostOrderRequestTypeSubscriptionsItems":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/SubscriptionObjectCustomFields"},"notes":{"type":"string","maxLength":1000,"description":"Notes about the subscription. These notes are only visible to Zuora users. Notes set in this field will override the value of the `notes` field within the createSubscription order action.\n"},"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderOrderAction"},"description":"The actions to be applied to the subscription. Order actions will be stored with the sequence when it was provided in the request."},"quote":{"$ref":"#/components/schemas/QuoteObjectFields"},"ramp":{"$ref":"#/components/schemas/RampRequest"},"subscriptionNumber":{"type":"string","description":"Leave this empty to represent new subscription creation. Specify a subscription number to update an existing subscription.\n"}},"title":"PostOrderRequestTypeSubscriptionsItems"},"POSTOrderRequestType":{"type":"object","properties":{"category":{"$ref":"#/components/schemas/PostOrderRequestTypeCategory","default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n"},"customFields":{"$ref":"#/components/schemas/OrderObjectCustomFields"},"description":{"type":"string","maxLength":500,"description":"A description of the order."},"existingAccountId":{"type":"string","description":"The account ID under which this order will be created. This field sets the default invoice owner account and subscription owner account for any new subscriptions in the order. To override these defaults for individual subscriptions, use the `subscriptionOwnerAccountNumber` and `invoiceOwnerAccountNumber` nested fields in the `subscriptions` field. If you want to relax the restriction that the `existingAccountNumber` must be the invoice owner of the subscriptions in this order, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\n**Note:** You can specify either the `existingAccountNumber` or `existingAccountId` field, but not both.\n"},"existingAccountNumber":{"type":"string","maxLength":70,"description":"The account number under which this order will be created. This field sets the default invoice owner account and subscription owner account for any new subscriptions in the order. To override these defaults for individual subscriptions, use the `subscriptionOwnerAccountNumber` and `invoiceOwnerAccountNumber` nested fields in the `subscriptions` field. If you want to relax the restriction that the `existingAccountNumber` must be the invoice owner of the subscriptions in this order, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"newAccount":{"$ref":"#/components/schemas/CreateOrderNewAccount"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. All the order actions under this order will use this order date as the contract effective date if the contract effective date field is skipped or its value is left as null."},"orderLineItems":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderOrderLineItem"},"description":"[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) are non subscription based items created by an Order, representing transactional charges such as one-time fees, physical goods, or professional service charges that are not sold as subscription services. \n\nWith the Order Line Items feature enabled, you can now launch non-subscription and unified monetization business models in Zuora, in addition to subscription business models.\n\nIf you do not have the **Create Order Line Items Without Product Catalog** billing permission, you can only create order  line items from existing products by specifying the product rate plan charge ID in the `productRatePlanChargeId` field.  For more information about billing permissions, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/System_Management/Administrator_Settings/User_Roles/d_Billing_Roles\" target=\"_blank\">Billing Roles</a>.\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"},"orderNumber":{"type":"string","maxLength":100,"description":"The order number of the new order. If not provided, system will auto-generate a number for this order.   \n**Note:** The characters `#`, `?`, and `/` are not allowed in this field. Additionally, to ensure compatibility with the UI when viewing orders, use only the following special characters: `_`,`-`, `.`, `~`, `*`, `(`, `)`, and `'`.\n"},"processingOptions":{"$ref":"#/components/schemas/processingOptionsOrdersWithDelayedCapturePayment"},"reasonCode":{"type":"string","maxLength":255,"description":"Values of reason code configured in **Billing Settings** > **Configure Reason Codes** through Zuora UI. Indicates the reason when a return order line item occurs.\n"},"schedulingOptions":{"$ref":"#/components/schemas/PostOrderRequestTypeSchedulingOptions","description":"Information of scheduled order. \n"},"status":{"$ref":"#/components/schemas/PostOrderRequestTypeStatus","description":"The status of the order. The default value is `Completed`. The following values are supported:\n- `Draft`: The order is in draft status.\n- `Pending`: The order is in pending status.\n- `Completed`: The order is in completed status.\n- `Scheduled`: The order is in scheduled status and it is only valid if the Scheduled Orders feature is enabled.\n- `Executing`: The scheduled order is executed by a scheduler and it is only valid if the Scheduled Orders feature is enabled.\n- `Failed`: The scheduled order has failed.\n\n**Note:** If you have the Pending Subscription Processing feature turned on and want to  create a completed order with an active subscription with pending charges, you must specify  `Completed` in this field because the default order status is `Pending` for this scenario.\n"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderRequestTypeSubscriptionsItems"},"description":"Each item includes a set of order actions, which will be applied to the same base subscription.  When you create an order that involves multiple subscriptions, these subscriptions can have different invoice owner accounts or subscription owner accounts. "}},"required":["orderDate"],"title":"POSTOrderRequestType"},"PostOrderAsyncRequestTypeCategory":{"type":"string","enum":["NewSales","Return"],"default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n","title":"PostOrderAsyncRequestTypeCategory"},"PostOrderAsyncRequestTypeExternallyManagedBy":{"type":"string","enum":["Amazon","Apple","Google","Roku"],"description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n","title":"PostOrderAsyncRequestTypeExternallyManagedBy"},"ProcessingOptionsOrdersAsyncBillingOptionsChargeTypeToExcludeItems":{"type":"string","enum":["OneTime","Recurring","Usage"],"title":"ProcessingOptionsOrdersAsyncBillingOptionsChargeTypeToExcludeItems"},"ProcessingOptionsOrdersAsyncBillingOptions":{"type":"object","properties":{"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"documentDate":{"type":"string","format":"date","description":"The invoice date displayed on the invoice.\n"},"generateDraftInvoice":{"type":"boolean","description":"Indicates if the current request needs to generate a draft invoice.\n\nValues are:\n\n* `true`\n* `false` (default)\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice is generated. See [What is a Target Date?](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs/Creating_Bill_Runs#What_is_a_Target_Date.3F).\n\n**Note**: If you do not specify this field, today's date is used by default.  \n"},"chargeTypeToExclude":{"type":"array","items":{"$ref":"#/components/schemas/ProcessingOptionsOrdersAsyncBillingOptionsChargeTypeToExcludeItems"},"description":"The types of the charges to be excluded from the generation of billing documents.\n"}},"title":"ProcessingOptionsOrdersAsyncBillingOptions"},"ProcessingOptionsOrdersAsyncElectronicPaymentOptions":{"type":"object","properties":{"paymentGatewayId":{"type":"string","description":"Specifies the ID of a payment gateway to override the default gateway. If this field is not specified, the default payment gateway will be used to process the payment.\n"},"paymentMethodId":{"type":"string","description":"Specifies an electronic payment method. It can be one that has already been associated with an invoice owner, or an orphan payment method, which is not associated with any invoice owner. For an orphan payment method, this operation will then associate it with the account that this order will be created under.\n"},"gatewayOptions":{"type":"object","additionalProperties":{"type":"string"},"description":"The field used to pass gateway-specific parameters and parameter values.\nThe fields supported by gateways vary. For more information, see the\noverview topic of each gateway integration in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways\" target=\"_blank\">Zuora Knowledge Center</a>.\n\nZuora sends all the information that you specified to the gateway. If you\nspecify any unsupported gateway option parameters, they will be ignored\nwithout error prompts.\n"}},"description":"Container for the electronic payment options.\n","title":"ProcessingOptionsOrdersAsyncElectronicPaymentOptions"},"processingOptionsOrdersAsync":{"type":"object","properties":{"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply to invoices.\n"},"applyCredit":{"type":"boolean","description":"\n- If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices\n\n\n**Note:** This field 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"},"applyCreditBalance":{"type":"boolean","description":"Indicates if any credit balance on a customer's account is automatically applied to invoices. If no value is specified then this field defaults to false. This feature is not available if you have enabled the Invoice Settlement feature.\n"},"billingOptions":{"$ref":"#/components/schemas/ProcessingOptionsOrdersAsyncBillingOptions"},"collectPayment":{"type":"boolean","description":"Indicates if the current request needs to collect payments. This value can not be 'true' when 'runBilling' flag is 'false'.\n"},"electronicPaymentOptions":{"$ref":"#/components/schemas/ProcessingOptionsOrdersAsyncElectronicPaymentOptions","description":"Container for the electronic payment options.\n"},"runBilling":{"type":"boolean","description":"Indicates if the current request needs to generate an invoice. The invoice will be generated against all subscriptions included in this order.\n"}},"description":"The container for billing processing options and payment processing options.\n\n**Note:** This field is not supported in draft orders.\n","title":"processingOptionsOrdersAsync"},"PostOrderAsyncRequestTypeSubscriptionsItems":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/SubscriptionObjectCustomFields"},"notes":{"type":"string","maxLength":1000,"description":"Notes about the subscription. These notes are only visible to Zuora users. Notes set in this field will override the value of the `notes` field within the createSubscription order action.\n"},"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderOrderAction"},"description":"The actions to be applied to the subscription. Order actions will be stored with the sequence when it was provided in the request."},"quote":{"$ref":"#/components/schemas/QuoteObjectFields"},"ramp":{"$ref":"#/components/schemas/RampRequest"},"subscriptionNumber":{"type":"string","description":"Leave this empty to represent new subscription creation. Specify a subscription number to update an existing subscription.\n"}},"title":"PostOrderAsyncRequestTypeSubscriptionsItems"},"POSTOrderAsyncRequestType":{"type":"object","properties":{"category":{"$ref":"#/components/schemas/PostOrderAsyncRequestTypeCategory","default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n"},"customFields":{"$ref":"#/components/schemas/OrderObjectCustomFields"},"description":{"type":"string","maxLength":500,"description":"A description of the order."},"existingAccountId":{"type":"string","description":"The account ID under which this order will be created.  This field sets the default invoice owner account and subscription owner account for any new subscriptions in the order.  To override these defaults for individual subscriptions, use the `subscriptionOwnerAccountNumber` and `invoiceOwnerAccountNumber` nested fields in the `subscriptions` field. \n\n**Note:** You can specify either the `existingAccountNumber` or `existingAccountId` field, but not both.\n"},"existingAccountNumber":{"type":"string","maxLength":70,"description":"The account number under which this order will be created.  This field sets the default invoice owner account and subscription owner account for any new subscriptions in the order. To override these defaults for individual subscriptions, use the `subscriptionOwnerAccountNumber` and `invoiceOwnerAccountNumber` nested fields in the `subscriptions` field.\n"},"externallyManagedBy":{"$ref":"#/components/schemas/PostOrderAsyncRequestTypeExternallyManagedBy","description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n"},"newAccount":{"$ref":"#/components/schemas/CreateOrderNewAccount"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. All the order actions under this order will use this order date as the contract effective date if the contract effective date field is skipped or its value is left as null."},"orderLineItems":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderOrderLineItem"},"description":"[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) are non subscription based items created by an Order, representing transactional charges such as one-time fees, physical goods, or professional service charges that are not sold as subscription services. \n\nWith the Order Line Items feature enabled, you can now launch non-subscription and unified monetization business models in Zuora, in addition to subscription business models.\n\nIf you do not have the **Create Order Line Items Without Product Catalog** billing permission, you can only create order  line items from existing products by specifying the product rate plan charge ID in the `productRatePlanChargeId` field.  For more information about billing permissions, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/System_Management/Administrator_Settings/User_Roles/d_Billing_Roles\" target=\"_blank\">Billing Roles</a>.\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"},"orderNumber":{"type":"string","maxLength":100,"description":"The order number of the new order. If not provided, system will auto-generate a number for this order.   \n**Note:** The characters `#`, `?`, and `/` are not allowed in this field. Additionally, to ensure compatibility with the UI when viewing orders, use only the following special characters: `_`,`-`, `.`, `~`, `*`, `(`, `)`, and `'`.\n"},"processingOptions":{"$ref":"#/components/schemas/processingOptionsOrdersAsync"},"reasonCode":{"type":"string","maxLength":255,"description":"Values of reason code configured in **Billing Settings** > **Configure Reason Codes** through Zuora UI. Indicates the reason when a return order line item occurs.\n"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderAsyncRequestTypeSubscriptionsItems"},"description":"Each item includes a set of order actions, which will be applied to the same base subscription. When you create an order that involves multiple subscriptions, these subscriptions can have different invoice owner accounts or subscription owner accounts. "}},"required":["orderDate"],"title":"POSTOrderAsyncRequestType"},"Orders_POST_CreateOrderAsynchronously_Response_200":{"type":"object","properties":{"jobId":{"type":"string","format":"UUID","description":"The ID of an asynchronous job that will be returned for tracking the status and result of the job."},"success":{"type":"boolean","description":"Indicates whether the operation call succeeded."}},"title":"Orders_POST_CreateOrderAsynchronously_Response_200"},"GetOrderResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetOrderResponseReasonsItems"},"GetOrderResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetOrderResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"order":{"$ref":"#/components/schemas/Order"}},"title":"GetOrderResponse"},"PutOrderRequestTypeCategory":{"type":"string","enum":["NewSales","Return"],"default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n","title":"PutOrderRequestTypeCategory"},"CommonTaxationAttributesTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode of a charge. This field is available when the `taxable` field is set to `true`.\n","title":"CommonTaxationAttributesTaxMode"},"ActionTypeCreate":{"type":"string","enum":["create"],"description":"Indicates whether to create a commitment.\n","title":"ActionTypeCreate"},"CommitmentScheduleInputCreate":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of each period in the schedule."},"amountBase":{"$ref":"#/components/schemas/AmountBaseEnum","default":"CommitmentPeriod"},"periodType":{"$ref":"#/components/schemas/PeriodTypeEnum","default":"Month"},"specificPeriodLength":{"type":"integer","description":"The specific period length of each period in the schedule."},"startDate":{"type":"string","format":"date","description":"Ths start date of the schedule."},"endDate":{"type":"string","format":"date","description":"The end date of the schedule.\n\n**Notes:** A commitment can contain a maximum of 100 periods."},"prepaymentDefinition":{"$ref":"#/components/schemas/PrepaymentDefinition"}},"required":["amount","startDate","endDate"],"title":"CommitmentScheduleInputCreate"},"UpsertCommitmentInputDiscriminatorMappingUpdateStatus":{"type":"string","enum":["Canceled"],"description":"The status of the commitment.\n\n**Notes:** When the status of the commitment is updated as canceled, a commitment or schedule can be canceled only if none of its periods have been drawdowned.","title":"UpsertCommitmentInputDiscriminatorMappingUpdateStatus"},"ActionTypeSchedule":{"type":"string","enum":["create","update"],"description":"The action type of the schedule.\n","title":"ActionTypeSchedule"},"UpsertCommitmentScheduleInput":{"oneOf":[{"type":"object","properties":{"action":{"$ref":"#/components/schemas/ActionTypeSchedule"},"amount":{"type":"number","format":"double","description":"The amount of each period in the schedule."},"amountBase":{"$ref":"#/components/schemas/AmountBaseEnum","default":"CommitmentPeriod"},"periodType":{"$ref":"#/components/schemas/PeriodTypeEnum","default":"Month"},"specificPeriodLength":{"type":"integer","description":"The specific period length of each period in the schedule."},"startDate":{"type":"string","format":"date","description":"Ths start date of the schedule."},"endDate":{"type":"string","format":"date","description":"The end date of the schedule.\n\n**Notes:** A commitment can contain a maximum of 100 periods."}},"required":["action","amount","startDate","endDate"],"description":"Create a new schedule."},{"type":"object","properties":{"action":{"type":"string","enum":["update"],"description":"Discriminator value: update"},"id":{"type":"string","description":"The ID of the schedule."},"amount":{"type":"number","format":"double","description":"The amount of each period in the schedule.\n\n\n**Notes:**\n- If none of the periods in a schedule have drawdown, you can update the amount. \n- If any period in a schedule has drawdown (but none are evaluated), you can update the amount. \n- If any period in a schedule has been evaluated, you cannot update the amount. \n"},"endDate":{"type":"string","format":"date","description":"The end date of the schedule. The schedule end date is exclusive in the schedule, same as the commitment end date."},"periodType":{"$ref":"#/components/schemas/PeriodTypeEnum","default":"Month"},"specificPeriodLength":{"type":"integer","description":"The specific period length of each period in the schedule."},"startDate":{"type":"string","format":"date","description":"The start date of the schedule."}},"required":["action","id"],"description":"Update an existing commitment schedule."}],"discriminator":{"propertyName":"action"},"description":"Upsert an schedule, when the action is create, create a new schedule, when the action is update, update the schedule.\n\n\n**Notes:** \n- If none of the periods in a schedule has drawdown, you can not only update the schedule amount, but also delete the schedule. \n- If any period in a schedule has drawdown, you can update the schedule amount, but you cannot delete the schedule.\n- If any period in a schedule has been evaluated, you cannot update the schedule amount. Also, you cannot delete the schedule.\n","title":"UpsertCommitmentScheduleInput"},"UpsertCommitmentInput":{"oneOf":[{"type":"object","properties":{"action":{"$ref":"#/components/schemas/ActionType"},"commitmentNumber":{"type":"string","maxLength":100,"description":"The commitment number.\n"},"name":{"type":"string","maxLength":255,"description":"The name of the commitment. \n"},"type":{"$ref":"#/components/schemas/CommitmentTypeEnum"},"description":{"type":"string","maxLength":500,"description":"The description of the commitment. \n"},"priority":{"type":"integer","description":"It defines the evaluation order of the commitment. The lower the number, the higher the priority.\nWhen two commitments have the same priority, the commitment that was created initially will be evaluated first.\n"},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Custom fields of an Commitment object.\n"},"prepaymentType":{"$ref":"#/components/schemas/CommitmentPrepaymentTypeEnum"},"specificPeriodAlignmentDate":{"type":"string","format":"date","description":"The specific date for the period alignment. This field is required only if the `periodAlignmentOption` is set to `SpecificDate`."},"periodAlignmentOption":{"$ref":"#/components/schemas/PeriodAlignmentOptionEnum","default":"CommitmentStartDate"},"accountReceivableAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the Commitment object for customers. \n"},"adjustmentLiabilityAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"adjustmentRevenueAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"contractAssetAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n\n**Notes:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"contractLiabilityAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n\n**Notes:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"contractRecognizedRevenueAccountingCode":{"description":"The accounting code on the commitment for customers.\n\n\n**Notes:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"deferredRevenueAccountingCode":{"type":"string","maxLength":100,"description":"The deferred revenue accounting code for the commitment.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude commitment related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the commitment is allocation eligible in revenue recognition.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue recognition.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"recognizedRevenueAccountingCode":{"type":"string","maxLength":100,"description":"The recognized revenue accounting code for the commitment.\n"},"revenueAmortizationMethod":{"type":"string","maxLength":200,"description":"This field is used to dictate the type of revenue amortization method.\n"},"revenueRecognitionRule":{"type":"string","maxLength":255,"description":"The revenue recognition rule for the commitment.\n"},"revenueRecognitionTiming":{"type":"string","maxLength":200,"description":"This field is used to dictate the type of revenue recognition timing.\n"},"unbilledReceivablesAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n\n**Note:** This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. \n"},"taxable":{"type":"boolean","description":"The flag to indicate whether the charge is taxable. If this field is set to `true`, both the fields `taxCode` and `taxMode` are required.\n"},"taxCode":{"type":"string","maxLength":100,"description":"The tax code of a charge.\n\n\n**Note:** This field is available when the `taxable` field is set to `true`.\n"},"taxMode":{"$ref":"#/components/schemas/CommonTaxationAttributesTaxMode","description":"The tax mode of a charge. This field is available when the `taxable` field is set to `true`.\n"},"currency":{"type":"string","description":"Currency of the commitment.\n"},"eligibleAccountConditions":{"$ref":"#/components/schemas/EligibleAccountCondition"},"eligibleChargeConditions":{"$ref":"#/components/schemas/EligibleChargeCondition"},"schedules":{"type":"array","items":{"$ref":"#/components/schemas/CommitmentScheduleInputCreate"},"description":"The new schedules which are required when creating a new commitment."}},"required":["action","name","type","priority","currency","eligibleAccountConditions","schedules"],"description":"create a new Commitment."},{"type":"object","properties":{"action":{"$ref":"#/components/schemas/ActionType"},"commitmentNumber":{"type":"string","description":"The number of the Commitment."},"name":{"type":"string","description":"The value to update. Set to null to clear the existing value."},"description":{"type":"string","description":"The value to update. Set to null to clear the existing value."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of an commitment object."},"status":{"$ref":"#/components/schemas/UpsertCommitmentInputDiscriminatorMappingUpdateStatus","description":"The status of the commitment.\n\n**Notes:** When the status of the commitment is updated as canceled, a commitment or schedule can be canceled only if none of its periods have been drawdowned."},"schedules":{"$ref":"#/components/schemas/UpsertCommitmentScheduleInput"}},"required":["action","commitmentNumber"],"description":"Update the existing commitment by the commitment number."},{"type":"object","properties":{"action":{"$ref":"#/components/schemas/ActionType"},"commitmentNumber":{"type":"string","maxLength":100,"description":"The number of the Commitment to cancel."},"cancellationEffectiveDate":{"type":"string","format":"date","description":"The date when the cancellation takes effect."},"cancellationPolicyOverride":{"$ref":"#/components/schemas/CommitmentCancellationPolicy"}},"required":["action","commitmentNumber"],"description":"Cancel an existing commitment by the commitment number."}],"discriminator":{"propertyName":"action"},"description":"Using the action to indicate whether to create or update the commitment.","title":"UpsertCommitmentInput"},"ProcessingOptionsOrdersBillingOptions":{"type":"object","properties":{"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"documentDate":{"type":"string","format":"date","description":"The invoice date displayed on the invoice.\n"},"generateDraftInvoice":{"type":"boolean","description":"Indicates if the current request needs to generate a draft invoice.\n\nValues are:\n\n* `true`\n* `false` (default)\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice is generated. See [What is a Target Date?](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs/Creating_Bill_Runs#What_is_a_Target_Date.3F).\n"}},"title":"ProcessingOptionsOrdersBillingOptions"},"ProcessingOptionsOrdersElectronicPaymentOptions":{"type":"object","properties":{"paymentGatewayId":{"type":"string","description":"Specifies the ID of a payment gateway to override the default gateway. If this field is not specified, the default payment gateway will be used to process the payment.\n"},"paymentMethodId":{"type":"string","description":"Specifies an electronic payment method. It can be one that has already been associated with an invoice owner, or an orphan payment method, which is not associated with any invoice owner. For an orphan payment method, this operation will then associate it with the account that this order will be created under.\n"},"gatewayOptions":{"type":"object","additionalProperties":{"type":"string"},"description":"The field used to pass gateway-specific parameters and parameter values.\nThe fields supported by gateways vary. For more information, see the\noverview topic of each gateway integration in <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways\" target=\"_blank\">Zuora Knowledge Center</a>.\n\nZuora sends all the information that you specified to the gateway. If you\nspecify any unsupported gateway option parameters, they will be ignored\nwithout error prompts.\n"}},"description":"Container for the electronic payment options.\n","title":"ProcessingOptionsOrdersElectronicPaymentOptions"},"ProcessingOptionsOrdersWriteOffBehaviorFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"recognizedRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"revenueRecognitionRuleName":{"type":"string","minLength":0,"maxLength":100,"description":"The name of the revenue recognition rule governing the revenue schedule.\n"}},"description":"Container for the finance information related to the credit memo items that are created for invoice write-off.\n","title":"ProcessingOptionsOrdersWriteOffBehaviorFinanceInformation"},"ProcessingOptionsOrdersWriteOffBehavior":{"type":"object","properties":{"financeInformation":{"$ref":"#/components/schemas/ProcessingOptionsOrdersWriteOffBehaviorFinanceInformation","description":"Container for the finance information related to the credit memo items that are created for invoice write-off.\n"}},"description":"The financial information of the credit memo items generated to write off the invoice balance. \n\n**Note:** \n  - All the credit memo items that are used to write off the invoice will be applied with the same financial information.\n  - Credit memo items generated from the unconsumed services of the canceled subscription will not be applied with the finance information specified here.\n","title":"ProcessingOptionsOrdersWriteOffBehavior"},"processingOptionsOrders":{"type":"object","properties":{"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply to invoices.\n"},"applyCredit":{"type":"boolean","description":"Whether to automatically apply credit memos or unapplied payments, or both to an invoice.\n\nIf the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.          \n\n\n**Note:** This field 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"},"applyCreditBalance":{"type":"boolean","description":"Indicates if any credit balance on a customer's account is automatically applied to invoices. If no value is specified then this field defaults to false. This feature is not available if you have enabled the Invoice Settlement feature.\n"},"billingOptions":{"$ref":"#/components/schemas/ProcessingOptionsOrdersBillingOptions"},"collectPayment":{"type":"boolean","description":"Indicates if the current request needs to collect payments. This value can not be 'true' when 'runBilling' flag is 'false'.\n"},"electronicPaymentOptions":{"$ref":"#/components/schemas/ProcessingOptionsOrdersElectronicPaymentOptions","description":"Container for the electronic payment options.\n"},"refund":{"type":"boolean","description":"Indicates whether to refund after subscription cancelation. Default is `false`. \n\n**Note**: When refunding a subscription that is not invoiced separately, if you do not enable the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Invoice_Settlement/C_Invoice_Item_Settlement\" target=\"_blank\">Invoice Item Settlement</a> feature, you will encounter the following error during the cancel and refund process: “Cancellation/Refund failed because of the following reason: Invoice is linked to multiple subscriptions. Cancellation was not processed.”\n"},"refundAmount":{"type":"number","format":"double","description":"Indicates the amount to be refunded. Required if the `refund` field is `true`.\n"},"refundReasonCode":{"type":"string","description":"A code identifying the reason for the refund transaction. The value must be an existing payment refund reason code listed in **Payments Settings** > **Configure Reason Codes**. If you do not specify the field or leave the field with an empty value, Zuora uses the default payment refund reason code.\n"},"runBilling":{"type":"boolean","description":"Indicates if the current request needs to generate an invoice. The invoice will be generated against all subscriptions included in this order.\n"},"writeOff":{"type":"boolean","description":"Indicates whether to write off the outstanding balance on the invoice after refund. Default is `false`.\n\n**Note**: \n- When refunding a subscription that is not invoiced separately, if you do not enable the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Invoice_Settlement/C_Invoice_Item_Settlement\" target=\"_blank\">Invoice Item Settlement</a> feature, you will encounter the following error during the cancel and refund process: “Cancellation/Refund failed because of the following reason: Invoice is linked to multiple subscriptions. Cancellation was not processed.”\n- The <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> feature must have been enabled for write-off.\n"},"writeOffBehavior":{"$ref":"#/components/schemas/ProcessingOptionsOrdersWriteOffBehavior","description":"The financial information of the credit memo items generated to write off the invoice balance. \n\n**Note:** \n  - All the credit memo items that are used to write off the invoice will be applied with the same financial information.\n  - Credit memo items generated from the unconsumed services of the canceled subscription will not be applied with the finance information specified here.\n"}},"description":"The container for billing processing options and payment processing options.\n\n**Note:**\n- This field is not supported in draft orders.\n- When you use the \"Create an order\" 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. In this case, neither the invoice will be generated, nor the subscription nor the account will be created.\n- When you use the \"Create an order\" operation to cancel a subscription with `refund` and `writeOff`, if the `refund` or `writeOff` fails, `cancelSubscription`, `runBilling`, and `collectPayment` still can succeed.\n- When you use the \"Create an order\" operation, the `collectPayment` and `refund` fields cannot be set to `true` simultaneously.  Otherwise, the order will not be proceeded.\n","title":"processingOptionsOrders"},"PutOrderRequestTypeSchedulingOptionsScheduledDatePolicy":{"type":"string","enum":["SpecificDate"],"description":"Date policy of the scheduled order.","title":"PutOrderRequestTypeSchedulingOptionsScheduledDatePolicy"},"PutOrderRequestTypeSchedulingOptions":{"type":"object","properties":{"scheduledDate":{"type":"string","format":"date","description":"The date for the order scheduled.\n"},"scheduledDatePolicy":{"$ref":"#/components/schemas/PutOrderRequestTypeSchedulingOptionsScheduledDatePolicy","description":"Date policy of the scheduled order."}},"description":"Information of scheduled order. \n","title":"PutOrderRequestTypeSchedulingOptions"},"PutOrderRequestTypeStatus":{"type":"string","enum":["Draft","Pending","Completed","Scheduled","Executing","Failed"],"description":"The status of the order. The default value is `Completed`. The following values are supported:\n- `Draft`: The order is in draft status.\n- `Pending`: The order is in pending status.\n- `Completed`: The order is in completed status.\n- `Scheduled`: The order is in scheduled status and it is only valid if the Scheduled Orders feature is enabled.\n- `Executing`: The scheduled order is executed by a scheduler and it is only valid if the Scheduled Orders feature is enabled.\n- `Failed`: The scheduled order has failed.\n\n**Note:** If you have the Pending Subscription Processing feature turned on and want to  update a completed order with an active subscription with pending charges, you must specify  `Completed` in this field because the default order status is `Pending` for this scenario.\n","title":"PutOrderRequestTypeStatus"},"PutOrderRequestTypeSubscriptionsItems":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/SubscriptionObjectCustomFields"},"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrderOrderAction"},"description":"The actions to be applied to the subscription. Order actions will be stored with the sequence when it was provided in the request."},"quote":{"$ref":"#/components/schemas/QuoteObjectFields"},"ramp":{"$ref":"#/components/schemas/RampRequest"},"subscriptionNumber":{"type":"string","description":"Leave this empty to represent new subscription creation. Specify a subscription number to update an existing subscription.\n"}},"title":"PutOrderRequestTypeSubscriptionsItems"},"PUTOrderRequestType":{"type":"object","properties":{"category":{"$ref":"#/components/schemas/PutOrderRequestTypeCategory","default":"NewSales","description":"Category of the order to indicate a product sale or return. Default value is `NewSales`.\n"},"commitments":{"type":"array","items":{"$ref":"#/components/schemas/UpsertCommitmentInput"},"description":"A list of commitments you want to create or update.\n"},"customFields":{"$ref":"#/components/schemas/OrderObjectCustomFields"},"description":{"type":"string","maxLength":500,"description":"A description of the order."},"existingAccountId":{"type":"string","description":"The account ID under which this order will be created.  This field sets the default invoice owner account and subscription owner account for any new subscriptions in the order.  To override these defaults for individual subscriptions, use the `subscriptionOwnerAccountNumber` and `invoiceOwnerAccountNumber` nested fields in the `subscriptions` field. \n\n**Note** You can specify either the `existingAccountNumber` or `existingAccountId` field, but not both.\n"},"existingAccountNumber":{"type":"string","maxLength":70,"description":"The account number under which this order will be created.  This field sets the default invoice owner account and subscription owner account for any new subscriptions in the order. To override these defaults for individual subscriptions, use the `subscriptionOwnerAccountNumber` and `invoiceOwnerAccountNumber` nested fields in the `subscriptions` field.\n"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. All the order actions under this order will use this order date as the contract effective date if the contract effective date field is skipped or its value is left as null."},"orderNumber":{"type":"string","maxLength":100,"description":"The order number of the new order. If not provided, system will auto-generate a number for this order.   \n**Note:** The characters `#`, `?`, and `/` are not allowed in this field.\n"},"processingOptions":{"$ref":"#/components/schemas/processingOptionsOrders"},"reasonCode":{"type":"string","maxLength":255,"description":"Values of reason code configured in **Billing Settings** > **Configure Reason Codes** through Zuora UI. Indicates the reason when a return order line item occurs.\n"},"schedulingOptions":{"$ref":"#/components/schemas/PutOrderRequestTypeSchedulingOptions","description":"Information of scheduled order. \n"},"status":{"$ref":"#/components/schemas/PutOrderRequestTypeStatus","description":"The status of the order. The default value is `Completed`. The following values are supported:\n- `Draft`: The order is in draft status.\n- `Pending`: The order is in pending status.\n- `Completed`: The order is in completed status.\n- `Scheduled`: The order is in scheduled status and it is only valid if the Scheduled Orders feature is enabled.\n- `Executing`: The scheduled order is executed by a scheduler and it is only valid if the Scheduled Orders feature is enabled.\n- `Failed`: The scheduled order has failed.\n\n**Note:** If you have the Pending Subscription Processing feature turned on and want to  update a completed order with an active subscription with pending charges, you must specify  `Completed` in this field because the default order status is `Pending` for this scenario.\n"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderRequestTypeSubscriptionsItems"},"description":"Each item includes a set of order actions, which will be applied to the same base subscription.  When you create an order that involves multiple subscriptions, these subscriptions can have different invoice owner accounts or subscription owner accounts. "}},"required":["orderDate"],"title":"PUTOrderRequestType"},"PutOrderResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"PutOrderResponseTypeReasonsItems"},"PutOrderResponseTypeRampsItems":{"type":"object","properties":{"rampNumber":{"type":"string","maxLength":50,"description":"The number of the ramp definition."},"subscriptionNumber":{"type":"string","maxLength":150,"description":"The number of the subscription that this ramp deal definition is applied to."}},"title":"PutOrderResponseTypeRampsItems"},"PutOrderResponseTypeRefundsItemsStatus":{"type":"string","enum":["Success","Error"],"description":"The status of the refund.","title":"PutOrderResponseTypeRefundsItemsStatus"},"PutOrderResponseTypeRefundsItems":{"type":"object","properties":{"number":{"type":"string","maxLength":32,"description":"The refund number. For example, `R-00009564`."},"refundInvoiceNumbers":{"type":"array","items":{"type":"string","maxLength":255},"description":"An array of the refunded invoice numbers generated in this order request."},"status":{"$ref":"#/components/schemas/PutOrderResponseTypeRefundsItemsStatus","description":"The status of the refund."}},"title":"PutOrderResponseTypeRefundsItems"},"PutOrderResponseTypeStatus":{"type":"string","enum":["Draft","Pending","Completed","Scheduled"],"description":"Status of the order. `Pending` is only applicable for an order that contains a `CreateSubscription` order action.","title":"PutOrderResponseTypeStatus"},"PutOrderResponseTypeSubscriptionsItemsStatus":{"type":"string","enum":["Active","Pending Activation","Pending Acceptance","Cancelled","Suspended"],"description":"Status of the subscription. `Pending Activation` and `Pending Acceptance` are only applicable for an order that contains a `CreateSubscription` order action.","title":"PutOrderResponseTypeSubscriptionsItemsStatus"},"PutOrderResponseTypeSubscriptionsItems":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/PutOrderResponseTypeSubscriptionsItemsStatus","description":"Status of the subscription. `Pending Activation` and `Pending Acceptance` are only applicable for an order that contains a `CreateSubscription` order action."},"subscriptionId":{"type":"string","maxLength":32,"description":"Subscription ID of the subscription included in this order. This field is returned instead of the `subscriptionNumber` field if the `returnIds` query parameter is set to `true`."},"subscriptionNumber":{"type":"string","maxLength":150,"description":"Subscription number of the subscription included in this order."}},"title":"PutOrderResponseTypeSubscriptionsItems"},"PutOrderResponseTypeWriteOffItemsStatus":{"type":"string","enum":["Success","Failed"],"description":"The status of the write-off.","title":"PutOrderResponseTypeWriteOffItemsStatus"},"PutOrderResponseTypeWriteOffItems":{"type":"object","properties":{"amount":{"type":"number","format":"double","minimum":9,"maximum":22,"description":"The amount written off from the invoice balance."},"failedReason":{"type":"string","description":"The reason of write-off failure."},"invoiceNumber":{"type":"string","maxLength":255,"description":"The number of the invoice that is written off. For example, `INV00051208`."},"status":{"$ref":"#/components/schemas/PutOrderResponseTypeWriteOffItemsStatus","description":"The status of the write-off."},"writeOffCreditMemoNumber":{"type":"string","maxLength":255,"description":"The number of the credit memo that is written off."}},"title":"PutOrderResponseTypeWriteOffItems"},"PutOrderResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"accountId":{"type":"string","maxLength":32,"description":"The account ID for the order. This field is returned instead of the `accountNumber` field if the `returnIds` query parameter is set to `true`."},"accountNumber":{"type":"string","maxLength":50,"description":"The account number for the order."},"creditMemoIds":{"type":"array","items":{"type":"string","maxLength":32},"description":"An array of the credit memo IDs generated in this order request. The credit memo is only available if you have the Invoice Settlement feature enabled. This field is returned instead of the `creditMemoNumbers` field if the `returnIds` query parameter is set to `true`."},"creditMemoNumbers":{"type":"array","items":{"type":"string","maxLength":255},"description":"An array of the credit memo numbers generated in this order request. The credit memo is only available if you have the Invoice Settlement feature enabled."},"invoiceIds":{"type":"array","items":{"type":"string","maxLength":32},"description":"An array of the invoice IDs generated in this order request. Normally it includes one invoice ID only, but can include multiple items when a subscription was tagged as invoice separately. This field is returned instead of the `invoiceNumbers` field if the `returnIds` query parameter is set to `true`."},"invoiceNumbers":{"type":"array","items":{"type":"string","maxLength":255},"description":"An array of the invoice numbers generated in this order request. Normally it includes one invoice number only, but can include multiple items when a subscription was tagged as invoice separately."},"orderId":{"type":"string","maxLength":32,"description":"The ID of the order created. This field is returned instead of the `orderNumber` field if the `returnIds` query parameter is set to `true`."},"orderNumber":{"type":"string","maxLength":100,"description":"The order number of the order created."},"paidAmount":{"type":"string","minLength":9,"maxLength":22,"description":"The total amount collected in this order request."},"paymentId":{"type":"string","maxLength":32,"description":"The payment Id that is collected in this order request. This field is returned instead of the `paymentNumber` field if the `returnIds` query parameter is set to `true`."},"paymentNumber":{"type":"string","maxLength":32,"description":"The payment number that is collected in this order request."},"ramps":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderResponseTypeRampsItems"},"description":"**Note**: This field is only available if you have the Ramps feature enabled.  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 must be enabled before you can access the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics\" target=\"_blank\">Ramps</a> feature.  The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see <a href=\"https://knowledgecenter.zuora.com/Entitlements_and_Service_Policies/Zuora_Editions\">Zuora Editions</a> for pricing information coming October 2020. The ramp definitions created by this order request.\n"},"refunds":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderResponseTypeRefundsItems"}},"status":{"$ref":"#/components/schemas/PutOrderResponseTypeStatus","description":"Status of the order. `Pending` is only applicable for an order that contains a `CreateSubscription` order action."},"subscriptionIds":{"type":"array","items":{"type":"string","maxLength":32},"description":"Container for the subscription IDs of the subscriptions in an order. This field is returned if the `returnIds` query parameter is set to `true`."},"subscriptionOwnerId":{"type":"string","description":"Subscription owner account ID of the subscription."},"subscriptionOwnerNumber":{"type":"string","description":"Subscription owner account number of the subscription."},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderResponseTypeSubscriptionsItems"},"description":"This field is available only if you are on the latest Zuora API minor\nversion, or you set the `Zuora-Version` request header to `223.0` or a\nlater available version.\n"},"writeOff":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderResponseTypeWriteOffItems"}},"commitments":{"$ref":"#/components/schemas/CommitmentOutput"}},"description":"Response information of orders.","title":"PutOrderResponseType"},"DeleteOrderAsyncResponse":{"type":"object","properties":{"jobId":{"type":"string","description":"The ID of an asynchronous job that will be returned for tracking the status and result of the job."},"success":{"type":"boolean","description":"Indicates whether the call succeeded."}},"title":"DeleteOrderAsyncResponse"},"GetAsyncCreateOrderJobResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetAsyncCreateOrderJobResponseReasonsItems"},"GetAsyncCreateOrderJobResponseOrderLineItemsItems":{"type":"object","properties":{"id":{"type":"string","maxLength":32,"description":"The sytem generated Id for the Order Line Item."},"itemNumber":{"type":"string","maxLength":100,"description":"The number for the Order Line Item."}},"title":"GetAsyncCreateOrderJobResponseOrderLineItemsItems"},"GetAsyncCreateOrderJobResponseRampsItems":{"type":"object","properties":{"rampNumber":{"type":"string","maxLength":50,"description":"The number of the ramp definition."},"subscriptionNumber":{"type":"string","maxLength":150,"description":"The number of the subscription that this ramp deal definition is applied to."}},"title":"GetAsyncCreateOrderJobResponseRampsItems"},"GetAsyncCreateOrderJobResponseRefundsItemsStatus":{"type":"string","enum":["Success","Error"],"description":"The status of the refund.","title":"GetAsyncCreateOrderJobResponseRefundsItemsStatus"},"GetAsyncCreateOrderJobResponseRefundsItems":{"type":"object","properties":{"number":{"type":"string","maxLength":32,"description":"The refund number."},"refundInvoiceNumbers":{"type":"array","items":{"type":"string","maxLength":255},"description":"An array of the refunded invoice numbers generated in this order request."},"status":{"$ref":"#/components/schemas/GetAsyncCreateOrderJobResponseRefundsItemsStatus","description":"The status of the refund."}},"title":"GetAsyncCreateOrderJobResponseRefundsItems"},"GetAsyncCreateOrderJobResponseStatus":{"type":"string","enum":["Draft","Pending","Completed","Scheduled"],"description":"Status of the order. `Pending` is only applicable for an order that contains a `CreateSubscription` order action.","title":"GetAsyncCreateOrderJobResponseStatus"},"GetAsyncCreateOrderJobResponseWriteOffItemsStatus":{"type":"string","enum":["Success","Failed"],"description":"The status of the write-off.","title":"GetAsyncCreateOrderJobResponseWriteOffItemsStatus"},"GetAsyncCreateOrderJobResponseWriteOffItems":{"type":"object","properties":{"amount":{"type":"number","format":"double","minimum":9,"maximum":22,"description":"The amount written off from the invoice balance."},"failedReason":{"type":"string","description":"The reason of write-off failure."},"invoiceNumber":{"type":"string","maxLength":255,"description":"The number of the invoice that is written off."},"status":{"$ref":"#/components/schemas/GetAsyncCreateOrderJobResponseWriteOffItemsStatus","description":"The status of the write-off."},"writeOffCreditMemoNumber":{"type":"string","maxLength":255,"description":"The number of the credit memo that is written off."}},"title":"GetAsyncCreateOrderJobResponseWriteOffItems"},"GetAsyncCreateOrderJobResponseJobType":{"type":"string","enum":["AsyncCreateOrder"],"default":"AsyncCreateOrder","description":"The type of job.","title":"GetAsyncCreateOrderJobResponseJobType"},"GetAsyncPreviewOrderJobResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetAsyncPreviewOrderJobResponseReasonsItems"},"GetAsyncPreviewOrderJobResponseChargeMetricsItems":{"type":"object","properties":{"charges":{"type":"array","items":{"$ref":"#/components/schemas/ChargePreviewMetrics"}},"subscriptionNumber":{"type":"string","description":"The number of the subscription that has been affected by this order. When creating a subscription, this value will not show if the subscription number was not specified in the request."}},"title":"GetAsyncPreviewOrderJobResponseChargeMetricsItems"},"GetAsyncPreviewOrderJobResponseCreditMemosItems":{"type":"object","properties":{"amount":{"type":"number","format":"double"},"amountWithoutTax":{"type":"number","format":"double"},"creditMemoItems":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceItemPreviewResult"}},"targetDate":{"type":"string","format":"date"},"taxAmount":{"type":"number","format":"double"}},"title":"GetAsyncPreviewOrderJobResponseCreditMemosItems"},"GetAsyncPreviewOrderJobResponseInvoicesItems":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The total amount of the invoice.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The amount of the invoice without tax.\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceItemPreviewResult"},"description":"The invoice items on the invoice.\n"},"targetDate":{"type":"string","format":"date","description":"The target date to bill the invoice.\n"},"taxAmount":{"type":"number","format":"double","description":"The total tax amount of the invoice.\n"},"invoiceItemSummary":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceItemSummary"},"description":"The aggregated summary data for all future invoices to be billed within the preview period.\n\nThis field is returned only if you set the `summarizeInvoiceItem` query parameter to `true`.\n"}},"title":"GetAsyncPreviewOrderJobResponseInvoicesItems"},"GetAsyncPreviewOrderJobResponseOrderDeltaMetrics":{"type":"object","properties":{"orderDeltaMrr":{"type":"array","items":{"$ref":"#/components/schemas/OrderDeltaMrr"}},"orderDeltaTcb":{"type":"array","items":{"$ref":"#/components/schemas/OrderDeltaTcb"}},"orderDeltaTcv":{"type":"array","items":{"$ref":"#/components/schemas/OrderDeltaTcv"}}},"description":"**Note:** As of Zuora Billing Release 306, Zuora has upgraded the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders). The new methodologies are reflected in the following Order Delta Metrics objects. \n* [Order Delta Mrr](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Mrr)\n* [Order Delta Tcv](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcv)\n* [Order Delta Tcb](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcb)\n\nIt is recommended that all customers use the new [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics). If you are an existing [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders) customer and want to migrate to Order Delta Metrics, submit a request at [Zuora Global Support](https://support.zuora.com/).\n","title":"GetAsyncPreviewOrderJobResponseOrderDeltaMetrics"},"GetAsyncPreviewOrderJobResponseOrderMetricsItemsOrderActionsItems":{"type":"object","properties":{"orderItems":{"type":"array","items":{"$ref":"#/components/schemas/OrderItem"},"description":"The `orderItems` nested field is only available to existing Orders customers who already have access to the field.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"orderMetrics":{"type":"array","items":{"$ref":"#/components/schemas/orderMetric"},"description":"The container for order metrics.\n\n**Note:** The following objects and fields of the Order Metrics are end of support. Any 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) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) will not get these metrics.\n* The Order ELP and Order Item objects \n* The \"Generated Reason\" and \"Order Item ID\" fields in the Order MRR, Order TCB, Order TCV, and Order Quantity objects\n\nZuora no longer provides product support, and bug fixes or security issues are no longer addressed.\n"},"sequence":{"type":"string"},"type":{"type":"string"}},"title":"GetAsyncPreviewOrderJobResponseOrderMetricsItemsOrderActionsItems"},"GetAsyncPreviewOrderJobResponseOrderMetricsItems":{"type":"object","properties":{"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncPreviewOrderJobResponseOrderMetricsItemsOrderActionsItems"}},"subscriptionNumber":{"type":"string"}},"title":"GetAsyncPreviewOrderJobResponseOrderMetricsItems"},"GetAsyncPreviewOrderJobResponseJobType":{"type":"string","enum":["AsyncPreviewOrder"],"default":"AsyncPreviewOrder","description":"The type of job.","title":"GetAsyncPreviewOrderJobResponseJobType"},"GetAsyncOrderJobResponseResult":{"oneOf":[{"type":"object","properties":{"jobType":{"$ref":"#/components/schemas/GetAsyncCreateOrderJobResponseJobType","default":"AsyncCreateOrder","description":"The type of job."},"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncCreateOrderJobResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"accountId":{"type":"string","maxLength":32,"description":"The account ID for the order. This field is returned instead of the `accountNumber` field if the `returnIds` query parameter is set to `true`."},"accountNumber":{"type":"string","maxLength":50,"description":"The account number for the order."},"commitments":{"type":"array","items":{"$ref":"#/components/schemas/CommitmentOutput"},"description":"The commitments created by this order request."},"creditMemoIds":{"type":"array","items":{"type":"string","maxLength":32},"description":"An array of the credit memo IDs generated in this order request. The credit memo is only available if you have the Invoice Settlement feature enabled. This field is returned instead of the `creditMemoNumbers` field if the `returnIds` query parameter is set to `true`."},"creditMemoNumbers":{"type":"array","items":{"type":"string","maxLength":255},"description":"An array of the credit memo numbers generated in this order request. The credit memo is only available if you have the Invoice Settlement feature enabled."},"invoiceIds":{"type":"array","items":{"type":"string","maxLength":32},"description":"An array of the invoice IDs generated in this order request. Normally it includes one invoice ID only, but can include multiple items when a subscription was tagged as invoice separately. This field is returned instead of the `invoiceNumbers` field if the `returnIds` query parameter is set to `true`."},"invoiceNumbers":{"type":"array","items":{"type":"string","maxLength":255},"description":"An array of the invoice numbers generated in this order request. Normally it includes one invoice number only, but can include multiple items when a subscription was tagged as invoice separately."},"orderId":{"type":"string","maxLength":32,"description":"The ID of the order created. This field is returned instead of the `orderNumber` field if the `returnIds` query parameter is set to `true`."},"orderLineItems":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncCreateOrderJobResponseOrderLineItemsItems"},"description":"[Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) are non subscription based items created by an Order, representing transactional charges such as one-time fees, physical goods, or professional service charges that are not sold as subscription services. \n\nWith the Order Line Items feature enabled, you can now launch non-subscription and unified monetization business models in Zuora, in addition to subscription business models. \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"},"orderNumber":{"type":"string","maxLength":100,"description":"The order number of the order created."},"paidAmount":{"type":"string","minLength":9,"maxLength":22,"description":"The total amount collected in this order request."},"paymentId":{"type":"string","maxLength":32,"description":"The payment Id that is collected in this order request. This field is returned instead of the `paymentNumber` field if the `returnIds` query parameter is set to `true`."},"paymentNumber":{"type":"string","maxLength":32,"description":"The payment number that is collected in this order request."},"ramps":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncCreateOrderJobResponseRampsItems"},"description":"**Note**: This field 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\nThe ramp definitions created by this order request.\n"},"refunds":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncCreateOrderJobResponseRefundsItems"},"description":"Container for refunds."},"status":{"$ref":"#/components/schemas/GetAsyncCreateOrderJobResponseStatus","description":"Status of the order. `Pending` is only applicable for an order that contains a `CreateSubscription` order action."},"subscriptionIds":{"type":"array","items":{"type":"string","maxLength":32},"description":"Container for the subscription IDs of the subscriptions in an order. This field is returned if the `returnIds` query parameter is set to `true`."},"writeOff":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncCreateOrderJobResponseWriteOffItems"},"description":"Container for write-offs."}},"required":["jobType"],"description":"AsyncCreateOrder variant"},{"type":"object","properties":{"jobType":{"$ref":"#/components/schemas/GetAsyncPreviewOrderJobResponseJobType","default":"AsyncPreviewOrder","description":"The type of job."},"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncPreviewOrderJobResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"chargeMetrics":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncPreviewOrderJobResponseChargeMetricsItems"}},"creditMemos":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncPreviewOrderJobResponseCreditMemosItems"},"description":"This field is only available if you have the Invoice Settlement feature enabled."},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncPreviewOrderJobResponseInvoicesItems"}},"orderDeltaMetrics":{"$ref":"#/components/schemas/GetAsyncPreviewOrderJobResponseOrderDeltaMetrics","description":"**Note:** As of Zuora Billing Release 306, Zuora has upgraded the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders). The new methodologies are reflected in the following Order Delta Metrics objects. \n* [Order Delta Mrr](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Mrr)\n* [Order Delta Tcv](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcv)\n* [Order Delta Tcb](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcb)\n\nIt is recommended that all customers use the new [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics). If you are an existing [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders) customer and want to migrate to Order Delta Metrics, submit a request at [Zuora Global Support](https://support.zuora.com/).\n"},"orderMetrics":{"type":"array","items":{"$ref":"#/components/schemas/GetAsyncPreviewOrderJobResponseOrderMetricsItems"},"description":"**Note:** As of Zuora Billing Release 306, Zuora has upgraded the methodologies for calculating metrics in [Orders](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders). The new methodologies are reflected in the following Order Delta Metrics objects.  \n* [Order Delta Mrr](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Mrr) \n* [Order Delta Tcv](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcv) \n* [Order Delta Tcb](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/Order_Delta_Tcb) \n\nIt is recommended that all customers use the new [Order Delta Metrics](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Delta_Metrics/AA_Overview_of_Order_Delta_Metrics). If you are an existing [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders) customer and want to migrate to Order Delta Metrics, submit a request at [Zuora Global Support](https://support.zuora.com/). \n\nWhereas new customers, and existing customers not currently on [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders/Key_Metrics_for_Orders), will no longer have access to Order Metrics, existing customers currently using Order Metrics will continue to be supported.\n"},"rampMetrics":{"type":"array","items":{"$ref":"#/components/schemas/OrderRampMetrics"},"description":"**Note**: This field 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\nThe ramp metrics.\n"}},"required":["jobType"],"description":"AsyncPreviewOrder variant"}],"discriminator":{"propertyName":"jobType"},"title":"GetAsyncOrderJobResponseResult"},"GetAsyncOrderJobResponseStatus":{"type":"string","enum":["Processing","Failed","Completed"],"description":"Type of job status.","title":"GetAsyncOrderJobResponseStatus"},"GetAsyncOrderJobResponse":{"type":"object","properties":{"errors":{"type":["string","null"],"description":"Error messages returned if the job failed."},"result":{"$ref":"#/components/schemas/GetAsyncOrderJobResponseResult"},"status":{"$ref":"#/components/schemas/GetAsyncOrderJobResponseStatus","description":"Type of job status."},"success":{"type":"boolean","description":"Indicates whether the operation call succeeded."}},"title":"GetAsyncOrderJobResponse"},"GetOrdersResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetOrdersResponseReasonsItems"},"GetOrdersResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetOrdersResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"orders":{"type":"array","items":{"$ref":"#/components/schemas/Order"}}},"title":"GetOrdersResponse"},"V1OrdersSubscriptionSubscriptionNumberGetParametersStatus":{"type":"string","enum":["all","cancelled","completed","draft","executing","failed","pending","scheduled"],"title":"V1OrdersSubscriptionSubscriptionNumberGetParametersStatus"},"V1OrdersInvoiceOwnerAccountNumberGetParametersStatus":{"type":"string","enum":["all","cancelled","completed","draft","executing","failed","pending","scheduled"],"title":"V1OrdersInvoiceOwnerAccountNumberGetParametersStatus"},"PutOrderPatchRequestTypeSubscriptionsItemsOrderActionsItems":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/OrderActionObjectCustomFields"},"orderActionId":{"type":"string","description":"The Id of the order action in the order. You can provide either the `sequence` or the `orderActionId` field to specify which order action to update. You cannot use then both at the same time.\n"},"sequence":{"type":"integer","description":"The sequence number of the order action in the order. You can provide either the `sequence` or the `orderActionId` field to specify which order action to update. You cannot use then both at the same time.\n"}},"title":"PutOrderPatchRequestTypeSubscriptionsItemsOrderActionsItems"},"PutOrderPatchRequestTypeSubscriptionsItems":{"type":"object","properties":{"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderPatchRequestTypeSubscriptionsItemsOrderActionsItems"}},"subscriptionNumber":{"type":"string"}},"title":"PutOrderPatchRequestTypeSubscriptionsItems"},"PUTOrderPatchRequestType":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/OrderObjectCustomFields"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderPatchRequestTypeSubscriptionsItems"}}},"title":"PUTOrderPatchRequestType"},"PutSubscriptionPatchRequestTypeRatePlansItemsChargesItems":{"type":"object","properties":{"chargeId":{"type":"string","description":"Use either this field or the `chargeNumber` field to specify the charge for which you will be updating the custom fields. By using this field you actually specify a specific charge segment of a charge. See <a href=\"https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/RatePlanCharge#Segmented_rate_plan_charges\" target=\"_blank\">Segmented rate plan charges</a> for more information about charge segments.\n"},"chargeNumber":{"type":"string","description":"Use either this field or the `chargeId` field to specify the charge for which you will be updating the custom fields. By using this field you actually specify the last charge segment of a charge. See <a href=\"https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/RatePlanCharge#Segmented_rate_plan_charges\" target=\"_blank\">Segmented rate plan charges</a> for more information about charge segments.\n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"}},"title":"PutSubscriptionPatchRequestTypeRatePlansItemsChargesItems"},"PutSubscriptionPatchRequestTypeRatePlansItems":{"type":"object","properties":{"charges":{"type":"array","items":{"$ref":"#/components/schemas/PutSubscriptionPatchRequestTypeRatePlansItemsChargesItems"}},"customFields":{"$ref":"#/components/schemas/OrdersRatePlanObjectCustomFields"},"ratePlanId":{"type":"string","description":"The rate plan id in any version of the subscription. This will be linked to the only one rate plan in the current version."}},"title":"PutSubscriptionPatchRequestTypeRatePlansItems"},"PUTSubscriptionPatchRequestType":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/SubscriptionObjectCustomFields"},"ratePlans":{"type":"array","items":{"$ref":"#/components/schemas/PutSubscriptionPatchRequestTypeRatePlansItems"}}},"title":"PUTSubscriptionPatchRequestType"},"PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItemsChargesItems":{"type":"object","properties":{"chargeNumber":{"type":"string","description":"Charge number of the charge which needs the triggering date to be provided. The charge's `triggerEvent` must have been set as `SpecificDate`."},"specificTriggerDate":{"type":"string","format":"date","description":"Date in YYYY-MM-DD format. The specific trigger date you are to set for the charge."}},"title":"PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItemsChargesItems"},"PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItemsTriggerDatesItemsName":{"type":"string","enum":["ServiceActivation","CustomerAcceptance"],"description":"Name of the trigger date of the order action.","title":"PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItemsTriggerDatesItemsName"},"PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItemsTriggerDatesItems":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItemsTriggerDatesItemsName","description":"Name of the trigger date of the order action."},"triggerDate":{"type":"string","format":"date","description":"Trigger date in YYYY-MM-DD format. The date you are to set as the service activation date or the customer acceptance date.\n"}},"title":"PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItemsTriggerDatesItems"},"PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItems":{"type":"object","properties":{"charges":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItemsChargesItems"}},"sequence":{"type":"integer","description":"Identifies which order action will have its triggering dates updated. \n"},"triggerDates":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItemsTriggerDatesItems"},"description":"Container for the service activation and customer acceptance dates of the order action."}},"required":["sequence"],"title":"PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItems"},"PutOrderActionTriggerDatesRequestTypeSubscriptionsItems":{"type":"object","properties":{"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderActionTriggerDatesRequestTypeSubscriptionsItemsOrderActionsItems"}},"subscriptionNumber":{"type":"string","maxLength":100,"description":"Subscription number of a subscription in the `Pending` order for which you are to update the triggering dates. For example, A-S00000001.\n"}},"required":["subscriptionNumber"],"title":"PutOrderActionTriggerDatesRequestTypeSubscriptionsItems"},"PUTOrderActionTriggerDatesRequestType":{"type":"object","properties":{"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderActionTriggerDatesRequestTypeSubscriptionsItems"}}},"title":"PUTOrderActionTriggerDatesRequestType"},"PutOrderTriggerDatesResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"PutOrderTriggerDatesResponseTypeReasonsItems"},"PutOrderTriggerDatesResponseTypeStatus":{"type":"string","enum":["Completed","Pending"],"description":"Status of the order.","title":"PutOrderTriggerDatesResponseTypeStatus"},"PutOrderTriggerDatesResponseTypeSubscriptionsItemsStatus":{"type":"string","enum":["Active","Pending Activation","Pending Acceptance"],"description":"Status of the subscription. `Pending Activation` and `Pending Acceptance` are only applicable for an order that contains a `CreateSubscription` order action.","title":"PutOrderTriggerDatesResponseTypeSubscriptionsItemsStatus"},"PutOrderTriggerDatesResponseTypeSubscriptionsItems":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/PutOrderTriggerDatesResponseTypeSubscriptionsItemsStatus","description":"Status of the subscription. `Pending Activation` and `Pending Acceptance` are only applicable for an order that contains a `CreateSubscription` order action."},"subscriptionNumber":{"type":"string","description":"Subscription number of the subscription updated."}},"title":"PutOrderTriggerDatesResponseTypeSubscriptionsItems"},"PUTOrderTriggerDatesResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderTriggerDatesResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"accountNumber":{"type":"string","description":"The account number for the order."},"orderNumber":{"type":"string","description":"The order number of the order updated."},"status":{"$ref":"#/components/schemas/PutOrderTriggerDatesResponseTypeStatus","description":"Status of the order."},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderTriggerDatesResponseTypeSubscriptionsItems"},"description":"The subscriptions updated."}},"title":"PUTOrderTriggerDatesResponseType"},"PutOrderCancelResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"PutOrderCancelResponseReasonsItems"},"PutOrderCancelResponseStatus":{"type":"string","enum":["Cancelled"],"description":"Status of the order. `Cancelled` is only valid value.","title":"PutOrderCancelResponseStatus"},"PutOrderCancelResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderCancelResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"accountNumber":{"type":"string","description":"The account number for the order."},"cancelReason":{"type":"string","description":"The reason for cancelling the order."},"orderNumber":{"type":"string","description":"The order number of the order created."},"status":{"$ref":"#/components/schemas/PutOrderCancelResponseStatus","description":"Status of the order. `Cancelled` is only valid value."}},"title":"PutOrderCancelResponse"},"OrderActionCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of an Order Action object.\n","title":"OrderActionCustomFields"},"PUTOrderActionsRequestType":{"type":"object","properties":{"changeReason":{"type":"string","description":"The change reason set for an order action when the order action is updated.\n"},"customFields":{"$ref":"#/components/schemas/OrderActionCustomFields"}},"title":"PUTOrderActionsRequestType"},"GetOrderLineItemResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetOrderLineItemResponseTypeReasonsItems"},"OrderLineItemBillingRule":{"type":"string","enum":["TriggerWithoutFulfillment","TriggerAsFulfillmentOccurs"],"description":"The billing rule for the Order Line Item.\n","title":"OrderLineItemBillingRule"},"OrderLineItemCustomFieldsRetrieveOrderLineItem":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of an Order Line Item object.\n","title":"OrderLineItemCustomFieldsRetrieveOrderLineItem"},"OrderLineItemInlineDiscountType":{"type":"string","enum":["Percentage","FixedAmount","None"],"description":"This field is used to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nThis field is used together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n","title":"OrderLineItemInlineDiscountType"},"OrderLineItemItemCategory":{"type":"string","enum":["Sales","Return"],"default":"Sales","description":"The category for the Order Line Item, to indicate a product sales or return.\n","title":"OrderLineItemItemCategory"},"OrderLineItemItemState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Cancelled"],"description":"The state of the Order Line Item. See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n","title":"OrderLineItemItemState"},"OrderLineItemItemType":{"type":"string","enum":["Product","Fee","Services"],"description":"The type of the Order Line Item. \n","title":"OrderLineItemItemType"},"OrderLineItemRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"OrderLineItemRevenueRecognitionTiming"},"OrderLineItemRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"OrderLineItemRevenueAmortizationMethod"},"OrderLineItemTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode for the Order Line Item.\n","title":"OrderLineItemTaxMode"},"FulfillmentCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of a Fulfillment object.\n","title":"FulfillmentCustomFields"},"FulfillmentGetFulfillmentType":{"type":"string","enum":["Delivery","Return"],"description":"The type of the Fulfillment. \n","title":"FulfillmentGetFulfillmentType"},"FulfillmentGetState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Cancelled"],"description":"The state of the Fulfillment. See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n","title":"FulfillmentGetState"},"FulfillmentGet":{"type":"object","properties":{"fulfillmentNumber":{"type":"string","description":"The sytem generated number for the Fulfillment.\n"},"id":{"type":"string","format":"UUID","description":"The sytem generated Id.\n"},"billTargetDate":{"type":"string","format":"date","description":"The target date for the Fulfillment to be picked up by bill run for billing.\n"},"carrier":{"type":"string","description":"The carrier of the Fulfillment. The available values can be configured in **Billing Settings** > **Fulfillment Settings** through Zuora UI.\n"},"customFields":{"$ref":"#/components/schemas/FulfillmentCustomFields"},"description":{"type":"string","description":"The description of the Fulfillment.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude Fulfillment related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude Fulfillment from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"externalId":{"type":"string","description":"The external id of the Fulfillment.\n"},"fulfillmentDate":{"type":"string","format":"date","description":"The date of the Fulfillment.\n"},"fulfillmentLocation":{"type":"string","description":"The fulfillment location of the Fulfillment. The available values can be configured in **Billing Settings** > **Fulfillment Settings** through Zuora UI.\n"},"fulfillmentSystem":{"type":"string","description":"The fulfillment system of the Fulfillment. The available values can be configured in **Billing Settings** > **Fulfillment Settings** through Zuora UI.\n"},"fulfillmentType":{"$ref":"#/components/schemas/FulfillmentGetFulfillmentType","description":"The type of the Fulfillment. \n"},"orderLineItemId":{"type":"string","format":"UUID","description":"The reference id of the related Order Line Item.\n"},"quantity":{"type":"number","format":"double","description":"The quantity of the Fulfillment.\n"},"state":{"$ref":"#/components/schemas/FulfillmentGetState","description":"The state of the Fulfillment. See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n"},"trackingNumber":{"type":"string","description":"The tracking number of the Fulfillment.\n"}},"title":"FulfillmentGet"},"OrderLineItem":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The calculated gross amount for the Order Line Item.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The calculated gross amount for an order line item excluding tax. If the tax mode is tax exclusive, the value of this field equals that of the `amount` field.\n\nIf the tax mode of an order line item is not set, the system treats it as tax exclusive by default. The value of the `amountWithoutTax` field equals that of the `amount` field.\n\nIf you create an order line item from the product catalog, the tax mode and tax code of the product rate plan charge are used for the order line item by default. You can still overwrite this default set-up by setting the tax mode and tax code of the order line item.\n"},"id":{"type":"string","format":"UUID","description":"The sytem generated Id for the Order Line Item.\n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the order line item.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"quantityFulfilled":{"type":"number","format":"double","description":"The fulfilled quantity for an order line item. \n"},"quantityPendingFulfillment":{"type":"number","format":"double","description":"The quantity to fulfill for an order line item. \n"},"UOM":{"type":"string","description":"Specifies the units to measure usage.\n"},"accountingCode":{"type":"string","description":"The accountingCode for the Order Line Item.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available in the request body schema only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available in the request body schema only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n"},"amendedByOrderOn":{"type":"string","format":"date","description":"The date when the rate plan charge is amended through an order or amendment. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sales order line in Zuora Revenue.\n"},"amountPerUnit":{"type":"number","format":"double","description":"The actual charged amount per unit for the Order Line Item.\n"},"billTargetDate":{"type":"string","format":"date","description":"The target date for the Order Line Item to be picked up by bill run for billing.\n"},"billTo":{"type":"string","description":"The ID of the bill-to contact of an order line item. An existing contact under the billing account is specified as the bill-to contact of the order line item. The billing account is the order account.\n"},"billToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the bill-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `billToSnapshotId` field is exposed while retrieving the order line item details.\n"},"billingRule":{"$ref":"#/components/schemas/OrderLineItemBillingRule","description":"The billing rule for the Order Line Item.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available in the request body schema only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available in the request body schema only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available in the request body schema only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n"},"currency":{"type":"string","description":"The currency for the order line item. You can specify a currency when creating an order line item through the \"Create an order\" operation.\n"},"customFields":{"$ref":"#/components/schemas/OrderLineItemCustomFieldsRetrieveOrderLineItem"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferred revenue accounting code for the Order Line Item.\n"},"description":{"type":"string","description":"The description of the Order Line Item.\n"},"discount":{"type":"number","format":"double","description":"This field shows the total discount amount that is applied to an order line item after the `inlineDiscountType`, `inlineDiscountPerUnit` and `quantity` fields are set.\n\nThe inline discount is applied to the list price of an order line item (see the `listPrice` field).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude Order Line Item related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude Order Line Item from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"inlineDiscountPerUnit":{"type":"number","format":"double","description":"This field is used in accordance with the `inlineDiscountType` field, in the following manner:\n* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.\n* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.\n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"inlineDiscountType":{"$ref":"#/components/schemas/OrderLineItemInlineDiscountType","description":"This field is used to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nThis field is used together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"invoiceOwnerAccountId":{"type":"string","description":"The account ID of the invoice owner of the order line item.\n"},"invoiceOwnerAccountName":{"type":"string","description":"The account name of the invoice owner of the order line item.\n"},"invoiceOwnerAccountNumber":{"type":"string","description":"The account number of the invoice owner of the order line item.\n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue\nrecognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"itemCategory":{"$ref":"#/components/schemas/OrderLineItemItemCategory","default":"Sales","description":"The category for the Order Line Item, to indicate a product sales or return.\n"},"itemName":{"type":"string","description":"The name of the Order Line Item.\n"},"itemNumber":{"type":"string","description":"The number for the Order Line Item.\n"},"itemState":{"$ref":"#/components/schemas/OrderLineItemItemState","description":"The state of the Order Line Item. See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n"},"itemType":{"$ref":"#/components/schemas/OrderLineItemItemType","description":"The type of the Order Line Item. \n"},"listPrice":{"type":"number","format":"double","description":"The extended list price for an order line item, calculated by the formula: listPrice = listPricePerUnit * quantity\n"},"listPricePerUnit":{"type":"number","format":"double","description":"The list price per unit for the Order Line Item.\n"},"originalOrderDate":{"type":"string","format":"date","description":"The date when the rate plan charge is created through an order or amendment. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sales order line in Zuora Revenue.\n"},"originalOrderId":{"type":"string","description":"The ID of the original sales order for a return order line item.\n"},"originalOrderLineItemId":{"type":"string","description":"The ID of the original sales order line item for a return order line item.\n"},"originalOrderLineItemNumber":{"type":"string","description":"The number of the original sales order line item for a return order line item.\n"},"originalOrderNumber":{"type":"string","description":"The number of the original sales order for a return order line item.\n"},"ownerAccountId":{"type":"string","description":"The account ID of the owner of the order line item.\n"},"ownerAccountName":{"type":"string","description":"The account name of the owner of the order line item.\n"},"ownerAccountNumber":{"type":"string","description":"The account number of the owner of the order line item.\n"},"productCode":{"type":"string","description":"The product code for the Order Line Item.\n"},"productRatePlanChargeId":{"type":"string","description":"Id of a Product Rate Plan Charge. Only one-time charges are supported.\n"},"purchaseOrderNumber":{"type":"string","description":"Used by customers to specify the Purchase Order Number provided by the buyer.\n"},"quantity":{"type":"number","format":"double","description":"The quantity of units, such as the number of authors in a hosted wiki service.\n"},"quantityAvailableForReturn":{"type":"number","format":"double","description":"The quantity that can be returned for an order line item. \n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognized revenue accounting code for the Order Line Item.\n"},"relatedSubscriptionNumber":{"type":"string","description":"Use this field to relate an order line item to an subscription. Specify this field to the subscription number of the subscription to relate.\n"},"requiresFulfillment":{"type":"boolean","description":"The flag to show whether fulfillment is needed or not. It's derived from billing rule of the Order Line Item.\n"},"revenueRecognitionRule":{"type":"string","description":"The Revenue Recognition rule for the Order Line Item.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/OrderLineItemRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/OrderLineItemRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the OrderLineItem.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the subscription.\n"},"shipTo":{"type":"string","description":"The ID of a contact that belongs to the owner account or billing account of the order line item. Use this field to assign an existing account as the ship-to contact of an order line item.\n"},"shipToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the ship-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `shipToSnapshotId` field is exposed while retrieving the order line item details.\n"},"soldTo":{"type":"string","description":"The ID of a contact that belongs to the owner account or billing account of the order line item. Use this field to assign an existing account as the sold-to contact of an order line item.\n"},"soldToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the sold-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `soldToSnapshotId` field is exposed while retrieving the order line item details.\n"},"taxCode":{"type":"string","description":"The tax code for the Order Line Item.\n"},"taxMode":{"$ref":"#/components/schemas/OrderLineItemTaxMode","description":"The tax mode for the Order Line Item.\n"},"transactionEndDate":{"type":"string","format":"date","description":"The date a transaction is completed. The default value of this field is the transaction start date. Also, the value of this field should always equal or be later than the value of the `transactionStartDate` field.\n"},"transactionStartDate":{"type":"string","format":"date","description":"The date a transaction starts. The default value of this field is the order date.\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available in the request body schema only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n"},"fulfillments":{"type":"array","items":{"$ref":"#/components/schemas/FulfillmentGet"},"description":"Container for the fulfillments attached to an order line item.\n"}},"title":"OrderLineItem"},"GetOrderLineItemResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetOrderLineItemResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"orderLineItem":{"$ref":"#/components/schemas/OrderLineItem"}},"title":"GetOrderLineItemResponseType"},"PutOrderLineItemRequestTypeBillingRule":{"type":"string","enum":["TriggerWithoutFulfillment","TriggerAsFulfillmentOccurs"],"default":"TriggerWithoutFulfillment","description":"The rule for billing of the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when it is in the `Executing` state (when the `itemState` field is set as `Executing`).\n","title":"PutOrderLineItemRequestTypeBillingRule"},"PutOrderLineItemRequestTypeInlineDiscountType":{"type":"string","enum":["Percentage","FixedAmount","None"],"description":"You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\nUse this field to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nUse this field together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n","title":"PutOrderLineItemRequestTypeInlineDiscountType"},"PutOrderLineItemRequestTypeItemState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Canceled"],"description":"The state of the Order Line Item (OLI). See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n\nTo generate invoice for an OLI, you must set this field to `SentToBilling` and set the `billTargetDate` field .\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` or 'Booked' or `SentToBilling`state (when the `itemState` field is set as `Executing` or `SentToBilling`).\n","title":"PutOrderLineItemRequestTypeItemState"},"PutOrderLineItemRequestTypeItemType":{"type":"string","enum":["Product","Fee","Services"],"description":"The type of the Order Line Item (OLI). \n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n","title":"PutOrderLineItemRequestTypeItemType"},"PutOrderLineItemRequestTypeRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"PutOrderLineItemRequestTypeRevenueRecognitionTiming"},"PutOrderLineItemRequestTypeRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"PutOrderLineItemRequestTypeRevenueAmortizationMethod"},"PutOrderLineItemRequestTypeTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n","title":"PutOrderLineItemRequestTypeTaxMode"},"PUTOrderLineItemRequestType":{"type":"object","properties":{"UOM":{"type":"string","description":"Specifies the units to measure usage.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"accountingCode":{"type":"string","description":"The accountingCode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"amountPerUnit":{"type":"number","format":"double","description":"The actual charged amount per unit for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"billTargetDate":{"type":"string","format":"date","description":"The target date for the Order Line Item (OLI) to be picked up by bill run for generating billing documents.\n\nTo generate billing documents for an OLI, you must set this field and set the `itemState` field to `SentToBilling`.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` or `Booked` state.\n"},"billTo":{"type":"string","description":"The ID of the bill-to contact of an order line item. Specify an existing contact under the billing account as the bill-to contact of the order line item. The billing account is the order account.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"billingRule":{"$ref":"#/components/schemas/PutOrderLineItemRequestTypeBillingRule","default":"TriggerWithoutFulfillment","description":"The rule for billing of the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when it is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object.  This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"customFields":{"$ref":"#/components/schemas/OrderLineItemCustomFields"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferred revenue accounting code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"description":{"type":"string","description":"The description of the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"inlineDiscountPerUnit":{"type":"number","format":"double","description":"You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\nUse this field in accordance with the `inlineDiscountType` field, in the following manner:\n* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.\n* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.\n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"inlineDiscountType":{"$ref":"#/components/schemas/PutOrderLineItemRequestTypeInlineDiscountType","description":"You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\nUse this field to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nUse this field together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue\nrecognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"itemName":{"type":"string","description":"The name of the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"itemState":{"$ref":"#/components/schemas/PutOrderLineItemRequestTypeItemState","description":"The state of the Order Line Item (OLI). See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n\nTo generate invoice for an OLI, you must set this field to `SentToBilling` and set the `billTargetDate` field .\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` or 'Booked' or `SentToBilling`state (when the `itemState` field is set as `Executing` or `SentToBilling`).\n"},"itemType":{"$ref":"#/components/schemas/PutOrderLineItemRequestTypeItemType","description":"The type of the Order Line Item (OLI). \n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"listPricePerUnit":{"type":"number","format":"double","description":"The list price per unit for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"ownerAccountNumber":{"type":"string","description":"Use this field to assign an existing account as the owner of an order line item.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"productCode":{"type":"string","description":"The product code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"purchaseOrderNumber":{"type":"string","description":"Used by customers to specify the Purchase Order Number provided by the buyer.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"quantity":{"type":"number","format":"double","description":"The quantity of units, such as the number of authors in a hosted wiki service.\n\nYou can update this field for a sales or return OLI only when the OLI in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognized revenue accounting code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"relatedSubscriptionNumber":{"type":"string","description":"Use this field to relate an order line item to an subscription. Specify this field to the subscription number of the subscription to relate.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"revenueRecognitionRule":{"type":"string","description":"The Revenue Recognition rule for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/PutOrderLineItemRequestTypeRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/PutOrderLineItemRequestTypeRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the order line item.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"sequenceSetId":{"type":"string","description":"The ID or number of the sequence set associated with the order line item.\n\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"paymentTerm":{"type":"string","description":"The payment term name associated with the order line item.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the order line item.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"shipTo":{"type":"string","description":"Use this field to assign an existing account as the ship-to contact of an order line item, by the following rules:\n\n* If the `ownerAccountNumber` field is set, then this field must be the ID of a contact that belongs to the owner account of the order line item. \n* If the `ownerAccountNumber` field is not set, then this field must be the ID of a contact that belongs to the billing account of the order line item. The billing account is the order account.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"soldTo":{"type":"string","description":"Use this field to assign an existing account as the sold-to contact of an order line item, by the following rules:\n\n* If the `ownerAccountNumber` field is set, then this field must be the ID of a contact that belongs to the owner account of the order line item. \n* If the `ownerAccountNumber` field is not set, then this field must be the ID of a contact that belongs to the billing account of the order line item. The billing account is the order account.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"taxCode":{"type":"string","description":"The tax code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"taxMode":{"$ref":"#/components/schemas/PutOrderLineItemRequestTypeTaxMode","description":"The tax mode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"transactionEndDate":{"type":"string","format":"date","description":"The date a transaction is completed. The default value of this field is the transaction start date. Also, the value of this field should always equal or be later than the value of the `transactionStartDate` field.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"transactionStartDate":{"type":"string","format":"date","description":"The date a transaction starts. The default value of this field is the order date.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"}},"title":"PUTOrderLineItemRequestType"},"PutOrderLineItemResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"PutOrderLineItemResponseTypeReasonsItems"},"PutOrderLineItemResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PutOrderLineItemResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"PutOrderLineItemResponseType"},"PostOrderLineItemUpdateTypeBillingRule":{"type":"string","enum":["TriggerWithoutFulfillment","TriggerAsFulfillmentOccurs"],"default":"TriggerWithoutFulfillment","description":"The rule for billing of the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when it is in the `Executing` state (when the `itemState` field is set as `Executing`).\n","title":"PostOrderLineItemUpdateTypeBillingRule"},"PostOrderLineItemUpdateTypeInlineDiscountType":{"type":"string","enum":["Percentage","FixedAmount","None"],"description":"You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\nUse this field to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nUse this field together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n","title":"PostOrderLineItemUpdateTypeInlineDiscountType"},"PostOrderLineItemUpdateTypeItemState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Canceled"],"description":"The state of the Order Line Item (OLI). See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n\nTo generate invoice for an OLI, you must set this field to `SentToBilling` and set the `billTargetDate` field .\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` or 'Booked' or `SentToBilling`state (when the `itemState` field is set as `Executing` or `SentToBilling`).\n","title":"PostOrderLineItemUpdateTypeItemState"},"PostOrderLineItemUpdateTypeItemType":{"type":"string","enum":["Product","Fee","Services"],"description":"The type of the Order Line Item (OLI). \n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n","title":"PostOrderLineItemUpdateTypeItemType"},"PostOrderLineItemUpdateTypeRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"PostOrderLineItemUpdateTypeRevenueRecognitionTiming"},"PostOrderLineItemUpdateTypeRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"PostOrderLineItemUpdateTypeRevenueAmortizationMethod"},"PostOrderLineItemUpdateTypeTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n","title":"PostOrderLineItemUpdateTypeTaxMode"},"PostOrderLineItemUpdateType":{"type":"object","properties":{"id":{"type":"string","format":"UUID","description":"The sytem generated Id for the Order Line Item(OLI). Use this field to specify which OLI to update.\n"},"UOM":{"type":"string","description":"Specifies the units to measure usage.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"accountingCode":{"type":"string","description":"The accountingCode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"amountPerUnit":{"type":"number","format":"double","description":"The actual charged amount per unit for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"billTargetDate":{"type":"string","format":"date","description":"The target date for the Order Line Item (OLI) to be picked up by bill run for generating billing documents.\n\nTo generate billing documents for an OLI, you must set this field and set the `itemState` field to `SentToBilling`.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` or `Booked` state.\n"},"billTo":{"type":"string","description":"The ID of the bill-to contact of an order line item. Specify an existing contact under the billing account as the bill-to contact of the order line item. The billing account is the order account.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"billingRule":{"$ref":"#/components/schemas/PostOrderLineItemUpdateTypeBillingRule","default":"TriggerWithoutFulfillment","description":"The rule for billing of the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when it is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object.  This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"customFields":{"$ref":"#/components/schemas/OrderLineItemCustomFields"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferred revenue accounting code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"description":{"type":"string","description":"The description of the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"inlineDiscountPerUnit":{"type":"number","format":"double","description":"You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\nUse this field in accordance with the `inlineDiscountType` field, in the following manner:\n* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.\n* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.\n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"inlineDiscountType":{"$ref":"#/components/schemas/PostOrderLineItemUpdateTypeInlineDiscountType","description":"You can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\nUse this field to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nUse this field together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue\nrecognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"itemName":{"type":"string","description":"The name of the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"itemState":{"$ref":"#/components/schemas/PostOrderLineItemUpdateTypeItemState","description":"The state of the Order Line Item (OLI). See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n\nTo generate invoice for an OLI, you must set this field to `SentToBilling` and set the `billTargetDate` field .\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` or 'Booked' or `SentToBilling`state (when the `itemState` field is set as `Executing` or `SentToBilling`).\n"},"itemType":{"$ref":"#/components/schemas/PostOrderLineItemUpdateTypeItemType","description":"The type of the Order Line Item (OLI). \n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"listPricePerUnit":{"type":"number","format":"double","description":"The list price per unit for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"ownerAccountNumber":{"type":"string","description":"Use this field to assign an existing account as the owner of an order line item.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"productCode":{"type":"string","description":"The product code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"purchaseOrderNumber":{"type":"string","description":"Used by customers to specify the Purchase Order Number provided by the buyer.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"quantity":{"type":"number","format":"double","description":"The quantity of units, such as the number of authors in a hosted wiki service.\n\nYou can update this field for a sales or return OLI only when the OLI in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognized revenue accounting code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"relatedSubscriptionNumber":{"type":"string","description":"Use this field to relate an order line item to an subscription. Specify this field to the subscription number of the subscription to relate.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"revenueRecognitionRule":{"type":"string","description":"The Revenue Recognition rule for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/PostOrderLineItemUpdateTypeRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/PostOrderLineItemUpdateTypeRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"invoiceGroupNumber":{"type":["string","null"],"maxLength":255,"description":"The number of the invoice group associated with the order line item.\n\nAfter enabling the Invoice Grouping feature, you can specify invoice group numbers to bill subscriptions and order line items based on specific criteria. For the same account, Zuora generates separate invoices for subscriptions and order line items, each identified by unique invoice group numbers. For more information, see [Invoice Grouping](https://knowledgecenter.zuora.com/Billing/Subscriptions/Invoice_Grouping).\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"sequenceSetId":{"type":"string","description":"The ID or number of the sequence set associated with the order line item.\n\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"paymentTerm":{"type":"string","description":"The payment term name associated with the order line item.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the order line item.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request during subscription creation, the value of this field is automatically set to `null` in the response body.\n  - You can specify this field on a sales order line item when its state (that is, the `itemState` field) is `Executing`, `Booked`, or `SentToBilling`.\n"},"shipTo":{"type":"string","description":"Use this field to assign an existing account as the ship-to contact of an order line item, by the following rules:\n\n* If the `ownerAccountNumber` field is set, then this field must be the ID of a contact that belongs to the owner account of the order line item. \n* If the `ownerAccountNumber` field is not set, then this field must be the ID of a contact that belongs to the billing account of the order line item. The billing account is the order account.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"soldTo":{"type":"string","description":"Use this field to assign an existing account as the sold-to contact of an order line item, by the following rules:\n\n* If the `ownerAccountNumber` field is set, then this field must be the ID of a contact that belongs to the owner account of the order line item. \n* If the `ownerAccountNumber` field is not set, then this field must be the ID of a contact that belongs to the billing account of the order line item. The billing account is the order account.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"taxCode":{"type":"string","description":"The tax code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"taxMode":{"$ref":"#/components/schemas/PostOrderLineItemUpdateTypeTaxMode","description":"The tax mode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"transactionEndDate":{"type":"string","format":"date","description":"The date a transaction is completed. The default value of this field is the transaction start date. Also, the value of this field should always equal or be later than the value of the `transactionStartDate` field.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"transactionStartDate":{"type":"string","format":"date","description":"The date a transaction starts. The default value of this field is the order date.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object. This field is available only if you have enabled <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"}},"required":["id"],"title":"PostOrderLineItemUpdateType"},"BillingOptions":{"type":"object","properties":{"documentDate":{"type":"string","format":"date","description":"The invoice date displayed on the billing document."},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges for order line items if a billing document is generated. See [What is a Target Date?](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs/Creating_Bill_Runs#What_is_a_Target_Date.3F)."}},"title":"BillingOptions"},"ProcessingOptions":{"type":"object","properties":{"billingOptions":{"$ref":"#/components/schemas/BillingOptions"},"runBilling":{"type":"boolean","description":"Indicates if the current request needs to generate a billing document. The billing document will be generated against all Order Line Items included in this order."}},"description":"Processing options for generating billing documents.","title":"ProcessingOptions"},"PostOrderLineItemsRequestType":{"type":"object","properties":{"orderLineItems":{"type":"array","items":{"$ref":"#/components/schemas/PostOrderLineItemUpdateType"}},"processingOptions":{"$ref":"#/components/schemas/ProcessingOptions"}},"title":"PostOrderLineItemsRequestType"},"FulfillmentPostFulfillmentType":{"type":"string","enum":["Delivery","Return"],"description":"The type of the Fulfillment. \n","title":"FulfillmentPostFulfillmentType"},"FulfillmentPostState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Cancelled"],"description":"The state of the Fulfillment. See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n","title":"FulfillmentPostState"},"FulfillmentItemCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of a Fulfillment Item object.\n","title":"FulfillmentItemCustomFields"},"FulfillmentItemPostFromFulfillmentPost":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/FulfillmentItemCustomFields"},"description":{"type":"string","description":"The description of the Fulfillment Item.\n"},"itemIdentifier":{"type":"string","description":"The external identifier of the Fulfillment Item.\n"}},"title":"FulfillmentItemPostFromFulfillmentPost"},"FulfillmentPost":{"type":"object","properties":{"orderLineItemId":{"type":"string","format":"UUID","description":"The reference id of the related Order Line Item.\n"},"billTargetDate":{"type":"string","format":"date","description":"The target date for the Fulfillment to be picked up by bill run for billing.\n"},"carrier":{"type":"string","description":"The carrier of the Fulfillment. The available values can be configured in **Billing Settings** > **Fulfillment Settings** through Zuora UI.\n"},"customFields":{"$ref":"#/components/schemas/FulfillmentCustomFields"},"description":{"type":"string","description":"The description of the Fulfillment.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude Fulfillment related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude Fulfillment from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"externalId":{"type":"string","description":"The external id of the Fulfillment.\n"},"fulfillmentDate":{"type":"string","format":"date","description":"The date of the Fulfillment.\n"},"fulfillmentLocation":{"type":"string","description":"The fulfillment location of the Fulfillment. The available values can be configured in **Billing Settings** > **Fulfillment Settings** through Zuora UI.\n"},"fulfillmentSystem":{"type":"string","description":"The fulfillment system of the Fulfillment. The available values can be configured in **Billing Settings** > **Fulfillment Settings** through Zuora UI.\n"},"fulfillmentType":{"$ref":"#/components/schemas/FulfillmentPostFulfillmentType","description":"The type of the Fulfillment. \n"},"quantity":{"type":"number","format":"double","description":"The quantity of the Fulfillment.\n"},"state":{"$ref":"#/components/schemas/FulfillmentPostState","description":"The state of the Fulfillment. See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n"},"trackingNumber":{"type":"string","description":"The tracking number of the Fulfillment.\n"},"fulfillmentItems":{"type":"array","items":{"$ref":"#/components/schemas/FulfillmentItemPostFromFulfillmentPost"}}},"title":"FulfillmentPost"},"PostFulfillmentsRequestType":{"type":"object","properties":{"fulfillments":{"type":"array","items":{"$ref":"#/components/schemas/FulfillmentPost"}},"processingOptions":{"$ref":"#/components/schemas/ProcessingOptions"}},"title":"PostFulfillmentsRequestType"},"PostFulfillmentsResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"PostFulfillmentsResponseTypeReasonsItems"},"PostFulfillmentsResponseTypeFulfillmentsItemsFulfillmentItemsItems":{"type":"object","properties":{"id":{"type":"string","format":"UUID","description":"The sytem generated Id.\n"}},"title":"PostFulfillmentsResponseTypeFulfillmentsItemsFulfillmentItemsItems"},"PostFulfillmentsResponseTypeFulfillmentsItems":{"type":"object","properties":{"fulfillmentItems":{"type":"array","items":{"$ref":"#/components/schemas/PostFulfillmentsResponseTypeFulfillmentsItemsFulfillmentItemsItems"}},"fulfillmentNumber":{"type":"string","description":"The sytem generated number for the Fulfillment.\n"},"id":{"type":"string","format":"UUID","description":"The sytem generated Id.\n"}},"title":"PostFulfillmentsResponseTypeFulfillmentsItems"},"PostFulfillmentsResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PostFulfillmentsResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"creditMemoNumbers":{"type":"array","items":{"type":"string"},"description":"An array of the credit memo numbers generated in this request. The credit memo is only available if you have the Invoice Settlement feature enabled.\n"},"fulfillments":{"type":"array","items":{"$ref":"#/components/schemas/PostFulfillmentsResponseTypeFulfillmentsItems"}},"invoiceNumbers":{"type":"array","items":{"type":"string"},"description":"An array of the invoice numbers generated in this request. Normally it includes one invoice number only.\n"},"paidAmount":{"type":"number","format":"double","description":"The total amount collected in this request.\n"},"paymentNumber":{"type":"string","description":"The payment number collected in this request.\n"}},"title":"PostFulfillmentsResponseType"},"GetFulfillmentResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetFulfillmentResponseTypeReasonsItems"},"GetFulfillmentResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetFulfillmentResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"fulfillment":{"$ref":"#/components/schemas/FulfillmentGet"}},"title":"GetFulfillmentResponseType"},"PutFulfillmentRequestTypeState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Cancelled"],"description":"The state of the Fulfillment. See [Order Line Item states, Order states, and state transitions](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n","title":"PutFulfillmentRequestTypeState"},"PutFulfillmentRequestType":{"type":"object","properties":{"billTargetDate":{"type":"string","format":"date","description":"The target date for the Fulfillment to be picked up by bill run for billing.\n"},"carrier":{"type":"string","description":"The carrier of the Fulfillment. The available values can be managed in the Fulfillment Settings page under Billing Settings.\n"},"customFields":{"$ref":"#/components/schemas/FulfillmentCustomFields"},"description":{"type":"string","description":"The description of the Fulfillment.\n"},"externalId":{"type":"string","description":"The external id of the Fulfillment.\n"},"fulfillmentDate":{"type":"string","format":"date","description":"The date of the Fulfillment.\n"},"fulfillmentLocation":{"type":"string","description":"The fulfillment location of the Fulfillment. The available values can be managed in the Fulfillment Settings page under Billing Settings.\n"},"fulfillmentSystem":{"type":"string","description":"The fulfillment system of the Fulfillment. The available values can be managed in the Fulfillment Settings page under Billing Settings.\n"},"quantity":{"type":"number","format":"double","description":"The quantity of the Fulfillment.\n"},"state":{"$ref":"#/components/schemas/PutFulfillmentRequestTypeState","description":"The state of the Fulfillment. See [Order Line Item states, Order states, and state transitions](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n"},"trackingNumber":{"type":"string","description":"The tracking number of the Fulfillment.\n"}},"title":"PutFulfillmentRequestType"},"FulfillmentItemPost":{"type":"object","properties":{"fulfillmentNumber":{"type":"string","description":"The reference of the related Fulfillment.\n"},"customFields":{"$ref":"#/components/schemas/FulfillmentItemCustomFields"},"description":{"type":"string","description":"The description of the Fulfillment Item.\n"},"itemIdentifier":{"type":"string","description":"The external identifier of the Fulfillment Item.\n"}},"title":"FulfillmentItemPost"},"PostFulfillmentItemsRequestType":{"type":"object","properties":{"fulfillmentItems":{"type":"array","items":{"$ref":"#/components/schemas/FulfillmentItemPost"}}},"title":"PostFulfillmentItemsRequestType"},"PostFulfillmentItemsResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"PostFulfillmentItemsResponseTypeReasonsItems"},"PostFulfillmentItemsResponseTypeFulfillmentItemsItems":{"type":"object","properties":{"id":{"type":"string","format":"UUID","description":"The sytem generated Id.\n"}},"title":"PostFulfillmentItemsResponseTypeFulfillmentItemsItems"},"PostFulfillmentItemsResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PostFulfillmentItemsResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"fulfillmentItems":{"type":"array","items":{"$ref":"#/components/schemas/PostFulfillmentItemsResponseTypeFulfillmentItemsItems"}}},"title":"PostFulfillmentItemsResponseType"},"GetFulfillmentItemResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetFulfillmentItemResponseTypeReasonsItems"},"FulfillmentItemGet":{"type":"object","properties":{"fulfillmentId":{"type":"string","format":"UUID","description":"The reference id of the related Fulfillment.\n"},"id":{"type":"string","format":"UUID","description":"The sytem generated Id.\n"},"customFields":{"$ref":"#/components/schemas/FulfillmentItemCustomFields"},"description":{"type":"string","description":"The description of the Fulfillment Item.\n"},"itemIdentifier":{"type":"string","description":"The external identifier of the Fulfillment Item.\n"}},"title":"FulfillmentItemGet"},"GetFulfillmentItemResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetFulfillmentItemResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"fulfillmentItem":{"$ref":"#/components/schemas/FulfillmentItemGet"}},"title":"GetFulfillmentItemResponseType"},"PutFulfillmentItemRequestType":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/FulfillmentItemCustomFields"},"description":{"type":"string","description":"The description of the Fulfillment Item.\n"},"itemIdentifier":{"type":"string","description":"The external identifier of the Fulfillment Item.\n"}},"title":"PutFulfillmentItemRequestType"},"GetRampByRampNumberResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetRampByRampNumberResponseTypeReasonsItems"},"GETRampByRampNumberResponseType":{"type":"object","properties":{"ramp":{"$ref":"#/components/schemas/RampResponse"},"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetRampByRampNumberResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GETRampByRampNumberResponseType"},"RampIntervalMetrics":{"type":"object","properties":{"description":{"type":"string","description":"The short description of the interval."},"discountTcb":{"type":"number","format":"double","description":"The discount amount for the TCB."},"discountTcv":{"type":"number","format":"double","description":"The discount amount for the TCV."},"endDate":{"type":"string","format":"date","description":"The end date of the interval."},"grossTcb":{"type":"number","format":"double","description":"The gross TCB value before discount charges are applied."},"grossTcv":{"type":"number","format":"double","description":"The gross TCV value before discount charges are applied."},"intervalMetrics":{"type":"array","items":{"$ref":"#/components/schemas/RampIntervalChargeMetrics"},"description":"Container for the detailed metrics for each rate plan charge in each ramp interval."},"name":{"type":"string","description":"The name of the interval."},"netTcb":{"type":"number","format":"double","description":"The net TCB value after discount charges are applied."},"netTcv":{"type":"number","format":"double","description":"The net TCV value after discount charges are applied."},"startDate":{"type":"string","format":"date","description":"The start date of the interval."}},"title":"RampIntervalMetrics"},"RampMetrics":{"type":"object","properties":{"description":{"type":"string","description":"The short description of the ramp."},"discountTcb":{"type":"number","format":"double","description":"The discount amount for the TCB."},"discountTcv":{"type":"number","format":"double","description":"The discount amount for the TCV."},"grossTcb":{"type":"number","format":"double","description":"The gross TCB value before discount charges are applied."},"grossTcv":{"type":"number","format":"double","description":"The gross TCV value before discount charges are applied."},"intervals":{"type":"array","items":{"$ref":"#/components/schemas/RampIntervalMetrics"},"description":"Container for the intervals that the ramp is split into in its timeline."},"name":{"type":"string","description":"The name of the ramp."},"netTcb":{"type":"number","format":"double","description":"The net TCB value after discount charges are applied."},"netTcv":{"type":"number","format":"double","description":"The net TCV value after discount charges are applied."},"number":{"type":"string","description":"The number of the ramp. It is automaticcally generated by the billing system."}},"title":"RampMetrics"},"GetRampMetricsByRampNumberResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetRampMetricsByRampNumberResponseTypeReasonsItems"},"GETRampMetricsByRampNumberResponseType":{"type":"object","properties":{"rampMetrics":{"$ref":"#/components/schemas/RampMetrics"},"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetRampMetricsByRampNumberResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GETRampMetricsByRampNumberResponseType"},"GetRampsBySubscriptionKeyResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetRampsBySubscriptionKeyResponseTypeReasonsItems"},"GETRampsBySubscriptionKeyResponseType":{"type":"object","properties":{"ramps":{"type":"array","items":{"$ref":"#/components/schemas/RampResponse"}},"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetRampsBySubscriptionKeyResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GETRampsBySubscriptionKeyResponseType"},"GetRampMetricsBySubscriptionKeyResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetRampMetricsBySubscriptionKeyResponseTypeReasonsItems"},"GETRampMetricsBySubscriptionKeyResponseType":{"type":"object","properties":{"rampMetrics":{"$ref":"#/components/schemas/RampMetrics"},"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetRampMetricsBySubscriptionKeyResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GETRampMetricsBySubscriptionKeyResponseType"},"GetRampMetricsByOrderNumberResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetRampMetricsByOrderNumberResponseTypeReasonsItems"},"GETRampMetricsByOrderNumberResponseType":{"type":"object","properties":{"rampMetrics":{"type":"array","items":{"$ref":"#/components/schemas/OrderRampMetrics"}},"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetRampMetricsByOrderNumberResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GETRampMetricsByOrderNumberResponseType"},"PostSubscriptionPreviewTypePreviewAccountInfoBillToContact":{"type":"object","properties":{"city":{"type":"string","description":"The city of the bill-to address. The value should be 40 characters or less.\n"},"country":{"type":"string","description":"The country of the bill-to address. The value must be a valid country name or abbreviation.\n\n**Note:** You must specify this field if you are using Zuora Tax for this account.\n"},"county":{"type":"string","description":"The county of the bill-to address. The value should be 32 characters or less.\n"},"state":{"type":"string","description":"The state of the bill-to address. The value must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>.\n\n**Note:** You must specify this field if you are using Zuora Tax for this account and the country is `USA` or `Canada`.\n"},"taxRegion":{"type":["string","null"],"description":"If using Zuora Tax, a region string as optionally defined in your tax rules.\n"},"zipCode":{"type":"string","description":"The zip code of the bill-to address. The value should be 20 characters or less.\n"}},"description":"Container for bill-to contact information of this account.\n","title":"PostSubscriptionPreviewTypePreviewAccountInfoBillToContact"},"PostSubscriptionPreviewTypePreviewAccountInfoCustomerTypeNs":{"type":"string","enum":["Company","Individual"],"description":"Value of the Customer Type field for the corresponding customer account in NetSuite. The Customer Type field is used when the customer account is created in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"PostSubscriptionPreviewTypePreviewAccountInfoCustomerTypeNs"},"PostSubscriptionPreviewTypePreviewAccountInfoSynctoNetSuiteNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the account should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"PostSubscriptionPreviewTypePreviewAccountInfoSynctoNetSuiteNs"},"POSTSubscriptionPreviewTypePreviewAccountInfo":{"type":"object","properties":{"billCycleDay":{"type":"integer","format":"int64","description":"The account's bill cycle day (BCD), when bill runs generate invoices for the account. Specify any day of the month (`1`-`31`, where `31` = end-of-month), or `0` for auto-set.\n"},"billToContact":{"$ref":"#/components/schemas/PostSubscriptionPreviewTypePreviewAccountInfoBillToContact","description":"Container for bill-to contact information of this account.\n"},"currency":{"type":"string","description":"A currency as defined in Billing Settings.\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Value of the Class field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"CustomerType__NS":{"$ref":"#/components/schemas/PostSubscriptionPreviewTypePreviewAccountInfoCustomerTypeNs","description":"Value of the Customer Type field for the corresponding customer account in NetSuite. The Customer Type field is used when the customer account is created in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Value of the Department field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the account's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Value of the Location field for the corresponding customer account in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Value of the Subsidiary field for the corresponding customer account in NetSuite. The Subsidiary field is required if you use NetSuite OneWorld. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the account was sychronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"$ref":"#/components/schemas/PostSubscriptionPreviewTypePreviewAccountInfoSynctoNetSuiteNs","description":"Specifies whether the account should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["billCycleDay","billToContact","currency"],"description":"A container for providing a customer account information if you do not have an existing customer account. This customer account information is only used for subscription preview.\n\nYou must specify the account information either in this field or in the `accountKey` field with the following conditions:\n\n* If you already have a customer account, specify the account number or ID in the accountKey field.\n* If you do not have a customer account, provide account information in this field.\n","title":"POSTSubscriptionPreviewTypePreviewAccountInfo"},"PostSubscriptionPreviewTypePreviewType":{"type":"string","enum":["LegalDoc","ChargeMetrics","LegalDocChargeMetrics"],"default":"LegalDoc","description":"The type of preview you will receive. \n\n**Note**: If your API minor version is earlier than `206.0` or you specify the `Zuora-Version` header for this request to `206.0` or earlier, the following values are supported for the `previewType` field:\n\n    - `InvoiceItem` (default)\n    - `ChargeMetrics`\n    - `InvoiceItemChargeMetrics`\n  \n","title":"PostSubscriptionPreviewTypePreviewType"},"POSTSubscriptionPreviewType":{"type":"object","properties":{"accountKey":{"type":"string","description":"\nCustomer account number or ID.\n\nYou must specify the account information either in this field or in the `previewAccountInfo` field with the following conditions:\n         \n* If you already have a customer account, specify the account number or ID in this field.\n* If you do not have a customer account, provide account information in the `previewAccountInfo` field.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"Effective contract date for this subscription, as yyyy-mm-dd.\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been accepted by the customer, as yyyy-mm-dd.\n\nDefault value is dependent on the value of other fields. See **Notes** section for more details.\n"},"documentDate":{"type":"string","format":"date","description":"The date of the billing document, in `yyyy-mm-dd` format. It represents the invoice date for invoices, credit memo date for credit memos, and debit memo date for debit memos.\n\n- If this field is specified, the specified date is used as the billing document date. \n- If this field is not specified, the date specified in the `targetDate` is used as the billing document date.\n"},"includeExistingDraftDocItems":{"type":"boolean","description":"Specifies whether to include draft invoice items in subscription previews.\nValues are:\n\n* `true` (default). Includes draft invoice items in the preview result.\n* `false`. Excludes draft invoice items in the preview result.\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `207.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"initialTerm":{"type":"integer","format":"int64","description":"Duration of the first term of the subscription, in whole months. If `termType` is `TERMED`, then this field is required, and the value must be greater than `0`. If `termType` is `EVERGREEN`, this field is ignored.    \n"},"initialTermPeriodType":{"type":"string","description":"The period type of the initial term. \n\nSupported values are:\n\n* `Month`\n* `Year`\n* `Day`\n* `Week`\n \nThe default period type is `Month`.\n\n"},"invoiceOwnerAccountKey":{"type":"string","description":"Invoice owner account number or ID.\n\n**Note:** This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n"},"notes":{"type":"string","maxLength":1000,"description":"The notes for the subscription."},"previewAccountInfo":{"$ref":"#/components/schemas/POSTSubscriptionPreviewTypePreviewAccountInfo"},"previewType":{"$ref":"#/components/schemas/PostSubscriptionPreviewTypePreviewType","default":"LegalDoc","description":"The type of preview you will receive. \n\n**Note**: If your API minor version is earlier than `206.0` or you specify the `Zuora-Version` header for this request to `206.0` or earlier, the following values are supported for the `previewType` field:\n\n    - `InvoiceItem` (default)\n    - `ChargeMetrics`\n    - `InvoiceItemChargeMetrics`\n  \n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been activated and access has been provided to the customer, as yyyy-mm-dd.\n\nDefault value is dependent on the value of other fields. See **Notes** section for more details.\n"},"skipTax":{"type":"boolean","default":false,"description":"If set to `true`, the system will bypass the tax calculation during subscription preview.\n"},"subscribeToRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/POSTSrpCreateType"},"description":"Container for one or more rate plans for this subscription.\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date.\n\n**Note:** This field is only available if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `207.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"termStartDate":{"type":"string","format":"date","description":"The date on which the subscription term begins, as yyyy-mm-dd. If this is a renewal subscription, this date is different from the subscription start date.\n"},"termType":{"type":"string","description":"Possible values are: `TERMED`, `EVERGREEN`.\n"}},"required":["contractEffectiveDate","subscribeToRatePlans","termType"],"description":"Container for custom fields of a Subscription object.\n","title":"POSTSubscriptionPreviewType"},"PostSubscriptionPreviewResponseTypeChargeMetrics":{"type":"object","properties":{"dmrr":{"type":"string","description":"Change in monthly recurring revenue.\n"},"dtcv":{"type":"string","description":"Change in total contract value.\n"},"mrr":{"type":"string","description":"Monthly recurring revenue.\n"},"number":{"type":"string","description":"The charge number of the subscription. Only available for update subscription.\n"},"originRatePlanId":{"type":"string","description":"The origin rate plan ID. Only available for update subscription.\n"},"originalId":{"type":"string","description":"The original rate plan charge ID. Only available for update subscription.\n"},"productRatePlanChargeId":{"type":"string","description":"The product rate plan charge ID.\n"},"productRatePlanId":{"type":"string","description":"The product rate plan ID.\n"},"tcv":{"type":"string","description":"Total contract value.\n"}},"description":"Container for charge metrics.\n","title":"PostSubscriptionPreviewResponseTypeChargeMetrics"},"PostSubscriptionPreviewTaxationItemsTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"Enum:\"Percentage\" \"FlatFee\". The type of the tax rate applied to the invoice.\n","title":"PostSubscriptionPreviewTaxationItemsTypeTaxRateType"},"POSTSubscriptionPreviewTaxationItemsType":{"type":"object","properties":{"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the taxCode field.\n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"taxAmount":{"type":"number","format":"double","description":"The tax amount of the invoice item.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific invoice.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","description":"The date when the tax is applied to the invoice.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the invoice. "},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/PostSubscriptionPreviewTaxationItemsTypeTaxRateType","description":"Enum:\"Percentage\" \"FlatFee\". The type of the tax rate applied to the invoice.\n"}},"title":"POSTSubscriptionPreviewTaxationItemsType"},"POSTSubscriptionPreviewCreditMemoItemsType":{"type":"object","properties":{"amountWithoutTax":{"type":"number","format":"double","description":"The credit memo item amount excluding tax.\n"},"chargeAmount":{"type":"number","format":"double","description":"The amount of the credit memo item. For tax-inclusive credit memo items, the amount indicates the credit memo item amount including tax. For tax-exclusive credit memo items, the amount indicates the credit memo item amount excluding tax\n"},"chargeDescription":{"type":"string","description":"Description of this credit memo item.\n"},"chargeName":{"type":"string","description":"Name of this credit memo item.\n"},"productName":{"type":"string","description":"Name of the product associated with this credit memo item.\n"},"productRatePlanChargeId":{"type":"string","description":"ID of the product rate plan charge associated with this credit memo item.\n"},"quantity":{"type":"integer","description":"Quantity of the charge associated with this credit memo item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"End date of the service period for this credit memo item, as yyyy-mm-dd.\n"},"serviceStartDate":{"type":"string","format":"date","description":"Service start date of this credit memo item, as yyyy-mm-dd.\n"},"taxAmount":{"type":"number","format":"double","description":"The tax amount of the credit memo item.\n"},"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTSubscriptionPreviewTaxationItemsType"},"description":"List of taxation items.\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `315.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version)."},"unitOfMeasure":{"type":"string","description":"Unit used to measure consumption."}},"title":"POSTSubscriptionPreviewCreditMemoItemsType"},"PostSubscriptionPreviewResponseTypeCreditMemo":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"Credit memo amount."},"amountWithoutTax":{"type":"number","format":"double","description":"Credit memo amount minus tax."},"creditMemoItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTSubscriptionPreviewCreditMemoItemsType"}},"taxAmount":{"type":"number","format":"double","description":"Tax amount on the credit memo."}},"description":"\nContainer for credit memos.\n\n**Note:** This container is only available if you are on the latest Zuora API version or you set the `Zuora-Version` request header to `207.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version),  and 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","title":"PostSubscriptionPreviewResponseTypeCreditMemo"},"POSTSubscriptionPreviewInvoiceItemsType":{"type":"object","properties":{"chargeAmount":{"type":"number","format":"double","description":"The amount of the charge. This amount doesn't include taxes unless the charge's tax mode is inclusive.\n"},"chargeDescription":{"type":"string","description":"Description of the charge.\n"},"chargeName":{"type":"string","description":"Name of the charge.\n"},"productName":{"type":"string","description":"Name of the product associated with this item.\n"},"productRatePlanChargeId":{"type":"string","description":"ID of the product rate plan charge.\n"},"quantity":{"type":"number","format":"double","description":"Quantity of this item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"End date of the service period for this item, i.e., the last day of the period, as yyyy-mm-dd.\n"},"serviceStartDate":{"type":"string","format":"date","description":"Service start date as yyyy-mm-dd. If the charge is a one-time fee, this is the date of that charge.\n"},"taxAmount":{"type":"number","format":"double","description":"The tax amount of the invoice item.\n"},"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTSubscriptionPreviewTaxationItemsType"},"description":"List of taxation items.\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `315.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version)."},"unitOfMeasure":{"type":"string"}},"title":"POSTSubscriptionPreviewInvoiceItemsType"},"PostSubscriptionPreviewResponseTypeInvoice":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"Invoice amount."},"amountWithoutTax":{"type":"number","format":"double","description":"Invoice amount minus tax.\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTSubscriptionPreviewInvoiceItemsType"},"description":"Container for invoice items.\n"},"targetDate":{"type":"string","description":"Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date.\n\n**Note:** This field is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header.\n"},"taxAmount":{"type":"number","format":"double","description":"The tax amount of the invoice.\n"}},"description":"Container for invoices.\n\n\n**Note:** This field is only available if you set the Zuora REST API minor version to `207.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version) in the request header. Also, the response structure is changed and the following invoice related response fields are moved to this **invoice** container:\n  \n   * amount\n   * amountWithoutTax\n   * taxAmount\n   * invoiceItems\n","title":"PostSubscriptionPreviewResponseTypeInvoice"},"POSTSubscriptionPreviewResponseType":{"type":"object","properties":{"chargeMetrics":{"$ref":"#/components/schemas/PostSubscriptionPreviewResponseTypeChargeMetrics","description":"Container for charge metrics.\n"},"contractedMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription.\n"},"creditMemo":{"$ref":"#/components/schemas/PostSubscriptionPreviewResponseTypeCreditMemo","description":"\nContainer for credit memos.\n\n**Note:** This container is only available if you are on the latest Zuora API version or you set the `Zuora-Version` request header to `207.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version),  and 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"},"documentDate":{"type":"string","format":"date","description":"The date of the billing document, in `yyyy-mm-dd` format. It represents the invoice date for invoices, credit memo date for credit memos, and debit memo date for debit memos.\n\n- If this field is specified, the specified date is used as the billing document date. \n- If this field is not specified, the date specified in the `targetDate` is used as the billing document date.\n"},"invoice":{"$ref":"#/components/schemas/PostSubscriptionPreviewResponseTypeInvoice","description":"Container for invoices.\n\n\n**Note:** This field is only available if you set the Zuora REST API minor version to `207.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version) in the request header. Also, the response structure is changed and the following invoice related response fields are moved to this **invoice** container:\n  \n   * amount\n   * amountWithoutTax\n   * taxAmount\n   * invoiceItems\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date.\n\n**Note:** This field is only available if you set the Zuora REST API minor version to `207.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version) in the request header.\n"},"taxAmount":{"type":"number","format":"double","description":"Tax amount on the invoice.\n"},"totalContractedValue":{"type":"number","format":"double","description":"Total contracted value of the subscription.\n"}},"title":"POSTSubscriptionPreviewResponseType"},"PreviewStartDatePolicy":{"type":"string","enum":["startOfTerm","today","specificDate"],"description":"The options on how the preview start date is calculated.\n- If you set this field to `startOfTerm`, the preview start date is the start date of the subscription term.   \n- If you set this field to `today`, the preview start date is today.\n- If you set this field to `specificDate`, you must specify a specific date in the `specificDate` field. The date must be in the format `yyyy-mm-dd`.\n","title":"PreviewStartDatePolicy"},"PreviewStartDate":{"type":"object","properties":{"previewStartDatePolicy":{"$ref":"#/components/schemas/PreviewStartDatePolicy"},"specificDate":{"type":"string","description":"The specific date for the preview start date. Required if `previewStartDatePolicy` is `specificDate`.\n"}},"description":"The start date of the preview.\n","title":"PreviewStartDate"},"PreviewThruDatePolicy":{"type":"string","enum":["nextBillingPeriods","endOfTerm","specificDate"],"description":"The options on how the preview through date is calculated. \n- If you set this field to `nextBillingPeriods`, you must specify the number of billing periods to preview in the `nextBillingPeriods` field.\n- If you set this field to `endOfTerm`, the preview through date is the end date of the subscription term.\n- If you set this field to `specificDate`, you must specify a specific date in the `specificDate` field. The date must be in the format `yyyy-mm-dd`.\n","title":"PreviewThruDatePolicy"},"PreviewThroughDate":{"type":"object","properties":{"previewThruDatePolicy":{"$ref":"#/components/schemas/PreviewThruDatePolicy"},"nextBillingPeriods":{"type":"number","format":"double","description":"The number of billing periods to preview. Required if `previewThruDatePolicy` is `nextBillingPeriods`.\n"},"specificDate":{"type":"string","description":"The specific date for the preview start date. Required if `previewThruDatePolicy` is `specificDate`.\n"}},"description":"The preview through date.\n","title":"PreviewThroughDate"},"QuantityForUsageCharges":{"type":"object","properties":{"chargeId":{"type":"string","description":"The ID of the subscription charge.\n"},"quantity":{"type":"number","format":"double","description":"The quantity of the subscription charge.\n"}},"title":"QuantityForUsageCharges"},"PreviewExistingSubscriptionRequest":{"type":"object","properties":{"previewStartDate":{"$ref":"#/components/schemas/PreviewStartDate"},"previewThroughDate":{"$ref":"#/components/schemas/PreviewThroughDate"},"quantityForUsageCharges":{"type":"array","items":{"$ref":"#/components/schemas/QuantityForUsageCharges"},"description":"Container for usage charges.\n"},"skipTax":{"type":"boolean","description":"If set to `true`, the system will bypass the tax calculation during subscription preview.\n"}},"description":"Preview the existing subscription by subscription ID or number.\n","title":"PreviewExistingSubscriptionRequest"},"PreviewExistingSubscriptionResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"PreviewExistingSubscriptionResponseReasonsItems"},"PreviewExistingSubscriptionInvoiceItemResultProcessingType":{"type":"string","enum":["Charge","Discount","Tax"],"description":"The processing type of the invoice item.","title":"PreviewExistingSubscriptionInvoiceItemResultProcessingType"},"PreviewExistingSubscriptionDiscountDetails":{"type":"object","properties":{"discountChargeName":{"type":"string","description":"The charge name of the discount."},"discountChargeNumber":{"type":"string","description":"The charge number of the discount."},"discountRate":{"type":"number","format":"double","description":"The discount rate."},"serviceStartDate":{"type":"string","format":"date","description":"Start date of the service period for this discount charge."},"serviceEndDate":{"type":"string","format":"date","description":"End date of the service period for this discount charge."}},"title":"PreviewExistingSubscriptionDiscountDetails"},"PreviewExistingSubscriptionInvoiceItemResult":{"type":"object","properties":{"serviceStartDate":{"type":"string","format":"date","description":"Service start date as yyyy-mm-dd. If the charge is a one-time fee, this is the date of that charge."},"serviceEndDate":{"type":"string","format":"date","description":"End date of the service period for this item, i.e., the last day of the period, as yyyy-mm-dd."},"amountWithoutTax":{"type":"number","format":"double","description":"Invoice amount minus tax."},"taxAmount":{"type":"number","format":"double","description":"The tax amount of the invoice item."},"chargeDescription":{"type":"string","description":"Description of the charge."},"chargeName":{"type":"string","description":"Name of the charge."},"chargeNumber":{"type":"string","description":"Available when the `chargeNumber` field was specified in the request or when the order is amending an existing subscription."},"productName":{"type":"string","description":"Name of the product."},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge."},"processingType":{"$ref":"#/components/schemas/PreviewExistingSubscriptionInvoiceItemResultProcessingType","description":"The processing type of the invoice item."},"unitPrice":{"type":"number","format":"double","description":"The unit price of the charge."},"quantity":{"type":"number","format":"double","description":"The quantity of the charge."},"unitOfMeasure":{"type":["string","null"],"description":"The unit of measure of the charge."},"discountDetails":{"type":"array","items":{"$ref":"#/components/schemas/PreviewExistingSubscriptionDiscountDetails"},"description":"Container for discount details."}},"title":"PreviewExistingSubscriptionInvoiceItemResult"},"PreviewExistingSubscriptionResultInvoicesStatus":{"type":"string","enum":["Draft","Posted"],"description":"The status of the invoice.\n","title":"PreviewExistingSubscriptionResultInvoicesStatus"},"PreviewExistingSubscriptionResultInvoices":{"type":"object","properties":{"invoiceNumber":{"type":"string","description":"The invoice number.\n"},"amount":{"type":"number","format":"double","description":"Invoice amount.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"Invoice amount minus tax.\n"},"taxAmount":{"type":"number","format":"double","description":"The tax amount of the invoice.\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd.\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/PreviewExistingSubscriptionInvoiceItemResult"},"description":"The container for invoice items.\n"},"status":{"oneOf":[{"$ref":"#/components/schemas/PreviewExistingSubscriptionResultInvoicesStatus"},{"type":"null"}],"description":"The status of the invoice.\n"},"isFromExistingInvoice":{"type":"boolean","description":"Indicates whether the invoice information is from an existing invoice.\n"}},"title":"PreviewExistingSubscriptionResultInvoices"},"PreviewExistingSubscriptionCreditMemoItemResultProcessingType":{"type":"string","enum":["Charge","Discount","Tax"],"description":"The processing type of the credit memo item.","title":"PreviewExistingSubscriptionCreditMemoItemResultProcessingType"},"PreviewExistingSubscriptionCreditMemoItemResult":{"type":"object","properties":{"serviceStartDate":{"type":"string","format":"date","description":"Service start date as yyyy-mm-dd. If the charge is a one-time fee, this is the date of that charge."},"serviceEndDate":{"type":"string","format":"date","description":"End date of the service period for this item, i.e., the last day of the period, as yyyy-mm-dd."},"amountWithoutTax":{"type":"number","format":"double","description":"Credit memo amount minus tax."},"taxAmount":{"type":"number","format":"double","description":"The tax amount of the credit memo item."},"chargeDescription":{"type":"string","description":"Description of the charge."},"chargeName":{"type":"string","description":"Name of the charge."},"chargeNumber":{"type":"string","description":"Available when the `chargeNumber` field was specified in the request or when the order is amending an existing subscription."},"productName":{"type":"string","description":"Name of the product."},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge."},"processingType":{"$ref":"#/components/schemas/PreviewExistingSubscriptionCreditMemoItemResultProcessingType","description":"The processing type of the credit memo item."},"unitPrice":{"type":"number","format":"double","description":"The unit price of the charge."},"quantity":{"type":"number","format":"double","description":"The quantity of the charge."},"unitOfMeasure":{"type":["string","null"],"description":"The unit of measure of the charge."},"discountDetails":{"type":"array","items":{"$ref":"#/components/schemas/PreviewExistingSubscriptionDiscountDetails"},"description":"Container for discount details."}},"title":"PreviewExistingSubscriptionCreditMemoItemResult"},"PreviewExistingSubscriptionResultCreditMemos":{"type":"object","properties":{"creditMemoNumber":{"type":"string","description":"The credit memo number."},"amount":{"type":"number","format":"double","description":"Credit memo amount."},"amountWithoutTax":{"type":"number","format":"double","description":"Credit memo amount minus tax."},"taxAmount":{"type":"number","format":"double","description":"The tax amount of the credit memo."},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if a credit memo is generated, as yyyy-mm-dd."},"creditMemoItems":{"type":"array","items":{"$ref":"#/components/schemas/PreviewExistingSubscriptionCreditMemoItemResult"},"description":"Container for credit memo items."},"status":{"type":["string","null"],"description":"The status of the credit memo."},"isFromExistingCreditMemo":{"type":"boolean","description":"Indicates whether the credit memo information is from an existing credit memo."}},"title":"PreviewExistingSubscriptionResultCreditMemos"},"PreviewExistingSubscriptionResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PreviewExistingSubscriptionResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/PreviewExistingSubscriptionResultInvoices"},"description":"Container for invoices."},"creditMemos":{"type":"array","items":{"$ref":"#/components/schemas/PreviewExistingSubscriptionResultCreditMemos"},"description":"Container for credit memos.\n\n**Note**: This field is only available if you have the Invoice Settlement feature enabled.\n"}},"title":"PreviewExistingSubscriptionResponse"},"PostSubscriptionTypeExternallyManagedBy":{"type":"string","enum":["Amazon","Apple","Google","Roku"],"description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n","title":"PostSubscriptionTypeExternallyManagedBy"},"POSTSubscriptionType":{"type":"object","properties":{"accountKey":{"type":"string","description":"Customer account number or ID\n"},"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply to invoices.\n"},"applyCredit":{"type":"boolean","description":"If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.\n\n\n**Note:** This field 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"},"applyCreditBalance":{"type":"boolean","description":"Whether to automatically apply a credit balance to an invoice.\n\nIf the value is `true`, the credit balance is applied to the invoice. If the value is `false`, no action is taken.\n\n\nTo view the credit balance adjustment, retrieve the details of the invoice using the Get Invoices method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:** \n  - If you are using the field `invoiceCollect` rather than the field `invoice`, the `invoiceCollect` value must be `true`.\n  - This field is deprecated if you have the Invoice Settlement feature enabled.\n"},"autoRenew":{"type":"boolean","default":false,"description":"If true, this subscription automatically renews at the end of the subscription term.\n\nThis field is only required if the `termType` field is set to `TERMED`.\n"},"collect":{"type":"boolean","default":true,"description":"Collects an automatic payment for a subscription. The collection generated in this operation is only for this subscription, not for the entire customer account.\n\nIf the value is `true`, the automatic payment is collected. If the value is `false`, no action is taken.\n\nPrerequisite: The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `196.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"Effective contract date for this subscription, as yyyy-mm-dd\n"},"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been accepted by the customer, as yyyy-mm-dd.\n\nDefault value is dependent on the value of other fields. See **Notes** section for more details.\n"},"documentDate":{"type":"string","format":"date","description":"The date of the billing document, in `yyyy-mm-dd` format. It represents the invoice date for invoices, credit memo date for credit memos, and debit memo date for debit memos.\n\n- If this field is specified, the specified date is used as the billing document date. \n- If this field is not specified, the date specified in the `targetDate` is used as the billing document date.\n"},"externallyManagedBy":{"$ref":"#/components/schemas/PostSubscriptionTypeExternallyManagedBy","description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n"},"gatewayId":{"type":"string","description":"The ID of the payment gateway instance. For example, `2c92c0f86078c4d5016091674bcc3e92`.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"initialTerm":{"type":"integer","format":"int64","description":"The length of the period for the first subscription term. If `termType` is `TERMED`, then this field is required, and the value must be greater than `0`. If `termType` is `EVERGREEN`, this field is ignored.\n"},"initialTermPeriodType":{"type":"string","description":"The period type for the first subscription term.\n\nThis field is used with the `InitialTerm` field to specify the initial subscription term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"invoiceOwnerAccountKey":{"type":"string","description":"Invoice owner account number or ID.\n\n**Note:** This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n"},"invoiceSeparately":{"type":"boolean","description":"Separates a single subscription from other subscriptions and invoices the charge independently. \n\nIf the value is `true`, the subscription is billed separately from other subscriptions. If the value is `false`, the subscription is included with other subscriptions in the account invoice.\n\nThe default value is `false`.\n\nPrerequisite: The default subscription setting Enable Subscriptions to be Invoiced Separately must be set to Yes.\n"},"lastBookingDate":{"type":"string","format":"date","description":"The last booking date of the subscription object. This field is writable only when the subscription is newly created as a first version subscription. You can override the date value when creating a subscription through the Subscribe and Amend API or the subscription creation UI (non-Orders). Otherwise, the default value `today` is set per the user's timezone. The value of this field is as follows:\n* For a new subscription created by the [Subscribe and Amend APIs](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Migration_Guidance#Subscribe_and_Amend_APIs_to_Migrate), this field has the value of the subscription creation date.\n* For a subscription changed by an amendment, this field has the value of the amendment booking date.\n* For a subscription created or changed by an order, this field has the value of the order date. "},"notes":{"type":"string","maxLength":1000,"description":"The notes for the subscription.\n"},"paymentMethodId":{"type":"string","description":"The ID of the payment method used for the payment.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the subscription will consume the reserved payment amount of the customer account. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information. \n"},"renewalSetting":{"type":"string","description":"Specifies whether a termed subscription will remain termed or change to evergreen when it is renewed.\n\nValues:\n\n* `RENEW_WITH_SPECIFIC_TERM` (default)\n* `RENEW_TO_EVERGREEN`\n"},"renewalTerm":{"type":"integer","format":"int64","description":"The length of the period for the subscription renewal term. Default is `0`.\n"},"renewalTermPeriodType":{"type":"string","description":"The period type for the subscription renewal term.\n\nThis field is used with the `renewalTerm` field to specify the subscription renewal term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"runBilling":{"type":"boolean","default":true,"description":"Creates an invoice for a subscription. If you have the Invoice Settlement feature enabled, a credit memo might also be created based on the [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).  \n\n\nThe billing documents generated\nin this operation is only for this subscription, not for the entire\ncustomer account.\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `211.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n\nPossible values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement feature enabled, a credit memo might also be created.\n\n- `false`: No invoice is created.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been activated and access has been provided to the customer, as yyyy-mm-dd.\n\nDefault value is dependent on the value of other fields. See **Notes** section for more details.\n"},"subscribeToRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/POSTSrpCreateType"},"description":"Container for one or more rate plans for this subscription.\n"},"subscriptionNumber":{"type":"string","description":"Subscription Number. The value can be up to 1000 characters.\n\nIf you do not specify a subscription number when creating a subscription, Zuora will generate a subscription number automatically.\n\nIf the account is created successfully, the subscription number is returned in the `subscriptionNumber` response field.\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice or a credit memo is generated, as\nyyyy-mm-dd. Default is current date.\n\n**Note**:  - This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `211.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n\n- The credit memo is only available if you have the Invoice Settlement feature enabled.\n"},"termStartDate":{"type":"string","format":"date","description":"The date on which the subscription term begins, as yyyy-mm-dd. If this is a renewal subscription, this date is different from the subscription start date.\n"},"termType":{"type":"string","description":"Possible values are: `TERMED`, `EVERGREEN`.\n"},"CpqBundleJsonId__QT":{"type":"string","maxLength":32,"description":"The Bundle product structures from Zuora Quotes if you utilize Bundling in Salesforce. Do not change the value in this field.\n"},"OpportunityCloseDate__QT":{"type":"string","format":"date","description":"The closing date of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"OpportunityName__QT":{"type":"string","maxLength":100,"description":"The unique identifier of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteBusinessType__QT":{"type":"string","maxLength":32,"description":"The specific identifier for the type of business transaction the Quote represents such as New, Upsell, Downsell, Renewal or Churn. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteNumber__QT":{"type":"string","maxLength":32,"description":"The unique identifier of the Quote. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteType__QT":{"type":"string","maxLength":32,"description":"The Quote type that represents the subscription lifecycle stage such as New, Amendment, Renew or Cancel. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the subscription's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Project__NS":{"type":"string","maxLength":255,"description":"The NetSuite project that the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SalesOrder__NS":{"type":"string","maxLength":255,"description":"The NetSuite sales order than the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the subscription was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["accountKey","contractEffectiveDate","renewalTerm","subscribeToRatePlans","termType"],"description":"Container for custom fields of a Subscription object.\n","title":"POSTSubscriptionType"},"POSTSubscriptionResponseType":{"type":"object","properties":{"contractedMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription.\n"},"creditMemoId":{"type":"string","description":"The credit memo ID, if a credit memo is generated during the subscription process.\n\n**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and 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"},"invoiceId":{"type":"string","description":"Invoice ID, if an invoice is generated during the subscription process.\n"},"paidAmount":{"type":"number","format":"double","description":"Payment amount, if a payment is collected.\n"},"paymentId":{"type":"string","description":"Payment ID, if a payment is collected.\n"},"subscriptionId":{"type":"string"},"subscriptionNumber":{"type":"string"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"totalContractedValue":{"type":"number","format":"double","description":"Total contracted value of the subscription.\n"}},"title":"POSTSubscriptionResponseType"},"GetSubscriptionTypeExternallyManagedBy":{"type":"string","enum":["Amazon","Apple","Google","Roku"],"description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n","title":"GetSubscriptionTypeExternallyManagedBy"},"GetSubscriptionRatePlanChargesTypeChargeFunction":{"type":"string","enum":["Standard","Prepayment","CommitmentTrueUp","Drawdown","CreditCommitment","DrawdownAndCreditCommitment"],"description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"GetSubscriptionRatePlanChargesTypeChargeFunction"},"GetSubscriptionRatePlanChargesTypeCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"GetSubscriptionRatePlanChargesTypeCommitmentType"},"RatePlanChargeSegmentApplyDiscountTo":{"type":"string","enum":["ONETIME","RECURRING","USAGE","ONETIMERECURRING","ONETIMEUSAGE","RECURRINGUSAGE","ONETIMERECURRINGUSAGE"],"description":"Specifies the type of charges a specific discount applies to. \n\nThis field is only used when applied to a discount charge model. If you are not using a discount charge model, the value is `null`.\n","title":"RatePlanChargeSegmentApplyDiscountTo"},"RatePlanChargeSegmentChargeFunction":{"type":"string","enum":["Standard","Prepayment","CommitmentTrueUp","Drawdown","CreditCommitment","DrawdownAndCreditCommitment"],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled.\n\nDefine what type of charge it is in Advanced consumption billing: * `Standard`: Normal charge with no Prepayment or Commitment or Drawdown. * `Prepayment`: For recurring charges. Unit or currency based prepaid charge. * `CommitmentTrueUp`: For recurring charges. Currency based minimum commitment charge. * `Drawdown`: For usage charges. Drawdown from prepaid funds. * `DrawdownAndCreditCommitment`: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds. * `CreditCommitment`: For usage charges. Credit to minimum commitment funds.\n","title":"RatePlanChargeSegmentChargeFunction"},"RatePlanChargeSegmentCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a>\nfeature enabled.\n\n\nThe type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. And a min commitment(in-arrears) charge can only be CURRENCY type.\nFor topup(recurring/one-time) charges, this field indicates what type of funds are created. \n\n* If `UNIT`, it will create a fund with given prepaidUom.\n\n* If `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n\nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"RatePlanChargeSegmentCommitmentType"},"RatePlanChargeSegmentCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n feature enabled. \\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n \n The way to calculate credit. See <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option\" target=\"_blank\">Credit Option</a> for more information.\n","title":"RatePlanChargeSegmentCreditOption"},"Currency":{"type":"string","description":"Currency used by the account. For example, `USD` or `EUR`.","title":"Currency"},"GetDeliveryScheduleTypeFrequency":{"type":"string","enum":["Weekly"],"description":"Specifies delivery frequency for the delivery schedule.\n","title":"GetDeliveryScheduleTypeFrequency"},"GETDeliveryScheduleType":{"type":"object","properties":{"frequency":{"$ref":"#/components/schemas/GetDeliveryScheduleTypeFrequency","description":"Specifies delivery frequency for the delivery schedule.\n"},"friday":{"type":"boolean","description":"Indicates whether delivery occurs on Friday.\n"},"monday":{"type":"boolean","description":"Indicates whether delivery occurs on Monday.\n"},"saturday":{"type":"boolean","description":"Indicates whether delivery occurs on Saturday.\n"},"sunday":{"type":"boolean","description":"Indicates whether delivery occurs on Sunday.\n"},"thursday":{"type":"boolean","description":"Indicates whether delivery occurs on Thursday.\n"},"tuesday":{"type":"boolean","description":"Indicates whether delivery occurs on Tuesday.\n"},"wednesday":{"type":"boolean","description":"Indicates whether delivery occurs on Wednesday.\n"}},"description":"The `deliverySchedule` is used for the Delivery Pricing charge model only. \n\n**Note**: The Delivery Pricing charge model 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. You can check **Delivery Pricing** in **Billing Settings** > **Enable Charge Types / Models**.\n","title":"GETDeliveryScheduleType"},"DiscountApplyDetails":{"type":"object","properties":{"appliedProductName":{"type":"string","description":"The name of the product that the discount rate plan charge applies to.\n"},"appliedProductRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the discount rate plan charge applies to.\n"},"appliedProductRatePlanChargeName":{"type":"string","description":"The name of the product rate plan charge that the discount rate plan charge applies to.\n"},"appliedProductRatePlanId":{"type":"string","description":"The ID of the product rate plan that the discount rate plan charge applies to.\n"},"appliedProductRatePlanName":{"type":"string","description":"The name of the product rate plan that the discount rate plan charge applies to.\n"}},"title":"DiscountApplyDetails"},"DiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"The level of the discount. \n \nFor example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"DiscountLevel"},"Uom":{"type":"string","description":"Specifies the units to measure usage.","title":"Uom"},"EndDateCondition":{"type":"string","enum":["Subscription_End","Fixed_Period","Specific_End_Date","One_Time"],"description":"Condition for the charge to become inactive.\n\nIf the value of this field is `Fixed_Period`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n\nIf the value of this field is `Specific_End_Date`, use the `specificEndDate` field to specify the date when then charge becomes inactive.\n","title":"EndDateCondition"},"RatePlanChargeSegmentPrepaidOperationType":{"type":"string","enum":["topup","drawdown"],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\nfeature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a\ndrawdown charge. \n","title":"RatePlanChargeSegmentPrepaidOperationType"},"PriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"PriceChangeOption"},"RatePlanChargeSegmentRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"RatePlanChargeSegmentRolloverApply"},"GETIntervalPriceTierType":{"type":"object","properties":{"endingUnit":{"type":"number","format":"double","description":"Decimal defining end of tier range.\n"},"isOveragePrice":{"type":"boolean","description":"True if the price is overage price for the tier.\n"},"price":{"type":"number","format":"double","description":"The decimal value of the tiered charge model. If the charge model is not a tiered type then this price field will be null and the `price` field directly under the `productRatePlanCharges` applies.\n"},"priceFormat":{"type":"string","description":"Tier price format. Allowed values: `flat fee`, `per unit`.\n"},"startingUnit":{"type":"number","format":"double","description":"Decimal defining start of tier range.\n"},"tier":{"type":"integer","format":"int64","description":"Unique number of the tier.\n"}},"title":"GETIntervalPriceTierType"},"GetIntervalPriceTypeType":{"type":"string","enum":["Day","Month","Infinity"],"description":"Interval type of this pricing.\n","title":"GetIntervalPriceTypeType"},"GETIntervalPriceType":{"type":"object","properties":{"duration":{"type":"integer","description":"Duration period of this interval.\n"},"price":{"type":"number","format":"double","description":"Price of this interval.\n"},"sequence":{"type":"integer","description":"A system-generated number that indicates the sequence in which each interval price is billed.\n"},"subscriptionChargeIntervalPriceTiers":{"type":"array","items":{"$ref":"#/components/schemas/GETIntervalPriceTierType"}},"type":{"$ref":"#/components/schemas/GetIntervalPriceTypeType","description":"Interval type of this pricing.\n"}},"title":"GETIntervalPriceType"},"RatePlanChargeTierPriceFormat":{"type":"string","enum":["FlatFee","PerUnit"],"description":"Tier price format. \n","title":"RatePlanChargeTierPriceFormat"},"RatePlanChargeTier":{"type":"object","properties":{"tier":{"type":"integer","format":"int64","minimum":1,"description":"Unique number of the tier.\n"},"startingUnit":{"type":"number","format":"double","description":"Decimal defining start of tier range.\n"},"endingUnit":{"type":"number","format":"double","description":"Decimal defining end of tier range.\n"},"price":{"type":"number","format":"double","description":"The decimal value of the tiered charge model. If the charge model is not a tiered type then this price field will be null and the `price` field directly under the `productRatePlanCharges` applies.\n"},"priceFormat":{"$ref":"#/components/schemas/RatePlanChargeTierPriceFormat","description":"Tier price format. \n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n"}},"title":"RatePlanChargeTier"},"BillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart","AlignToTermEnd"],"description":"Specifies how Zuora determines when to start new billing periods. You\ncan use this field to align the billing periods of different charges.\n\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that\nfalls on or after the date when the charge becomes active.\n\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing\nday that falls on or after the start date of the subscription.\n\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing\nperiod on the first billing day that falls on or after the start date of the term.\n\n\nSee the `billCycleType` field for information about how Zuora determines the billing\nday.\n\n**Note:** `AlignToTermEnd` is only available for prepayment charges by default.\nTo enable this value for non-prepaid recurring charges, contact <a href=\"http://support.zuora.com/\"\ntarget=\"_blank\">Zuora Global Support</a>.\n","title":"BillingPeriodAlignment"},"TriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance","SpecificDate"],"description":"Condition for the charge to become active. If this field is not specified,\nthe value of the field will be defaulted to the trigger event value defined in the\nproduct catalog.\n\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field\nto specify the date when the charge becomes active.\n","title":"TriggerEvent"},"UpToPeriodsType":{"type":"string","enum":["Days","Weeks","Months","Years","Billing_Periods"],"description":"Unit of time that the charge duration is measured in. Only applicable\nif the value of the `endDateCondition` field is `Fixed_Period`.\n","title":"UpToPeriodsType"},"ValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have the \n<a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\nfeature enabled.\n\n\nThe period in which the prepayment units are valid to use as defined in a <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge\" target=\"_blank\">prepayment\ncharge</a>.\n","title":"ValidityPeriodType"},"RatePlanChargeSegmentTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Determines how to define taxation for the charge.\n\nIt affects the tax calculation of the charge.\n","title":"RatePlanChargeSegmentTaxMode"},"RatePlanChargeSegment":{"type":"object","properties":{"id":{"type":"string","description":"ID of the charge.\n"},"amendedByOrderOn":{"type":"string","format":"date","description":"The date when the rate plan charge is amended through an order or amendment. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.\n"},"applyDiscountTo":{"oneOf":[{"$ref":"#/components/schemas/RatePlanChargeSegmentApplyDiscountTo"},{"type":"null"}],"description":"Specifies the type of charges a specific discount applies to. \n\nThis field is only used when applied to a discount charge model. If you are not using a discount charge model, the value is `null`.\n"},"chargeFunction":{"$ref":"#/components/schemas/RatePlanChargeSegmentChargeFunction","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled.\n\nDefine what type of charge it is in Advanced consumption billing: * `Standard`: Normal charge with no Prepayment or Commitment or Drawdown. * `Prepayment`: For recurring charges. Unit or currency based prepaid charge. * `CommitmentTrueUp`: For recurring charges. Currency based minimum commitment charge. * `Drawdown`: For usage charges. Drawdown from prepaid funds. * `DrawdownAndCreditCommitment`: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds. * `CreditCommitment`: For usage charges. Credit to minimum commitment funds.\n"},"chargeModelConfiguration":{"$ref":"#/components/schemas/ChargeModelConfigurationType"},"chargedThroughDate":{"type":"string","format":"date","description":"The date through which a customer has been billed for the charge.\n"},"commitmentType":{"$ref":"#/components/schemas/RatePlanChargeSegmentCommitmentType","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a>\nfeature enabled.\n\n\nThe type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. And a min commitment(in-arrears) charge can only be CURRENCY type.\nFor topup(recurring/one-time) charges, this field indicates what type of funds are created. \n\n* If `UNIT`, it will create a fund with given prepaidUom.\n\n* If `CURRENCY`, it will create a fund with the currency amount calculated in list price.\n\nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"prepaidCommittedAmount":{"type":["string","null"],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a> enabled.\n\nThe amount of the prepaid committed amount.\n"},"creditOption":{"oneOf":[{"$ref":"#/components/schemas/RatePlanChargeSegmentCreditOption"},{"type":"null"}],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\n feature enabled. \\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n \n The way to calculate credit. See <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option\" target=\"_blank\">Credit Option</a> for more information.\n"},"currency":{"$ref":"#/components/schemas/Currency"},"deliverySchedule":{"$ref":"#/components/schemas/GETDeliveryScheduleType"},"numberOfDeliveries":{"type":["number","null"],"format":"double","description":"The number of the deliveries.\n"},"description":{"type":"string","description":"Description of the rate plan charge segment."},"discountAmount":{"type":["number","null"],"format":"double","description":"The amount of the discount."},"discountApplyDetails":{"type":["array","null"],"items":{"$ref":"#/components/schemas/DiscountApplyDetails"},"description":"Container for the application details about a discount rate plan charge. \n\nOnly discount rate plan charges have values in this field.\n"},"discountClass":{"type":["string","null"],"description":"The class that the discount belongs to. The discount class defines\nthe order in which discount rate plan charges are applied.\n\n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes\" target=\"_blank\">Manage Discount Classes</a>.\n"},"discountLevel":{"$ref":"#/components/schemas/DiscountLevel"},"discountPercentage":{"type":["number","null"],"format":"double","description":"The amount of the discount as a percentage.\n"},"applyToBillingPeriodPartially":{"type":"boolean","default":false,"description":"A value of `true` indicates that the charge segment is applied to a billing period\npartially. The value of this field is `false` by default.\n"},"dmrc":{"type":"number","format":"double","description":"The change (delta) of monthly recurring charge exists when the change\nin monthly recurring revenue caused by an amendment or a new subscription.\n"},"done":{"type":"boolean","description":"A value of `true` indicates that an invoice for a charge segment\nhas been completed. A value of `false` indicates that an invoice has not been\ncompleted for the charge segment.\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\nfeature enabled.\n\n\nThe <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion\" target=\"_blank\">conversion rate</a>\nbetween Usage UOM and Drawdown UOM for a <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge\" target=\"_blank\">drawdown charge</a>.\nMust be a positive number (>0).\n"},"drawdownUom":{"$ref":"#/components/schemas/Uom"},"dtcv":{"type":"number","format":"double","description":"After an amendment or an AutomatedPriceChange event, `dtcv` displays the change (delta) for the total contract value (TCV) amount for this charge, compared with its previous value with recurring charge types.\n"},"effectiveEndDate":{"type":"string","format":"date","description":"The effective end date of the charge.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"The effective start date of the charge.\n"},"endDateCondition":{"$ref":"#/components/schemas/EndDateCondition"},"includedUnits":{"type":"number","format":"double","description":"The number of units included in this charge segment.\n"},"inputArgumentId":{"type":"string","description":"The ID of the input argument for the charge segment.\n"},"isCommitted":{"type":"boolean","description":"Indicates if the charge segment is committed.\n"},"isPrepaid":{"type":"boolean","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\nfeature enabled.\n\nIndicates whether this charge is a prepayment (topup) charge or a drawdown charge. \n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\nfeature enabled.\n\n\nIt determines whether the rollover fields are needed.\n"},"mrr":{"type":"number","format":"double","description":"Monthly recurring revenue (MRR) is the amount of recurring\ncharges in a given month. The MRR calculation doesn't include one-time\ncharges nor usage charges. \n"},"originalOrderDate":{"type":"string","format":"date","description":"The date when the rate plan charge is created through an order or\namendment. This field is to standardize the booking date information\nto increase audit ability and traceability of data between Zuora\nBilling and Zuora Revenue. It is mapped as the booking date for a\nsales order line in Zuora Revenue.\n"},"overagePrice":{"type":"number","format":"double","description":"Price for units over the allowed amount. \n\nAvailable for the usage-based charge type for the Overage and Tiered with Overage charge models.\n"},"prepaidOperationType":{"$ref":"#/components/schemas/RatePlanChargeSegmentPrepaidOperationType","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\nfeature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a\ndrawdown charge. \n"},"prepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>\nfeature enabled.\n\nThe number of units included in a <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge\" target=\"_blank\">prepayment charge</a>.\n"},"prepaidTotalQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n\nThe total amount of units that end customers can use during a validity period when they subscribe to a <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge\" target=\"_blank\">prepayment charge</a>.\n"},"prepaidUOM":{"$ref":"#/components/schemas/Uom"},"quantity":{"type":"number","format":"double","description":"Number of units purchased. \n"},"price":{"type":"number","format":"double","description":"The price of the charge segment.\n"},"priceChangeOption":{"$ref":"#/components/schemas/PriceChangeOption","default":"NoChange"},"priceIncreasePercentage":{"type":["number","null"],"format":"double","minimum":-100,"maximum":100,"description":"Specifies the percentage to increase or decrease the price of a termed\nsubscription's renewal. Use this field if you set the\n`PriceChangeOption` value to `SpecificPercentageValue`.\n\n\n1. AutomatedPriceChange setting is on\n\n2. Charge type is not one-time\n\n3. Charge model is not discount fixed amount\n"},"pricingSummary":{"type":"string","description":"A concise description of the charge model and pricing that is suitable to\nshow to your customers. \n"},"originalListPrice":{"type":["number","null"],"format":"double","description":"The original list price is the price of a product or service at which it\nis listed for sale by a manufacturer or retailer.\n"},"processedThroughDate":{"type":"string","format":"date","description":"The date until when charges have been processed. When billing in arrears, such as usage, this field value is the the same as the\n`ChargedThroughDate` value. \nThis date is the earliest date when a charge can be amended.\n"},"rolloverApply":{"$ref":"#/components/schemas/RatePlanChargeSegmentRolloverApply","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. \n"},"rolloverPeriods":{"type":"integer","format":"int64","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"prorationOption":{"type":"string","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled.\n\nThe charge-level proration option for the product rate plan charge.\n"},"segment":{"type":"integer","format":"int64","description":"Segment number of the charge.\n"},"specificEndDate":{"type":"string","format":"date","description":"Defines when the charge ends after the charge trigger date.\n\nThis field is only applicable when the `endDateCondition` field is `Specific_End_Date`.\n"},"subscriptionChargeIntervalPricing":{"type":"array","items":{"$ref":"#/components/schemas/GETIntervalPriceType"}},"tcv":{"type":"number","format":"double","description":"Total contract value (TCV) is the sum of one-time charges, recurring\ncharges, and usage charges. The TCV calculation includes one-time\ncharges, recurring charges, and usage charges.\n"},"tiers":{"type":["array","null"],"items":{"$ref":"#/components/schemas/RatePlanChargeTier"}},"triggerDate":{"type":["string","null"],"format":"date","description":"The date when the charge becomes effective and billing begins, in `yyyy-mm-dd` format.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/BillingPeriodAlignment"},"triggerEvent":{"$ref":"#/components/schemas/TriggerEvent"},"upToPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.\n\nThe value is inherited from `ProductRatePlanCharge.UpToPeriods` field.\n"},"upToPeriodsType":{"$ref":"#/components/schemas/UpToPeriodsType"},"validityPeriodType":{"$ref":"#/components/schemas/ValidityPeriodType"},"salesPrice":{"type":"number","format":"double","description":"The sales price of the charge segment.\n"},"accountingCode":{"type":["string","null"],"description":"The accounting code of the charge segment.\n"},"revenueRecognitionCode":{"type":["string","null"],"description":"The revenue recognition code of the charge segment.\n"},"revRecTriggerCondition":{"type":["string","null"],"description":"Specifies when revenue recognition begins.\n"},"estimatedEndDate":{"type":"string","format":"date","description":"The estimated end date of the charge segment.\n"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the charge segment.\n"},"taxable":{"type":["boolean","null"],"description":"Indicates whether the charge is taxable. \n"},"taxCode":{"type":["string","null"],"description":"The tax code of a charge.\n"},"taxMode":{"oneOf":[{"$ref":"#/components/schemas/RatePlanChargeSegmentTaxMode"},{"type":"null"}],"description":"Determines how to define taxation for the charge.\n\nIt affects the tax calculation of the charge.\n"}},"title":"RatePlanChargeSegment"},"GetSubscriptionRatePlanChargesTypeCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled. \nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n","title":"GetSubscriptionRatePlanChargesTypeCreditOption"},"GetSubscriptionRatePlanChargesTypePrepaidOperationType":{"type":"string","enum":["topup","drawdown"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n","title":"GetSubscriptionRatePlanChargesTypePrepaidOperationType"},"GetSubscriptionRatePlanChargesTypeRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled.    \n","title":"GetSubscriptionRatePlanChargesTypeRevenueRecognitionTiming"},"GetSubscriptionRatePlanChargesTypeRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"GetSubscriptionRatePlanChargesTypeRevenueAmortizationMethod"},"GetSubscriptionRatePlanChargesTypeRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"GetSubscriptionRatePlanChargesTypeRolloverApply"},"GETTierType":{"type":"object","properties":{"endingUnit":{"type":"number","format":"double","description":"Decimal defining end of tier range.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n\n\n**Note:** This field applies to the following charges in a subscription created through an order:\n  - `oneTimeTiered`\n  - `oneTimeVolume`\n  - `recurringTiered`\n  - `recurringVolume`\n  - `usageTiered`\n  - `usageVolume`\n  - `usageTieredWithOverage`\n"},"price":{"type":"number","format":"double","description":"The decimal value of the tiered charge model. If the charge model is not a tiered type then this price field will be null and the `price` field directly under the `productRatePlanCharges` applies.\n"},"priceFormat":{"type":"string","description":"Tier price format. Allowed values: `flat fee`, `per unit`.\n"},"startingUnit":{"type":"number","format":"double","description":"Decimal defining start of tier range.\n"},"tier":{"type":"integer","format":"int64","description":"Unique number of the tier.\n"}},"title":"GETTierType"},"GetSubscriptionRatePlanChargesTypeValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n","title":"GetSubscriptionRatePlanChargesTypeValidityPeriodType"},"GETSubscriptionRatePlanChargesType":{"type":"object","properties":{"amendedByOrderOn":{"type":"string","description":"The date when the rate plan charge is amended through an order or amendment. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.\n"},"applyDiscountTo":{"type":"string","description":"Specifies the type of charges a specific discount applies to. \n\nThis field is only used when applied to a discount charge model. If you are not using a discount charge model, the value is null.\n\nPossible values:\n\n* `RECURRING`\n* `USAGE`\n* `ONETIMERECURRING`\n* `ONETIMEUSAGE`\n* `RECURRINGUSAGE`\n* `ONETIMERECURRINGUSAGE`\n"},"applyToBillingPeriodPartially":{"type":"boolean","description":"Allow the discount duration to be aligned with the billing period partially.\n\n**Note**: This field is only available if you have the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature enabled.\n"},"billingDay":{"type":"string","description":"Billing cycle day (BCD), which is when bill runs generate invoices\nfor charges associated with the product rate plan charge or the account.  \n\nValues:\n\n* `DefaultFromCustomer`\n* `SpecificDayofMonth(# of the month)`\n* `SubscriptionStartDay`\n* `ChargeTriggerDay`\n* `SpecificDayofWeek/dayofweek`: in which dayofweek is the day in the week you define your billing periods to start.\n\nIn the response data, a day-of-the-month ordinal value (`first`-`31st`) appears in place of the hash sign above (\"#\"). If this value exceeds the number of days in a particular month, the last day of the month is used as the BCD.\n"},"billingPeriod":{"type":"string","description":"Allows billing period to be overridden on the rate plan charge.\n"},"billingPeriodAlignment":{"type":"string","description":"Possible values:\n\n* `AlignToCharge`\n* `AlignToSubscriptionStart`\n* `AlignToTermStart`\n"},"billingTiming":{"type":"string","description":"The billing timing for the charge. This field is only used if the `ratePlanChargeType` value is `Recurring`.\n\nPossible values are:\n\n* `In Advance`\n* `In Arrears`\n\n**Note:** This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n"},"chargeFunction":{"$ref":"#/components/schemas/GetSubscriptionRatePlanChargesTypeChargeFunction","description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"commitmentType":{"$ref":"#/components/schemas/GetSubscriptionRatePlanChargesTypeCommitmentType","description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"chargeModelConfiguration":{"$ref":"#/components/schemas/ChargeModelConfigurationType"},"chargeSegments":{"type":"array","items":{"$ref":"#/components/schemas/RatePlanChargeSegment"},"description":"This field is returned only if you have set the `charge-detail` query parameter to `all-segments`.\nContainer for the charge information for all the charge segments.\n"},"chargedThroughDate":{"type":"string","format":"date","description":"The date through which a customer has been billed for the charge.\n"},"creditOption":{"$ref":"#/components/schemas/GetSubscriptionRatePlanChargesTypeCreditOption","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled. \nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n"},"currency":{"type":"string","description":"Currency used by the account. For example, `USD` or `EUR`.\n"},"description":{"type":"string","description":"Description of the rate plan charge.\n"},"discountAmount":{"type":"number","format":"double","description":"The amount of the discount.\n"},"discountApplyDetails":{"type":"array","items":{"$ref":"#/components/schemas/DiscountApplyDetails"},"description":"Container for the application details about a discount rate plan charge. \n\nOnly discount rate plan charges have values in this field.\n"},"discountClass":{"type":"string","description":"The class that the discount belongs to. The discount class defines the order in which discount rate plan charges are applied.\n\nFor more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).\n"},"discountLevel":{"type":"string","description":"The level of the discount. Values: `RatePlan`, `Subscription`, `Account`.\n"},"discountPercentage":{"type":"number","format":"double","description":"The amount of the discount as a percentage.\n"},"dmrc":{"type":"number","format":"double","description":"The change (delta) of monthly recurring charge exists when the change in monthly recurring revenue caused by an amendment or a new subscription.\n"},"done":{"type":"boolean","description":"A value of `true` indicates that an invoice for a charge segment has been completed. A value of `false` indicates that an invoice has not been completed for the charge segment.\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"drawdownUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nUnit of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).\n"},"dtcv":{"type":"number","format":"double","description":"After an amendment or an AutomatedPriceChange event, `dtcv` displays the change (delta) for the total contract value (TCV) amount for this charge, compared with its previous value with recurring charge types.\n"},"effectiveEndDate":{"type":"string","format":"date","description":"The effective end date of the rate plan charge.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"The effective start date of the rate plan charge.\n"},"eligibleAccountConditions":{"type":"object","additionalProperties":{"description":"Any type"},"description":"A filter expression (single condition or nested condition groups with logical relations) that defines which accounts’ charges are considered in the calculation. If omitted, the system defaults to the calculated charge’s subscription account.\nSee <a href=\"https://docs.zuora.com?resourceId=billing-overview-orders\" target=\"_blank\">Orders</a> for more information. \n"},"eligibleChargeConditions":{"type":"object","additionalProperties":{"description":"Any type"},"description":"A filter expression (single condition or nested condition groups with logical relations) that defines which rate plan charges contribute to the calculation; if omitted, the scope defaults to “All charges” (i.e., all charges under the selected accounts are eligible). \nSee <a href=\"https://docs.zuora.com?resourceId=billing-overview-orders\" target=\"_blank\">Orders</a> for more information. \n"},"endDateCondition":{"type":"string","description":"Defines when the charge ends after the charge trigger date.\n\nIf the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.\n\nValues:\n\n* `Subscription_End`\n* `Fixed_Period`\n* `Specific_End_Date`\n* `One_Time`\n"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nThe value must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge. \n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"estimatedEndDate":{"type":"string","format":"date","description":"The estimated end date of the pending charge in an active subscription.\n\nThe system automatically calculates the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge. \n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude rate plan charges from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"id":{"type":"string","description":"Rate plan charge ID.\n"},"includedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units.\n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule associated with the rate plan charge on the subscription.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isDimensionalPrice":{"type":"boolean","description":"**Note**: This field is only available when the Dynamic Pricing feature is enabled. \n\n\nIndicates whether the charge uses dimensional pricing. When set to true, this charge enables dynamic pricing.\n"},"isPrepaid":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nIndicates whether this charge is a prepayment (topup) charge or a drawdown charge. Values: `true` or `false`.\n"},"isPriceNegotiated":{"type":"boolean","description":"**Note**: This field is only available when the Negotiated Price Table feature is enabled.\n\n\nIndicates whether the charge uses negotiated pricing. When set to true, this charge defines a negotiated price table.\n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe value is either \"True\" or \"False\". It determines whether the rollover fields are needed.\n"},"isStackedDiscount":{"type":"boolean","description":"**Note**: This field is only applicable to the Discount - Percentage charge model.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.\n\nThis field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:\n  - `True`: This is a stacked discount, which should be calculated by stacking with other discounts.\n  - `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.\n\nFor more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during\nrevenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"listPriceBase":{"type":"string","description":"List price base; possible values are:\n\n* `Per_Billing_Period`\n* `Per_Month`\n* `Per_Week`\n* `Per_Year`\n* `Per_Specific_Months`\n"},"maximumAmount":{"type":"number","format":"double","description":"Non-negative currency amount that establishes the upper bound for the calculated charge in a billing period; if the computed amount exceeds this value, the invoice amount will be capped at the maximum.\n"},"minimumAmount":{"type":"number","format":"double","description":"Non-negative currency amount that establishes the lower bound for the calculated charge in a billing period; if the computed amount is less than this value, the invoice amount will be set to the minimum.\n"},"model":{"type":"string","description":"Charge model; possible values are:\n\n* `FlatFee`\n* `PerUnit`\n* `Overage`\n* `Volume`\n* `Tiered`\n* `TieredWithOverage`\n* `DiscountFixedAmount`\n* `DiscountPercentage`\n* `MultiAttributePricing`\n* `PreratedPerUnit`\n* `PreratedPricing`\n* `HighWatermarkVolumePricing`\n* `HighWatermarkTieredPricing`\n* `Delivery`\n"},"mrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the rate plan charge.\n"},"name":{"type":"string","description":"Charge name.\n"},"number":{"type":"string","description":"Charge number.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"Number of deliveries in the billing period for the charge segment.\n\nThe `numberOfDeliveries` is used for the Delivery Pricing charge model only. \n"},"numberOfPeriods":{"type":"integer","format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model.\n"},"originalChargeId":{"type":"string","description":"The original ID of the rate plan charge.\n"},"originalListDiscountAmount":{"type":"number","format":"double","description":"The original discount amount listed for sale by a manufacturer or retailer.\n"},"originalListDiscountPercentage":{"type":"number","format":"double","description":"The original discount percentage listed for sale by a manufacturer or retailer.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n\n\n**Note:** This field applies to the following charges in a subscription created through an order:\n  - `oneTimeFlatFee`\n  - `oneTimePerUnit`\n  - `recurringFlatFee`\n  - `recurringPerUnit`\n  - `usageFlatFee`\n  - `usagePerUnit` \n  - `usageOverage`\n  - `usageTieredWithOverage`\n"},"originalOrderDate":{"type":"string","format":"date","description":"The date when the rate plan charge is created through an order or amendment.\n\nThis field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.\n"},"overageCalculationOption":{"type":"string","description":"Determines when to calculate overage charges.\n"},"overagePrice":{"type":"number","format":"double","description":"The price for units over the allowed amount.\n"},"overageUnusedUnitsCreditOption":{"type":"string","description":"Determines whether to credit the customer with unused units of usage.\n"},"percentage":{"type":"number","format":"double","description":"The specific rate applied to the total eligible spend to determine the base invoice amount before any minimum or maximum amount is applied.\n"},"prepaidOperationType":{"$ref":"#/components/schemas/GetSubscriptionRatePlanChargesTypePrepaidOperationType","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n"},"prepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaidTotalQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe total amount of units that end customers can use during a validity period when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"prepaidUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nUnit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"price":{"type":"number","format":"double","description":"The price associated with the rate plan charge expressed as a decimal.\n"},"pricingAttributes":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for pricing attributes that provide additional context for dynamic pricing. This field includes all the dynamic pricing attributes and values associated with this charge, except for the pricing attributes mapped to Zuora Usage object fields.\n\n\n**Note:** To enable Dynamic Pricing, submit a request to <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.        \n"},"salesPrice":{"type":"number","format":"double","description":"The sales price associated with the rate plan charge expressed as a decimal.\n\n**Notes**: \n- This field is only available to subscriptions that are created through orders and exist after 2023-01-10.\n- This field applies to the following charge models, and the values vary with the charge models:\n  - Flat fee: the value equals the value of the `price` field.\n  - Per unit: the value equals `price` multiplied by `quantity`.\n  - Fixed amount discount: the value equals the value of the `discountAmount` field.\n  - Volume: The calculation of the tier price is dependent on whether the price format is the flat fee or per unit.\n  - Tiered: The calculation of the tier price is dependent on whether the price format is the flat fee or per unit.\n"},"priceChangeOption":{"type":"string","description":"When the following is true:\n\n1. AutomatedPriceChange setting is on\n\n2. Charge type is not one-time\n\n3. Charge model is not discount percentage\n\nThen an automatic price change can have a value for when a termed subscription is renewed. \n\nValues (one of the following):\n\n* `NoChange` (default)\n* `SpecificPercentageValue`\n* `UseLatestProductCatalogPricing`\n"},"priceIncreasePercentage":{"type":"number","format":"double","description":"A planned future price increase amount as a percentage.\n"},"pricingSummary":{"type":"string","description":"Concise description of rate plan charge model.\n"},"processedThroughDate":{"type":"string","format":"date","description":"The date until when charges have been processed. When billing in arrears, such as usage, this field value is the the same as the `ChargedThroughDate` value. This date is the earliest date when a charge can be amended.\n"},"productCategory":{"type":"string","description":"This is used to maintain the product category. \n\n**Note**: This field is only available if you have the Additional Revenue Fields property enabled.\n"},"productClass":{"type":"string","description":"This is used to maintain the product class. \n\n**Note**: This field is only available if you have the Additional Revenue Fields property enabled.    \n"},"productFamily":{"type":"string","description":"This is used to maintain the product family. \n\n**Note**: This field is only available if you have the Additional Revenue Fields property enabled.\n"},"productLine":{"type":"string","description":"This is used to maintain the product line. \n\n**Note**: This field is only available if you have the Additional Revenue Fields property enabled.\n"},"productRatePlanChargeId":{"type":"string"},"quantity":{"type":"number","format":"double","description":"The quantity of units, such as the number of authors in a hosted wiki service. Valid for all charge models except for Flat Fee pricing.\n"},"ratingGroup":{"type":"string","description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:\n\n- `ByBillingPeriod` (default): The rating is based on all the usages in a billing period.\n- `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Note:** \n- The `ByBillingPeriod` value can be applied for all charge models. \n- The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n- The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n- Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set both the `excludeItemBookingFromRevenueAccounting` and `excludeItemBillingFromRevenueAccounting` fields to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.      \n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/GetSubscriptionRatePlanChargesTypeRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled.    \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/GetSubscriptionRatePlanChargesTypeRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"rolloverApply":{"$ref":"#/components/schemas/GetSubscriptionRatePlanChargesTypeRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"rolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"segment":{"type":"integer","format":"int64","description":"The identifying number of the subscription rate plan segment. Segments are numbered sequentially, starting with 1.\n"},"smoothingModel":{"type":"string","description":"Specifies when revenue recognition begins. When charge model is `Overage` or `TieredWithOverage`, `smoothingModel` will be one of the following values:\n\n* `ContractEffectiveDate`\n* `ServiceActivationDate`\n* `CustomerAcceptanceDate`\n"},"specificBillingPeriod":{"type":"integer","format":"int64","description":"Customizes the number of month or week for the charges billing period. This field is required if you set the value of the `BillingPeriod` field to `Specific_Months` or `Specific_Weeks`.\n"},"specificEndDate":{"type":"string","format":"date","description":"The specific date on which the charge ends. If the subscription ends before the specific end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the specific end date.\n"},"specificListPriceBase":{"description":"The number of months for the list price base of the charge. \n\n**Note**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"},"subscriptionChargeDeliverySchedule":{"$ref":"#/components/schemas/GETDeliveryScheduleType"},"subscriptionChargeIntervalPricing":{"type":"array","items":{"$ref":"#/components/schemas/GETIntervalPriceType"},"description":"Interval Pricing information. This field is available if the Offers feature is enabled.\n"},"tcv":{"type":"number","format":"double","description":"The total contract value.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/GETTierType"},"description":"One or many defined ranges with distinct pricing.\n"},"triggerDate":{"type":"string","format":"date","description":"The date that the rate plan charge will be triggered.\n"},"triggerEvent":{"type":"string","description":"The event that will cause the rate plan charge to be triggered.\n\nPossible values: \n\n* `ContractEffective`\n* `ServiceActivation`\n* `CustomerAcceptance`\n* `SpecificDate`\n"},"type":{"type":"string","description":"Charge type. Possible values are: `OneTime`, `Recurring`, `Usage`.\n"},"unusedUnitsCreditRates":{"type":"number","format":"double","description":"Specifies the rate to credit a customer for unused units of usage. This field is applicable only for overage charge models when the \n`OverageUnusedUnitsCreditOption` field value is `CreditBySpecificRate`.\n"},"upsellOriginChargeNumber":{"type":"string","description":"The identifier of the original upselling charge associated with the current charge.\n\nFor a termed subscription, you can now use the \"Create an order\" API operation to perform an Add Product order action to make a product quantity upsell for per unit recurring charges. The benefit is that the charge added by this approach will be automatically combined with the original existing charge for which you want to upsell when the subscription is renewed. The approach is as follows:\n* Use an Add Product order action to add a charge that is of the same charge type, charge model, and charge end date as the existing per unit recurring charge for which you want to make a quantity upsell.\n\n* In the preceding charge to add, use the `upsellOriginChargeNumber` field to specify the existing rate plan charge for which you want to make the quantity upsell.\n\nNote that a termed subscription with such upsell charges can not be changed to an evergreen subscription.   \n\n**Note**: The Quantity Upsell 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. If you want to join this early adopter program, submit a request at [Zuora Global\nSupport](https://support.zuora.com).  \n"},"uom":{"type":"string","description":"Specifies the units to measure usage. \n"},"upToPeriods":{"type":"string","description":"Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.\n\nIf the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge end date will change accordingly up to the original period end.\n"},"upToPeriodsType":{"type":"string","description":"The period type used to define when the charge ends. \n\nValues:\n\n* `Billing_Periods`\n* `Days`\n* `Weeks`\n* `Months`\n* `Years`\n"},"usageRecordRatingOption":{"type":"string","description":"Determines how Zuora processes usage records for per-unit usage charges. \n"},"validityPeriodType":{"$ref":"#/components/schemas/GetSubscriptionRatePlanChargesTypeValidityPeriodType","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"version":{"type":"integer","format":"int64","description":"Rate plan charge revision number.\n"}},"description":"Container for custom fields of a Rate Plan Charge object.\n","title":"GETSubscriptionRatePlanChargesType"},"GETSubscriptionProductFeatureType":{"type":"object","properties":{"description":{"type":"string","description":"Feature description.\n"},"featureCode":{"type":"string","description":"Feature code, up to 255 characters long.\n"},"id":{"type":"string","description":"SubscriptionProductFeature ID.\n"},"name":{"type":"string","description":"Feature name, up to 255 characters long.\n"}},"title":"GETSubscriptionProductFeatureType"},"GETSubscriptionRatePlanType":{"type":"object","properties":{"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"id":{"type":"string","description":"Rate plan ID.\n"},"lastChangeType":{"type":"string","description":"The last amendment on the rate plan. \n\n\n**Note:** If a subscription is created through an order, this field is only available if multiple orders are created on the subscription.\n\n\nPossible Values:\n  * `Add`\n  * `Update`\n  * `Remove`\n"},"productId":{"type":"string"},"productName":{"type":"string"},"productRatePlanId":{"type":"string"},"productSku":{"type":"string","description":"The unique SKU for the product.\n"},"contractedMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription rate plan exclusive of all the discounts applicable.\n"},"contractedNetMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription rate plan inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts.\n"},"asOfDayGrossMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription rate plan exclusive of any discounts applicable as of specified day.\n"},"asOfDayNetMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription rate plan inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts as of specified day.\n"},"ratePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/GETSubscriptionRatePlanChargesType"},"description":"Container for one or more charges.\n"},"ratePlanName":{"type":"string","description":"Name of the rate plan.\n"},"subscriptionProductFeatures":{"type":"array","items":{"$ref":"#/components/schemas/GETSubscriptionProductFeatureType"},"description":"Container for one or more features. \n\nOnly available when the following settings are enabled:\n\n* The Entitlements feature in your tenant.\n\n* The Enable Feature Specification in Product and Subscriptions setting in Zuora Billing Settings"}},"description":"Container for custom fields of a Rate Plan object.\n","title":"GETSubscriptionRatePlanType"},"SubscriptionRampIntervalResponse":{"type":"object","properties":{"description":{"type":"string","description":"The short description of the interval."},"endDate":{"type":"string","format":"date","description":"The end date of the interval."},"name":{"type":"string","description":"The name of the interval."},"startDate":{"type":"string","format":"date","description":"The start date of the interval."}},"title":"SubscriptionRampIntervalResponse"},"SubscriptionRampChargeResponse":{"type":"object","properties":{"chargeNumber":{"type":"string","description":"The number of the rate plan charge."}},"title":"SubscriptionRampChargeResponse"},"SubscriptionRampResponse":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the ramp."},"name":{"type":"string","description":"The name of the ramp."},"number":{"type":"string","description":"The number of the ramp. It is automatically generated by the billing\nsystem."},"description":{"type":"string","description":"The short description of the ramp."},"intervals":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionRampIntervalResponse"},"description":"Container for the intervals that the ramp is split into in its timeline."},"charges":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionRampChargeResponse"},"description":"Container for the rate plan charges that are considered as part of the\nramp deal."}},"description":"Ramp information associated with the subscription including the ramp intervals and the charges.","title":"SubscriptionRampResponse"},"GETSubscriptionStatusHistoryType":{"type":"object","properties":{"endDate":{"type":"string","format":"date","description":"The effective end date of the status history."},"startDate":{"type":"string","format":"date","description":"The effective start date of the status history."},"status":{"type":"string","description":"The status of the subscription.\n\nValues are:\n\n* `Pending Activation`\n* `Pending Acceptance`\n* `Active`\n* `Cancelled`\n* `Suspended`\n* `OutOfTerm`\n"}},"title":"GETSubscriptionStatusHistoryType"},"GETSubscriptionType":{"type":"object","properties":{"accountId":{"type":"string"},"accountName":{"type":"string"},"accountNumber":{"type":"string"},"autoRenew":{"type":"boolean","description":"If `true`, the subscription automatically renews at the end of the term. Default is `false`.\n"},"billToContact":{"$ref":"#/components/schemas/GETAccountSummaryTypeBillToContact"},"cancelReason":{"type":"string","description":"The reason for a subscription cancellation copied from the `changeReason` field of a Cancel Subscription order action. \n\nThis field contains valid value only if a subscription is cancelled through the Orders UI or API. Otherwise, the value for this field will always be `null`.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"Effective contract date for this subscription, as yyyy-mm-dd.\n"},"contractedMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription.\n"},"contractedNetMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts.\n"},"asOfDayGrossMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription exclusive of any discounts applicable as of specified day.\n"},"asOfDayNetMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts as of specified day.\n"},"netTotalContractedValue":{"type":"number","format":"double","description":"Total contracted value of the subscription inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts.\n"},"currency":{"type":"string","description":"The currency of the subscription.\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"currentTerm":{"type":"integer","format":"int64","description":"The length of the period for the current subscription term.\n"},"currentTermPeriodType":{"type":"string","description":"The period type for the current subscription term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been accepted by the customer, as yyyy-mm-dd.\n"},"externallyManagedBy":{"$ref":"#/components/schemas/GetSubscriptionTypeExternallyManagedBy","description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n"},"id":{"type":"string","description":"Subscription ID.\n"},"initialTerm":{"type":"integer","format":"int64","description":"The length of the period for the first subscription term.\n"},"initialTermPeriodType":{"type":"string","description":"The period type for the first subscription term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the subscription.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"invoiceOwnerAccountId":{"type":"string"},"invoiceOwnerAccountName":{"type":"string"},"invoiceOwnerAccountNumber":{"type":"string"},"invoiceScheduleId":{"type":"integer","description":"The ID of the invoice schedule associated with the subscription.\n\nIf multiple invoice schedules are created for different terms of a subscription, this field stores the latest invoice schedule.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"invoiceSeparately":{"type":"boolean","description":"Separates a single subscription from other subscriptions and creates an invoice for the subscription. \n\nIf the value is `true`, the subscription is billed separately from other subscriptions. If the value is `false`, the subscription is included with other subscriptions in the account invoice.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceTemplateName":{"type":"string","description":"The name of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify the `invoiceTemplateId` field in the request or you select **Default Template from Account** for the `invoiceTemplateId` field during subscription creation, the value of the `invoiceTemplateName` field is automatically set to `null` in the response body.\n  \n"},"isLatestVersion":{"type":"boolean","description":"If `true`, the current subscription object is the latest version."},"lastBookingDate":{"type":"string","format":"date","description":"The last booking date of the subscription object. This field is writable only when the subscription is newly created as a first version subscription. You can override the date value when creating a subscription through the Subscribe and Amend API or the subscription creation UI (non-Orders). Otherwise, the default value `today` is set per the user's timezone. The value of this field is as follows:\n* For a new subscription created by the [Subscribe and Amend APIs](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Migration_Guidance#Subscribe_and_Amend_APIs_to_Migrate), this field has the value of the subscription creation date.\n* For a subscription changed by an amendment, this field has the value of the amendment booking date.\n* For a subscription created or changed by an order, this field has the value of the order date. "},"notes":{"type":"string","description":"A string of up to 65,535 characters.\n"},"orderNumber":{"type":"string","description":"The order number of the order in which the changes on the subscription are made. \n\n**Note:** This field 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. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). We will investigate your use cases and data before enabling this feature for you.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For example, `Net 30`. The payment term determines the due dates of invoices.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"ratePlans":{"type":"array","items":{"$ref":"#/components/schemas/GETSubscriptionRatePlanType"},"description":"Container for rate plans.\n"},"renewalSetting":{"type":"string","description":"Specifies whether a termed subscription will remain `TERMED` or change to `EVERGREEN` when it is renewed. \n\nValues are:\n\n* `RENEW_WITH_SPECIFIC_TERM` (default)\n* `RENEW_TO_EVERGREEN`\n"},"renewalTerm":{"type":"integer","format":"int64","description":"The length of the period for the subscription renewal term.\n"},"renewalTermPeriodType":{"type":"string","description":"The period type for the subscription renewal term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"revision":{"type":"string","description":"An auto-generated decimal value uniquely tagged with a subscription. The value always contains one decimal place, for example, the revision of a new subscription is 1.0. If a further version of the subscription is created, the revision value will be increased by 1. Also, the revision value is always incremental regardless of deletion of subscription versions.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the subscription.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\nfeature turned on. The value is `null` in the response body without this feature turned on.\n"},"ramp":{"$ref":"#/components/schemas/SubscriptionRampResponse","description":"Ramp information associated with the subscription.\n"},"sequenceSetName":{"type":"string","description":"The name of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify the `sequenceSetId` field in the request or you select **Default Template from Account** for the `sequenceSetId` field during subscription creation, the value of the `sequenceSetName` field is automatically set to `null` in the response body.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been activated and access has been provided to the customer, as yyyy-mm-dd\n"},"shipToContact":{"$ref":"#/components/schemas/GetAccountSummaryTypeShipToContact"},"soldToContact":{"$ref":"#/components/schemas/GETAccountSummaryTypeSoldToContact"},"status":{"type":"string","description":"Subscription status; possible values are:\n\n* `Draft`\n* `Pending Activation`\n* `Pending Acceptance`\n* `Active`\n* `Cancelled`\n* `Suspended`\n"},"statusHistory":{"type":"array","items":{"$ref":"#/components/schemas/GETSubscriptionStatusHistoryType"},"description":"Container for status history.\n"},"subscriptionEndDate":{"type":"string","format":"date","description":"The date when the subscription term ends, where the subscription ends at midnight the day before.\nFor example, if the `subscriptionEndDate` is 12/31/2016, the subscriptions ends at midnight (00:00:00 hours) on 12/30/2016.\nThis date is the same as the term end date or the cancelation date, as appropriate.\n"},"subscriptionNumber":{"type":"string"},"subscriptionStartDate":{"type":"string","format":"date","description":"Date the subscription becomes effective.\n"},"termEndDate":{"type":"string","format":"date","description":"Date the subscription term ends. If the subscription is evergreen, this is null or is the cancellation date (if one has been set).\n"},"termStartDate":{"type":"string","format":"date","description":"Date the subscription term begins. If this is a renewal subscription, this date is different from the subscription start date.\n"},"termType":{"type":"string","description":"Possible values are: `TERMED`, `EVERGREEN`.\n"},"scheduledCancelDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be canceled."},"scheduledSuspendDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be suspended."},"scheduledResumeDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be resumed."},"totalContractedValue":{"type":"number","format":"double","description":"Total contracted value of the subscription.\n"},"totalNumberOfChargeSegments":{"type":"integer","description":"Total number of charge segments in this subscription, including segments from removed charges. This value is the sum of the segments for all charges under the subscription.\n\n\n**Note:** The default value is `0` if there are no charge segments. \n"},"version":{"type":"integer","format":"int64","description":"This is the subscription version automatically generated by Zuora Billing. Each order or amendment creates a new version of the subscription, which incorporates the changes made in the order or amendment."},"CpqBundleJsonId__QT":{"type":"string","maxLength":32,"description":"The Bundle product structures from Zuora Quotes if you utilize Bundling in Salesforce. Do not change the value in this field.\n"},"OpportunityCloseDate__QT":{"type":"string","format":"date","description":"The closing date of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"OpportunityName__QT":{"type":"string","maxLength":100,"description":"The unique identifier of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteBusinessType__QT":{"type":"string","maxLength":32,"description":"The specific identifier for the type of business transaction the Quote represents such as New, Upsell, Downsell, Renewal or Churn. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteNumber__QT":{"type":"string","maxLength":32,"description":"The unique identifier of the Quote. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteType__QT":{"type":"string","maxLength":32,"description":"The Quote type that represents the subscription lifecycle stage such as New, Amendment, Renew or Cancel. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the subscription's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Project__NS":{"type":"string","maxLength":255,"description":"The NetSuite project that the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SalesOrder__NS":{"type":"string","maxLength":255,"description":"The NetSuite sales order than the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the subscription was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Subscription object.\n","title":"GETSubscriptionType"},"GETSubscriptionWrapper":{"type":"object","properties":{"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/GETSubscriptionType"},"description":"Array of subscriptions.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETSubscriptionWrapper"},"GetSubscriptionByKeyWithSuccessExternallyManagedBy":{"type":"string","enum":["Amazon","Apple","Google","Roku"],"description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n","title":"GetSubscriptionByKeyWithSuccessExternallyManagedBy"},"GETSubscriptionByKeyWithSuccess":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with this subscription."},"accountName":{"type":"string","description":"The name of the account associated with this subscription."},"accountNumber":{"type":"string","description":"The number of the account associated with this subscription."},"autoRenew":{"type":"boolean","description":"If `true`, the subscription automatically renews at the end of the term. Default is `false`.\n"},"billToContact":{"$ref":"#/components/schemas/GETAccountSummaryTypeBillToContact"},"cancelReason":{"type":"string","description":"The reason for a subscription cancellation copied from the `changeReason` field of a Cancel Subscription order action. \n\nThis field contains valid value only if a subscription is cancelled through the Orders UI or API. Otherwise, the value for this field will always be `null`.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"Effective contract date for this subscription, as yyyy-mm-dd.\n"},"contractedMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription.\n"},"contractedNetMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts.\n"},"asOfDayGrossMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription exclusive of any discounts applicable as of specified day.\n"},"asOfDayNetMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts as of specified day.\n"},"netTotalContractedValue":{"type":"number","format":"double","description":"Total contracted value of the subscription inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts.\n"},"currency":{"type":"string","description":"The currency of the subscription.\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"currentTerm":{"type":"integer","format":"int64","description":"The length of the period for the current subscription term.\n"},"currentTermPeriodType":{"type":"string","description":"The period type for the current subscription term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been accepted by the customer, as yyyy-mm-dd.\n"},"externallyManagedBy":{"$ref":"#/components/schemas/GetSubscriptionByKeyWithSuccessExternallyManagedBy","description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n"},"id":{"type":"string","description":"Subscription ID.\n"},"initialTerm":{"type":"integer","format":"int64","description":"The length of the period for the first subscription term.\n"},"initialTermPeriodType":{"type":"string","description":"The period type for the first subscription term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the subscription.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"invoiceOwnerAccountId":{"type":"string"},"invoiceOwnerAccountName":{"type":"string"},"invoiceOwnerAccountNumber":{"type":"string"},"invoiceScheduleId":{"type":"integer","description":"The ID of the invoice schedule associated with the subscription.\n\nIf multiple invoice schedules are created for different terms of a subscription, this field stores the latest invoice schedule.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"invoiceSeparately":{"type":"boolean","description":"Separates a single subscription from other subscriptions and creates an invoice for the subscription. \n\nIf the value is `true`, the subscription is billed separately from other subscriptions. If the value is `false`, the subscription is included with other subscriptions in the account invoice.\n"},"invoiceTemplateId":{"type":["string","null"],"description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceTemplateName":{"type":"string","description":"The name of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify the `invoiceTemplateId` field in the request or you select **Default Template from Account** for the `invoiceTemplateId` field during subscription creation, the value of the `invoiceTemplateName` field is automatically set to `null` in the response body.\n  \n"},"isLatestVersion":{"type":"boolean","description":"If `true`, the current subscription object is the latest version."},"lastBookingDate":{"type":"string","format":"date","description":"The last booking date of the subscription object. This field is writable only when the subscription is newly created as a first version subscription. You can override the date value when creating a subscription through the Subscribe and Amend API or the subscription creation UI (non-Orders). Otherwise, the default value `today` is set per the user's timezone. The value of this field is as follows:\n* For a new subscription created by the [Subscribe and Amend APIs](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Migration_Guidance#Subscribe_and_Amend_APIs_to_Migrate), this field has the value of the subscription creation date.\n* For a subscription changed by an amendment, this field has the value of the amendment booking date.\n* For a subscription created or changed by an order, this field has the value of the order date. "},"notes":{"type":"string","description":"A string of up to 65,535 characters.\n"},"orderNumber":{"type":"string","description":"The order number of the order in which the changes on the subscription are made. \n\n**Note:** This field 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. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). We will investigate your use cases and data before enabling this feature for you.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"originalListPrice":{"type":"number","format":"double","description":"The original list price is the price of a product or service at which it is listed for sale by a manufacturer or retailer.\n\n\n**Note:** This field applies to the following charges in a subscription created through an order:\n  - `oneTimeFlatFee`\n  - `oneTimePerUnit`\n  - `recurringFlatFee`\n  - `recurringPerUnit`\n  - `usageFlatFee`\n  - `usagePerUnit` \n  - `usageOverage`\n  - `usageTieredWithOverage`\n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For example, `Net 30`. The payment term determines the due dates of invoices.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"ramp":{"$ref":"#/components/schemas/SubscriptionRampResponse","description":"Ramp information associated with the subscription.\n"},"ratePlans":{"type":"array","items":{"$ref":"#/components/schemas/GETSubscriptionRatePlanType"},"description":"Container for rate plans.\n"},"renewalSetting":{"type":"string","description":"Specifies whether a termed subscription will remain `TERMED` or change to `EVERGREEN` when it is renewed. \n\nValues are:\n\n* `RENEW_WITH_SPECIFIC_TERM` (default)\n* `RENEW_TO_EVERGREEN`\n"},"renewalTerm":{"type":"integer","format":"int64","description":"The length of the period for the subscription renewal term.\n"},"renewalTermPeriodType":{"type":"string","description":"The period type for the subscription renewal term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"revision":{"type":"string","description":"An auto-generated decimal value uniquely tagged with a subscription. The value always contains one decimal place, for example, the revision of a new subscription is 1.0. If a further version of the subscription is created, the revision value will be increased by 1. Also, the revision value is always incremental regardless of deletion of subscription versions.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the subscription.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\nfeature turned on. The value is `null` in the response body without this feature turned on.\n"},"sequenceSetName":{"type":"string","description":"The name of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify the `sequenceSetId` field in the request or you select **Default Template from Account** for the `sequenceSetId` field during subscription creation, the value of the `sequenceSetName` field is automatically set to `null` in the response body.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been activated and access has been provided to the customer, as yyyy-mm-dd\n"},"shipToContact":{"$ref":"#/components/schemas/GetAccountSummaryTypeShipToContact"},"soldToContact":{"$ref":"#/components/schemas/GETAccountSummaryTypeSoldToContact"},"status":{"type":"string","description":"Subscription status; possible values are:\n\n* `Draft`\n* `Pending Activation`\n* `Pending Acceptance`\n* `Active`\n* `Cancelled`\n* `Suspended`\n"},"statusHistory":{"type":"array","items":{"$ref":"#/components/schemas/GETSubscriptionStatusHistoryType"},"description":"Container for status history.\n"},"subscriptionEndDate":{"type":"string","format":"date","description":"The date when the subscription term ends, where the subscription ends at midnight the day before.\nFor example, if the `subscriptionEndDate` is 12/31/2016, the subscriptions ends at midnight (00:00:00 hours) on 12/30/2016.\nThis date is the same as the term end date or the cancelation date, as appropriate.\n"},"subscriptionNumber":{"type":"string","description":"Subscription number."},"subscriptionStartDate":{"type":"string","format":"date","description":"Date the subscription becomes effective.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"termEndDate":{"type":"string","format":"date","description":"Date the subscription term ends. If the subscription is evergreen, this is null or is the cancellation date (if one has been set).\n"},"termStartDate":{"type":"string","format":"date","description":"Date the subscription term begins. If this is a renewal subscription, this date is different from the subscription start date.\n"},"termType":{"type":"string","description":"Possible values are: `TERMED`, `EVERGREEN`.\n"},"scheduledCancelDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be canceled."},"scheduledSuspendDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be suspended."},"scheduledResumeDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be resumed."},"totalContractedValue":{"type":"number","format":"double","description":"Total contracted value of the subscription.\n"},"totalNumberOfChargeSegments":{"type":"integer","description":"Total number of charge segments in this subscription, including segments from removed charges. This value is the sum of the segments for all charges under the subscription.\n\n\n**Note:** The default value is `0` if there are no charge segments. \n"},"version":{"type":"integer","format":"int64","description":"This is the subscription version automatically generated by Zuora Billing. Each order or amendment creates a new version of the subscription, which incorporates the changes made in the order or amendment."},"accountOwnerDetails":{"$ref":"#/components/schemas/GETAccountTypeBasicInfo"},"invoiceOwnerAccountDetails":{"$ref":"#/components/schemas/GETAccountTypeBasicInfo"},"CpqBundleJsonId__QT":{"type":"string","maxLength":32,"description":"The Bundle product structures from Zuora Quotes if you utilize Bundling in Salesforce. Do not change the value in this field.\n"},"OpportunityCloseDate__QT":{"type":"string","format":"date","description":"The closing date of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"OpportunityName__QT":{"type":"string","maxLength":100,"description":"The unique identifier of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteBusinessType__QT":{"type":"string","maxLength":32,"description":"The specific identifier for the type of business transaction the Quote represents such as New, Upsell, Downsell, Renewal or Churn. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteNumber__QT":{"type":"string","maxLength":32,"description":"The unique identifier of the Quote. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteType__QT":{"type":"string","maxLength":32,"description":"The Quote type that represents the subscription lifecycle stage such as New, Amendment, Renew or Cancel. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the subscription's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Project__NS":{"type":"string","maxLength":255,"description":"The NetSuite project that the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SalesOrder__NS":{"type":"string","maxLength":255,"description":"The NetSuite sales order than the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the subscription was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Subscription object.\n","title":"GETSubscriptionByKeyWithSuccess"},"PUTScAddType":{"type":"object","properties":{"amendedByOrderOn":{"type":"string","description":"The date when the rate plan charge is amended through an order or amendment. This field is not updatable.\n\nThis field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.\n"},"applyDiscountTo":{"type":"string","description":"Specifies the type of charges that you want a specific discount to apply to.\n\nValues:\n\n* `ONETIME`\n* `RECURRING`\n* `USAGE`\n* `ONETIMERECURRING`\n* `ONETIMEUSAGE`\n* `RECURRINGUSAGE`\n* `ONETIMERECURRINGUSAGE`\n\nAvailable for the following charge type for the Discount-Fixed Amount and Discount-Percentage charge models:\n\n* Recurring\n"},"billCycleDay":{"type":"string","description":"Sets the bill cycle day (BCD) for the charge. The BCD determines which day of the month customer is billed.\n\nValues: `1`-`31`\n\nAvailable for the following charge types:\n\n* Recurring\n* Usage-based\n"},"billCycleType":{"type":"string","description":"Specifies how to determine the billing day for the charge. When this field is set to `SpecificDayofMonth`, set the `BillCycleDay` field. When this field is set to `SpecificDayofWeek`, set the `weeklyBillCycleDay` field.\n\nValues:\n\n* `DefaultFromCustomer`\n* `SpecificDayofMonth`\n* `SubscriptionStartDay`\n* `ChargeTriggerDay`\n* `SpecificDayofWeek`\n\nAvailable for the following charge types:\n\n* Recurring\n* Usage-based\n"},"billingPeriod":{"type":"string","description":"Billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD). 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\nValues:\n\n* `Month`\n* `Quarter`\n* `Semi_Annual`\n* `Annual`\n* `Eighteen_Months`\n* `Two_Years`\n* `Three_Years`\n* `Five_Years`\n* `Specific_Months`\n* `Subscription_Term`\n* `Week`\n* `Specific_Weeks`\n\nAvailable for the following charge types:\n\n* Recurring\n* Usage-based\n"},"billingPeriodAlignment":{"type":"string","description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n\nValues:\n\n* `AlignToCharge`\n* `AlignToSubscriptionStart`\n* `AlignToTermStart`\n\nAvailable for the following charge types:\n\n* Recurring\n* Usage-based\n"},"billingTiming":{"type":"string","description":"Billing timing for the charge for recurring charge types. Not avaliable for one time, usage and discount charges.\n\nValues:\n\n* `IN_ADVANCE` (default)\n* `IN_ARREARS`\n"},"chargeModelConfiguration":{"$ref":"#/components/schemas/ChargeModelConfigurationType"},"description":{"type":"string","description":"Description of the charge.\n"},"discountAmount":{"type":"number","format":"double","description":"Specifies the amount of fixed-amount discount.\n\nAvailable for the following charge type for the Discount-Fixed Amount charge model:\n\n* Recurring\n"},"discountLevel":{"type":"string","description":"Specifies if the discount applies to the product rate plan only , the entire subscription, or to any activity in the account.\n\nValues:\n\n* `rateplan`\n* `subscription`\n* `account`\n\nAvailable for the following charge type for the Discount-Fixed Amount and Discount-Percentage charge models:\n\n* Recurring\n"},"discountPercentage":{"type":"number","format":"double","description":"Specifies the percentage of a percentage discount. \n\nAvailable for the following charge type for the Discount-Percentage charge model:\n\n* Recurring\n"},"endDateCondition":{"type":"string","description":"Defines when the charge ends after the charge trigger date. If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.\n\nValues:\n\n* `Subscription_End`\n* `Fixed_Period`\n* `Specific_End_Date`\n* `One_Time`\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charges from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"includedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units for this charge. Must be >=`0`.\n\nAvailable for the following charge type for the Overage charge model:\n\n* Usage-based\n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during\nrevenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"listPriceBase":{"type":"string","description":"The list price base for the product rate plan charge.\n\nValues:\n\n* `Per_Billing_Period`\n* `Per_Month`\n* `Per_Week`\n* `Per_Year`\n* `Per_Specific_Months`\n\nAvailable for the following charge type for the Flat Fee, Per Unit, Volume Pricing, and Tiered Pricing charge models:\n\n* Recurring\n"},"number":{"type":"string","description":"Unique number that identifies the charge. System-generated if not provided.\n"},"numberOfPeriods":{"type":"integer","format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model.\n\nAvailable for the following charge type for the Overage and Tiered with Overage charge models:\n\n* Usage-based\n"},"originalOrderDate":{"type":"string","format":"date","description":"The date when the rate plan charge is created through an order or amendment. This field is not updatable.\n\nThis field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.\n"},"overagePrice":{"type":"number","format":"double","description":"Price for units over the allowed amount. \n\nAvailable for the following charge type for the Overage and Tiered with Overage charge models:\n\n* Usage-based\n"},"overageUnusedUnitsCreditOption":{"type":"string","description":"Determines whether to credit the customer with unused units of usage.\n\nValues:\n\n* `NoCredit`\n* `CreditBySpecificRate`\n\nAvailable for the following charge type for the Overage and Tiered with Overage charge models:\n\n* Usage-based\n"},"price":{"type":"number","format":"double","description":"Price for units in the subscription rate plan.\n\nSupports all charge types for the Flat Fee and Per Unit charge models\n"},"priceChangeOption":{"type":"string","description":"Applies an automatic price change when a termed subscription is renewed. The Zuora Billing Admin setting Enable Automatic Price Change When Subscriptions are Renewed?  must be set to Yes to use this field.  See Define Default Subscription Settings for more information on setting this option.\n\nValues:\n\n* `NoChange` (default)\n* `SpecificPercentageValue`\n* `UseLatestProductCatalogPricing`\n\nAvailable for the following charge types:\n\n* Recurring\n* Usage-based\n* Not available for the Fixed-Amount Discount charge model.\n"},"priceIncreasePercentage":{"type":"number","format":"double","description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Required if you set the `PriceChangeOption` field to `SpecificPercentageValue`.\n\nDecimal between -100 and 100.\n\nAvailable for the following charge types:\n\n* Recurring\n* Usage-based\n\nNot available for the Fixed-Amount Discount charge model.\n"},"productRatePlanChargeId":{"type":"string"},"productRatePlanChargeNumber":{"type":"string","description":"Number of a product rate-plan charge for this subscription.                     "},"quantity":{"type":"number","format":"double","description":"Number of units. Must be >=`0`.\n\nAvailable for the following charge types for the Per Unit, Volume Pricing, and Tiered Pricing charge models:\n\n* One-time\n* Recurring\n"},"ratingGroup":{"type":"string","description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:\n\n- `ByBillingPeriod` (default): The rating is based on all the usages in a billing period.\n- `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Note:** \n- The `ByBillingPeriod` value can be applied for all charge models. \n- The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n- The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n- Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n"},"specificBillingPeriod":{"type":"integer","format":"int64","description":"Specifies the number of month or week for the charges billing period. Required if you set the value of the `billingPeriod` field to `Specific_Months` or `Specific_Weeks`.\n\nAvailable for the following charge types:\n\n* Recurring\n* Usage-based\n"},"specificEndDate":{"type":"string","format":"date","description":"Defines when the charge ends after the charge trigger date.\n\nThis field is only applicable when the `endDateCondition` field is set to `Specific_End_Date`.\n\nIf the subscription ends before the specific end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the specific end date.\n"},"specificListPriceBase":{"type":"integer","minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `listPriceBase` field to `Per_Specific_Months`.\n\n**Note**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/POSTTierType"},"description":"Container for Volume, Tiered or Tiered with Overage charge models. Supports the following charge types:\n\n* One-time\n* Recurring\n* Usage-based\n"},"triggerDate":{"type":"string","format":"date","description":"Specifies when to start billing the customer for the charge. Required if the `triggerEvent` field is set to `USD`.\n"},"triggerEvent":{"type":"string","description":"Specifies when to start billing the customer for the charge.\n\nValues:\n\n* `UCE`\n* `USA`\n* `UCA`\n* `USD`\n"},"unusedUnitsCreditRates":{"type":"number","format":"double","description":"Specifies the rate to credit a customer for unused units of usage. This field applies only for overage charge models when the `OverageUnusedUnitsCreditOption` field is set to `CreditBySpecificRate`.\n\nAvailable for the following charge type for the Overage and Tiered with Overage charge models:\n\n* Usage-based\n"},"upToPeriods":{"type":"integer","format":"int64","description":"The period type used to define when the charge ends. \n\nValues:\n\n* `Billing_Periods`\n* `Days`\n* `Weeks`\n* `Months`\n* `Years`\n\nYou must use this field together with the `upToPeriods` field to specify the time period.\n\nThis field is applicable only when the `endDateCondition` field is set to `Fixed_Period`. \n"},"upToPeriodsType":{"type":"string","description":"The period type used to define when the charge ends. \n\nValues:\n\n* `Billing_Periods`\n* `Days`\n* `Weeks`\n* `Months`\n* `Years`\n\nYou must use this field together with the `upToPeriods` field to specify the time period.\n\nThis field is applicable only when the `endDateCondition` field is set to `Fixed_Period`. \n"}},"required":["productRatePlanChargeId"],"description":"Container for custom fields of a Rate Plan Charge object.\n","title":"PUTScAddType"},"PUTSrpAddType":{"type":"object","properties":{"bookingDate":{"type":"string","format":"date","description":"The booking date that you want to set for the amendment contract. The booking date of an amendment is the equivalent of the order date of an order. This field must be in the `yyyy-mm-dd` format. The default value is the current date when you make the API call.            \n"},"chargeOverrides":{"type":"array","items":{"$ref":"#/components/schemas/PUTScAddType"},"description":"This optional container is used to override the quantity of one or more product rate plan charges for this subscription.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"The date when the amendment changes take effect. The format of the date is yyyy-mm-dd.\n\nIf there is already a future-dated Update Product amendment on the subscription, the `specificUpdateDate` field will be used instead of this field to specify when the Update Product amendment takes effect.\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date when the customer accepts the contract in yyyy-mm-dd format.\n\nIf this field is not set:\n\n* If the `serviceActivationDate` field is not set, the value of this field is set to be the contract effective date.\n* If the `serviceActivationDate` field is set, the value of this field is set to be the service activation date.\n\nThe billing trigger dates must follow this rule:\n\ncontractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate\n"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.\n\n**Note:** If both `externalCatalogPlanId` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"externalIdSourceSystem":{"type":"string","description":"The ID of the external source system. You can use this field and `externalCatalogPlanId` to specify a product rate plan that is imported from an external system.\n\n**Note:** If both `externalCatalogPlanId`, `externalIdSourceSystem` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"productRatePlanId":{"type":"string","description":"ID of a product rate plan for this subscription\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date when the new product in the subscription is activated in yyyy-mm-dd format.\n\nYou must specify a Service Activation date if the Customer Acceptance date is set. If the Customer Acceptance date is not set, the value of the `serviceActivationDate` field defaults to be the Contract Effective Date.\n\nThe billing trigger dates must follow this rule:\n\ncontractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate\n"}},"required":["contractEffectiveDate"],"description":"Container for custom fields of a Rate Plan object.\n","title":"PUTSrpAddType"},"PutSrpChangeTypeEffectivePolicy":{"type":"string","enum":["EffectiveImmediately","EffectiveEndOfBillingPeriod","SpecificDate"],"description":"The default value for the `effectivePolicy` field is as follows:\n  * If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n  * If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n  * Otherwise, the effective policy is `SpecificDate` by default.\n\n**Notes**: \n  * When setting this field to `EffectiveEndOfBillingPeriod`, you cannot set the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/W_Subscription_and_Amendment_Dates#Billing_Trigger_Dates\" target=\"_blank\">billing trigger dates</a> for the subscription as the system will automatically set the trigger dates to the end of billing period.\n  * When setting this field to `SpecificDate`, you must also set the `contractEffectiveDate` field.\n","title":"PutSrpChangeTypeEffectivePolicy"},"PutSrpChangeTypeSubType":{"type":"string","enum":["Upgrade","Downgrade","Crossgrade","PlanChanged"],"description":"Use this field to choose the sub type for your change plan amendment. \n\nHowever, if you do not set this field, the field will be automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n","title":"PutSrpChangeTypeSubType"},"PUTSrpChangeType":{"type":"object","properties":{"bookingDate":{"type":"string","format":"date","description":"The booking date that you want to set for the amendment contract. The booking date of an amendment is the equivalent of the order date of an order. This field must be in the `yyyy-mm-dd` format. The default value is the current date when you make the API call. \n"},"chargeOverrides":{"type":"array","items":{"$ref":"#/components/schemas/PUTScAddType"},"description":"This optional container is used to override one or more product rate plan charges for this subscription."},"contractEffectiveDate":{"type":"string","format":"date","description":"Effective date of the new subscription, as yyyy-mm-dd."},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date when the customer accepts the contract in yyyy-mm-dd format.\nWhen this field is not set:\n* If the `serviceActivationDate` field is not set, the value of this field\nis set to be the contract effective date.\n* If the `serviceActivationDate` field is set, the value of this field is\nset to be the service activation date.\n\nThe billing trigger dates must follow this rule: contractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate\n"},"effectivePolicy":{"$ref":"#/components/schemas/PutSrpChangeTypeEffectivePolicy","description":"The default value for the `effectivePolicy` field is as follows:\n  * If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n  * If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n  * Otherwise, the effective policy is `SpecificDate` by default.\n\n**Notes**: \n  * When setting this field to `EffectiveEndOfBillingPeriod`, you cannot set the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/W_Subscription_and_Amendment_Dates#Billing_Trigger_Dates\" target=\"_blank\">billing trigger dates</a> for the subscription as the system will automatically set the trigger dates to the end of billing period.\n  * When setting this field to `SpecificDate`, you must also set the `contractEffectiveDate` field.\n"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the rate plan to be removed. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to remove the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.\n\n**Note:** Provide only one of `externalCatalogPlanId`, `ratePlanId` or `productRatePlanId`. If more than one field is provided then the request would fail.\n"},"externalIdSourceSystem":{"type":"string","description":"The ID of the external source system. You can use this field and `externalCatalogPlanId` to specify a product rate plan that is imported from an external system.\n\n**Note:** If both `externalCatalogPlanId`, `externalIdSourceSystem` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"newExternalCatalogPlanId":{"type":"string","description":"An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan.\n\n**Note:** Provide only one of `newExternalCatalogPlanId` or `newProductRatePlanId`. If both fields are provided then the request would fail.\n"},"newExternalIdSourceSystem":{"type":"string","description":"The ID of the external source system. You can use this field and `newExternalCatalogPlanId` to specify a product rate plan that is imported from an external system.\n\n**Note:** If both `newExternalCatalogPlanId`, `newExternalIdSourceSystem` and `newProductRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"newProductRatePlanId":{"type":"string","description":"ID of a product rate plan for this subscription."},"newProductRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription."},"productRatePlanId":{"type":"string","description":"ID of the product rate plan that the removed rate plan is based on.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.    "},"ratePlanId":{"type":"string","description":"ID of a rate plan to remove. Note that the removal of a rate plan through the Change Plan amendment supports the function of <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Subscribe_and_Amend/E_Amendments/EB_Remove_rate_plan_on_subscription_before_future-dated_removals\" target=\"_blank\">removal before future-dated removals</a>, as in a Remove Product amendment.\n"},"resetBcd":{"type":"boolean","default":false,"description":"If resetBcd is true then reset the Account BCD to the effective date; if it is false keep the original BCD.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date when the change in the subscription is activated in yyyy-mm-dd format. You must specify a Service Activation date if the Customer Acceptance date is set. If the Customer Acceptance date is not set, the value of the `serviceActivationDate` field defaults to be the Contract Effective Date. The billing trigger dates must follow this rule: contractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate"},"subType":{"$ref":"#/components/schemas/PutSrpChangeTypeSubType","description":"Use this field to choose the sub type for your change plan amendment. \n\nHowever, if you do not set this field, the field will be automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a rate plan for this subscription.  "}},"description":"Container for custom fields of a Rate Plan object.\n","title":"PUTSrpChangeType"},"PutSubscriptionTypeExternallyManagedBy":{"type":"string","enum":["Amazon","Apple","Google","Roku"],"description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n","title":"PutSubscriptionTypeExternallyManagedBy"},"PutSubscriptionTypePreviewType":{"type":"string","enum":["LegalDoc","ChargeMetrics","LegalDocChargeMetrics"],"default":"LegalDoc","description":"The type of preview you will receive. \n\n**Note**: If your API minor version is earlier than `206.0` or you specify the `Zuora-Version` header for this request to `206.0` or earlier, the following values are supported for the `previewType` field:\n  - `InvoiceItem` (default)\n  - `ChargeMetrics`\n  - `InvoiceItemChargeMetrics`\n","title":"PutSubscriptionTypePreviewType"},"PUTSrpRemoveType":{"type":"object","properties":{"bookingDate":{"type":"string","format":"date","description":"The booking date that you want to set for the amendment contract. The booking date of an amendment is the equivalent of the order date of an order. This field must be in the `yyyy-mm-dd` format. The default value is the current date when you make the API call. \n"},"contractEffectiveDate":{"type":"string","format":"date","description":"Effective date of the new subscription, as yyyy-mm-dd.\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date when the customer accepts the contract in yyyy-mm-dd format.\n\nIf this field is not set:\n\n* If the `serviceActivationDate` field is not set, the value of this field is set to be the contract effective date.\n* If the `serviceActivationDate` field is set, the value of this field is set to be the service activation date.\n\nThe billing trigger dates must follow this rule:\n\ncontractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate\n"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the rate plan to be removed. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to remove the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.\n\n**Note:** If both `externalCatalogPlanId` and `ratePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"externalIdSourceSystem":{"type":"string","description":"The ID of the external source system. You can use this field and `externalCatalogPlanId` to specify a product rate plan that is imported from an external system.\n\n**Note:** If both `externalCatalogPlanId`, `externalIdSourceSystem` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanId":{"type":"string","description":"ID of a rate plan for this subscription. This can be the latest version or any history version of ID.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date when the remove amendment is activated in yyyy-mm-dd format.\n\nYou must specify a Service Activation date if the Customer Acceptance date is set. If the Customer Acceptance date is not set, the value of the `serviceActivationDate` field defaults to be the Contract Effective Date.\n\nThe billing trigger dates must follow this rule:\n\ncontractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate\n"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a rate plan for this subscription.\n"}},"required":["contractEffectiveDate"],"title":"PUTSrpRemoveType"},"PUTScUpdateType":{"type":"object","properties":{"billingPeriodAlignment":{"type":"string","description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n\nValues:\n\n* `AlignToCharge`\n* `AlignToSubscriptionStart`\n* `AlignToTermStart`\n\nAvailable for the following charge types:\n\n* Recurring\n* Usage-based\n"},"chargeModelConfiguration":{"$ref":"#/components/schemas/ChargeModelConfigurationType"},"description":{"type":"string","description":"Description of the charge.\n"},"includedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units for this charge. Must be >=0.\n\nAvailable for the following charge type for the Overage charge model:\n* Usage-based\n"},"overagePrice":{"type":"number","format":"double","description":"Price for units over the allowed amount. \n\nAvailable for the following charge type for the Overage and Tiered with Overage charge models:\n\n* Usage-based\n"},"price":{"type":"number","format":"double","description":"Price for units in the subscription rate plan.\n\nSupports all charge types for the Flat Fee and Per Unit charge models\n"},"priceChangeOption":{"type":"string","description":"Applies an automatic price change when a termed subscription is renewed. The Billing Admin setting **Enable Automatic Price Change When Subscriptions are Renewed?** must be set to Yes to use this field.\n\nValues:\n\n* `NoChange` (default)\n* `SpecificPercentageValue`\n* `UseLatestProductCatalogPricing`\n\nAvailable for the following charge types:\n\n* Recurring\n* Usage-based\n\nNot available for the Fixed-Amount Discount charge model.\n"},"priceIncreasePercentage":{"type":"number","format":"double","description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Required if you set the `PriceChangeOption` field to `SpecificPercentageValue`.\n\nDecimal between `-100` and `100`.\n\nAvailable for the following charge types:\n\n* Recurring\n* Usage-based\n\nNot available for the Fixed-Amount Discount charge model.\n"},"quantity":{"type":"number","format":"double","description":"Quantity of units; must be greater than zero.\n"},"ratePlanChargeId":{"type":"string","description":"ID of a rate-plan charge for this subscription. It can be the latest version or any history version of ID.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/POSTTierType"},"description":"Container for Volume, Tiered or Tiered with Overage charge models. Supports the following charge types:\n\n* One-time\n* Recurring\n* Usage-based\n"},"triggerDate":{"type":"string","format":"date","description":"Specifies when to start billing the customer for the charge. Required if the `triggerEvent` field is set to USD.\n\n`triggerDate` cannot be updated for the following using the REST update subscription call:\n\n* One-time charge type\n* Discount-Fixed Amount charge model\n* Discount-Percentage charge model\n"},"triggerEvent":{"type":"string","description":"Specifies when to start billing the customer for the charge.\n\nValues:\n\n* `UCE`\n* `USA`\n* `UCA`\n* `USD`\n\nThis is the date when charge changes in the REST request become effective.\n\n`triggerEvent` cannot be updated for the following using the REST update subscription call:\n\n* One-time charge type\n* Discount-Fixed Amount charge model\n* Discount-Percentage charge model\n"}},"required":["ratePlanChargeId"],"description":"Container for custom fields of a Rate Plan Charge object.\n","title":"PUTScUpdateType"},"PUTSrpUpdateType":{"type":"object","properties":{"bookingDate":{"type":"string","format":"date","description":"The booking date that you want to set for the amendment contract. The booking date of an amendment is the equivalent of the order date of an order. This field must be in the `yyyy-mm-dd` format. The default value is the current date when you make the API call. \n"},"chargeUpdateDetails":{"type":"array","items":{"$ref":"#/components/schemas/PUTScUpdateType"},"description":"Container for one or more product rate plan charges. \n"},"contractEffectiveDate":{"type":"string","format":"date","description":"The date when the amendment changes take effect. The format of the date is yyyy-mm-dd.\n\nIf there is already a future-dated Update Product amendment on the subscription, the `specificUpdateDate` field will be used instead of this field to specify when the Update Product amendment takes effect.\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date when the customer accepts the contract in yyyy-mm-dd format.\n\nIf this field is not set:\n\n* If the `serviceActivationDate` field is not set, the value of this field is set to be the contract effective date.\n* If the `serviceActivationDate` field is set, the value of this field is set to be the service activation date.\n\nThe billing trigger dates must follow this rule:\n\ncontractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate\n"},"externalCatalogPlanId":{"type":"string","description":"An external ID of the rate plan to be updated. You can use this field to specify an existing rate plan in your subscription. The value of the `externalCatalogPlanId` field must match one of the values that are predefined in the `externallyManagedPlanIds` field on a product rate plan. However, if there are multiple rate plans with the same `productRatePlanId` value existing in the subscription, you must use the `ratePlanId` field to update the rate plan. The `externalCatalogPlanId` field cannot be used to distinguish multiple rate plans in this case.\n\n**Note:** If both `externalCatalogPlanId` and `ratePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"externalIdSourceSystem":{"type":"string","description":"The ID of the external source system. You can use this field and `externalCatalogPlanId` to specify a product rate plan that is imported from an external system.\n\n**Note:** If both `externalCatalogPlanId`, `externalIdSourceSystem` and `productRatePlanId` are provided. They must point to the same product rate plan. Otherwise, the request would fail.\n"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"productRatePlanNumber":{"type":"string","description":"Number of a product rate plan for this subscription.\n"},"ratePlanId":{"type":"string","description":"ID of a rate plan for this subscription. This can be the latest version or any history version of ID.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date when the update amendment is activated in yyyy-mm-dd format.\n\nYou must specify a Service Activation date if the Customer Acceptance date is set. If the Customer Acceptance date is not set, the value of the `serviceActivationDate` field defaults to be the Contract Effective Date.\n\nThe billing trigger dates must follow this rule:\n\ncontractEffectiveDate <= serviceActivationDate <= contractAcceptanceDate\n"},"specificUpdateDate":{"type":"string","format":"date","description":"The date when the Update Product amendment takes effect. This field is only applicable if there is already a future-dated Update Product amendment on the subscription. The format of the date is yyyy-mm-dd.\n\nRequired only for Update Product amendments if there is already a future-dated Update Product amendment on the subscription.\n"},"subscriptionRatePlanNumber":{"type":"string","description":"Number of a rate plan for this subscription.\n"}},"required":["contractEffectiveDate"],"description":"Container for custom fields of a Rate Plan object.\n","title":"PUTSrpUpdateType"},"PUTSubscriptionType":{"type":"object","properties":{"add":{"type":"array","items":{"$ref":"#/components/schemas/PUTSrpAddType"},"description":"Container for adding one or more rate plans.\n"},"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply to invoices.\n"},"applyCredit":{"type":"boolean","description":"Whether to automatically apply credit memos or unapplied payments, or both to an invoice.\n\nIf the value is `true`, the credit memo or unapplied payment, or both will be automatically applied to the invoice. If no value is specified or the value is `false`, no action is taken.\n\n**Note:** This field 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"},"applyCreditBalance":{"type":"boolean","description":"Whether to automatically apply a credit balance to an invoice.\n\nIf the value is `true`, the credit balance is applied to the invoice. If the value is `false`, no action is taken.\n\n\nTo view the credit balance adjustment, retrieve the details of the invoice using the Get Invoices method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:** \n  - If you are using the field `invoiceCollect` rather than the field `invoice`, the `invoiceCollect` value must be `true`.\n  - This field is deprecated if you have the Invoice Settlement feature enabled.\n"},"autoRenew":{"type":"boolean","description":"If `true`, this subscription automatically renews at the end of the subscription term. Default is `false`.\n"},"bookingDate":{"type":"string","format":"date","description":"The booking date that you want to set for the contract when you change the `termType` field of the subscription and as a result get a new version of subscription created. The booking date of an amendment is the equivalent of the order date of an order. This field must be in the `yyyy-mm-dd` format. The default value is the current date when you make the API call. \n"},"change":{"type":"array","items":{"$ref":"#/components/schemas/PUTSrpChangeType"},"description":"Use this field to change one or more rate plans - to replace the existing rate plans in a subscription with other rate plans.\n\n**Note**: 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"},"collect":{"type":"boolean","default":false,"description":"Collects an automatic payment for a subscription. The collection generated in this operation is only for this subscription, not for the entire customer account.\n\nIf the value is `true`, the automatic payment is collected. If the value is `false`, no action is taken.\n\nPrerequisite: The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `196.0` or a later available version.\n"},"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"currentTerm":{"type":"integer","format":"int64","description":"The length of the period for the current subscription term. If `termType` is `TERMED`, this field is required and must be greater than `0`. If `termType` is `EVERGREEN`, this value is ignored.\n"},"currentTermPeriodType":{"type":"string","description":"The period type for the current subscription term.\n\nThis field is used with the `CurrentTerm` field to specify the current subscription term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"documentDate":{"type":"string","format":"date","description":"The date of the billing document, in `yyyy-mm-dd` format. It represents the invoice date for invoices, credit memo date for credit memos, and debit memo date for debit memos.\n\n- If this field is specified, the specified date is used as the billing document date. \n- If this field is not specified, the date specified in the `targetDate` is used as the billing document date.\n"},"externallyManagedBy":{"$ref":"#/components/schemas/PutSubscriptionTypeExternallyManagedBy","description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n"},"includeExistingDraftDocItems":{"type":"boolean","description":"Specifies whether to include draft invoice items in subscription previews.\nValues are:\n\n* `true` (default). Includes draft invoice items in the preview result.\n* `false`. Excludes draft invoice items in the preview result.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `207.0` or a later available version.\n"},"invoiceSeparately":{"type":"boolean","description":"Separates a single subscription from other subscriptions and invoices the charge independently. \n\nIf the value is `true`, the subscription is billed separately from other subscriptions. If the value is `false`, the subscription is included with other subscriptions in the account invoice.\n\nThe default value is `false`.\nPrerequisite: The default subscription setting Enable Subscriptions to be Invoiced Separately must be set to Yes.\n"},"notes":{"type":"string","maxLength":1000,"description":"The notes for the subscription.\n"},"preview":{"type":"boolean","description":"If `true` the update is made in preview mode. The default setting is `false`.\n"},"previewType":{"$ref":"#/components/schemas/PutSubscriptionTypePreviewType","default":"LegalDoc","description":"The type of preview you will receive. \n\n**Note**: If your API minor version is earlier than `206.0` or you specify the `Zuora-Version` header for this request to `206.0` or earlier, the following values are supported for the `previewType` field:\n  - `InvoiceItem` (default)\n  - `ChargeMetrics`\n  - `InvoiceItemChargeMetrics`\n"},"remove":{"type":"array","items":{"$ref":"#/components/schemas/PUTSrpRemoveType"},"description":"Container for removing one or more rate plans.\n"},"renewalSetting":{"type":"string","description":"Specifies whether a termed subscription will remain `TERMED` or change to `EVERGREEN` when it is renewed. \n\nValues are:\n\n* `RENEW_WITH_SPECIFIC_TERM` (default)\n* `RENEW_TO_EVERGREEN`\n"},"renewalTerm":{"type":"integer","format":"int64","description":"The length of the period for the subscription renewal term. Default is `0`.\n"},"renewalTermPeriodType":{"type":"string","description":"\nThe period type for the subscription renewal term.\n\nThis field is used with the `renewalTerm` field to specify the subscription renewal term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"runBilling":{"type":"boolean","default":false,"description":"Creates an invoice for a subscription. If you have the Invoice Settlement feature enabled, a credit memo might also be created based on the [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).  \n\n\nThe billing documents generated in this operation is only for this subscription, not for the entire customer account.\n\nThis field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `211.0` or a later available version.\n\nPossible values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement feature enabled, a credit memo might also be created.\n\n\n- `false`: No invoice is created.\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice or a credit memo is generated, as\nyyyy-mm-dd. Default is current date.\n\n\n**Note:** The credit memo is only available if you have the Invoice Settlement feature enabled.\n\n\nThis field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `211.0` or a  later available version.\n"},"termStartDate":{"type":"string","format":"date","description":"Date the subscription term begins, as yyyy-mm-dd. If this is a renewal subscription, this date is different from the subscription start date. \n"},"termType":{"type":"string","description":"Possible values are: `TERMED`, `EVERGREEN`.\n"},"update":{"type":"array","items":{"$ref":"#/components/schemas/PUTSrpUpdateType"},"description":"Container for updating one or more rate plans.\n"},"CpqBundleJsonId__QT":{"type":"string","maxLength":32,"description":"The Bundle product structures from Zuora Quotes if you utilize Bundling in Salesforce. Do not change the value in this field.\n"},"OpportunityCloseDate__QT":{"type":"string","format":"date","description":"The closing date of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"OpportunityName__QT":{"type":"string","maxLength":100,"description":"The unique identifier of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteBusinessType__QT":{"type":"string","maxLength":32,"description":"The specific identifier for the type of business transaction the Quote represents such as New, Upsell, Downsell, Renewal or Churn. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteNumber__QT":{"type":"string","maxLength":32,"description":"The unique identifier of the Quote. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteType__QT":{"type":"string","maxLength":32,"description":"The Quote type that represents the subscription lifecycle stage such as New, Amendment, Renew or Cancel. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the subscription's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Project__NS":{"type":"string","maxLength":255,"description":"The NetSuite project that the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SalesOrder__NS":{"type":"string","maxLength":255,"description":"The NetSuite sales order than the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the subscription was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Subscription object.\n","title":"PUTSubscriptionType"},"PutSubscriptionResponseTypeChargeMetrics":{"type":"object","properties":{"dmrr":{"type":"string","description":"Change in total contract value.\n"},"dtcv":{"type":"string","description":"Change in monthly recurring revenue.\n"},"mrr":{"type":"string","description":"Monthly recurring revenue.\n"},"number":{"type":"string","description":"The charge number of the subscription. Only available for update subscription.\n"},"originRatePlanId":{"type":"string","description":"The origin rate plan ID. Only available for update subscription.\n"},"originalId":{"type":"string","description":"The original rate plan charge ID. Only available for update subscription.\n"},"productRatePlanChargeId":{"type":"string"},"productRatePlanId":{"type":"string"},"tcv":{"type":"string","description":"Total contract value.\n"}},"description":"Container for charge metrics. This field is available only if the `preview` field in the request body is `true`.\n","title":"PutSubscriptionResponseTypeChargeMetrics"},"PutSubscriptionResponseTypeCreditMemo":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"Credit memo amount."},"amountWithoutTax":{"type":"number","format":"double","description":"Credit memo amount minus tax."},"creditMemoItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTSubscriptionPreviewCreditMemoItemsType"}},"taxAmount":{"type":"number","format":"double","description":"Tax amount on the credit memo."}},"description":"Container for credit memos. This field is available only if the `preview` field in the request body is `true`.\n\n**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and 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","title":"PutSubscriptionResponseTypeCreditMemo"},"PUTSubscriptionPreviewInvoiceItemsType":{"type":"object","properties":{"chargeAmount":{"type":"number","format":"double","description":"The amount of the charge. This amount doesn't include taxes unless the charge's tax mode is inclusive.\n"},"chargeDescription":{"type":"string","description":"Description of the charge.\n"},"chargeName":{"type":"string","description":"Name of the charge\n"},"productName":{"type":"string","description":"Name of the product associated with this item.\n"},"productRatePlanChargeId":{"type":"string"},"quantity":{"type":"number","format":"double","description":"Quantity of this item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"End date of the service period for this item, i.e., the last day of the period, as yyyy-mm-dd.\n"},"serviceStartDate":{"type":"string","format":"date","description":"Service start date as yyyy-mm-dd. If the charge is a one-time fee, this is the date of that charge.\n"},"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTSubscriptionPreviewTaxationItemsType"},"description":"List of taxation items.\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `315.0` or a later available version. "},"unitOfMeasure":{"type":"string"}},"title":"PUTSubscriptionPreviewInvoiceItemsType"},"PutSubscriptionResponseTypeInvoice":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"Invoice amount."},"amountWithoutTax":{"type":"number","format":"double","description":"Invoice amount minus tax.\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/PUTSubscriptionPreviewInvoiceItemsType"},"description":"Container for invoice items.\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `207.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version). \n"},"taxAmount":{"type":"number","format":"double","description":"The tax amount of the invoice.\n"}},"description":"Container for invoices. This field is available only if the `preview` field in the request body is `true`.\n\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `207.0` or\n[a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version). Also, the response structure is changed and the following invoice related response fields are moved to this **invoice** container:\n  \n   * amount\n   * amountWithoutTax\n   * taxAmount\n   * invoiceItems\n   * targetDate\n","title":"PutSubscriptionResponseTypeInvoice"},"PUTSubscriptionResponseType":{"type":"object","properties":{"chargeMetrics":{"$ref":"#/components/schemas/PutSubscriptionResponseTypeChargeMetrics","description":"Container for charge metrics. This field is available only if the `preview` field in the request body is `true`.\n"},"creditMemo":{"$ref":"#/components/schemas/PutSubscriptionResponseTypeCreditMemo","description":"Container for credit memos. This field is available only if the `preview` field in the request body is `true`.\n\n**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and 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"},"creditMemoId":{"type":"string","description":"The credit memo ID. This field is available only if the `preview` field in the request body is `false` and a credit memo is generated during the update.\n\n**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and 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"},"invoice":{"$ref":"#/components/schemas/PutSubscriptionResponseTypeInvoice","description":"Container for invoices. This field is available only if the `preview` field in the request body is `true`.\n\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `207.0` or\n[a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version). Also, the response structure is changed and the following invoice related response fields are moved to this **invoice** container:\n  \n   * amount\n   * amountWithoutTax\n   * taxAmount\n   * invoiceItems\n   * targetDate\n"},"invoiceId":{"type":"string","description":"The ID of the generated invoice.\n\nThis field is available only if the `preview` field in the request body is `false` and an invoice is generated during the update.\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/PUTSubscriptionPreviewInvoiceItemsType"},"description":"Container for invoice items. This field is available only if the `preview` field in the request body is `true`.\n"},"paidAmount":{"type":"number","format":"double","description":"Payment amount, if a payment is collected\n"},"paymentId":{"type":"string","description":"Payment ID, if a payment is collected.\n"},"subscriptionId":{"type":"string","description":"The ID of the resulting new subscription.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice is generated, as yyyy-mm-dd. Default is current date. This field is available only if the `preview` field in the request body is `true`.\n\n**Note:** This field is only available if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `207.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"taxAmount":{"type":"number","format":"double","description":"Tax amount on the invoice. This field is available only if the `preview` field in the request body is `true`.\n"},"totalDeltaMrr":{"type":"number","format":"double","description":"Change in the subscription monthly recurring revenue as a result of the update.\n"},"totalDeltaTcv":{"type":"number","format":"double","description":"Change in the total contracted value of the subscription as a result of the update.\n"}},"title":"PUTSubscriptionResponseType"},"GetSubscriptionTypeWithSuccessExternallyManagedBy":{"type":"string","enum":["Amazon","Apple","Google","Roku"],"description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n","title":"GetSubscriptionTypeWithSuccessExternallyManagedBy"},"GETSubscriptionTypeWithSuccess":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with this subscription."},"accountName":{"type":"string","description":"The name of the account associated with this subscription."},"accountNumber":{"type":"string","description":"The number of the account associated with this subscription."},"autoRenew":{"type":"boolean","description":"If `true`, the subscription automatically renews at the end of the term. Default is `false`.\n"},"billToContact":{"$ref":"#/components/schemas/GETAccountSummaryTypeBillToContact"},"cancelReason":{"type":"string","description":"The reason for a subscription cancellation copied from the `changeReason` field of a Cancel Subscription order action. \n\nThis field contains valid value only if a subscription is cancelled through the Orders UI or API. Otherwise, the value for this field will always be `null`.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"Effective contract date for this subscription, as yyyy-mm-dd.\n"},"contractedMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription, does not count in the discounts.\n"},"contractedNetMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts.\n"},"asOfDayGrossMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription exclusive of any discounts applicable as of specified day.\n"},"asOfDayNetMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts as of specified day.\n"},"netTotalContractedValue":{"type":"number","format":"double","description":"Total contracted value of the subscription inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts.\n"},"currency":{"type":"string","description":"The currency of the subscription.\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"currentTerm":{"type":"integer","format":"int64","description":"The length of the period for the current subscription term.\n"},"currentTermPeriodType":{"type":"string","description":"The period type for the current subscription term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been accepted by the customer, as yyyy-mm-dd.\n"},"externallyManagedBy":{"$ref":"#/components/schemas/GetSubscriptionTypeWithSuccessExternallyManagedBy","description":"An enum field on the Subscription object to indicate the name of a third-party store. This field is used to represent subscriptions created through third-party stores.\n"},"id":{"type":"string","description":"Subscription ID.\n"},"initialTerm":{"type":"integer","format":"int64","description":"The length of the period for the first subscription term.\n"},"initialTermPeriodType":{"type":"string","description":"The period type for the first subscription term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the subscription.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"invoiceOwnerAccountId":{"type":"string"},"invoiceOwnerAccountName":{"type":"string"},"invoiceOwnerAccountNumber":{"type":"string"},"invoiceScheduleId":{"type":"integer","description":"The ID of the invoice schedule associated with the subscription.\n\nIf multiple invoice schedules are created for different terms of a subscription, this field stores the latest invoice schedule.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"invoiceSeparately":{"type":"boolean","description":"Separates a single subscription from other subscriptions and creates an invoice for the subscription. \n\nIf the value is `true`, the subscription is billed separately from other subscriptions. If the value is `false`, the subscription is included with other subscriptions in the account invoice.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceTemplateName":{"type":"string","description":"The name of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify the `invoiceTemplateId` field in the request or you select **Default Template from Account** for the `invoiceTemplateId` field during subscription creation, the value of the `invoiceTemplateName` field is automatically set to `null` in the response body.\n  \n"},"isLatestVersion":{"type":"boolean","description":"If `true`, the current subscription object is the latest version."},"lastBookingDate":{"type":"string","format":"date","description":"The last booking date of the subscription object. This field is writable only when the subscription is newly created as a first version subscription. You can override the date value when creating a subscription through the Subscribe and Amend API or the subscription creation UI (non-Orders). Otherwise, the default value `today` is set per the user's timezone. The value of this field is as follows:\n* For a new subscription created by the [Subscribe and Amend APIs](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Migration_Guidance#Subscribe_and_Amend_APIs_to_Migrate), this field has the value of the subscription creation date.\n* For a subscription changed by an amendment, this field has the value of the amendment booking date.\n* For a subscription created or changed by an order, this field has the value of the order date. "},"notes":{"type":"string","description":"A string of up to 65,535 characters.\n"},"orderNumber":{"type":"string","description":"The order number of the order in which the changes on the subscription are made. \n\n**Note:** This field 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. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). We will investigate your use cases and data before enabling this feature for you.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For example, `Net 30`. The payment term determines the due dates of invoices.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"scheduledCancelDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be canceled."},"scheduledSuspendDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be suspended."},"scheduledResumeDate":{"type":"string","format":"date","description":"The date when the subscription is scheduled to be resumed."},"ramp":{"$ref":"#/components/schemas/SubscriptionRampResponse","description":"Ramp information associated with the subscription.\n"},"ratePlans":{"type":"array","items":{"$ref":"#/components/schemas/GETSubscriptionRatePlanType"},"description":"Container for rate plans.\n"},"renewalSetting":{"type":"string","description":"Specifies whether a termed subscription will remain `TERMED` or change to `EVERGREEN` when it is renewed. \n\nValues are:\n\n* `RENEW_WITH_SPECIFIC_TERM` (default)\n* `RENEW_TO_EVERGREEN`\n"},"renewalTerm":{"type":"integer","format":"int64","description":"The length of the period for the subscription renewal term.\n"},"renewalTermPeriodType":{"type":"string","description":"The period type for the subscription renewal term.\n\nValues are:\n\n* `Month` (default)\n* `Year`\n* `Day`\n* `Week`\n"},"revision":{"type":"string","description":"An auto-generated decimal value uniquely tagged with a subscription. The value always contains one decimal place, for example, the revision of a new subscription is 1.0. If a further version of the subscription is created, the revision value will be increased by 1. Also, the revision value is always incremental regardless of deletion of subscription versions.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"communicationProfileId":{"type":"string","default":false,"description":"The ID of the communication profile associated with the subscription.\n\n**Note**: If you have the [Flexible Billing\nAttributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes)\nfeature disabled, this field is unavailable in the request body and the\nvalue of this field is `null` in the response body.\n"},"sequenceSetName":{"type":"string","description":"The name of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify the `sequenceSetId` field in the request or you select **Default Template from Account** for the `sequenceSetId` field during subscription creation, the value of the `sequenceSetName` field is automatically set to `null` in the response body.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been activated and access has been provided to the customer, as yyyy-mm-dd\n"},"shipToContact":{"$ref":"#/components/schemas/GetAccountSummaryTypeShipToContact"},"soldToContact":{"$ref":"#/components/schemas/GETAccountSummaryTypeSoldToContact"},"status":{"type":"string","description":"Subscription status; possible values are:\n\n* `Draft`\n* `Pending Activation`\n* `Pending Acceptance`\n* `Active`\n* `Cancelled`\n* `Suspended`\n"},"statusHistory":{"type":"array","items":{"$ref":"#/components/schemas/GETSubscriptionStatusHistoryType"},"description":"Container for status history.\n"},"subscriptionEndDate":{"type":"string","format":"date","description":"The date when the subscription term ends, where the subscription ends at midnight the day before.\nFor example, if the `subscriptionEndDate` is 12/31/2016, the subscriptions ends at midnight (00:00:00 hours) on 12/30/2016.\nThis date is the same as the term end date or the cancelation date, as appropriate.\n"},"subscriptionNumber":{"type":"string","description":"Subscription number."},"subscriptionStartDate":{"type":"string","format":"date","description":"Date the subscription becomes effective.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"termEndDate":{"type":"string","format":"date","description":"Date the subscription term ends. If the subscription is evergreen, this is null or is the cancellation date (if one has been set).\n"},"termStartDate":{"type":"string","format":"date","description":"Date the subscription term begins. If this is a renewal subscription, this date is different from the subscription start date.\n"},"termType":{"type":"string","description":"Possible values are: `TERMED`, `EVERGREEN`.\n"},"totalContractedValue":{"type":"number","format":"double","description":"Total contracted value of the subscription.\n"},"totalNumberOfChargeSegments":{"type":"integer","description":"Total number of charge segments in this subscription, including segments from removed charges. This value is the sum of the segments for all charges under the subscription.\n\n\n**Note:** The default value is `0` if there are no charge segments. \n"},"version":{"type":"integer","format":"int64","description":"This is the subscription version automatically generated by Zuora Billing. Each order or amendment creates a new version of the subscription, which incorporates the changes made in the order or amendment."},"CpqBundleJsonId__QT":{"type":"string","maxLength":32,"description":"The Bundle product structures from Zuora Quotes if you utilize Bundling in Salesforce. Do not change the value in this field.\n"},"OpportunityCloseDate__QT":{"type":"string","format":"date","description":"The closing date of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"OpportunityName__QT":{"type":"string","maxLength":100,"description":"The unique identifier of the Opportunity. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteBusinessType__QT":{"type":"string","maxLength":32,"description":"The specific identifier for the type of business transaction the Quote represents such as New, Upsell, Downsell, Renewal or Churn. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteNumber__QT":{"type":"string","maxLength":32,"description":"The unique identifier of the Quote. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"QuoteType__QT":{"type":"string","maxLength":32,"description":"The Quote type that represents the subscription lifecycle stage such as New, Amendment, Renew or Cancel. This field is used in Zuora data sources to report on Subscription metrics. If the subscription originated from Zuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the subscription's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Project__NS":{"type":"string","maxLength":255,"description":"The NetSuite project that the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SalesOrder__NS":{"type":"string","maxLength":255,"description":"The NetSuite sales order than the subscription was created from. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the subscription was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Subscription object.\n","title":"GETSubscriptionTypeWithSuccess"},"PUTRenewSubscriptionType":{"type":"object","properties":{"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply to invoices.\n"},"applyCredit":{"type":"boolean","description":"If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.\n\n**Note:** This field 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"},"applyCreditBalance":{"type":"boolean","description":"Whether to automatically apply a credit balance to an invoice.\n\nIf the value is `true`, the credit balance is applied to the invoice. If the value is `false`, no action is taken.\n\n\nTo view the credit balance adjustment, retrieve the details of the invoice using the Get Invoices method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:** \n  - If you are using the field `invoiceCollect` rather than the field `invoice`, the `invoiceCollect` value must be `true`.\n  - This field is deprecated if you have the Invoice Settlement feature enabled.\n"},"collect":{"type":"boolean","default":false,"description":"Collects an automatic payment for a subscription. The collection generated in this operation is only for this subscription, not for the entire customer account.\n\nIf the value is `true`, the automatic payment is collected. If the value is `false`, no action is taken.\n\nPrerequisite: The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `196.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"documentDate":{"type":"string","format":"date","description":"The date of the billing document, in `yyyy-mm-dd` format. It represents the invoice date for invoices, credit memo date for credit memos, and debit memo date for debit memos.\n\n- If this field is specified, the specified date is used as the billing document date. \n- If this field is not specified, the date specified in the `targetDate` is used as the billing document date.\n"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. If no additinal contractEffectiveDate is provided, this order will use this order date as the contract effective date.\nThis field must be in the `yyyy-mm-dd` format.\nThis field is required for Orders customers only, not applicable to Orders Harmonization customers.\n"},"runBilling":{"type":"boolean","default":false,"description":"Creates an invoice for a subscription. If you have the Invoice Settlement feature enabled, a credit memo might also be created based on the [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).  \n\n\nThe billing documents generated\nin this operation is only for this subscription, not for the entire\ncustomer account.\n\n\nPossible values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement feature enabled, a credit memo might also be created.\n\n- `false`: No invoice is created.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `211.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice or a credit memo is generated, as yyyy-mm-dd. Default is current date.\n\n**Note**: \n  \n- This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `211.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n\n- The credit memo is only available if you have the Invoice Settlement feature enabled.\n"}},"title":"PUTRenewSubscriptionType"},"PUTRenewSubscriptionResponseType":{"type":"object","properties":{"creditMemoId":{"type":"string","description":"The credit memo ID, if a credit memo is generated during the subscription process.\n\n**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and 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"},"invoiceId":{"type":"string","description":"Invoice ID, if one is generated.\n"},"paidAmount":{"type":"number","format":"double","description":"Payment amount, if payment is collected.\n"},"paymentId":{"type":"string","description":"Payment ID, if payment is collected.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"termEndDate":{"type":"string","format":"date","description":"Date the new subscription term ends, as yyyy-mm-dd.\n"},"termStartDate":{"type":"string","format":"date","description":"Date the new subscription term begins, as yyyy-mm-dd.\n"},"totalDeltaMrr":{"type":"number","format":"double","description":"Change in the subscription monthly recurring revenue as a result of the update. For a renewal, this is the MRR of the subscription in the new term.\n"},"totalDeltaTcv":{"type":"number","format":"double","description":"Change in the total contracted value of the subscription as a result of the update. For a renewal, this is the TCV of the subscription in the new term.\n"}},"title":"PUTRenewSubscriptionResponseType"},"POSTSubscriptionCancellationType":{"type":"object","properties":{"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply to invoices.\n"},"applyCredit":{"type":"boolean","description":"If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.\n\n**Note:** This field 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"},"applyCreditBalance":{"type":"boolean","description":"Whether to automatically apply a credit balance to an invoice.\n\nIf the value is `true`, the credit balance is applied to the invoice. If the value is `false`, no action is taken.\n\n\nTo view the credit balance adjustment, retrieve the details of the invoice using the Get Invoices method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:** \n  - If you are using the field `invoiceCollect` rather than the field `invoice`, the `invoiceCollect` value must be `true`.\n  - This field is deprecated if you have the Invoice Settlement feature enabled.\n"},"bookingDate":{"type":"string","format":"date","description":"The booking date that you want to set for the amendment contract when you cancel the subscription. The default value is the current date when you make the API call.\n"},"cancellationEffectiveDate":{"type":"string","format":"date","description":"Date the cancellation takes effect, in the format yyyy-mm-dd.  Use only if `cancellationPolicy` is `SpecificDate`. Should not be earlier than the subscription contract-effective date, later than the subscription term-end date, or within a period for which the customer has been invoiced.\n"},"cancellationPolicy":{"type":"string","description":"Cancellation method. Possible values are: `EndOfCurrentTerm`, `EndOfLastInvoicePeriod`, `SpecificDate`. If using `SpecificDate`, the `cancellationEffectiveDate` field is required.\n"},"collect":{"type":"boolean","default":false,"description":"Collects an automatic payment for a subscription. The collection generated in this operation is only for this subscription, not for the entire customer account.\n\nIf the value is `true`, the automatic payment is collected. If the value is `false`, no action is taken.\n\nPrerequisite: The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `196.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"The date when the customer notifies you that they want to cancel their subscription.\n"},"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"documentDate":{"type":"string","format":"date","description":"The date of the billing document, in `yyyy-mm-dd` format. It represents the invoice date for invoices, credit memo date for credit memos, and debit memo date for debit memos.\n\n- If this field is specified, the specified date is used as the billing document date. \n- If this field is not specified, the date specified in the `targetDate` is used as the billing document date.\n"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. If no additinal contractEffectiveDate is provided, this order will use this order date as the contract effective date.\nThis field must be in the `yyyy-mm-dd` format.\nThis field is required for Orders customers only, not applicable to Orders Harmonization customers. \n"},"runBilling":{"type":"boolean","default":false,"description":"Creates an invoice for a subscription. If you have the Invoice Settlement feature enabled, a credit memo might also be created based on the [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).  \n\n\nThe billing documents generated\nin this operation is only for this subscription, not for the entire\ncustomer account.\n\n\nPossible values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement feature enabled, a credit memo might also be created.\n\n\n- `false`: No invoice is created.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `211.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice or a credit memo is generated, as\nyyyy-mm-dd. Default is current date.\n**Note**: \n  - This field is available only if you are on the latest Zuora\nAPI version, or you set the `Zuora-Version` request header to `211.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n  - The credit memo is only available if you have the Invoice\nSettlement feature enabled.\n"}},"required":["cancellationPolicy"],"title":"POSTSubscriptionCancellationType"},"POSTSubscriptionCancellationResponseType":{"type":"object","properties":{"cancelledDate":{"type":"string","format":"date","description":"The date that the subscription was canceled. \n\nThis field is available in the Orders Harmonization tenants and the Subscribe and Amend tenants. This field is not available in the Orders tenants. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Common_subscription_information/AA_Overview_of_Subscriptions\" target=\"_blank\">Identify your tenant type for managing subscriptions</a>.\n"},"creditMemoId":{"type":"string","description":"The credit memo ID, if a credit memo is generated during the subscription process.\n\n**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and 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"},"invoiceId":{"type":"string","description":"ID of the invoice, if one is generated.\n"},"paidAmount":{"type":"number","format":"double","description":"Amount paid.\n"},"paymentId":{"type":"string","description":"ID of the payment, if a payment is collected.\n"},"subscriptionId":{"type":"string","description":"The subscription ID.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"totalDeltaMrr":{"type":"number","format":"double","description":"Change in the subscription monthly recurring revenue as a result of the update.\n"},"totalDeltaTcv":{"type":"number","format":"double","description":"Change in the total contracted value of the subscription as a result of the update.\n"}},"title":"POSTSubscriptionCancellationResponseType"},"PUTSubscriptionResumeType":{"type":"object","properties":{"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply to invoices.\n"},"applyCredit":{"type":"boolean","description":"If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.\n\n**Note:** This field 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"},"applyCreditBalance":{"type":"boolean","description":"Whether to automatically apply a credit balance to an invoice.\n\nIf the value is `true`, the credit balance is applied to the invoice. If the value is `false`, no action is taken.\n\n\nTo view the credit balance adjustment, retrieve the details of the invoice using the Get Invoices method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:** This field is deprecated if you have the Invoice Settlement feature enabled.\n"},"bookingDate":{"type":"string","format":"date","description":"The booking date that you want to set for the amendment contract when you resume the subscription. If `extendsTerm` is `true`, which means you also extend the term, then this field is also the booking date for the Terms and Conditions amendment contract.\n\nThis field must be in the `yyyy-mm-dd` format. The default value of this field is the current date when you make the API call. \n"},"collect":{"type":"boolean","default":false,"description":"Collects an automatic payment for a subscription. The collection generated in this operation is only for this subscription, not for the entire customer account.\n\nIf the value is `true`, the automatic payment is collected. If the value is `false`, no action is taken.\n\nPrerequisite: The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `196.0` or a later available version.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"The date when the customer notifies you that they want to resume their subscription.\n"},"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"documentDate":{"type":"string","format":"date","description":"The date of the billing document, in `yyyy-mm-dd` format. It represents the invoice date for invoices, credit memo date for credit memos, and debit memo date for debit memos.\n\n- If this field is specified, the specified date is used as the billing document date. \n- If this field is not specified, the date specified in the `targetDate` is used as the billing document date.\n"},"extendsTerm":{"type":"boolean","description":"Whether to extend the subscription term by the length of time the suspension is in effect.\n\nValues: `true`, `false`.\n"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. If no additinal contractEffectiveDate is provided, this order will use this order date as the contract effective date.\nThis field must be in the `yyyy-mm-dd` format.\nThis field is required for Orders customers only, not applicable to Orders Harmonization customers.\n"},"resumePeriods":{"type":"string","description":"The length of the period used to specify when the subscription is resumed. The subscription resumption takes effect after a specified period based on the suspend date or today's date. You must use this field together with the `resumePeriodsType` field to specify the period.\n\n**Note:** This field is only applicable when the `suspendPolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`.\n"},"resumePeriodsType":{"type":"string","description":"The period type used to define when the subscription resumption takes effect. The subscription resumption takes effect after a specified period based on the suspend date or today's date. You must use this field together with the `resumePeriods` field to specify the period.\n\nValues: `Day`, `Week`, `Month`, `Year`\n\n**Note:** This field is only applicable when the `suspendPolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`.\n"},"resumePolicy":{"type":"string","description":"Resume methods. Specify a way to resume a subscription.\n\nValues:\n\n* `Today`: The subscription resumption takes effect on today's date.\n\n* `FixedPeriodsFromSuspendDate`: The subscription resumption takes effect after a specified period based on the suspend date. You must specify the `resumePeriods` and `resumePeriodsType` fields to define the period.\n\n* `SpecificDate`: The subscription resumption takes effect on a specific date. You must define the specific date in the `resumeSpecificDate` field.\n\n* `FixedPeriodsFromToday`: The subscription resumption takes effect after a specified period based on the today's date. You must specify the `resumePeriods` and `resumePeriodsType` fields to define the period.\n* `suspendDate`: The subscription resumption takes effect on the date of suspension of the subscription.\n"},"resumeSpecificDate":{"type":"string","format":"date","description":"A specific date when the subscription resumption takes effect, in the format yyyy-mm-dd.\n\n**Note:** This field is only applicable only when the `resumePolicy` field is set to `SpecificDate`.\n\nThe value should not be earlier than the subscription suspension date.\n"},"runBilling":{"type":"boolean","default":false,"description":"Creates an invoice for a subscription. If you have the Invoice Settlement feature enabled, a credit memo might also be created based on the [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).  \n\n\nThe billing documents generated\nin this operation is only for this subscription, not for the entire\ncustomer account.\n\n\nPossible values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement feature enabled, a credit memo might also be created.\n\n\n- `false`: No invoice is created.\n\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `211.0` or a later available version.\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice or a credit memo is generated, as\nyyyy-mm-dd. Default is current date.\n\n\n**Note:** \n- This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `211.0` or a  later available version.\n- The credit memo is only available if you have the Invoice Settlement feature enabled.\n"}},"required":["resumePolicy"],"title":"PUTSubscriptionResumeType"},"PUTSubscriptionResumeResponseType":{"type":"object","properties":{"creditMemoId":{"type":"string","description":"The credit memo ID, if a credit memo is generated during the subscription process.\n\n**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and 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"},"invoiceId":{"type":"string","description":"Invoice ID, if an invoice is generated during the subscription process.\n"},"paidAmount":{"type":"number","format":"double","description":"Payment amount, if a payment is collected.\n"},"paymentId":{"type":"string","description":"Payment ID, if a payment is collected.\n"},"resumeDate":{"type":"string","format":"date","description":"The date when subscription resumption takes effect, as yyyy-mm-dd.\n"},"subscriptionId":{"type":"string","description":"The subscription ID.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"termEndDate":{"type":"string","format":"date","description":"The date when the new subscription term ends, as yyyy-mm-dd.\n"},"totalDeltaTcv":{"type":"number","format":"double","description":"Change in the total contracted value of the subscription as a result of the update.\n"}},"title":"PUTSubscriptionResumeResponseType"},"PUTSubscriptionSuspendType":{"type":"object","properties":{"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to an invoice. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply to invoices.\n"},"applyCredit":{"type":"boolean","description":"If the value is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.\n\n\n**Note:** This field 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"},"applyCreditBalance":{"type":"boolean","description":"Whether to automatically apply a credit balance to an invoice.\n\nIf the value is `true`, the credit balance is applied to the invoice. If the value is `false`, no action is taken.\n\n\nTo view the credit balance adjustment, retrieve the details of the invoice using the Get Invoices method.\n\nPrerequisite: `invoice` must be `true`. \n\n**Note:** \n  - If you are using the field `invoiceCollect` rather than the field `invoice`, the `invoiceCollect` value must be `true`.\n  - This field is deprecated if you have the Invoice Settlement feature enabled.\n"},"bookingDate":{"type":"string","format":"date","description":"The booking date that you want to set for the amendment contract when you suspend the subscription. If `resume` is `true`, which means you also choose to resume the subscription at some point, then this field is also the booking date for the Resume amendment contract.\n\nThis field must be in the `yyyy-mm-dd` format. The default value of this field is the current date when you make the API call. \n"},"collect":{"type":"boolean","default":false,"description":"Collects an automatic payment for a subscription. The collection generated in this operation is only for this subscription, not for the entire customer account.\n\nIf the value is `true`, the automatic payment is collected. If the value is `false`, no action is taken.\n\nPrerequisite: The `invoice` or `runBilling` field must be `true`. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `196.0` or a later available version.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"The date when the customer notifies you that they want to amend their subscription.\n"},"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"documentDate":{"type":"string","format":"date","description":"The date of the billing document, in `yyyy-mm-dd` format. It represents the invoice date for invoices, credit memo date for credit memos, and debit memo date for debit memos.\n\n- If this field is specified, the specified date is used as the billing document date. \n- If this field is not specified, the date specified in the `targetDate` is used as the billing document date.\n"},"extendsTerm":{"type":"boolean","description":"Whether to extend the subscription term by the length of time the suspension is in effect. Values: `true`, `false`.\n"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. If no additinal contractEffectiveDate is provided, this order will use this order date as the contract effective date.\nThis field must be in the `yyyy-mm-dd` format.\nThis field is required for Orders customers only, not applicable to Orders Harmonization customers.\n"},"resume":{"type":"boolean","description":"Whether to set when to resume a subscription when creating a suspend amendment. Values: `true`, `false`.\n"},"resumePeriods":{"type":"string","description":"The length of the period used to specify when the subscription is resumed. The subscription resumption takes effect after a specified period based on the suspend date or today's date. You must use this field together with the `resumePeriodsType` field to specify the period.\n\n**Note:** This field is only applicable when the `suspendPolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`.\n"},"resumePeriodsType":{"type":"string","description":"The period type used to define when the subscription resumption takes effect. The subscription resumption takes effect after a specified period based on the suspend date or today's date. You must use this field together with the resumePeriods field to specify the period.\n\nValues: `Day`, `Week`, `Month`, `Year`\n\n**Note:** This field is only applicable when the `suspendPolicy` field is set to `FixedPeriodsFromToday` or `FixedPeriodsFromSuspendDate`.\n"},"resumePolicy":{"type":"string","description":"Resume methods. Specify a way to resume a subscription. Values:\n\n* `Today`: The subscription resumption takes effect on today's date.\n\n* `FixedPeriodsFromSuspendDate`: The subscription resumption takes effect after a specified period based on the suspend date. You must specify the `resumePeriods` and `resumePeriodsType` fields to define the period.\n\n* `SpecificDate`: The subscription resumption takes effect on a specific date. You must define the specific date in the `resumeSpecificDate` field.\n\n* `FixedPeriodsFromToday`: The subscription resumption takes effect after a specified period based on the today's date. You must specify the `resumePeriods` and `resumePeriodsType` fields to define the period.\n* `suspendDate`: The subscription resumption takes effect on the date of suspension of the subscription.\n"},"resumeSpecificDate":{"type":"string","format":"date","description":"A specific date when the subscription resumption takes effect, in the format yyyy-mm-dd.\n\n**Note:** This field is only applicable only when the `resumePolicy` field is set to `SpecificDate`.\n\nThe value should not be earlier than the subscription suspension date.\n"},"runBilling":{"type":"boolean","default":false,"description":"Creates an invoice for a subscription. If you have the Invoice Settlement feature enabled, a credit memo might also be created based on the [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).  \n\n\nThe billing documents generated\nin this operation is only for this subscription, not for the entire\ncustomer account.\n\n\nPossible values:\n\n- `true`: An invoice is created. If you have the Invoice Settlement feature enabled, a credit memo might also be created.\n\n\n- `false`: No invoice is created.\n\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `211.0` or a  later available version.\n"},"suspendPeriods":{"type":"string","description":"The length of the period used to specify when the subscription suspension takes effect. The subscription suspension takes effect after a specified period based on today's date. You must use this field together with the `suspendPeriodsType` field to specify the period.\n\n**Note:** This field is only applicable only when the suspendPolicy field is set to FixedPeriodsFromToday.\n"},"suspendPeriodsType":{"type":"string","description":"The period type used to define when the subscription suspension takes effect. The subscription suspension takes effect after a specified period based on today's date. You must use this field together with the suspendPeriods field to specify the period.\n\nType: string (enum)\n\nValues: `Day`, `Week`, `Month`, `Year`\n\n**Note:** This field is only applicable only when the suspendPolicy field is set to FixedPeriodsFromToday.\n"},"suspendPolicy":{"type":"string","description":"Suspend methods. Specify a way to suspend a subscription. \n\nValue:\n\n* `Today`: The subscription suspension takes effect on today's date.\n* `EndOfLastInvoicePeriod`: The subscription suspension takes effect at the end of the last invoice period. The suspend date defaults to a date that is one day after the last invoiced period. You can choose this option to avoid any negative invoices (credits) issued back to the customer after the subscription suspension. \n* `SpecificDate`: The subscription suspension takes effect on a specific date. You must define the specific date in the `suspendSpecificDate` field.\n* `FixedPeriodsFromToday`: The subscription suspension takes effect after a specified period based on today's date. You must specify the `suspendPeriods` and `suspendPeriodsType` fields to define the period.\n"},"suspendSpecificDate":{"type":"string","format":"date","description":"A specific date when the subscription suspension takes effect, in the format yyyy-mm-dd.\n\n**Note:** This field is only applicable only when the suspendPolicy field is set to SpecificDate.\n\nThe value should not be earlier than the subscription contract effective date, later than the subscription term end date, or within a period for which the customer has been invoiced.\n"},"targetDate":{"type":"string","format":"date","description":"Date through which to calculate charges if an invoice or a credit memo is generated, as\nyyyy-mm-dd. Default is current date.\nThis field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `211.0` or a later available version.\n\n**Note:** The credit memo is only available if you have the Invoice Settlement feature enabled.\n"}},"required":["suspendPolicy"],"title":"PUTSubscriptionSuspendType"},"PUTSubscriptionSuspendResponseType":{"type":"object","properties":{"creditMemoId":{"type":"string","description":"The credit memo ID, if a credit memo is generated during the subscription process.\n\n**Note:** This container is only available if you set the Zuora REST API minor version to 207.0 or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version) in the request header, and 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"},"invoiceId":{"type":"string","description":"Invoice ID, if an invoice is generated during the subscription process.\n"},"paidAmount":{"type":"number","format":"double","description":"Payment amount, if a payment is collected.\n"},"paymentId":{"type":"string","description":"Payment ID, if a payment is collected.\n"},"resumeDate":{"type":["string","null"],"format":"date","description":"The date when subscription resumption takes effect, in the format yyyy-mm-dd.\n"},"subscriptionId":{"type":"string","description":"The subscription ID.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"suspendDate":{"type":"string","format":"date","description":"The date when subscription suspension takes effect, in the format yyyy-mm-dd.\n"},"termEndDate":{"type":"string","format":"date","description":"The date when the new subscription term ends, in the format yyyy-mm-dd.\n"},"totalDeltaTcv":{"type":"number","format":"double","description":"Change in the total contracted value of the subscription as a result of the update.\n"}},"title":"PUTSubscriptionSuspendResponseType"},"PUTDeleteSubscriptionResponseType":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `true` if the request is processed successfully."}},"title":"PUTDeleteSubscriptionResponseType"},"PutSubscriptionPatchSpecificVersionRequestTypeRatePlansItemsChargesItems":{"type":"object","properties":{"chargeId":{"type":"string","description":"Use either this field or the `chargeNumber` field to specify the charge for which you will be updating the custom fields. By using this field you actually specify a specific charge segment of a charge. See [Segmented rate plan charges](https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/RatePlanCharge#Segmented_rate_plan_charges) for more information about charge segments.\n"},"chargeNumber":{"type":"string","description":"Use either this field or the `chargeId` field to specify the charge for which you will be updating the custom fields. By using this field you actually specify the last charge segment of a charge. See [Segmented rate plan charges](https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/RatePlanCharge#Segmented_rate_plan_charges) for more information about charge segments.\n"},"customFields":{"$ref":"#/components/schemas/RatePlanChargeObjectCustomFields"}},"title":"PutSubscriptionPatchSpecificVersionRequestTypeRatePlansItemsChargesItems"},"RatePlanObjectCustomFields":{"type":"object","properties":{},"description":"Container for custom fields of a Rate Plan object.\n","title":"RatePlanObjectCustomFields"},"PutSubscriptionPatchSpecificVersionRequestTypeRatePlansItems":{"type":"object","properties":{"charges":{"type":"array","items":{"$ref":"#/components/schemas/PutSubscriptionPatchSpecificVersionRequestTypeRatePlansItemsChargesItems"}},"customFields":{"$ref":"#/components/schemas/RatePlanObjectCustomFields"},"ratePlanId":{"type":"string","description":"The rate plan id in any version of the subscription. This will be linked to the only one rate plan in the current version."}},"required":["ratePlanId"],"title":"PutSubscriptionPatchSpecificVersionRequestTypeRatePlansItems"},"PUTSubscriptionPatchSpecificVersionRequestType":{"type":"object","properties":{"customFields":{"$ref":"#/components/schemas/SubscriptionObjectCustomFields"},"ratePlans":{"type":"array","items":{"$ref":"#/components/schemas/PutSubscriptionPatchSpecificVersionRequestTypeRatePlansItems"}}},"title":"PUTSubscriptionPatchSpecificVersionRequestType"},"GetMetricsBySubscriptionNumbersResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetMetricsBySubscriptionNumbersResponseReasonsItems"},"GetMetricsBySubscriptionNumbersResponseSubscriptionMetricsItems":{"type":"object","properties":{"subscriptionNumber":{"type":"string","description":"The number for the subscription.\n"},"contractedMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription.\n"},"contractedNetMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription rate plan inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts.\n"},"asOfDayGrossMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription rate plan exclusive of any discounts applicable as of specified day.\n"},"asOfDayNetMrr":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription rate plan inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts as of specified day.\n"},"netTotalContractedValue":{"type":"number","format":"double","description":"Total contracted value of the subscription inclusive of all the discounts applicable, including the fixed-amount discounts and percentage discounts.\n"},"totalContractedValue":{"type":"number","format":"double","description":"Total contracted value of the subscription.\n"}},"title":"GetMetricsBySubscriptionNumbersResponseSubscriptionMetricsItems"},"GETMetricsBySubscriptionNumbersResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetMetricsBySubscriptionNumbersResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"subscriptionMetrics":{"type":"array","items":{"$ref":"#/components/schemas/GetMetricsBySubscriptionNumbersResponseSubscriptionMetricsItems"}}},"title":"GETMetricsBySubscriptionNumbersResponse"},"OmniChannelAccountData":{"type":"object","properties":{"accountNumber":{"type":"string","maxLength":70,"description":"The number of the account."},"name":{"type":"string","maxLength":255,"description":"The name of the account."},"currency":{"type":"string","description":"Three uppercase character currency code.\n"},"notes":{"type":"string","maxLength":65535,"description":"The note for the account."},"billToContact":{"$ref":"#/components/schemas/ContactInfo"},"soldToContact":{"$ref":"#/components/schemas/ContactInfo"},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields.\n"}},"required":["name","currency","billToContact"],"description":"The information of the account that you want to create while creating an omnichannel subscription.\n","title":"OmniChannelAccountData"},"CreateOmniChannelSubscriptionRequest":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with this subscription.\n"},"externalSubscriptionId":{"type":"string","description":"The original transaction ID of the notification. This must be unique in the tenant.\n"},"externalTransactionReason":{"type":"string","description":"The latest transaction reason.\n"},"externalSourceSystem":{"type":"string","description":"The source app store from which the channel subscription originated. For example, Apple, Google, Roku, Amazon.\n\n\n**Note:** When creating a new Omnichannel subscription, `externalSourceSystem` is a required field. When updating an existing Omnichannel subscription, `externalSourceSystem` is an optional field.\n"},"externalState":{"type":"string","description":"The original status from client, such as active, canceled, expired, pastDue.\n"},"state":{"type":"string","description":"The common external subscription state.\n"},"externalProductId":{"type":"string","description":"The product ID in the external system.\n"},"externalReplaceByProductId":{"type":["string","null"],"description":"The product ID is going to replace the existing product ID in the `externalProductId` field during the subscription renewal.\n"},"externalInAppOwnershipType":{"type":"string","description":"Such as purchased, family_shared.\n"},"externalQuantity":{"type":"integer","default":1,"description":"The quantity of the product, must be greather than 0. \n"},"currency":{"type":"string","description":"The currency code of the transaction. If not specified, get value from the Account.\n"},"autoRenew":{"type":"boolean","default":false,"description":"If `true`, the subscription automatically renews at the end of the\nterm.\n"},"externalPurchaseDate":{"type":"string","format":"datetime","description":"When the App Store charged the user’s account for a purchase, restored product, subscription, \nor subscription renewal after a lapse. UTC time, `yyyy-mm-dd hh:mm:ss`.\n"},"externalActivationDate":{"type":"string","format":"datetime","description":"When the external subscription was activated on the external platform. \nUTC time, `yyyy-mm-dd hh:mm:ss`.\n"},"externalExpirationDate":{"type":"string","format":"datetime","description":"This expiration date is a static value that applies for each transaction.\nUTC time, `yyyy-mm-dd hh:mm:ss`.\n"},"externalApplicationId":{"type":"string","description":"The external application ID.\n"},"externalBundleId":{"type":"string","description":"The external bundler ID.\n"},"externalSubscriberId":{"type":"string","description":"The external subscriber ID.\n"},"externalPrice":{"type":"number","format":"double","description":"The price in external system.\n"},"externalPurchaseType":{"type":"string","description":"The external purchase type."},"externalLastRenewalDate":{"type":"string","format":"datetime","description":"This last renewal date is a static value that applies for each transaction.\nUTC time, `yyyy-mm-dd hh:mm:ss`.\n"},"externalNextRenewalDate":{"type":"string","format":"datetime","description":"This next renewal date is a static value that applies for each transaction. \nUTC time, `yyyy-mm-dd hh:mm:ss`.\n"},"accountIdentifierField":{"type":"string","description":"The account field used to identify the account in acountData. It could be a custom field."},"accountData":{"$ref":"#/components/schemas/OmniChannelAccountData"}},"required":["externalSubscriptionId"],"description":"Container for custom fields of a Subscription object.\n","title":"CreateOmniChannelSubscriptionRequest"},"CreateOmniChannelSubscriptionResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"CreateOmniChannelSubscriptionResponseReasonsItems"},"CreateOmniChannelSubscriptionResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/CreateOmniChannelSubscriptionResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"subscriptionId":{"type":"string","description":"The system generated ID in Billing.\n"},"subscriptionNumber":{"type":"string","description":"The system generated subscription number.\n"},"accountId":{"type":"string","description":"The ID of the account associated with this subscription.\n"},"accountNumber":{"type":"string","description":"The number of the account associated with this subscription.\n"}},"title":"CreateOmniChannelSubscriptionResponse"},"GetOmniChannelSubscriptionResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetOmniChannelSubscriptionResponseReasonsItems"},"GetOmniChannelSubscriptionResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetOmniChannelSubscriptionResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"id":{"type":"string","description":"The system generated ID in Billing.\n"},"subscriptionNumber":{"type":"string","description":"The system generated subscription number.\n"},"accountId":{"type":"string","description":"The ID of the account associated with this subscription.\n"},"externalSubscriptionId":{"type":"string","description":"The original transaction ID of the notification.\n"},"externalTransactionReason":{"type":"string","description":"The latest transaction reason.\n"},"externalSourceSystem":{"type":"string","description":"The source app store from which the channel subscription originated. For example, Apple, Google, Roku, Amazon.\n"},"externalState":{"type":"string","description":"The original status from client, such as active, canceled, expired, pastDue.\n"},"state":{"type":"string","description":"The common external subscription state.\n"},"externalProductId":{"type":"string","description":"The product ID in the external system.\n"},"externalReplaceByProductId":{"type":["string","null"],"description":"The product ID is going to replace the existing product ID in the `externalProductId` field during the subscription renewal.\n"},"externalInAppOwnershipType":{"type":"string","description":"Such as purchased, family_shared.\n"},"externalQuantity":{"type":"integer","default":1,"description":"The quantity of the product, must be greater than 0. \n"},"currency":{"type":"string","description":"The currency code of the transaction. If not specified, get value from the Account.\n"},"autoRenew":{"type":"boolean","default":false,"description":"If `true`, the subscription automatically renews at the end of the\nterm. \n"},"originalPurchaseDate":{"type":"string","format":"datetime","description":"The value of `externalPurchaseDate` when this external subscription firstly created. \nUTC time, `yyyy-mm-dd hh:mm:ss`.\n"},"externalPurchaseDate":{"type":"string","format":"datetime","description":"When the App Store charged the user’s account for a purchase, restored product, subscription, \nor subscription renewal after a lapse. UTC time, `yyyy-mm-dd hh:mm:ss`.\n"},"externalActivationDate":{"type":"string","format":"datetime","description":"When the external subscription was activated on the external platform. \nUTC time, `yyyy-mm-dd hh:mm:ss`.\n"},"externalExpirationDate":{"type":"string","format":"datetime","description":"This expiration date is a static value that applies for each transaction.\nUTC time, `yyyy-mm-dd hh:mm:ss`.\n"},"externalApplicationId":{"type":"string","description":"The external application ID.\n"},"externalBundleId":{"type":"string","description":"The external bundler ID.\n"},"externalSubscriberId":{"type":"string","description":"The external subscriber ID.\n"},"externalPrice":{"type":"number","format":"double","description":"The price in external system.\n"},"externalPurchaseType":{"type":"string","description":"The external purchase type."},"externalLastRenewalDate":{"type":"string","format":"datetime","description":"This last renewal date is a static value that applies for each transaction.\nUTC time, `yyyy-mm-dd hh:mm:ss`.\n"},"externalNextRenewalDate":{"type":"string","format":"datetime","description":"This next renewal date is a static value that applies for each transaction. \nUTC time, `yyyy-mm-dd hh:mm:ss`.\n"}},"description":"Container for custom fields of a Subscription object.\n","title":"GetOmniChannelSubscriptionResponse"},"GetOrderActionRatePlanResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetOrderActionRatePlanResponseReasonsItems"},"OrderActionRatePlanAmendment":{"type":"object","properties":{"code":{"type":"string","description":"The amendment code.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"The date when the amendment becomes effective for billing purposes, as `yyyy-mm-dd`.\n"},"createdBy":{"type":"string","description":"The ID of the user who created this amendment.\n"},"createdDate":{"type":"string","format":"datetime","description":"The time that the amendment gets created in the system, in the `YYYY-MM-DD HH:MM:SS` format."},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date when the customer accepts the amendment changes to the subscription, as `yyyy-mm-dd`.\n"},"description":{"type":"string","description":"Description of the amendment.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the amendment changes take effective. \n"},"id":{"type":"string","description":"The amendment ID.\n"},"name":{"type":"string","description":"The name of the amendment.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date when service is activated, as `yyyy-mm-dd`.\n"},"type":{"type":"string","description":"Type of the amendment.\nPossible values are:\n\n\n- NewProduct\n- RemoveProduct\n- UpdateProduct\n"},"updatedBy":{"type":"string","description":"The ID of the user who updated this amendment."},"updatedDate":{"type":"string","format":"datetime","description":"The time that the amendment gets updated in the system, in the `YYYY-MM-DD HH:MM:SS` format."},"customFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of an Amendment object.\n"}},"description":"The amendment that is related to the subscription rate plan.\n","title":"OrderActionRatePlanAmendment"},"OrderActionRatePlanChargeOverrideBillingBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek"],"description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n","title":"OrderActionRatePlanChargeOverrideBillingBillCycleType"},"OrderActionRatePlanChargeOverrideBillingBillingPeriod":{"type":"string","enum":["Month","Quarter","Semi_Annual","Annual","Eighteen_Months","Two_Years","Three_Years","Five_Years","Specific_Months","Subscription_Term","Week","Specific_Weeks"],"description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n","title":"OrderActionRatePlanChargeOverrideBillingBillingPeriod"},"OrderActionRatePlanChargeOverrideBillingBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart"],"description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n","title":"OrderActionRatePlanChargeOverrideBillingBillingPeriodAlignment"},"OrderActionRatePlanChargeOverrideBillingBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n","title":"OrderActionRatePlanChargeOverrideBillingBillingTiming"},"OrderActionRatePlanChargeOverrideBillingWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n","title":"OrderActionRatePlanChargeOverrideBillingWeeklyBillCycleDay"},"OrderActionRatePlanChargeOverrideBilling":{"type":"object","properties":{"billCycleDay":{"type":"integer","minimum":0,"maximum":31,"description":"Day of the month that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofMonth`.\n"},"billCycleType":{"$ref":"#/components/schemas/OrderActionRatePlanChargeOverrideBillingBillCycleType","description":"Specifies how Zuora determines the day that each billing period begins on.\n\n  * `DefaultFromCustomer` - Each billing period begins on the bill cycle day of the account that owns the subscription.\n  * `SpecificDayofMonth` - Use the `billCycleDay` field to specify the day of the month that each billing period begins on.\n  * `SubscriptionStartDay` - Each billing period begins on the same day of the month as the start date of the subscription.\n  * `ChargeTriggerDay` - Each billing period begins on the same day of the month as the date when the charge becomes active.\n  * `SpecificDayofWeek` - Use the `weeklyBillCycleDay` field to specify the day of the week that each billing period begins on.\n"},"billingPeriod":{"$ref":"#/components/schemas/OrderActionRatePlanChargeOverrideBillingBillingPeriod","description":"Billing frequency of the charge. The value of this field controls the duration of each billing period.\n\nIf the value of this field is `Specific_Months` or `Specific_Weeks`, use the `specificBillingPeriod` field to specify the duration of each billing period.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/OrderActionRatePlanChargeOverrideBillingBillingPeriodAlignment","description":"Specifies how Zuora determines when to start new billing periods. You can use this field to align the billing periods of different charges.\n\n* `AlignToCharge` - Zuora starts a new billing period on the first billing day that falls on or after the date when the charge becomes active.\n* `AlignToSubscriptionStart` - Zuora starts a new billing period on the first billing day that falls on or after the start date of the subscription.\n* `AlignToTermStart` - For each term of the subscription, Zuora starts a new billing period on the first billing day that falls on or after the start date of the term.\n\nSee the `billCycleType` field for information about how Zuora determines the billing day.\n\n**Note**: This field is not supported in one time charges. \n"},"billingTiming":{"$ref":"#/components/schemas/OrderActionRatePlanChargeOverrideBillingBillingTiming","description":"Specifies whether to invoice for a billing period on the first day of the billing period (billing in advance) or the first day of the next billing period (billing in arrears).\n"},"specificBillingPeriod":{"type":"integer","description":"Duration of each billing period in months or weeks, depending on the value of the `billingPeriod` field. Only applicable if the value of the `billingPeriod` field is `Specific_Months` or `Specific_Weeks`.\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/OrderActionRatePlanChargeOverrideBillingWeeklyBillCycleDay","description":"Day of the week that each billing period begins on. Only applicable if the value of the `billCycleType` field is `SpecificDayofWeek`.\n"}},"description":"Billing information about the charge.\n","title":"OrderActionRatePlanChargeOverrideBilling"},"OrderActionRatePlanRatePlanChargeObjectCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of a Rate Plan Charge object.\n","title":"OrderActionRatePlanRatePlanChargeObjectCustomFields"},"OrderActionRatePlanEndConditionsEndDateCondition":{"type":"string","enum":["Subscription_End","Fixed_Period","Specific_End_Date"],"description":"Condition for the charge to become inactive.\n\nIf the value of this field is `Fixed_Period`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n\nIf the value of this field is `Specific_End_Date`, use the `specificEndDate` field to specify the date when then charge becomes inactive.\n","title":"OrderActionRatePlanEndConditionsEndDateCondition"},"OrderActionRatePlanEndConditionsUpToPeriodsType":{"type":"string","enum":["Billing_Periods","Days","Weeks","Months","Years"],"description":"Unit of time that the charge duration is measured in. Only applicable if the value of the `endDateCondition` field is `Fixed_Period`.\n","title":"OrderActionRatePlanEndConditionsUpToPeriodsType"},"OrderActionRatePlanEndConditions":{"type":"object","properties":{"endDateCondition":{"$ref":"#/components/schemas/OrderActionRatePlanEndConditionsEndDateCondition","description":"Condition for the charge to become inactive.\n\nIf the value of this field is `Fixed_Period`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n\nIf the value of this field is `Specific_End_Date`, use the `specificEndDate` field to specify the date when then charge becomes inactive.\n"},"specificEndDate":{"type":"string","format":"date","description":"Date in YYYY-MM-DD format. Only applicable if the value of the `endDateCondition` field is `Specific_End_Date`.\n"},"upToPeriods":{"type":"integer","description":"Duration of the charge in billing periods, days, weeks, months, or years, depending on the value of the `upToPeriodsType` field. Only applicable if the value of the `endDateCondition` field is `Fixed_Period`.\n"},"upToPeriodsType":{"$ref":"#/components/schemas/OrderActionRatePlanEndConditionsUpToPeriodsType","description":"Unit of time that the charge duration is measured in. Only applicable if the value of the `endDateCondition` field is `Fixed_Period`.\n"}},"description":"Specifies when a charge becomes inactive.\n","title":"OrderActionRatePlanEndConditions"},"OrderActionRatePlanChargeModelDataOverrideChargeModelConfiguration":{"type":"object","properties":{"customFieldPerUnitRate":{"type":"string","description":"The custom field that carries the per-unit rate for each usage record. For example, `perUnitAmount__c`.\n\nThis field is only available for the usage-based charges that use the Pre-Rated Per Unit Pricing charge model. The charge model 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.\n"},"customFieldTotalAmount":{"type":"string","description":"The custom field that carries the total amount to charge for a usage record. For example, `totalAmount__c`.\n\nThis field is only available for the usage-based charges that use the Pre-Rated Pricing charge model. The charge model 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.\n"},"formula":{"type":"string","description":"The pricing formula to calculate actual rating amount for each usage record.\n\nThis field is only available for the usage-based charges that use the Multi-Attribute Pricing charge model. The charge model 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.\n"}},"title":"OrderActionRatePlanChargeModelDataOverrideChargeModelConfiguration"},"OrderActionRatePlanChargeTierPriceFormat":{"type":"string","enum":["FlatFee","PerUnit"],"description":"Specifies whether the tier has a fixed price or a per-unit price.\n","title":"OrderActionRatePlanChargeTierPriceFormat"},"OrderActionRatePlanChargeTier":{"type":"object","properties":{"endingUnit":{"type":"number","format":"double","description":"Limit on the number of units for which the tier is effective.\n"},"price":{"type":"number","format":"double","description":"Price or per-unit price of the tier, depending on the value of the `priceFormat` field.\n"},"priceFormat":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTierPriceFormat","description":"Specifies whether the tier has a fixed price or a per-unit price.\n"},"startingUnit":{"type":"number","format":"double","description":"Number of units at which the tier becomes effective.\n"},"tier":{"type":"integer","minimum":1,"description":"Index of the tier in the charge.\n"}},"required":["price","priceFormat","startingUnit","tier"],"title":"OrderActionRatePlanChargeTier"},"OrderActionRatePlanChargeModelDataOverride":{"type":"object","properties":{"chargeModelConfiguration":{"$ref":"#/components/schemas/OrderActionRatePlanChargeModelDataOverrideChargeModelConfiguration"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"},"description":"List of cumulative pricing tiers in the charge.\n\n**Note**: When you override tiers of the charge with a High Water Mark Pricing charge model, you have to provide all of the tiers, including the ones you do not want to change. The new tiers will completely override the previous ones. The High Water Mark Pricing charge models are 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.\n"}},"description":"Container for charge model configuration data.\n\n**Note**: This field is only available if you have the High Water Mark, Pre-Rated Pricing, or Multi-Attribute Pricing charge models enabled. The charge models are 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.\n","title":"OrderActionRatePlanChargeModelDataOverride"},"OrderActionRatePlanDiscountPricingOverrideApplyDiscountTo":{"type":"string","enum":["ONETIME","RECURRING","USAGE","ONETIMERECURRING","ONETIMEUSAGE","RECURRINGUSAGE","ONETIMERECURRINGUSAGE"],"description":"Specifies which type of charge the discount charge applies to.\n","title":"OrderActionRatePlanDiscountPricingOverrideApplyDiscountTo"},"OrderActionRatePlanDiscountPricingOverrideDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"OrderActionRatePlanDiscountPricingOverrideDiscountLevel"},"OrderActionRatePlanDiscountPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n","title":"OrderActionRatePlanDiscountPricingOverridePriceChangeOption"},"OrderActionRatePlanDiscountPricingOverride":{"type":"object","properties":{"applyDiscountTo":{"$ref":"#/components/schemas/OrderActionRatePlanDiscountPricingOverrideApplyDiscountTo","description":"Specifies which type of charge the discount charge applies to.\n"},"discountAmount":{"type":"number","format":"double","description":"Only applicable if the discount charge is a fixed-amount discount.\n"},"discountLevel":{"$ref":"#/components/schemas/OrderActionRatePlanDiscountPricingOverrideDiscountLevel","description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"discountPercentage":{"type":"number","format":"double","description":"Only applicable if the discount charge is a percentage discount.\n"},"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanDiscountPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n"}},"description":"Pricing information about a discount charge.\n","title":"OrderActionRatePlanDiscountPricingOverride"},"OrderActionRatePlanOneTimeFlatFeePricingOverride":{"type":"object","properties":{"listPrice":{"type":"number","format":"double","description":"Price of the charge.\n"}},"required":["listPrice"],"description":"Pricing information about a one-time charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n","title":"OrderActionRatePlanOneTimeFlatFeePricingOverride"},"OrderActionRatePlanOneTimePerUnitPricingOverride":{"type":"object","properties":{"listPrice":{"type":"number","format":"double","description":"Per-unit price of the charge.\n"},"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"}},"description":"Pricing information about a one-time charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit purchased.\n","title":"OrderActionRatePlanOneTimePerUnitPricingOverride"},"OrderActionRatePlanOneTimeTieredPricingOverride":{"type":"object","properties":{"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"},"description":"List of cumulative pricing tiers in the charge.\n"}},"description":"Pricing information about a one-time charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are purchased.\n","title":"OrderActionRatePlanOneTimeTieredPricingOverride"},"OrderActionRatePlanOneTimeVolumePricingOverride":{"type":"object","properties":{"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"},"description":"List of variable pricing tiers in the charge.\n"}},"description":"Pricing information about a one-time charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are purchased.\n","title":"OrderActionRatePlanOneTimeVolumePricingOverride"},"OrderActionRatePlanRecurringDeliveryPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanRecurringDeliveryPricingOverridePriceChangeOption"},"OrderActionRatePlanRecurringDeliveryPricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringDeliveryPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"deliverySchedule":{"$ref":"#/components/schemas/DeliveryScheduleParams"},"listPrice":{"type":"number","format":"double","description":"Price of the charge in each recurring period.\n"}},"description":"Pricing information about a recurring charge that uses the Delivery Pricing charge model. In this charge model, the charge has a fixed price. This field is only available if you have the Delivery Pricing charge model enabled.\n","title":"OrderActionRatePlanRecurringDeliveryPricingOverride"},"OrderActionRatePlanRecurringFlatFeePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanRecurringFlatFeePricingOverridePriceChangeOption"},"OrderActionRatePlanRecurringFlatFeePricingOverrideListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months"],"description":"Specifies the duration of each recurring period.\n","title":"OrderActionRatePlanRecurringFlatFeePricingOverrideListPriceBase"},"OrderActionRatePlanRecurringFlatFeePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringFlatFeePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double","description":"Price of the charge in each recurring period.\n"},"listPriceBase":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringFlatFeePricingOverrideListPriceBase","description":"Specifies the duration of each recurring period.\n"},"specificListPriceBase":{"type":"integer","minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"}},"description":"Pricing information about a recurring charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n","title":"OrderActionRatePlanRecurringFlatFeePricingOverride"},"OrderActionRatePlanRecurringPerUnitPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanRecurringPerUnitPricingOverridePriceChangeOption"},"OrderActionRatePlanRecurringPerUnitPricingOverrideListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months"],"description":"Specifies the duration of each recurring period.\n\n**Note**: The `Per_Year` and `Per_Specific_Months` enum values are available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.              \n","title":"OrderActionRatePlanRecurringPerUnitPricingOverrideListPriceBase"},"OrderActionRatePlanRecurringPerUnitPricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringPerUnitPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double","description":"Per-unit price of the charge in each recurring period.\n"},"listPriceBase":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringPerUnitPricingOverrideListPriceBase","description":"Specifies the duration of each recurring period.\n\n**Note**: The `Per_Year` and `Per_Specific_Months` enum values are available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.              \n"},"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"specificListPriceBase":{"type":"integer","minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"}},"description":"Pricing information about a recurring charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit purchased.\n","title":"OrderActionRatePlanRecurringPerUnitPricingOverride"},"OrderActionRatePlanRecurringTieredPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanRecurringTieredPricingOverridePriceChangeOption"},"OrderActionRatePlanRecurringTieredPricingOverrideListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months"],"description":"Specifies the duration of each recurring period.\n","title":"OrderActionRatePlanRecurringTieredPricingOverrideListPriceBase"},"OrderActionRatePlanRecurringTieredPricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringTieredPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPriceBase":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringTieredPricingOverrideListPriceBase","description":"Specifies the duration of each recurring period.\n"},"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"specificListPriceBase":{"type":"integer","minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"},"description":"List of cumulative pricing tiers in the charge.\n"}},"description":"Pricing information about a recurring charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are purchased.\n","title":"OrderActionRatePlanRecurringTieredPricingOverride"},"OrderActionRatePlanRecurringVolumePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanRecurringVolumePricingOverridePriceChangeOption"},"OrderActionRatePlanRecurringVolumePricingOverrideListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months"],"description":"Specifies the duration of each recurring period.\n\n**Note**: The `Per_Year` and `Per_Specific_Months` enum values are available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n","title":"OrderActionRatePlanRecurringVolumePricingOverrideListPriceBase"},"OrderActionRatePlanRecurringVolumePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringVolumePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPriceBase":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringVolumePricingOverrideListPriceBase","description":"Specifies the duration of each recurring period.\n\n**Note**: The `Per_Year` and `Per_Specific_Months` enum values are available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n"},"quantity":{"type":"number","format":"double","minimum":0,"description":"Number of units purchased.\n"},"specificListPriceBase":{"type":"integer","minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"},"description":"List of variable pricing tiers in the charge.\n"}},"description":"Pricing information about a recurring charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are purchased.\n","title":"OrderActionRatePlanRecurringVolumePricingOverride"},"OrderActionRatePlanUsageFlatFeePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsageFlatFeePricingOverridePriceChangeOption"},"OrderActionRatePlanUsageFlatFeePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageFlatFeePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double","description":"Price of the charge.\n"}},"description":"Pricing information about a usage charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n","title":"OrderActionRatePlanUsageFlatFeePricingOverride"},"OrderActionRatePlanUsageOveragePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsageOveragePricingOverridePriceChangeOption"},"OrderActionRatePlanUsageOveragePricingOverrideOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Specifies whether to credit the customer for unused units.\n\nIf the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.\n","title":"OrderActionRatePlanUsageOveragePricingOverrideOverageUnusedUnitsCreditOption"},"OrderActionRatePlanUsageOveragePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageOveragePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"includedUnits":{"type":"number","format":"double","minimum":0,"description":"Number of free units that may be consumed.\n"},"numberOfPeriods":{"type":"integer","minimum":1,"description":"Number of periods that Zuora considers when calculating overage charges with overage smoothing.\n"},"overagePrice":{"type":"number","format":"double","description":"Price per overage unit consumed.\n"},"overageUnusedUnitsCreditOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageOveragePricingOverrideOverageUnusedUnitsCreditOption","description":"Specifies whether to credit the customer for unused units.\n\nIf the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.\n"},"unusedUnitsCreditRates":{"type":"number","format":"double","description":"Per-unit rate at which to credit the customer for unused units. Only applicable if the value of the `overageUnusedUnitsCreditOption` field is `CreditBySpecificRate`.\n"}},"description":"Pricing information about a usage charge that uses the \"overage\" charge model. In this charge model, the charge has an allowance of free units and a fixed price per additional unit consumed.\n","title":"OrderActionRatePlanUsageOveragePricingOverride"},"OrderActionRatePlanUsagePerUnitPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsagePerUnitPricingOverridePriceChangeOption"},"OrderActionRatePlanUsagePerUnitPricingOverrideRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload"],"description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date.\n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n","title":"OrderActionRatePlanUsagePerUnitPricingOverrideRatingGroup"},"OrderActionRatePlanUsagePerUnitPricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsagePerUnitPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double","description":"Per-unit price of the charge.\n"},"ratingGroup":{"$ref":"#/components/schemas/OrderActionRatePlanUsagePerUnitPricingOverrideRatingGroup","description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date.\n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n"}},"description":"Pricing information about a usage charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit consumed.\n","title":"OrderActionRatePlanUsagePerUnitPricingOverride"},"OrderActionRatePlanUsageTieredPricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsageTieredPricingOverridePriceChangeOption"},"OrderActionRatePlanUsageTieredPricingOverrideRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload"],"description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date.\n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n","title":"OrderActionRatePlanUsageTieredPricingOverrideRatingGroup"},"OrderActionRatePlanUsageTieredPricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageTieredPricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"ratingGroup":{"$ref":"#/components/schemas/OrderActionRatePlanUsageTieredPricingOverrideRatingGroup","description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date.\n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"},"description":"List of cumulative pricing tiers in the charge.\n"}},"description":"Pricing information about a usage charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are consumed.\n","title":"OrderActionRatePlanUsageTieredPricingOverride"},"OrderActionRatePlanUsageTieredWithOveragePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsageTieredWithOveragePricingOverridePriceChangeOption"},"OrderActionRatePlanUsageTieredWithOveragePricingOverrideOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Specifies whether to credit the customer for unused units.\n\nIf the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.\n","title":"OrderActionRatePlanUsageTieredWithOveragePricingOverrideOverageUnusedUnitsCreditOption"},"OrderActionRatePlanUsageTieredWithOveragePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageTieredWithOveragePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"numberOfPeriods":{"type":"integer","minimum":1,"description":"Number of periods that Zuora considers when calculating overage charges with overage smoothing.\n"},"overagePrice":{"type":"number","format":"double","description":"Price per overage unit consumed.\n"},"overageUnusedUnitsCreditOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageTieredWithOveragePricingOverrideOverageUnusedUnitsCreditOption","description":"Specifies whether to credit the customer for unused units.\n\nIf the value of this field is `CreditBySpecificRate`, use the `unusedUnitsCreditRates` field to specify the rate at which to credit the customer for unused units.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"},"description":"List of cumulative pricing tiers in the charge.\n"},"unusedUnitsCreditRates":{"type":"number","format":"double","description":"Per-unit rate at which to credit the customer for unused units. Only applicable if the value of the `overageUnusedUnitsCreditOption` field is `CreditBySpecificRate`.\n"}},"description":"Pricing information about a usage charge that uses the \"tiered with overage\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are consumed. The charge also has a fixed price per unit consumed beyond the limit of the final tier.\n","title":"OrderActionRatePlanUsageTieredWithOveragePricingOverride"},"OrderActionRatePlanUsageVolumePricingOverridePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsageVolumePricingOverridePriceChangeOption"},"OrderActionRatePlanUsageVolumePricingOverrideRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload"],"description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date.\n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n","title":"OrderActionRatePlanUsageVolumePricingOverrideRatingGroup"},"OrderActionRatePlanUsageVolumePricingOverride":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageVolumePricingOverridePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"ratingGroup":{"$ref":"#/components/schemas/OrderActionRatePlanUsageVolumePricingOverrideRatingGroup","description":"Specifies how Zuora groups usage records when rating usage. See [Usage Rating by Group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group) for more information.\n  * ByBillingPeriod (default): The rating is based on all the usages in a billing period.\n  * ByUsageStartDate: The rating is based on all the usages on the same usage start date.\n  * ByUsageRecord: The rating is based on each usage record.\n  * ByUsageUpload: The rating is based on all the usages in a uploaded usage file (.xls or .csv). If you import a mass usage in a single upload, which contains multiple usage files in .xls or .csv format, usage records are grouped for each usage file.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"},"description":"List of variable pricing tiers in the charge.\n"}},"description":"Pricing information about a usage charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are consumed.\n","title":"OrderActionRatePlanUsageVolumePricingOverride"},"OrderActionRatePlanChargeOverridePricing":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/OrderActionRatePlanChargeModelDataOverride"},"discount":{"$ref":"#/components/schemas/OrderActionRatePlanDiscountPricingOverride"},"oneTimeFlatFee":{"$ref":"#/components/schemas/OrderActionRatePlanOneTimeFlatFeePricingOverride"},"oneTimePerUnit":{"$ref":"#/components/schemas/OrderActionRatePlanOneTimePerUnitPricingOverride"},"oneTimeTiered":{"$ref":"#/components/schemas/OrderActionRatePlanOneTimeTieredPricingOverride"},"oneTimeVolume":{"$ref":"#/components/schemas/OrderActionRatePlanOneTimeVolumePricingOverride"},"recurringDelivery":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringDeliveryPricingOverride"},"recurringFlatFee":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringFlatFeePricingOverride"},"recurringPerUnit":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringPerUnitPricingOverride"},"recurringTiered":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringTieredPricingOverride"},"recurringVolume":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringVolumePricingOverride"},"usageFlatFee":{"$ref":"#/components/schemas/OrderActionRatePlanUsageFlatFeePricingOverride"},"usageOverage":{"$ref":"#/components/schemas/OrderActionRatePlanUsageOveragePricingOverride"},"usagePerUnit":{"$ref":"#/components/schemas/OrderActionRatePlanUsagePerUnitPricingOverride"},"usageTiered":{"$ref":"#/components/schemas/OrderActionRatePlanUsageTieredPricingOverride"},"usageTieredWithOverage":{"$ref":"#/components/schemas/OrderActionRatePlanUsageTieredWithOveragePricingOverride"},"usageVolume":{"$ref":"#/components/schemas/OrderActionRatePlanUsageVolumePricingOverride"}},"description":"Pricing information about the charge.\n","title":"OrderActionRatePlanChargeOverridePricing"},"OrderActionRatePlanChargeOverrideRevRecTriggerCondition":{"type":"string","enum":["Contract Effective Date","Service Activation Date","Customer Acceptance Date"],"description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date`\n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n","title":"OrderActionRatePlanChargeOverrideRevRecTriggerCondition"},"OrderActionRatePlanChargeOverrideRevenueRecognitionRuleName":{"type":"string","enum":["Recognize upon invoicing","Recognize daily over time"],"description":"Specifies the revenue recognition rule.\n\n  * `Recognize upon invoicing`\n  * `Recognize daily over time`\n","title":"OrderActionRatePlanChargeOverrideRevenueRecognitionRuleName"},"OrderActionRatePlanTriggerParamsTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance"],"description":"Condition for the charge to become active.\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n","title":"OrderActionRatePlanTriggerParamsTriggerEvent"},"OrderActionRatePlanTriggerParams":{"type":"object","properties":{"specificTriggerDate":{"type":"string","format":"date","description":"Date in YYYY-MM-DD format. Only applicable if the value of the `triggerEvent` field is `SpecificDate`.\n\nWhile this field is applicable, if this field is not set, your `CreateSubscription` order action creates a `Pending` order and a `Pending Acceptance` subscription. If at the same time the service activation date is required and not set, a `Pending Activation` subscription is created.\n\nWhile this field is applicable, if this field is not set, the following order actions create a `Pending` order but do not impact the subscription status. **Note**: This feature is in **Limited Availability**. If you want to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n"},"triggerEvent":{"$ref":"#/components/schemas/OrderActionRatePlanTriggerParamsTriggerEvent","description":"Condition for the charge to become active.\n\nIf the value of this field is `SpecificDate`, use the `specificTriggerDate` field to specify the date when the charge becomes active.\n"}},"description":"Specifies when a charge becomes active.\n","title":"OrderActionRatePlanTriggerParams"},"OrderActionRatePlanChargeOverride":{"type":"object","properties":{"billing":{"$ref":"#/components/schemas/OrderActionRatePlanChargeOverrideBilling","description":"Billing information about the charge.\n"},"chargeNumber":{"type":"string","maxLength":50,"description":"Charge number of the charge. For example, C-00000307.\n\nIf you do not set this field, Zuora will generate the charge number.\n"},"customFields":{"$ref":"#/components/schemas/OrderActionRatePlanRatePlanChargeObjectCustomFields"},"description":{"type":"string","maxLength":500,"description":"Description of the charge.\n"},"endDate":{"$ref":"#/components/schemas/OrderActionRatePlanEndConditions"},"pricing":{"$ref":"#/components/schemas/OrderActionRatePlanChargeOverridePricing","description":"Pricing information about the charge.\n"},"productRatePlanChargeId":{"type":"string","description":"Internal identifier of the product rate plan charge that the charge is based on.\n"},"revRecCode":{"type":"string","maxLength":70,"description":"Revenue Recognition Code\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/OrderActionRatePlanChargeOverrideRevRecTriggerCondition","description":"Specifies the revenue recognition trigger condition.\n\n  * `Contract Effective Date`\n  * `Service Activation Date`\n  * `Customer Acceptance Date`\n"},"revenueRecognitionRuleName":{"$ref":"#/components/schemas/OrderActionRatePlanChargeOverrideRevenueRecognitionRuleName","description":"Specifies the revenue recognition rule.\n\n  * `Recognize upon invoicing`\n  * `Recognize daily over time`\n"},"startDate":{"$ref":"#/components/schemas/OrderActionRatePlanTriggerParams"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the charge. This identifier enables you to refer to the charge before the charge has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the charge. Then when you update the product, you can use the same unique identifier to specify which charge to modify.\n"}},"required":["productRatePlanChargeId"],"description":"Charge associated with a rate plan.\n","title":"OrderActionRatePlanChargeOverride"},"OrderActionRatePlanRatePlanObjectCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of a Rate Plan object.\n","title":"OrderActionRatePlanRatePlanObjectCustomFields"},"OrderActionRatePlanRatePlanOverride":{"type":"object","properties":{"chargeOverrides":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeOverride"},"description":"List of charges associated with the rate plan.\n"},"customFields":{"$ref":"#/components/schemas/OrderActionRatePlanRatePlanObjectCustomFields"},"newRatePlanId":{"type":"string","description":"Internal identifier of the rate plan.\n"},"productRatePlanId":{"type":"string","description":"Internal identifier of the product rate plan that the rate plan is based on.\n"},"uniqueToken":{"type":"string","maxLength":50,"description":"Unique identifier for the rate plan. This identifier enables you to refer to the rate plan before the rate plan has an internal identifier in Zuora.\n\nFor instance, suppose that you want to use a single order to add a product to a subscription and later update the same product. When you add the product, you can set a unique identifier for the rate plan. Then when you update the product, you can use the same unique identifier to specify which rate plan to modify.\n"}},"required":["productRatePlanId"],"description":"Rate plan associated with a subscription.\n","title":"OrderActionRatePlanRatePlanOverride"},"OrderActionRatePlanRemoveProduct":{"type":"object","properties":{"ratePlanId":{"type":"string","description":"Internal identifier of the rate plan to remove.\n"},"uniqueToken":{"type":"string","description":"A unique string to represent the rate plan charge in the order. The unique token is used to perform multiple actions against a newly added rate plan. For example, if you want to add and update a product in the same order, you would assign a unique token to the product rate plan when added and use that token in future order actions.A unique string in the order to represent the rate plan."}},"description":"Information about an order action of type `RemoveProduct`.\n","title":"OrderActionRatePlanRemoveProduct"},"OrderActionRatePlanOrderActionType":{"type":"string","enum":["AddProduct","UpdateProduct","RemoveProduct"],"description":"Type of the order action.","title":"OrderActionRatePlanOrderActionType"},"OrderActionRatePlanBillingUpdateBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart"],"title":"OrderActionRatePlanBillingUpdateBillingPeriodAlignment"},"OrderActionRatePlanBillingUpdate":{"type":"object","properties":{"billingPeriodAlignment":{"$ref":"#/components/schemas/OrderActionRatePlanBillingUpdateBillingPeriodAlignment"}},"title":"OrderActionRatePlanBillingUpdate"},"OrderActionRatePlanDiscountPricingUpdateApplyDiscountTo":{"type":"string","enum":["ONETIME","RECURRING","USAGE","ONETIMERECURRING","ONETIMEUSAGE","RECURRINGUSAGE","ONETIMERECURRINGUSAGE"],"description":"Specifies which type of charge the discount charge applies to.\n","title":"OrderActionRatePlanDiscountPricingUpdateApplyDiscountTo"},"OrderActionRatePlanDiscountPricingUpdateDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"OrderActionRatePlanDiscountPricingUpdateDiscountLevel"},"OrderActionRatePlanDiscountPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n","title":"OrderActionRatePlanDiscountPricingUpdatePriceChangeOption"},"OrderActionRatePlanDiscountPricingUpdate":{"type":"object","properties":{"applyDiscountTo":{"$ref":"#/components/schemas/OrderActionRatePlanDiscountPricingUpdateApplyDiscountTo","description":"Specifies which type of charge the discount charge applies to.\n"},"discountLevel":{"$ref":"#/components/schemas/OrderActionRatePlanDiscountPricingUpdateDiscountLevel","description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"discountPercentage":{"type":"number","format":"double","description":"The amount of the discount as a percentage. This field is only used for percentage discounts.\n"},"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanDiscountPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n"}},"title":"OrderActionRatePlanDiscountPricingUpdate"},"OrderActionRatePlanRecurringDeliveryPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanRecurringDeliveryPricingUpdatePriceChangeOption"},"OrderActionRatePlanRecurringDeliveryPricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringDeliveryPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"deliverySchedule":{"$ref":"#/components/schemas/DeliveryScheduleParams"},"listPrice":{"type":"number","format":"double"}},"title":"OrderActionRatePlanRecurringDeliveryPricingUpdate"},"OrderActionRatePlanRecurringFlatFeePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanRecurringFlatFeePricingUpdatePriceChangeOption"},"OrderActionRatePlanRecurringFlatFeePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringFlatFeePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double"}},"title":"OrderActionRatePlanRecurringFlatFeePricingUpdate"},"OrderActionRatePlanRecurringPerUnitPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanRecurringPerUnitPricingUpdatePriceChangeOption"},"OrderActionRatePlanRecurringPerUnitPricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringPerUnitPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double"},"quantity":{"type":"number","format":"double","minimum":0}},"title":"OrderActionRatePlanRecurringPerUnitPricingUpdate"},"OrderActionRatePlanRecurringTieredPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanRecurringTieredPricingUpdatePriceChangeOption"},"OrderActionRatePlanRecurringTieredPricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringTieredPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"quantity":{"type":"number","format":"double","minimum":0},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"}}},"title":"OrderActionRatePlanRecurringTieredPricingUpdate"},"OrderActionRatePlanRecurringVolumePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanRecurringVolumePricingUpdatePriceChangeOption"},"OrderActionRatePlanRecurringVolumePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringVolumePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"quantity":{"type":"number","format":"double","minimum":0},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"}}},"title":"OrderActionRatePlanRecurringVolumePricingUpdate"},"OrderActionRatePlanUsageFlatFeePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsageFlatFeePricingUpdatePriceChangeOption"},"OrderActionRatePlanUsageFlatFeePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageFlatFeePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double"}},"title":"OrderActionRatePlanUsageFlatFeePricingUpdate"},"OrderActionRatePlanUsageOveragePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsageOveragePricingUpdatePriceChangeOption"},"OrderActionRatePlanUsageOveragePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageOveragePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"includedUnits":{"type":"number","format":"double","description":"A certain quantity of units for free in the overage charge model. It cannot be negative. It must be 0 and above. Decimals are allowed.\n"},"overagePrice":{"type":"number","format":"double"}},"title":"OrderActionRatePlanUsageOveragePricingUpdate"},"OrderActionRatePlanUsagePerUnitPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsagePerUnitPricingUpdatePriceChangeOption"},"OrderActionRatePlanUsagePerUnitPricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsagePerUnitPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"listPrice":{"type":"number","format":"double"}},"title":"OrderActionRatePlanUsagePerUnitPricingUpdate"},"OrderActionRatePlanUsageTieredPricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsageTieredPricingUpdatePriceChangeOption"},"OrderActionRatePlanUsageTieredPricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageTieredPricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"}}},"title":"OrderActionRatePlanUsageTieredPricingUpdate"},"OrderActionRatePlanUsageTieredWithOveragePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsageTieredWithOveragePricingUpdatePriceChangeOption"},"OrderActionRatePlanUsageTieredWithOveragePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageTieredWithOveragePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"overagePrice":{"type":"number","format":"double"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"}}},"title":"OrderActionRatePlanUsageTieredWithOveragePricingUpdate"},"OrderActionRatePlanUsageVolumePricingUpdatePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n","title":"OrderActionRatePlanUsageVolumePricingUpdatePriceChangeOption"},"OrderActionRatePlanUsageVolumePricingUpdate":{"type":"object","properties":{"priceChangeOption":{"$ref":"#/components/schemas/OrderActionRatePlanUsageVolumePricingUpdatePriceChangeOption","description":"Specifies how Zuora changes the price of the charge each time the subscription renews.\n\nIf the value of this field is `SpecificPercentageValue`, use the `priceIncreasePercentage` field to specify how much the price of the charge should change.\n"},"priceIncreasePercentage":{"type":"number","format":"double","minimum":-100,"description":"Specifies the percentage by which the price of the charge should change each time the subscription renews. Only applicable if the value of the `priceChangeOption` field is `SpecificPercentageValue`.\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeTier"}}},"title":"OrderActionRatePlanUsageVolumePricingUpdate"},"OrderActionRatePlanPricingUpdate":{"type":"object","properties":{"chargeModelData":{"$ref":"#/components/schemas/OrderActionRatePlanChargeModelDataOverride","description":"Container for charge model configuration data.\n"},"discount":{"$ref":"#/components/schemas/OrderActionRatePlanDiscountPricingUpdate","description":"Pricing information about a discount charge.\n"},"recurringDelivery":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringDeliveryPricingUpdate","description":"Pricing information about a recurring charge that uses the Delivery Pricing charge model. In this charge model, the charge has a fixed price. This field is only available if you have the Delivery Pricing charge model enabled.\n"},"recurringFlatFee":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringFlatFeePricingUpdate","description":"Pricing information about a recurring charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n"},"recurringPerUnit":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringPerUnitPricingUpdate","description":"Pricing information about a recurring charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit purchased.\n"},"recurringTiered":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringTieredPricingUpdate","description":"Pricing information about a recurring charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are purchased.\n"},"recurringVolume":{"$ref":"#/components/schemas/OrderActionRatePlanRecurringVolumePricingUpdate","description":"Pricing information about a recurring charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are purchased.\n"},"usageFlatFee":{"$ref":"#/components/schemas/OrderActionRatePlanUsageFlatFeePricingUpdate","description":"Pricing information about a usage charge that uses the \"flat fee\" charge model. In this charge model, the charge has a fixed price.\n"},"usageOverage":{"$ref":"#/components/schemas/OrderActionRatePlanUsageOveragePricingUpdate","description":"Pricing information about a usage charge that uses the \"overage\" charge model. In this charge model, the charge has an allowance of free units and a fixed price per additional unit consumed.\n"},"usagePerUnit":{"$ref":"#/components/schemas/OrderActionRatePlanUsagePerUnitPricingUpdate","description":"Pricing information about a usage charge that uses the \"per unit\" charge model. In this charge model, the charge has a fixed price per unit consumed.\n"},"usageTiered":{"$ref":"#/components/schemas/OrderActionRatePlanUsageTieredPricingUpdate","description":"Pricing information about a usage charge that uses the \"tiered pricing\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are consumed.\n"},"usageTieredWithOverage":{"$ref":"#/components/schemas/OrderActionRatePlanUsageTieredWithOveragePricingUpdate","description":"Pricing information about a usage charge that uses the \"tiered with overage\" charge model. In this charge model, the charge has cumulative pricing tiers that become effective as units are consumed. The charge also has a fixed price per unit consumed beyond the limit of the final tier.\n"},"usageVolume":{"$ref":"#/components/schemas/OrderActionRatePlanUsageVolumePricingUpdate","description":"Pricing information about a usage charge that uses the \"volume pricing\" charge model. In this charge model, the charge has a variable price per unit, depending on how many units are consumed.\n"}},"title":"OrderActionRatePlanPricingUpdate"},"OrderActionRatePlanChargeUpdate":{"type":"object","properties":{"billing":{"$ref":"#/components/schemas/OrderActionRatePlanBillingUpdate","description":"Billing information about the charge.\n"},"chargeNumber":{"type":"string","description":"Read only. Identifies the charge to be updated.\n"},"customFields":{"$ref":"#/components/schemas/OrderActionRatePlanRatePlanChargeObjectCustomFields"},"description":{"type":"string","description":"Description of the charge.\n"},"effectiveDate":{"$ref":"#/components/schemas/OrderActionRatePlanTriggerParams"},"pricing":{"$ref":"#/components/schemas/OrderActionRatePlanPricingUpdate","description":"Pricing information about the charge.\n"},"uniqueToken":{"type":"string","description":"A unique string to represent the rate plan charge in the order. The unique token is used to perform multiple actions against a newly added rate plan. For example, if you want to add and update a product in the same order, you would assign a unique token to the product rate plan when added and use that token in future order actions.\n"}},"description":"The JSON object containing the information for a charge update in the 'UpdateProduct' type order action.","title":"OrderActionRatePlanChargeUpdate"},"OrderActionRatePlanRatePlanUpdate":{"type":"object","properties":{"chargeUpdates":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanChargeUpdate"}},"customFields":{"$ref":"#/components/schemas/OrderActionRatePlanRatePlanObjectCustomFields"},"newRatePlanId":{"type":"string","description":"Internal identifier of the updated rate plan in the new subscription version.\n"},"ratePlanId":{"type":"string","description":"Internal identifier of the rate plan that was updated.\n"},"specificUpdateDate":{"type":"string","format":"date","description":"The specific date when the Update Product order action takes effect.  This field allows you to update a charge before a future-dated Update Product order action on the subscription. The format of the date is yyyy-mm-dd.\n\n**Note**: After you use this option, the charge's `TriggerEvent` field value will be changed to `SpecificDate`.  \nSee [Update a Product on Subscription with Future-dated Updates](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AC_Orders_Tutorials/C_Update_a_Product_in_a_Subscription/Update_a_Product_on_Subscription_with_Future-dated_Updates) for more information about this feature.\n"},"uniqueToken":{"type":"string","description":"A unique string to represent the rate plan charge in the order. The unique token is used to perform multiple actions against a newly added rate plan. For example, if you want to add and update a product in the same order, you would assign a unique token to the product rate plan when added and use that token in future order actions.\n"}},"description":"Information about an order action of type `UpdateProduct`.\n","title":"OrderActionRatePlanRatePlanUpdate"},"OrderActionRatePlanOrderActionObjectCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of an Order Action object.\n","title":"OrderActionRatePlanOrderActionObjectCustomFields"},"OrderActionRatePlanOrderAction":{"type":"object","properties":{"addProduct":{"$ref":"#/components/schemas/OrderActionRatePlanRatePlanOverride"},"id":{"type":"string","description":"The Id of the order action processed in the order."},"removeProduct":{"$ref":"#/components/schemas/OrderActionRatePlanRemoveProduct"},"type":{"$ref":"#/components/schemas/OrderActionRatePlanOrderActionType","description":"Type of the order action."},"updateProduct":{"$ref":"#/components/schemas/OrderActionRatePlanRatePlanUpdate"},"customFields":{"$ref":"#/components/schemas/OrderActionRatePlanOrderActionObjectCustomFields"}},"description":"Represents the processed order action.","title":"OrderActionRatePlanOrderAction"},"OrderActionRatePlanOrder":{"type":"object","properties":{"id":{"type":"string","description":"The order ID."},"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/OrderActionRatePlanOrderAction"}},"orderNumber":{"type":"string","description":"The order number of the order."}},"description":"The order that is related to the subscription rate plan.\n","title":"OrderActionRatePlanOrder"},"GetOrderActionRatePlanResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetOrderActionRatePlanResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"amendment":{"$ref":"#/components/schemas/OrderActionRatePlanAmendment"},"externallyManagedPlanId":{"type":"string","description":"The unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"id":{"type":"string","description":"Unique subscription rate-plan ID."},"lastChangeType":{"type":"string","description":"Latest change type. Possible values are:\n\n- New\n- Update\n- Remove\n"},"order":{"$ref":"#/components/schemas/OrderActionRatePlanOrder"},"productId":{"type":"string","description":"Product ID\n"},"productName":{"type":"string","description":"The name of the product.\n"},"productRatePlanId":{"type":"string","description":"Product rate plan ID\n"},"productSku":{"type":"string","description":"The unique SKU for the product.\n"},"ratePlanName":{"type":"string","description":"The name of the rate plan.\n"},"subscriptionId":{"type":"string","description":"Subscription ID.\n"},"subscriptionVersion":{"description":"The version of the subscription.\n"}},"title":"GetOrderActionRatePlanResponse"},"CommitmentsGetParametersType":{"type":"string","enum":["MinCommitment","MaxCommitment"],"title":"CommitmentsGetParametersType"},"CommitmentStatus":{"type":"string","enum":["Active","Cancelled","Evaluated","CancelledPendingEvaluation"],"description":"Status of the commitment.\n","title":"CommitmentStatus"},"GetCommitmentResponseType":{"type":"string","enum":["MinCommitment","MaxCommitment"],"description":"The type of the commitment.\n","title":"GetCommitmentResponseType"},"PrepaymentTypeEnum":{"type":"string","enum":["FullyPrepaid","NotPrepaid"],"description":"The prepayment type of the commitment.\n\n**Note**: `FullyPrepaid` commitments will not be considered for true-up during invoice generation.\n","title":"PrepaymentTypeEnum"},"CommitmentCustomFields":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom fields of a Commitment object.","title":"CommitmentCustomFields"},"SettlementType":{"type":"string","enum":["NoSettlement","FullMinimum","PeriodMinimum"],"default":"NoSettlement","description":"Settlement type for commitment cancellation.","title":"SettlementType"},"CancellationPolicy":{"type":"object","properties":{"settlementType":{"$ref":"#/components/schemas/SettlementType","default":"NoSettlement"}},"description":"Cancellation policy configuration for a commitment. Defines how settlements are handled when a commitment is cancelled.\n","title":"CancellationPolicy"},"GetCommitmentResponseTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode that determines whether tax is included or exclueded from the billing document.\n","title":"GetCommitmentResponseTaxMode"},"GetCommitmentResponse":{"type":"object","properties":{"id":{"type":"string","description":"ID of the commitment.\n"},"status":{"$ref":"#/components/schemas/CommitmentStatus"},"version":{"type":"integer","description":"Version of the commitment.\n"},"startDate":{"type":"string","format":"date","description":"The start date of the commitment."},"endDate":{"type":"string","format":"date","description":"The end date of the commitment."},"totalAmount":{"type":"number","format":"double","description":"The commitment amount."},"currency":{"type":"string","description":"Currency of the commitment.\n"},"orderNumber":{"type":"string","maxLength":32,"description":"The number of the order."},"orderId":{"type":"string","maxLength":32,"description":"The ID of the order."},"accountId":{"type":"string","maxLength":32,"description":"The ID of the commitment owner account.\n"},"accountNumber":{"type":"string","maxLength":100,"description":"Use this field to assign an existing account as the owner of an Commitment."},"commitmentNumber":{"type":"string","maxLength":100,"description":"The number of the commitment.\n"},"name":{"type":"string","maxLength":255,"description":"The name of the commitment.\n"},"type":{"$ref":"#/components/schemas/GetCommitmentResponseType","description":"The type of the commitment.\n"},"prepaymentType":{"$ref":"#/components/schemas/PrepaymentTypeEnum"},"description":{"type":"string","maxLength":500,"description":"The description about this commitment.\n"},"priority":{"type":"integer","description":"The priority of the commitment.\nIt defines the evaluation order of the commitment. The lower the number, the higher the priority.\nWhen two commitments have the same priority, the one with the earlier created time will be evaluated first.\n"},"customFields":{"$ref":"#/components/schemas/CommitmentCustomFields"},"accountReceivableAccountingCode":{"type":"string","maxLength":200,"description":"The accounting code on the Commitment object for customers"},"adjustmentLiabilityAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n**Note**: This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n**Note**: This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"cancellationPolicy":{"$ref":"#/components/schemas/CancellationPolicy"},"cancellationEffectiveDate":{"type":"string","format":"date","description":"The effective date when the commitment cancellation takes effect."},"contractAssetAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n**Note**: This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n**Note**: This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n**Note**: This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"deferredRevenueAccountingCode":{"type":"string","maxLength":100,"description":"The deferred revenue accounting code for the commitment."},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":true,"description":"The flag to exclude commitment related booking items from revenue accounting.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude commitment related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"eligibleAccountConditions":{"$ref":"#/components/schemas/EligibleAccountCondition"},"eligibleChargeConditions":{"$ref":"#/components/schemas/EligibleChargeCondition"},"periodAlignmentOption":{"$ref":"#/components/schemas/PeriodAlignmentOptionEnum","default":"CommitmentStartDate"},"specificPeriodAlignmentDate":{"type":"string","format":"date","description":"The specific date for period alignment, required if `periodAlignmentOption` is `SpecificDate`."},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the commitment is allocation eligible in revenue recognition.\n\n**Note**: This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during revenue recognition.\n\n**Note**: This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"recognizedRevenueAccountingCode":{"type":"string","maxLength":100,"description":"The recognized revenue accounting code for the commitment."},"revenueAmortizationMethod":{"type":"string","maxLength":200,"description":"This field is used to dictate the type of revenue amortization method.\n"},"revenueRecognitionRule":{"type":"string","description":"The revenue recognition rule for the commitment."},"revenueRecognitionTiming":{"type":"string","maxLength":200,"description":"This field is used to dictate the type of revenue recognition timing.\n"},"unbilledReceivablesAccountingCode":{"type":"string","maxLength":100,"description":"The accounting code on the commitment for customers.\n\n**Note**: This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled.\n"},"taxable":{"type":"boolean","description":"Determines whether the true-up invoice of a commitment is taxable. If the value is `true`, the tax code and tax mode are required. \n"},"taxCode":{"type":"string","description":"Identifies which tax rules and tax rates to apply to the corresponding billing document.\n"},"taxMode":{"$ref":"#/components/schemas/GetCommitmentResponseTaxMode","description":"The tax mode that determines whether tax is included or exclueded from the billing document.\n"}},"title":"GetCommitmentResponse"},"GetCommitmentsResponse":{"type":"object","properties":{"total":{"type":"integer","description":"Total number of commitments returned."},"page":{"type":"integer","description":"Current page number."},"page_size":{"type":"integer","description":"Number of commitments per page."},"commitments":{"type":"array","items":{"$ref":"#/components/schemas/GetCommitmentResponse"},"description":"List of commitments.\n"}},"title":"GetCommitmentsResponse"},"PeriodStatusResponse":{"type":"string","enum":["Active","Cancelled","Evaluated","ActiveWithDrawdown","CancelledPendingEvaluation"],"description":"Status of the commitment period.\n","title":"PeriodStatusResponse"},"CommitmentPeriod":{"type":"object","properties":{"id":{"type":"string","description":"ID of the commitment period."},"commitmentId":{"type":"string","description":"ID of the commitment."},"commitmentNumber":{"type":"string","description":"The number of the commitment."},"version":{"type":"integer","description":"Version of the commitment period."},"type":{"$ref":"#/components/schemas/CommitmentTypeEnum"},"priority":{"type":"integer","description":"Priority of the commitment."},"currency":{"type":"string","description":"Currency of the commitment."},"isProrated":{"type":"boolean","description":"Indicates if the period is prorated."},"amount":{"type":"number","format":"double","description":"The total amount of the commitment within the current period."},"balance":{"type":"number","format":"double","description":"The balance amount to be spent within the current period."},"trueUpAmount":{"type":["number","null"],"format":"double","description":"Total true-up amount for this commitment period. It will be null if it is a prepaid commitment or if it is not evaluated yet. This will be a non-negative number."},"expiredAmount":{"type":["number","null"],"format":"double","description":"Total expired amount for this commitment period. It will be null if it is a postpaid commitment or if the period is not evaluated yet. This will be a non-negative number."},"billedTotalSpending":{"type":"number","format":"double","description":"Sum of charge contribution amount."},"status":{"$ref":"#/components/schemas/PeriodStatusResponse"},"startDate":{"type":"string","format":"date","description":"The start date of the commitment period."},"endDate":{"type":"string","format":"date","description":"The end date of the commitment period."}},"title":"CommitmentPeriod"},"ListCommitmentPeriodsResponse":{"type":"object","properties":{"total":{"type":"integer","description":"Total number of periods available for the given commitment/Total commitments for given account."},"page":{"type":"integer","description":"The current page number."},"pageSize":{"type":"integer","description":"The number of results returned per page."},"periods":{"type":"array","items":{"$ref":"#/components/schemas/CommitmentPeriod"},"description":"A list of commitment period objects."}},"title":"ListCommitmentPeriodsResponse"},"PeriodBalanceStatus":{"type":"string","enum":["ACTIVE","EVALUATED","ACTIVE_WITH_DRAWDOWN","CANCELLED_PENDING_EVALUATION"],"description":"A subset of the Period status. Periods in the 'Cancelled' status will not be included.\n","title":"PeriodBalanceStatus"},"PeriodBalance":{"type":"object","properties":{"id":{"type":"string","description":"ID of the commitment period."},"committedAmount":{"type":"number","format":"double","description":"The total amount of the commitment within the current period."},"balance":{"type":"number","format":"double","description":"The balance amount to be spent within the current period."},"totalSpend":{"type":"number","format":"double","description":"The total amount spent within the current period."},"trueUpAmount":{"type":["number","null"],"format":"double","description":"Total true-up amount for this commitment period. It will be null if it is a prepaid commitment or if it is not evaluated yet. This will be a non-negative number."},"expiredAmount":{"type":["number","null"],"format":"double","description":"Total expired amount for this commitment period. It will be null if it is a postpaid commitment or if the period is not evaluated yet. This will be a non-negative number."},"billedTotalSpending":{"type":"number","format":"double","description":"Sum of charge contribution amount."},"status":{"$ref":"#/components/schemas/PeriodBalanceStatus"},"startDate":{"type":"string","format":"date","description":"Ths start date of the commitment period."},"endDate":{"type":"string","format":"date","description":"The end date of the commitment period."}},"title":"PeriodBalance"},"GetCommitmentBalanceResponse":{"type":"object","properties":{"total":{"type":"integer","description":"Total commitments for the given account."},"page":{"type":"integer","description":"The current page number."},"pageSize":{"type":"integer","description":"The number of results returned per page."},"periods":{"type":"array","items":{"$ref":"#/components/schemas/PeriodBalance"},"description":"A list of commitment period objects."}},"title":"GetCommitmentBalanceResponse"},"CommitmentScheduleStatus":{"type":"string","enum":["Active","Cancelled","Evaluated","CancelledPendingEvaluation"],"description":"Status of the commitment schedule.\n","title":"CommitmentScheduleStatus"},"ListCommitmentScheduleOutput":{"type":"object","properties":{"id":{"type":"string","description":"ID of the commitment schedule."},"commitmentId":{"type":"string","description":"ID of the commitment."},"commitmentNumber":{"type":"string","description":"The number of the commitment."},"version":{"type":"integer","description":"Version of the commitment schedule."},"startDate":{"type":"string","format":"date","description":"Ths start date of the commitment schedule."},"endDate":{"type":"string","format":"date","description":"The end date of the commitment schedule."},"prepaymentDefinition":{"$ref":"#/components/schemas/PrepaymentDefinition"},"totalAmount":{"type":"number","format":"double","description":"The total amount of the commitment schedule."},"amount":{"type":"number","format":"double","description":"The non-prorated actual amount of the commitment schedule."},"amountBase":{"$ref":"#/components/schemas/AmountBaseEnum","default":"CommitmentPeriod"},"periodType":{"$ref":"#/components/schemas/PeriodTypeEnum","default":"Month"},"specificPeriodLength":{"type":"integer","description":"The specific length of the period, required if `periodType` is `SpecificMonths`."},"status":{"$ref":"#/components/schemas/CommitmentScheduleStatus"}},"title":"ListCommitmentScheduleOutput"},"GetCommitmentScheduleResponse":{"type":"object","properties":{"schedules":{"type":"array","items":{"$ref":"#/components/schemas/ListCommitmentScheduleOutput"},"description":"A list of commitment schedule objects."},"total":{"type":"integer","description":"Total number of schedules available for the given commitment."},"page":{"type":"integer","description":"The current page number."},"pageSize":{"type":"integer","description":"The number of results returned per page."}},"title":"GetCommitmentScheduleResponse"},"ExpirePrepaymentResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"ExpirePrepaymentResponseReasonsItems"},"ExpirePrepaymentResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ExpirePrepaymentResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"id":{"type":"string","description":"The ID of the prepayment."},"prepaymentDefinitionId":{"type":"string","description":"The ID of the prepayment definition associated with the prepayment."},"commitmentId":{"type":"string","description":"The ID of the commitment associated with the prepayment."},"commitmentNumber":{"type":"string","description":"The number of the commitment associated with the prepayment."},"commitmentScheduleId":{"type":"string","description":"The ID of the commitment schedule associated with the prepayment."},"commitmentPeriodId":{"type":"string","description":"The ID of the commitment period associated with the prepayment."},"amount":{"type":"number","format":"double","description":"The original amount of the prepayment."},"billedAmount":{"type":"number","format":"double","description":"The total billed amount of the prepayment."},"spendAmount":{"type":"number","format":"double","description":"The total spend amount of the prepayment."},"balance":{"type":"number","format":"double","description":"The remaining balance of the prepayment."},"overageAmount":{"type":"number","format":"double","description":"The overage amount of the prepayment."},"currency":{"type":"string","description":"The currency of the prepayment amounts."}},"title":"ExpirePrepaymentResponse"},"Change":{"type":"object","properties":{"oldValue":{"description":"The previous value of the field before the change."},"newValue":{"description":"The new value of the field after the change."}},"description":"A changed field and its corresponding old and new values.","title":"Change"},"CommitmentPeriodChanges":{"type":"object","properties":{"periodId":{"type":"string","description":"The ID of the commitment period."},"version":{"type":"integer","description":"The version number of the commitment period."},"changes":{"$ref":"#/components/schemas/Change"}},"description":"The change of the value of the field.","title":"CommitmentPeriodChanges"},"CommitmentScheduleChanges":{"type":"object","properties":{"scheduleId":{"type":"string","description":"The ID of the commitment schedule."},"version":{"type":"integer","description":"The version number of the commitment schedule."},"changes":{"$ref":"#/components/schemas/Change"},"periodChanges":{"type":"array","items":{"$ref":"#/components/schemas/CommitmentPeriodChanges"},"description":"The changes in the period of the schedule in this order."}},"description":"The change of the value of the field.","title":"CommitmentScheduleChanges"},"CommitmentOrderChangeOutput":{"type":"object","properties":{"commitmentNumber":{"type":"string","description":"The unique identifier of the commitment."},"orderNumber":{"type":"string","description":"The number of the order that changed the commitment."},"version":{"type":"integer","description":"The commitment version by this order."},"changeDate":{"type":"string","format":"date-time","description":"The date and time when the change was made."},"changes":{"$ref":"#/components/schemas/Change","description":"The changes in the commitment in this order."},"scheduleChanges":{"type":"array","items":{"$ref":"#/components/schemas/CommitmentScheduleChanges"},"description":"The changes in the schedules of the commitment in this order."}},"title":"CommitmentOrderChangeOutput"},"ListCommitmentHistoricalChangesResponse":{"type":"object","properties":{"commitmentChanges":{"type":"array","items":{"$ref":"#/components/schemas/CommitmentOrderChangeOutput"},"description":"A list of commitment change objects."},"total":{"type":"integer","description":"Total number of commitments in current page."},"page":{"type":"integer","description":"Current page number."},"pageSize":{"type":"integer","description":"Number of commitments per page."}},"title":"ListCommitmentHistoricalChangesResponse"},"DestinationValidityPeriodInfo":{"type":"object","properties":{"endDate":{"type":"string","format":"date","description":"End date of the destination validity period."},"startDate":{"type":"string","format":"date","description":"Start date of the destination validity period."}},"required":["endDate","startDate"],"description":"Date range of the destination validity period to which the funds are transferred. It should be close to the source validity period.","title":"DestinationValidityPeriodInfo"},"SourceValidityPeriodInfo":{"type":"object","properties":{"endDate":{"type":"string","format":"date","description":"End date of the source validity period."},"startDate":{"type":"string","format":"date","description":"Start date of the source validity period."}},"required":["endDate","startDate"],"description":"Date range of the source validity period from which the funds are transferred. It should be close to the destination validity period.","title":"SourceValidityPeriodInfo"},"POSTReverseRolloverRequestType":{"type":"object","properties":{"destinationValidityPeriod":{"$ref":"#/components/schemas/DestinationValidityPeriodInfo"},"prepaymentUom":{"type":"string","description":"Specifies the units of measure for prepayment charge. Units of measure are configured in the web-based UI. Your values depend on your configuration in **Billing Settings**.\n\n**Values**: a valid unit of measure\n"},"sourceValidityPeriod":{"$ref":"#/components/schemas/SourceValidityPeriodInfo"},"subscriptionNumber":{"type":"string","maxLength":100,"description":"The unique identifier number of the subscription."}},"required":["destinationValidityPeriod","prepaymentUom","sourceValidityPeriod","subscriptionNumber"],"title":"POSTReverseRolloverRequestType"},"POSTReverseRolloverResponseType":{"type":"object","properties":{"message":{"type":"string","description":"Indicates the result."},"reverseRolloverFundCount":{"type":"integer","format":"int64","description":"Indicates the number of funds which have been rolled back."},"success":{"type":"boolean","description":"Indicates whether the call succeeded."}},"title":"POSTReverseRolloverResponseType"},"POSTTriggerRolloverRequestType":{"type":"object","properties":{"destinationValidityPeriod":{"$ref":"#/components/schemas/DestinationValidityPeriodInfo"},"prepaymentUom":{"type":"string","description":"Specifies the units of measure for prepayment charge. Units of measure are configured in the web-based UI. Your values depend on your configuration in **Billing Settings**.\n\n**Values**: a valid unit of measure\n"},"priority":{"type":"string","description":"Specifies the priority of rolled over fund in case of drawdown.\n\n**Values**: ApplyLast / ApplyFirst\n"},"sourceValidityPeriod":{"$ref":"#/components/schemas/SourceValidityPeriodInfo"},"subscriptionNumber":{"type":"string","maxLength":100,"description":"The unique identifier number of the subscription."}},"required":["destinationValidityPeriod","prepaymentUom","priority","sourceValidityPeriod","subscriptionNumber"],"title":"POSTTriggerRolloverRequestType"},"POSTTriggerRolloverResponseType":{"type":"object","properties":{"message":{"type":"string","description":"Indicates the result."},"rolloverFundCount":{"type":"integer","format":"int64","description":"Indicates the number of funds which have been rolled over."},"success":{"type":"boolean","description":"Indicates whether the call succeeded."}},"title":"POSTTriggerRolloverResponseType"},"PostDepleteFundRequestTypeFundIds":{"type":"object","properties":{},"description":"The unique ID of the fund. A maximum of 100 fund Ids are allowed.\n","title":"PostDepleteFundRequestTypeFundIds"},"POSTDepleteFundRequestType":{"type":"object","properties":{"fundIds":{"$ref":"#/components/schemas/PostDepleteFundRequestTypeFundIds","description":"The unique ID of the fund. A maximum of 100 fund Ids are allowed.\n"}},"title":"POSTDepleteFundRequestType"},"PostDepleteFundResponseTypeFundIdsItems":{"type":"object","properties":{"fundId":{"type":"string","description":"The unique ID of the fund.\n"},"status":{"type":"string","description":"The status of the fund expiry.\n"},"message":{"type":"string","description":"The detail information of the fund expiry response.\n"}},"title":"PostDepleteFundResponseTypeFundIdsItems"},"POSTDepleteFundResponseType":{"type":"object","properties":{"fundIds":{"type":"array","items":{"$ref":"#/components/schemas/PostDepleteFundResponseTypeFundIdsItems"}}},"title":"POSTDepleteFundResponseType"},"POSTUsageResponseType":{"type":"object","properties":{"checkImportStatus":{"type":"string","description":"The path for checking the status of the import.\n\nThe possible status values at this path are `Pending`, `Processing`, `Completed`, `Canceled`, and `Failed`. Only `Completed` indicates that the file contents were imported successfully.\n"},"size":{"type":"integer","format":"int64","description":"The size of the uploaded file in bytes.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"POSTUsageResponseType"},"GetUsageRateDetailWrapperData":{"type":"object","properties":{"amountWithoutTax":{"type":"number","format":"double","description":"The amount of the invoice item without tax.\n"},"chargeNumber":{"type":"string","description":"The unique number of the product rate plan charge associated with the invoice item.\n"},"invoiceId":{"type":"string","description":"The unique ID of the invoice.\n"},"invoiceItemId":{"type":"string","description":"The unique ID of the invoice item.\n"},"invoiceNumber":{"type":"string","description":"The unique number of the invoice.\n"},"listPrice":{"type":"string","description":"The list price of the product rate plan charge associated with the invoice item. For example, if the product rate plan charge uses the tiered charge model, its list price could be: \n\nTier / 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\n"},"quantity":{"type":"number","format":"double","description":"The quantity of the invoice item.\n"},"rateDetail":{"type":"string","description":"The rate detail of the invoice item. It shows how the total amount is calculated. For example, if the product rate plan charge uses the tiered charge model, the rate detail for the associated invoice item could be: \n\nTier 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. \n\nThe rate detail retrieved from this REST API operation 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"},"servicePeriod":{"type":"string","description":"The service period of the invoice item.\n"},"uom":{"type":"string","description":"The unit of measurement of the invoice item.\n"}},"description":"Contains usage rate details for the invoice item as specified in the request.\n","title":"GetUsageRateDetailWrapperData"},"GETUsageRateDetailWrapper":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetUsageRateDetailWrapperData","description":"Contains usage rate details for the invoice item as specified in the request.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully. \n\n\nReturns `false` if the request was not processed successfully. \n"}},"title":"GETUsageRateDetailWrapper"},"ProxyCreateUsage":{"type":"object","properties":{"AccountId":{"type":"string","description":" The ID of the account associated with the usage data. This field is only required if no value is specified for the `AccountNumber` field.\n**Character limit**: 32 **Values**: a valid account ID. "},"AccountNumber":{"type":"string","description":" The number of the account associated with the usage data. This field is only required if no value is specified for the `AccountId` field.\n**Character limit**: 50 **Values**: a valid account number. "},"ChargeId":{"type":"string","description":" The OrginalId of the rate plan charge related to the usage record, e.g., `2c9081a03c63c94c013c6873357a0117` **Character limit**: 32 **Values**: a valid rate plan charge OriginalID. "},"ChargeNumber":{"type":"string","maxLength":50,"description":"A unique number for the rate plan charge related to the usage record. For example, C-00000007.\n"},"Description":{"type":"string","maxLength":200,"description":"A description of the usage record.\n"},"EndDateTime":{"type":"string","format":"date-time","description":" The end date and time of a range of time when usage is tracked. Use this field for reporting; this field doesn't affect usage calculation.\n**Character limit**: 29 **Values**: a valid date and time value. "},"ProductRatePlanChargeNumber":{"type":"string","description":"Specify a product rate plan charge number so that you can charge your customer with a dynamic usage charge for the corresponding uploaded usage record.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `146` or higher. Otherwise, an error occurs. \n\n**Note**: This field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/dynamic-usage-charges\" target=\"_blank\">Dynamic Usage Charges</a> feature enabled.\n"},"Quantity":{"type":"number","format":"double","description":"Indicates the number of units used.\n\n**Character limit**: 16 \n\n**Values**: A valid decimal amount.  \n"},"StartDateTime":{"type":"string","format":"date-time","description":" The start date and time of a range of time when usage is tracked. Zuora uses this field value to determine the usage date. Unlike the `EndDateTime`, the `StartDateTime` field does affect usage calculation.\n**Character limit**: 29 **Values**: a valid date and time value "},"SubscriptionId":{"type":"string","maxLength":32,"description":"The original ID of the subscription that contains the fees related to the usage data. \n\nThe ID of a subscription might change when you create amendments to the subscription. It is good practice to use the unique subscription number that you can specify in the `SubscriptionNumber` field.\n"},"SubscriptionNumber":{"type":"string","maxLength":100,"description":"The unique identifier number of the subscription that contains the fees related to the usage data.\n\nIt is good practice to use this field when creating usage records.\n"},"UOM":{"type":"string","description":"Specifies the units to measure usage. Units of measure are configured in the web-based UI. Your values depend on your configuration in **Billing Settings**. **Character limit**: **Values**: a valid unit of measure \n"},"UniqueKey":{"type":"string","description":"The unique external reference of the usage record. See [Upload usage record with unique key](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage#Upload_usage_record_with_unique_key) for information on how to use this field.\n**Note**: This field is only available if you set the `X-Zuora-WSDL-Version` request header to `114` or later. This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a> feature or the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled. See [Upload usage record with unique key](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Prepaid_balance_transactions#Upload_usage_record_with_unique_key) for more information.\n"}},"required":["Quantity","StartDateTime","UOM"],"description":"Container for custom fields of a Usage object.\n","title":"ProxyCreateUsage"},"ProxyCreateOrModifyResponse":{"type":"object","properties":{"Id":{"type":"string"},"Success":{"type":"boolean"}},"title":"ProxyCreateOrModifyResponse"},"ProxyGetUsage":{"type":"object","properties":{"AccountId":{"type":"string","description":" The ID of the account associated with the usage data. This field is required if no value is specified for the `AccountNumber` field.\n**Character limit**: 32 **Values**: a valid account ID "},"AccountNumber":{"type":"string","description":" The number of the account associated with the usage data. This field is required if no value is specified for the `AccountId` field.\n**Character limit**: 50 **Values**: a valid account number "},"ChargeId":{"type":"string","description":" The OrginalId of the rate plan charge related to the usage record, e.g., `2c9081a03c63c94c013c6873357a0117` **Character limit**: 32 **Values**: a valid rate plan charge OriginalID "},"CreatedById":{"type":"string","description":" The user ID of the person who uploaded the usage records.\n**Character limit**: 32 **Values**: automatically generated "},"CreatedDate":{"type":"string","format":"date-time","description":" The date when the usage was generated.\n**Character limit**: 29 **Values**: automatically generated "},"Description":{"type":"string","description":"A description of the usage record.\n"},"EndDateTime":{"type":"string","format":"date-time","description":" The end date and time of a range of time when usage is tracked. Use this field for reporting; this field doesn't affect usage calculation.\n**Character limit**: 29 **Values**: a valid date and time value "},"Id":{"type":"string","description":"Object identifier."},"ProductRatePlanChargeNumber":{"type":"string","description":"Specify a product rate plan charge number so that you can charge your customer with a dynamic usage charge for the corresponding uploaded usage record.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `146` or higher. Otherwise, an error occurs. \n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Dynamic_Usage_Charges\" target=\"_blank\">Dynamic Usage Charges</a> feature enabled.\n"},"Quantity":{"type":"number","format":"double","description":"Indicates the number of units used.\n\n**Character limit**: 16 \n\n**Values**: A valid decimal amount.\n"},"RbeStatus":{"type":"string","description":" Indicates if the rating and billing engine (RBE) processed usage data for an invoice.\n**Character limit**: 9 **Values**: automatically generated to be one of the following values: `Importing`, `Pending`, `Processed` "},"SourceType":{"type":"string","description":" Indicates if the usage records were imported from the web-based UI or the API.\n**Character limit**: 6 **Values**: automatically generated to be one of the following values: `API`, `Import` "},"StartDateTime":{"type":"string","format":"date-time","description":" The start date and time of a range of time when usage is tracked. Zuora uses this field value to determine the usage date. Unlike the `EndDateTime`, the `StartDateTime` field does affect usage calculation.\n**Character limit**: 29 **Values**: a valid date and time value "},"SubscriptionId":{"type":"string","description":" The original ID of the subscription that contains the fees related to the usage data.\n**Character limit**: 32 **Values**: a valid subscription ID "},"SubscriptionNumber":{"type":"string","description":"The unique identifier number of the subscription that contains the fees related to the usage data.\n"},"UOM":{"type":"string","description":" Specifies the units to measure usage. Units of measure are configured in the web-based UI. Your values depend on your configuration in **Billing Settings**.\n**Character limit**: **Values**: a valid unit of measure "},"UpdatedById":{"type":"string","description":" The ID of the user who last updated the usage upload.\n**Character limit**: 32 **Values**: automatically generated "},"UpdatedDate":{"type":"string","format":"date-time","description":" The date when the usage upload was last updated.\n**Character limit**: 29 **Values**: automatically generated "}},"description":"Container for custom fields of a Usage object.\n","title":"ProxyGetUsage"},"ProxyNoDataResponseRecordsItems":{"type":"object","properties":{},"title":"ProxyNoDataResponseRecordsItems"},"ProxyNoDataResponse":{"type":"object","properties":{"done":{"type":"boolean"},"records":{"type":"array","items":{"$ref":"#/components/schemas/ProxyNoDataResponseRecordsItems"}},"size":{"type":"integer"}},"title":"ProxyNoDataResponse"},"ProxyModifyUsage":{"type":"object","properties":{"EndDateTime":{"type":"string","format":"date-time","description":" The end date and time of a range of time when usage is tracked. Use this field for reporting; this field doesn't affect usage calculation.\n**Character limit**: 29 **Values**: a valid date and time value "},"Quantity":{"type":"number","format":"double","description":"Indicates the number of units used.\n\n**Character limit**: 16 \n\n**Values**: A valid decimal amount.\n"},"RbeStatus":{"type":"string","description":" Indicates if the rating and billing engine (RBE) processed usage data for an invoice.\n**Character limit**: 9 **Values**: automatically generated to be one of the following values: `Importing`, `Pending`, `Processed` "},"StartDateTime":{"type":"string","format":"date-time","description":" The start date and time of a range of time when usage is tracked. Zuora uses this field value to determine the usage date. Unlike the `EndDateTime`, the `StartDateTime` field does affect usage calculation.\n**Character limit**: 29 **Values**: a valid date and time value "},"UOM":{"type":"string","description":" Specifies the units to measure usage. Units of measure are configured in the web-based UI. Your values depend on your configuration in **Billing Settings**.\n**Character limit**: **Values**: a valid unit of measure "}},"description":"Container for custom fields of a Usage object.\n","title":"ProxyModifyUsage"},"ProxyDeleteResponse":{"type":"object","properties":{"id":{"type":"string"},"success":{"type":"boolean"}},"title":"ProxyDeleteResponse"},"MetersRunMeterIdVersionPostParametersVersion":{"type":"string","enum":["0.0.1"],"title":"MetersRunMeterIdVersionPostParametersVersion"},"RunMeterVersionRequestSourceOptionsItems":{"type":"object","properties":{"processorId":{"type":"string","description":"Source operator ID. Optional if there's only one local file source in the meter."},"localFileId":{"type":"string","description":"Internal ID of uploaded file."}},"title":"RunMeterVersionRequestSourceOptionsItems"},"RunMeterVersionRequestEventStoreSourceOptionsItems":{"type":"object","properties":{"processorId":{"type":"string","description":"Source operator ID."},"startDate":{"type":"string","format":"date","description":"Start date of event store to query from (e.g., 2025-01-01)."},"endDate":{"type":"string","format":"date","description":"End date of event store to query to (e.g., 2025-02-01)."}},"required":["processorId"],"title":"RunMeterVersionRequestEventStoreSourceOptionsItems"},"RuntimeSourceConfigSourceType":{"type":"string","enum":["LOCAL_FS","S3","SNOWFLAKE","EVENT_STORE"],"description":"Type of the source. Must match the actual source type in the meter definition.","title":"RuntimeSourceConfigSourceType"},"LocalFsOptions":{"type":"object","properties":{"fileId":{"type":"integer","format":"int64","description":"The ID of the file uploaded through the \"Upload a file\" operation, to be used as the source."}},"required":["fileId"],"description":"Configuration options for LOCAL_FS sources (previously uploaded files).","title":"LocalFsOptions"},"S3OptionsFileFormat":{"type":"string","enum":["CSV","EXCEL","PARQUET","JSON","XML","AVRO"],"description":"Format of the input files.","title":"S3OptionsFileFormat"},"S3Options":{"type":"object","properties":{"connectionName":{"type":"string","description":"Name of the S3 connection to use."},"connectionVersion":{"type":"integer","description":"Version of the S3 connection."},"paths":{"type":"array","items":{"type":"string"},"description":"List of S3 paths to read from."},"fileFormat":{"$ref":"#/components/schemas/S3OptionsFileFormat","description":"Format of the input files."},"incremental":{"type":"boolean","description":"Enables incremental mode to continuously monitor for new files. When `false`, files are processed only once."},"monitorInterval":{"type":"integer","description":"Interval in milliseconds for checking for new files when incremental mode is enabled. This field is applicable only when `incremental` is set to `true`."},"retentionTime":{"type":"integer","format":"int64","description":"Retention time in milliseconds for processed files."},"batchSize":{"type":"integer","description":"Batch size for reading files."}},"required":["paths","fileFormat"],"description":"Configuration options for S3 sources (paths, connection).","title":"S3Options"},"SnowflakeOptionsUnloadFileFormat":{"type":"string","enum":["CSV","EXCEL","PARQUET","JSON","XML","AVRO"],"description":"File format for UNLOAD operation.","title":"SnowflakeOptionsUnloadFileFormat"},"SnowflakeOptionsQueryParameters":{"type":"object","properties":{},"description":"Parameter values for parameterized queries (:paramName syntax).","title":"SnowflakeOptionsQueryParameters"},"SnowflakeOptions":{"type":"object","properties":{"database":{"type":"string","description":"Snowflake database name."},"schema":{"type":"string","description":"Snowflake schema name."},"table":{"type":"string","description":"Snowflake table name."},"query":{"type":"string","description":"Custom SQL query to execute (SELECT only)."},"warehouse":{"type":"string","description":"Snowflake warehouse to use."},"role":{"type":"string","description":"Snowflake role to use."},"unloadFileFormat":{"$ref":"#/components/schemas/SnowflakeOptionsUnloadFileFormat","description":"File format for UNLOAD operation."},"queryParameters":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/SnowflakeOptionsQueryParameters"},"description":"Parameter values for parameterized queries (:paramName syntax)."}},"description":"Configuration options for Snowflake sources.","title":"SnowflakeOptions"},"EventStoreOptions":{"type":"object","properties":{"storeId":{"type":"string","description":"Event store ID to read from."},"startDate":{"type":"string","description":"Start date for partition pruning (YYYY-MM-DD)."},"endDate":{"type":"string","description":"End date for partition pruning (YYYY-MM-DD)."},"query":{"type":"string","description":"Ad-hoc SQL query for Event Store (SELECT only, mutually exclusive with date range)."}},"required":["storeId"],"description":"Configuration options for EventStore sources (date range).","title":"EventStoreOptions"},"RuntimeSourceConfig":{"type":"object","properties":{"processorId":{"type":"string","description":"ID of the source processor in the meter definition to apply this configuration to. Required when the meter has multiple sources of the same type."},"sourceType":{"$ref":"#/components/schemas/RuntimeSourceConfigSourceType","description":"Type of the source. Must match the actual source type in the meter definition."},"localFs":{"$ref":"#/components/schemas/LocalFsOptions","description":"Configuration options for LOCAL_FS sources (previously uploaded files)."},"s3":{"$ref":"#/components/schemas/S3Options","description":"Configuration options for S3 sources (paths, connection)."},"snowflake":{"$ref":"#/components/schemas/SnowflakeOptions","description":"Configuration options for Snowflake sources."},"eventStore":{"$ref":"#/components/schemas/EventStoreOptions","description":"Configuration options for EventStore sources (date range)."}},"required":["sourceType"],"title":"RuntimeSourceConfig"},"RunMeterVersionRequest":{"type":"object","properties":{"sourceOptions":{"type":"array","items":{"$ref":"#/components/schemas/RunMeterVersionRequestSourceOptionsItems"},"description":"Settings for meter to run with local file."},"eventStoreSourceOptions":{"type":"array","items":{"$ref":"#/components/schemas/RunMeterVersionRequestEventStoreSourceOptionsItems"},"description":"Settings for meter to run with event store."},"runtimeSourceConfigs":{"type":"array","items":{"$ref":"#/components/schemas/RuntimeSourceConfig"},"description":"Runtime source configurations to override source settings at execution time. Applies to both NORMAL and DEBUG runs."},"uniqueKey":{"type":"string","description":"Optional idempotency key for this meter run. The `uniqueKey` is scoped to the meter (not tenant-wide).\n\nWhen you trigger a meter run and the operation times out, you can safely retry the same request using the same `uniqueKey`.\nIf the original request already created a run, Zuora Mediation returns a 400 error indicating a duplicate `uniqueKey` and does not start a new run.\nThis behavior ensures idempotency and prevents duplicate meter executions.\n"}},"description":"The request payload to run a specific version of a meter.","title":"RunMeterVersionRequest"},"RunMeterVersionResponseData":{"type":"object","properties":{"id":{"type":"string","description":"Internal run history ID, unique within tenant."},"sessionId":{"type":"string","description":"Corresponding session ID of this run."},"jobId":{"type":"string","description":"Corresponding job ID of this run."},"meterId":{"type":"integer","description":"Internal meter ID."},"version":{"type":"string","description":"Version of the meter."},"revision":{"type":"integer","description":"Revision number of this version run."},"runType":{"type":"integer","minimum":1,"maximum":2,"description":"The run type:\n- 1. NORMAL\n- 2. DEBUG\n"},"runTypeDescription":{"type":"string","description":"Description of the run type."},"startTime":{"type":"string","format":"date-time","description":"Start time of this run."},"endTime":{"type":["string","null"],"format":"date-time","description":"End time of this run."},"status":{"type":"integer","minimum":1,"maximum":13,"description":"The run status:\n- 1. NEVER_RUN\n- 2. TESTING\n- 3. TESTING_FAILED\n- 4. TESTING_PASSED\n- 5. RUNNING\n- 6. PAUSED\n- 7. COMPLETED\n- 8. FAILED\n- 9. CANCELED\n- 10. INITIALIZING\n- 11. USAGE_PUSHING\n- 12. PUSH_COMPLETED\n- 13. CONSUME_COMPLETED\n"},"statusDescription":{"type":"string","description":"Description of the run status."},"canExportSummary":{"type":"boolean","description":"Whether the summary is ready to export."},"hasLineageEnabled":{"type":"boolean","description":"Whether lineage feature is enabled on this run."}},"title":"RunMeterVersionResponseData"},"ErrorDetail":{"type":"object","properties":{},"description":"Additional structured details about the error, such as validation issues or parameter-specific information.","title":"ErrorDetail"},"Error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code identifying the failure type."},"message":{"type":"string","description":"Human-readable description of the error that provides more context about what went wrong."},"detail":{"$ref":"#/components/schemas/ErrorDetail","description":"Additional structured details about the error, such as validation issues or parameter-specific information."}},"title":"Error"},"RunMeterVersionResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the API request has succeeded."},"data":{"$ref":"#/components/schemas/RunMeterVersionResponseData"},"previousPage":{"type":"string","description":"Cursor or URL for the previous page of audit records, if available. Used for backward pagination."},"nextPage":{"type":"string","description":"Cursor or URL for the next page of audit records, if available. Used for forward pagination."},"error":{"$ref":"#/components/schemas/Error","description":"Container for error information returned by the API when the request fails."}},"description":"Response payload after triggering a meter run.","title":"RunMeterVersionResponse"},"SourceOptionTestDataItems":{"type":"object","properties":{"Amount":{"type":"number","format":"double","description":"Amount"},"Quantity":{"type":"number","format":"double","description":"Quantity"},"UsageDate":{"type":"string","format":"date","description":"UsageDate"},"CostCenter":{"type":"string","description":"CostCenter"},"CustomerId":{"type":"string","description":"CustomerId"},"UsageIdentifier":{"type":"string","description":"UsageIdentifier"}},"title":"SourceOptionTestDataItems"},"SourceOption":{"type":"object","properties":{"processorId":{"type":"string","description":"The source operator ID. Optional if there is only one local file source."},"sampleFileId":{"type":"integer","description":"Test meter with event definition sample file, specified by the ID."},"localFileId":{"type":"integer","description":"Test meter with uploaded file, specified by the ID."},"testData":{"type":"array","items":{"$ref":"#/components/schemas/SourceOptionTestDataItems"},"description":"Test meter with manually input data."},"saveTestData":{"type":"boolean","description":"Whether to save the test data."},"testDataName":{"type":"string","description":"The name of the test data."},"testDataId":{"type":"integer","description":"Test meter with previously saved test data, specified by the ID."}},"title":"SourceOption"},"EventStoreSourceOption":{"type":"object","properties":{"processorId":{"type":"string","description":"The source operator ID for event store."},"startDate":{"type":"string","format":"date","description":"The start date of the event store to query from, e.g., 2025-01-01."},"endDate":{"type":"string","format":"date","description":"The end date of the event store to query to, e.g., 2025-02-01."}},"title":"EventStoreSourceOption"},"TestSpecificMeterRequest":{"type":"object","properties":{"sourceOptions":{"type":"array","items":{"$ref":"#/components/schemas/SourceOption"}},"eventStoreSourceOptions":{"type":"array","items":{"$ref":"#/components/schemas/EventStoreSourceOption"}}},"title":"TestSpecificMeterRequest"},"TestSpecificMeterResponse":{"type":"object","properties":{"id":{"type":"string","description":"Internal run history ID, unique within tenant."},"sessionId":{"type":"string","description":"The corresponding session ID of this run."},"jobId":{"type":"string","description":"The corresponding job ID of this run."},"meterId":{"type":"integer","description":"The meter ID."},"version":{"type":"string","description":"The version of the meter."},"revision":{"type":"integer","description":"The revision of the meter version when it runs."},"runType":{"type":"integer","minimum":1,"maximum":2,"description":"The run type of the meter (1 for NORMAL, 2 for DEBUG)."},"runTypeDescription":{"type":"string","description":"Description of the run type."},"startTime":{"type":"string","description":"The start time of the run in ISO 8601 format."},"endTime":{"type":"string","description":"The end time of the run in ISO 8601 format."},"runStatus":{"type":"string","description":"The status of the run (e.g., NEVER_RUN, TESTING, FAILED)."},"runStatusDescription":{"type":"string","description":"Description of the run status."},"canExportSummary":{"type":"boolean","description":"Whether the summary is ready to export."},"hasLineageEnabled":{"type":"boolean","description":"Whether lineage is enabled for this run."}},"title":"TestSpecificMeterResponse"},"MediationErrorResponseData":{"type":"object","properties":{"id":{"type":"string","description":"The instance ID."},"sessionId":{"type":"string","description":"The session ID of the meter instance."},"jobId":{"type":"string","description":"The job ID of the meter instance."},"meterId":{"type":"integer","description":"The ID of the meter."},"version":{"type":"string","description":"The meter version."},"revision":{"type":"string","description":"The meter revision."},"runType":{"type":"integer","description":"The run type of the instance."},"runTypeDescription":{"type":"string","description":"The description of the run type."},"startTime":{"type":"string","description":"The start time of the instance."},"status":{"type":"integer","description":"The job status of the instance."},"statusDescription":{"type":"string","description":"The status description of the instance."},"canExportSummary":{"type":"boolean","description":"Whether the instance can export summary information (internal usage)."},"hasLineageEnabled":{"type":"boolean","description":"Whether lineage is enabled for the meter (internal usage)."}},"description":"Detailed response information for successful requests (e.g., instance info, job details).","title":"MediationErrorResponseData"},"MediationErrorResponseError":{"type":"object","properties":{"code":{"type":"string","description":"The error reason code (e.g., \"70002006\" for authorization errors)."},"message":{"type":"string","description":"A human-readable description of the error."}},"description":"Contains error details when the request fails.","title":"MediationErrorResponseError"},"MediationErrorResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the API request has succeeded or not."},"data":{"$ref":"#/components/schemas/MediationErrorResponseData","description":"Detailed response information for successful requests (e.g., instance info, job details)."},"error":{"$ref":"#/components/schemas/MediationErrorResponseError","description":"Contains error details when the request fails."}},"title":"MediationErrorResponse"},"CreateSpecificMeterSummaryRequest":{"type":"object","properties":{"runType":{"type":"string","description":"Specifies the type of run."},"sessionIds":{"type":"array","items":{"type":"string"},"description":"A list of specific run IDs to export."},"operatorIds":{"type":"array","items":{"type":"string"},"description":"A list of operator IDs to filter by."},"groupBy":{"type":"array","items":{"type":"string"},"description":"Specifies the fields used to group the summary results."},"queryFromTime":{"type":"string","description":"The minimum timestamp for the data to be exported."},"queryToTime":{"type":"string","description":"The maximum timestamp for the data to be exported."}},"title":"CreateSpecificMeterSummaryRequest"},"SummaryFilters":{"type":"object","properties":{"runType":{"type":"string","description":"Specifies the type of run."},"sessionIds":{"type":"array","items":{"type":"string"},"description":"A list of specific run IDs to export."},"operatorIds":{"type":"array","items":{"type":"string"},"description":"A list of operator IDs to filter by."},"groupBy":{"type":"array","items":{"type":"string"},"description":"Specifies the fields used to group the summary results."},"queryFromTime":{"type":"string","description":"The minimum timestamp for the data to be exported."},"queryToTime":{"type":"string","description":"The maximum timestamp for the data to be exported."}},"title":"SummaryFilters"},"SummaryGroupByResultDimensions":{"type":"object","properties":{},"description":"Stores extra or custom fields not defined in the main schema.","title":"SummaryGroupByResultDimensions"},"SummaryGroupByResult":{"type":"object","properties":{"dimensions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/SummaryGroupByResultDimensions"},"description":"Stores dimension details or attributes used in grouping or filtering."},"output":{"type":"integer","format":"int64","description":"Represents the total number of output records or items."},"totalErrorCount":{"type":"integer","format":"int64","description":"Indicates the total count of errors in the response."}},"title":"SummaryGroupByResult"},"SummaryResponse":{"type":"object","properties":{"requestId":{"type":"string","description":"Unique identifier for the API request."},"requestTime":{"type":"string","description":"Timestamp indicating when the request was made."},"query":{"$ref":"#/components/schemas/SummaryFilters","description":"Defines the filters or parameters applied to the summary query."},"output":{"type":"array","items":{"$ref":"#/components/schemas/SummaryGroupByResult"},"description":"Lists grouped summary results based on the specified fields.\n"}},"title":"SummaryResponse"},"CreateSpecificMeterSummaryResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"$ref":"#/components/schemas/SummaryResponse","description":"List of audit trail entries for the specified meter. Each object represents a recorded event or operation associated with the meter.\n"},"previousPage":{"type":"string","description":"Cursor or URL for the previous page of audit records, if available. Used for backward pagination."},"nextPage":{"type":"string","description":"Cursor or URL for the next page of audit records, if available. Used for forward pagination."},"error":{"$ref":"#/components/schemas/Error","description":"Container for error information returned by the API when the request fails."}},"title":"CreateSpecificMeterSummaryResponse"},"RunStatusResponseData":{"type":"object","properties":{"runStatus":{"type":"integer","minimum":1,"maximum":13,"description":"The run status of the current version. Possible values:\n- 1: NEVER_RUN\n- 2: TESTING\n- 3: TESTING_FAILED\n- 4: TESTING_PASSED\n- 5: RUNNING\n- 6: PAUSED\n- 7: COMPLETED\n- 8: FAILED\n- 9: CANCELED\n- 10: INITIALIZING\n- 11: USAGE_PUSHING\n- 12: PUSH_COMPLETED\n- 13: CONSUME_COMPLETED\n"},"runStatusDescription":{"type":"string","description":"Description of the run status."}},"title":"RunStatusResponseData"},"RunStatusResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"$ref":"#/components/schemas/RunStatusResponseData"}},"title":"RunStatusResponse"},"UsageFieldMapping":{"type":"object","properties":{"name":{"type":"string","description":"Field name"},"field":{"type":"string","description":"Mapped field name"},"required":{"type":"boolean","description":"Indicates if the field is required"},"dateFormat":{"type":"string","description":"Date format if applicable"}},"title":"UsageFieldMapping"},"MeterTypeDefinition":{"type":"object","properties":{"sourceType":{"type":"string","description":"Source type, e.g., ZUORA_BULK_API or LOCAL_FILE"},"schemaId":{"type":"string","description":"Event definition ID"},"fieldMappings":{"type":"array","items":{"$ref":"#/components/schemas/UsageFieldMapping"},"description":"Field mappings from event definition to Zuora usage"},"configs":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Configurations for accumulated meters (e.g., SUM)"}},"title":"MeterTypeDefinition"},"TransitionNode":{"type":"object","properties":{"id":{"type":"string","description":"Operator ID"}},"title":"TransitionNode"},"MeterTask":{"type":"object","properties":{"id":{"type":"string","description":"Operator ID"},"name":{"type":"string","description":"Operator name"},"nodeType":{"type":"string","description":"Operator node type (e.g., SOURCE, PROCESSOR, SINK)"},"operatorType":{"type":"string","description":"Operator type (e.g., KAFKA, S3, LOCAL_FILE)"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Operator metadata"},"predecessors":{"type":"array","items":{"$ref":"#/components/schemas/TransitionNode"},"description":"Predecessor operators"},"extraConfig":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Extra configurations for the operator"},"setting":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Runtime settings for the operator"}},"title":"MeterTask"},"MeterVersionExportResult":{"type":"object","properties":{"version":{"type":"string","description":"The initial version of meter, default is 0.0.1"},"versionDetail":{"type":"string","description":"Detail description of this version"},"metadata":{"type":"string","description":"Version metadata, UI stores meter position data into this field"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/MeterTask"},"description":"List of tasks for this version"}},"title":"MeterVersionExportResult"},"EventSchemaExportResultSchemaType":{"type":"string","enum":["object"],"description":"Schema base type","title":"EventSchemaExportResultSchemaType"},"EventSchemaExportResultSchema":{"type":"object","properties":{"description":{"type":"string","description":"Schema description"},"type":{"$ref":"#/components/schemas/EventSchemaExportResultSchemaType","description":"Schema base type"},"title":{"type":"string","description":"Schema title"},"required":{"type":"array","items":{"type":"string"},"description":"Required fields in the event"},"properties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/EventSchemaExportResultSchema"},"description":"Field definitions in the schema"}},"description":"JSON schema","title":"EventSchemaExportResultSchema"},"EventSchemaExportResult":{"type":"object","properties":{"name":{"type":"string","description":"Event definition name"},"type":{"type":"integer","minimum":1,"maximum":2,"description":"Schema type (1 = simple, 2 = advanced)"},"schema":{"$ref":"#/components/schemas/EventSchemaExportResultSchema","description":"JSON schema"}},"description":"Schema details of an event associated with a meter","title":"EventSchemaExportResult"},"ExportMeterResponse":{"type":"object","properties":{"name":{"type":"string","description":"Meter name"},"description":{"type":"string","description":"Meter description"},"type":{"type":"string","description":"Meter type (e.g., CUSTOM, STANDARD)"},"typeDefinition":{"$ref":"#/components/schemas/MeterTypeDefinition","description":"The meter definition for non-CUSTOM meters"},"latestVersion":{"type":"string","description":"The latest version of the meter"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/MeterVersionExportResult"},"description":"List of all versions for the meter"},"schemas":{"type":"array","items":{"$ref":"#/components/schemas/EventSchemaExportResult"},"description":"List of event schemas used by this meter"}},"title":"ExportMeterResponse"},"ImportMeterResponseData":{"type":"object","properties":{"id":{"type":"string","description":"Internal meter ID, unique within tenant"},"name":{"type":"string","description":"Meter name"},"description":{"type":"string","description":"Meter description"},"type":{"type":"string","description":"Meter type"},"typeDefinition":{"$ref":"#/components/schemas/MeterTypeDefinition","description":"The meter definition for non-CUSTOM meters"},"latestVersion":{"type":"string","description":"The latest version of the meter"},"globalId":{"type":"string","description":"Meter global ID used for ingestion via Streaming API"},"uniqueUploadUrl":{"type":"string","description":"The upload URL for usage ingestion"},"activeVersionRunStatus":{"type":"integer","description":"Run status of the active version"},"activeVersionRunStatusDescription":{"type":"string","description":"Description of active version run status"},"latestVersionRunStatus":{"type":"integer","description":"Run status of the latest version"},"latestVersionRunStatusDescription":{"type":"string","description":"Description of latest version run status"},"createdAt":{"type":"string","description":"Timestamp of meter creation"},"updatedAt":{"type":"string","description":"Timestamp of meter update"}},"title":"ImportMeterResponseData"},"ImportMeterResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ImportMeterResponseData"}},"title":"ImportMeterResponse"},"CreateFileResponse":{"type":"object","properties":{"id":{"type":"string","description":"Internal file ID"},"name":{"type":"string","description":"File name"},"resourceId":{"type":"string","description":"Resource ID of the file"},"format":{"type":"string","description":"File format (CSV, Excel, JSON)"},"hasHeader":{"type":"boolean","description":"Indicates if the file has a header"},"firstRow":{"type":"integer","description":"The first row number in the CSV file"},"delimiter":{"type":"string","description":"Delimiter used in the CSV file"},"sheet":{"type":"string","description":"The sheet name in the Excel file"},"dataRange":{"type":"string","description":"Data range in the Excel file"},"lines":{"type":"integer","description":"Number of lines in the file"},"createdAt":{"type":"string","format":"date-time","description":"Creation timestamp"},"updatedAt":{"type":"string","format":"date-time","description":"Last update timestamp"}},"title":"CreateFileResponse"},"StreamingEvent":{"type":"object","properties":{"CustomerId":{"type":"string","description":"Unique identifier for the customer."},"UsageIdentifier":{"type":"string","description":"Identifier for the usage type."},"UsageDate":{"type":"string","format":"date-time","description":"Date and time when the usage occurred."},"Quantity":{"type":"number","format":"double","description":"Quantity of usage."}},"required":["CustomerId","UsageIdentifier","UsageDate","Quantity"],"description":"A usage event to be ingested into Zuora Mediation.","title":"StreamingEvent"},"DataIngestionIngestUsageEventsRequest1":{"type":"array","items":{"$ref":"#/components/schemas/StreamingEvent"},"title":"DataIngestionIngestUsageEventsRequest1"},"Data_Ingestion_ingestUsageEvents_Request":{"oneOf":[{"$ref":"#/components/schemas/StreamingEvent"},{"$ref":"#/components/schemas/DataIngestionIngestUsageEventsRequest1"}],"title":"Data Ingestion_ingestUsageEvents_Request"},"StreamingIngestionSuccessResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the ingestion was successful."},"message":{"type":"string","description":"Response message with details."}},"description":"Successful ingestion response.","title":"StreamingIngestionSuccessResponse"},"StreamingIngestionAuthError":{"type":"object","properties":{"message":{"type":"string","description":"Error message describing the problem."}},"required":["message"],"description":"Response for authentication, authorization, or other system-level errors.","title":"StreamingIngestionAuthError"},"MetersMeterIdAuditTrailEntriesGetParametersExportType":{"type":"string","enum":["SAMPLE","ERROR"],"title":"MetersMeterIdAuditTrailEntriesGetParametersExportType"},"MetersMeterIdAuditTrailEntriesGetParametersRunType":{"type":"string","enum":["DEBUG","NORMAL"],"title":"MetersMeterIdAuditTrailEntriesGetParametersRunType"},"MeterAuditRecordPayload":{"type":"object","properties":{},"title":"MeterAuditRecordPayload"},"MeterAuditRecordOperatorType":{"type":"string","enum":["ACCUMULATOR","AGGREGATOR","BILLING_RATING","CLICKHOUSE_SINK","CLICKHOUSE_SOURCE","DEDUPLICATE","EVENT_STORE_SINK","EVENT_STORE_SOURCE","FILTER","HTTP","KAFKA_SINK","KAFKA_SOURCE","LOCAL_FS_SOURCE","MAP","NATS_SINK","NATS_SOURCE","PARTITION","RATING","S3_SINK","S3_SOURCE","SAMPLE_COMMITTABLE_SINK","SCRIPT_ACCUMULATOR","SCRIPT_AGGREGATOR","SCRIPT_FILTER","SCRIPT_MAP","SNOWFLAKE_ERROR","SNOWFLAKE_SINK","SNOWFLAKE_SOURCE","STREAMING_API_SOURCE","SUBSCRIPTION_LOOKUP","TSTORE_SINK","USAGE_RECORD_SINK","USER_INPUT_SOURCE"],"description":"Type of processor used. Examples: MAP, ENRICHMENT","title":"MeterAuditRecordOperatorType"},"MeterAuditRecord":{"type":"object","properties":{"errorTime":{"type":"string","description":"Timestamp when an error occurred during the meter operation or event processing, if applicable."},"timestamp":{"type":"string","description":"Timestamp when the audit entry was created, representing the exact time the event or operation was recorded."},"errorCode":{"type":"string","description":"Unique identifier for the specific error type, used to categorize and troubleshoot issues. Present only when an error has occurred."},"errorMessage":{"type":"string","description":"Descriptive message explaining the cause or nature of the error. Useful for debugging or logging."},"payload":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/MeterAuditRecordPayload"},"description":"Raw event data or metadata associated with the audited action, including event content, request body, or contextual details."},"eventId":{"type":"string","description":"Unique identifier assigned to the audited event. Enables correlation of events across systems for traceability."},"traceId":{"type":"string","description":"Unique identifier used to trace the end-to-end flow of an event through the system. Useful for debugging distributed processes."},"operatorType":{"$ref":"#/components/schemas/MeterAuditRecordOperatorType","description":"Type of processor used. Examples: MAP, ENRICHMENT"},"operatorName":{"type":"string","description":"Name of the processor used in ther meter configuration."},"operatorId":{"type":"string","description":"ID of the processor used in the meter configuration."}},"title":"MeterAuditRecord"},"GetAuditTrailResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"type":"array","items":{"$ref":"#/components/schemas/MeterAuditRecord"},"description":"List of audit trail entries for the specified meter. Each object represents a recorded event or operation associated with the meter.\n"},"previousPage":{"type":"string","description":"Cursor for the previous page of audit records, if available. Used for backward pagination."},"nextPage":{"type":"string","description":"Cursor for the next page of audit records, if available. Used for forward pagination."},"error":{"$ref":"#/components/schemas/Error","description":"Container for error information returned by the API when the request fails."}},"title":"GetAuditTrailResponse"},"MetersMeterIdAuditTrailExportGetParametersExportType":{"type":"string","enum":["SAMPLE","ERROR"],"title":"MetersMeterIdAuditTrailExportGetParametersExportType"},"GetAuditTrailExportResponseDataJobsItems":{"type":"object","properties":{},"description":"Audit trail export job.","title":"GetAuditTrailExportResponseDataJobsItems"},"GetAuditTrailExportResponseData":{"type":"object","properties":{"page":{"type":"integer","description":"Current page number."},"pageSize":{"type":"integer","description":"Number of jobs returned on this page."},"jobs":{"type":"array","items":{"$ref":"#/components/schemas/GetAuditTrailExportResponseDataJobsItems"},"description":"List of export jobs for the specified meter."}},"description":"Container for pagination metadata and the list of audit trail export jobs\nfor the specified meter.\n","title":"GetAuditTrailExportResponseData"},"GetAuditTrailExportResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"$ref":"#/components/schemas/GetAuditTrailExportResponseData","description":"Container for pagination metadata and the list of audit trail export jobs\nfor the specified meter.\n"},"previousPage":{"type":["string","null"],"description":"Cursor for the previous page of export jobs, if available. Used for backward pagination."},"nextPage":{"type":["string","null"],"description":"Cursor for the next page of export jobs, if available. Used for forward pagination."},"error":{"$ref":"#/components/schemas/Error","description":"Container for error information returned by the API when the request fails."}},"title":"GetAuditTrailExportResponse"},"MetersMeterIdAuditTrailExportPostParametersExportType":{"type":"string","enum":["SAMPLE","ERROR"],"title":"MetersMeterIdAuditTrailExportPostParametersExportType"},"MetersMeterIdAuditTrailExportPostParametersRunType":{"type":"string","enum":["DEBUG","NORMAL"],"title":"MetersMeterIdAuditTrailExportPostParametersRunType"},"MetersMeterIdAuditTrailExportPostParametersFormat":{"type":"string","enum":["csv","parquet","avro"],"default":"csv","title":"MetersMeterIdAuditTrailExportPostParametersFormat"},"MetersMeterIdAuditTrailExportPostParametersCompression":{"type":"string","enum":["none","gzip","lz4","zstd"],"default":"none","title":"MetersMeterIdAuditTrailExportPostParametersCompression"},"ExportAuditTrailResponseData":{"type":"object","properties":{},"description":"Stores extra or custom fields that are not defined in the main schema.","title":"ExportAuditTrailResponseData"},"ExportAuditTrailResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ExportAuditTrailResponseData"},"description":"List of audit trail entries for the specified meter. Each object represents a recorded event or operation associated with the meter.\n"},"previousPage":{"type":"string","description":"Cursor for the previous page of audit records, if available. Used for backward pagination."},"nextPage":{"type":"string","description":"Cursor for the next page of audit records, if available. Used for forward pagination."},"error":{"$ref":"#/components/schemas/Error","description":"Container for error information returned by the API when the request fails."}},"title":"ExportAuditTrailResponse"},"GetPresignedURLResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"type":"string","description":"The pre-signed URL to download a specific export file.\n"},"previousPage":{"type":"string","description":"Cursor for the previous page, if available. Used for backward pagination."},"nextPage":{"type":"string","description":"Cursor for the next page, if available. Used for forward pagination."},"error":{"$ref":"#/components/schemas/Error","description":"Container for error information returned by the API when the request fails."}},"title":"GetPresignedURLResponse"},"MetersMeterIdPrefetchAuditGetParametersTriggerType":{"type":"string","enum":["MANUAL","AUTOMATIC"],"title":"MetersMeterIdPrefetchAuditGetParametersTriggerType"},"MetersMeterIdPrefetchAuditGetParametersStatusSchemaItems":{"type":"string","enum":["RUNNING","FINISHED","FAILED","CANCELED"],"title":"MetersMeterIdPrefetchAuditGetParametersStatusSchemaItems"},"PrefetchAuditRecordStatus":{"type":"string","enum":["RUNNING","CANCELED","FINISHED","FAILED"],"description":"Job status.","title":"PrefetchAuditRecordStatus"},"PrefetchAuditRecordTriggerType":{"type":"string","enum":["MANUAL","AUTOMATIC"],"description":"Trigger type for the job.","title":"PrefetchAuditRecordTriggerType"},"PrefetchAuditRecord":{"type":"object","properties":{"jobId":{"type":"integer","format":"int64","description":"Prefetch job ID."},"operatorId":{"type":"string","description":"Processor (operator) ID."},"definitionId":{"type":"integer","format":"int64","description":"Prefetch definition ID."},"duration":{"type":"integer","format":"int64","description":"Job duration in milliseconds."},"completedTime":{"type":"string","format":"date-time","description":"Timestamp when the job completed."},"startTime":{"type":"string","format":"date-time","description":"Timestamp when the job started."},"dataFreshness":{"type":["string","null"],"format":"date-time","description":"Data freshness timestamp, if available."},"status":{"$ref":"#/components/schemas/PrefetchAuditRecordStatus","description":"Job status."},"triggerType":{"$ref":"#/components/schemas/PrefetchAuditRecordTriggerType","description":"Trigger type for the job."},"error":{"type":["string","null"],"description":"Error message if the job failed; otherwise null."}},"description":"A single prefetch job audit record.","title":"PrefetchAuditRecord"},"GetPrefetchAuditResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"type":"array","items":{"$ref":"#/components/schemas/PrefetchAuditRecord"},"description":"List of prefetch audit records for the specified processor."},"previousPage":{"type":"string","description":"Cursor or URL for the previous page of audit records, if available. Used for backward pagination."},"nextPage":{"type":"string","description":"Cursor or URL for the next page of audit records, if available. Used for forward pagination."},"error":{"$ref":"#/components/schemas/Error","description":"Container for error information returned by the API when the request fails."}},"title":"GetPrefetchAuditResponse"},"BulkDeleteEventResponseData":{"type":"object","properties":{"queryId":{"type":"string","description":"Query ID to track the bulk delete operation."}},"title":"BulkDeleteEventResponseData"},"BulkDeleteEventResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the bulk delete request was successful."},"data":{"$ref":"#/components/schemas/BulkDeleteEventResponseData"}},"title":"BulkDeleteEventResponse"},"LatestEventStoreJobResponseData":{"type":"object","properties":{"id":{"type":"string","description":"Internal event store query history ID."},"eventStoreId":{"type":"string","description":"Related event store ID."},"queryId":{"type":"string","description":"Query ID."},"status":{"type":"integer","minimum":5,"maximum":8,"description":"Run status of the job. Possible values:\n- 5: RUNNING\n- 6: PAUSED\n- 7: COMPLETED\n- 8: FAILED\n"},"operationType":{"type":"string","description":"Operation type."},"inputRecordCount":{"type":"integer","description":"Input record count of this query."},"uniqueRecordCount":{"type":"integer","description":"Unique record count of this query."},"modifiedRecordCount":{"type":"integer","description":"Modified record count of this query."},"createdAt":{"type":"string","description":"Created timestamp of the query history."},"updatedAt":{"type":"string","description":"Updated timestamp of the query history."}},"title":"LatestEventStoreJobResponseData"},"LatestEventStoreJobResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"$ref":"#/components/schemas/LatestEventStoreJobResponseData"}},"title":"LatestEventStoreJobResponse"},"TruncateEventStoreResponseData":{"type":"object","properties":{"queryId":{"type":"string","description":"ID of the submitted truncation job. Use this to poll job status."}},"description":"Truncation job metadata.","title":"TruncateEventStoreResponseData"},"TruncateEventStoreResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"$ref":"#/components/schemas/TruncateEventStoreResponseData","description":"Truncation job metadata."},"previousPage":{"type":["string","null"],"description":"Cursor for the previous page, if available. Used for backward pagination."},"nextPage":{"type":["string","null"],"description":"Cursor for the next page, if available. Used for forward pagination."}},"title":"TruncateEventStoreResponse"},"MediationTruncateErrorResponseError":{"type":"object","properties":{"code":{"type":"string","description":"Application-specific error code."},"message":{"type":"string","description":"Human-readable error message."}},"title":"MediationTruncateErrorResponseError"},"MediationTruncateErrorResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"previousPage":{"type":["string","null"],"description":"Cursor or URL for the previous page of results, if available.\nUsed for backward pagination.\n"},"nextPage":{"type":["string","null"],"description":"Cursor or URL for the next page of results, if available.\nUsed for forward pagination.\n"},"error":{"$ref":"#/components/schemas/MediationTruncateErrorResponseError"}},"title":"MediationTruncateErrorResponse"},"SubmitEventStoreQueryRequest":{"type":"object","properties":{"query":{"type":"string","description":"The query clause."}},"required":["query"],"title":"SubmitEventStoreQueryRequest"},"SubmitEventStoreQueryResponseData":{"type":"object","properties":{"queryId":{"type":"string","description":"Unique identifier of the submitted event store query. Use this ID to poll for status and fetch results."}},"description":"Contains metadata and result details for the submitted event store query.","title":"SubmitEventStoreQueryResponseData"},"SubmitEventStoreQueryResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"$ref":"#/components/schemas/SubmitEventStoreQueryResponseData","description":"Contains metadata and result details for the submitted event store query."},"previousPage":{"type":"string","description":"Cursor or URL for the previous page of audit records, if available. Used for backward pagination."},"nextPage":{"type":"string","description":"Cursor or URL for the next page of audit records, if available. Used for forward pagination."},"error":{"$ref":"#/components/schemas/Error","description":"Container for error information returned by the API when the request fails."}},"title":"SubmitEventStoreQueryResponse"},"QueryResultColumnsItemsLogicalType":{"type":"object","properties":{"type":{"type":"string","description":"The data type of the column (for example, VARCHAR, BIGINT, DECIMAL)."},"nullable":{"type":"boolean","description":"Indicates whether the column can contain null values."},"length":{"type":"integer","description":"For string types, the maximum length."},"precision":{"type":"integer","description":"For DECIMAL types, the total number of digits."},"scale":{"type":"integer","description":"For DECIMAL types, the number of digits to the right of the decimal point."}},"description":"Logical type information for the column.","title":"QueryResultColumnsItemsLogicalType"},"QueryResultColumnsItems":{"type":"object","properties":{"name":{"type":"string","description":"The column name."},"logicalType":{"$ref":"#/components/schemas/QueryResultColumnsItemsLogicalType","description":"Logical type information for the column."},"comment":{"type":["string","null"],"description":"Optional comment or description for the column."}},"title":"QueryResultColumnsItems"},"QueryResultRowsItems":{"type":"object","properties":{"kind":{"type":"string","description":"The kind of change for the row (for example, INSERT)."},"fields":{"type":"array","items":{"description":"Any type"},"description":"The ordered list of field values for this row. Each position corresponds to a column in the columns array."}},"title":"QueryResultRowsItems"},"QueryResult":{"type":"object","properties":{"isFailed":{"type":"boolean","description":"A boolean flag indicating whether the query execution has failed."},"totalCount":{"type":"integer","description":"The total number of rows that match the conditions defined in the executed query."},"columns":{"type":"array","items":{"$ref":"#/components/schemas/QueryResultColumnsItems"},"description":"A list containing details of each column in the store."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/QueryResultRowsItems"},"description":"The list of rows returned by the query."},"message":{"type":"string","description":"Error message displayed for a failed query execution."},"ready":{"type":"boolean","description":"A boolean flag indicating whether the query execution has completed."}},"title":"QueryResult"},"GetQueryResultsResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"data":{"$ref":"#/components/schemas/QueryResult","description":"Contains the query result object, including the query ID, execution status flags, total row count, column metadata, and the list of rows returned by the query."}},"title":"GetQueryResultsResponse"},"GetAdjustmentsBySubscriptionNumberResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetAdjustmentsBySubscriptionNumberResponseTypeReasonsItems"},"GETAdjustmentByIdResponseType":{"type":"object","properties":{"adjustmentId":{"type":"string","format":"UUID","description":"The system generated delivery adjustment ID.\n"},"adjustmentNumber":{"type":"string","description":"The system generated delivery adjustment Number.\n"},"amount":{"type":"number","format":"double","description":"The amount of the delivery adjustment.\n"},"billingDate":{"type":"string","format":"date","description":"The billing date is same as the delivery date of the delivery adjustment, in `yyyy-mm-dd` format.\n"},"chargeNumber":{"type":"string","description":"The charge number in the subscription for which the delivery adjustment is created.\n"},"creditMemoNumber":{"type":"string","description":"The Credit Memo generated for the delivery adjustment.\n"},"debitMemoNumber":{"type":"string","description":"The Debit Memo generated to write off the Credit Memo for the delivery adjustment.    \n**Note**: This field is only available when the delivery adjustment is in `Cancelled` status.\n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability. \n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"deliveryDate":{"type":"string","format":"date","description":"The delivery adjustment date, in `yyyy-mm-dd` format.\n"},"deliveryDay":{"type":"string","format":"string","description":"The delivery adjustment day of the week.\n"},"reason":{"type":"string","description":"The reason for the delivery adjustment.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"status":{"type":"string","description":"The status of the delivery adjustment will be `Billed` or `Cancelled`.               \n"},"subscriptionNumber":{"type":"string","description":"The subscription number for which the delivery adjustment is created.\n"}},"title":"GETAdjustmentByIdResponseType"},"GETAdjustmentsBySubscriptionNumberResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetAdjustmentsBySubscriptionNumberResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/GETAdjustmentByIdResponseType"},"description":"Container for all the delivery adjustments of a subscription.\n"}},"title":"GETAdjustmentsBySubscriptionNumberResponseType"},"PostCreateBillingAdjustmentRequestTypeExclusionItems":{"type":"object","properties":{"chargeNumbers":{"type":"array","items":{"type":"string"},"description":"The charge numbers to be excluded from delivery adjustment on the specified delivery date.\n"},"deliveryDate":{"type":"string","format":"date","description":"The date on which the delivery adjustment has to be excluded, in `yyyy-mm-dd` format.\n"}},"title":"PostCreateBillingAdjustmentRequestTypeExclusionItems"},"PostCreateBillingAdjustmentRequestTypeType":{"type":"string","enum":["DeliveryCredit"],"description":"The type of delivery adjustment.\n","title":"PostCreateBillingAdjustmentRequestTypeType"},"PostCreateBillingAdjustmentRequestTypeCreditMemoCustomFields":{"type":"object","properties":{},"description":"Custom fields of the Credit Memo object.  The name of each custom field has the form <code>*customField*__c</code>.  Custom field names are case sensitive. See <a href=\"https://docs.zuora.com/en/zuora-platform/extensibility/custom-fields/custom-field-overview\" target=\"_blank\">Manage Custom Fields</a> for more information.\n","title":"PostCreateBillingAdjustmentRequestTypeCreditMemoCustomFields"},"POSTCreateBillingAdjustmentRequestType":{"type":"object","properties":{"accountNumber":{"type":"string","description":"The account number for which the delivery adjustment is created.  \n\n**Note**: \n  - The account number should be of the subscription owner.\n  - Only one of accountNumber or subscriptionNumber should be provided.\n"},"chargeNumbers":{"type":"array","items":{"type":"string"},"description":"An optional container to specify charge numbers in the subscription for which the delivery adjustment needs to be created.\n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the delivery adjustment, in `yyyy-mm-dd` format. This is inclusive.\n"},"exclusion":{"type":"array","items":{"$ref":"#/components/schemas/PostCreateBillingAdjustmentRequestTypeExclusionItems"},"description":"The charge numbers and the corresponding dates for exclusion of delivery adjustment.\n"},"reason":{"type":"string","description":"The reason for the delivery adjustment.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"startDate":{"type":"string","format":"date","description":"The start date of the delivery adjustment, in `yyyy-mm-dd` format. This is inclusive.\n"},"subscriptionNumber":{"type":"string","description":"The subscription number for which the delivery adjustment is created.\n\n**Note**: Only one of accountNumber or subscriptionNumber should be provided.\n"},"type":{"$ref":"#/components/schemas/PostCreateBillingAdjustmentRequestTypeType","description":"The type of delivery adjustment.\n"},"creditMemoCustomFields":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PostCreateBillingAdjustmentRequestTypeCreditMemoCustomFields"},"description":"Container for custom fields of the Credit Memo object. When creating a delivery adjustment, Zuora generates a credit memo automatically. You can use this field to specify the custom fields of the credit memo associated with this adjustment.\n"}},"required":["endDate","startDate"],"title":"POSTCreateBillingAdjustmentRequestType"},"GetAdjustmentsResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetAdjustmentsResponseTypeReasonsItems"},"POSTAdjustmentResponseType":{"type":"object","properties":{"adjustmentId":{"type":"string","format":"UUID","description":"The system generated delivery adjustment ID.\n"},"adjustmentNumber":{"type":"string","format":"string","description":"The system generated delivery adjustment number.\n"},"amount":{"type":"number","format":"double","description":"The amount of the delivery adjustment.\n"},"billingDate":{"type":"string","format":"date","description":"The billing date is same as the delivery date of the delivery adjustment, in `yyyy-mm-dd` format.\n"},"chargeNumber":{"type":"string","description":"The charge number in the subscription for which the delivery adjustment is created.\n"},"creditMemoNumber":{"type":"string","description":"The Credit Memo generated for the delivery adjustment.\n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"deliveryDate":{"type":"string","format":"date","description":"The delivery adjustment date, in `yyyy-mm-dd` format.\n"},"deliveryDay":{"type":"string","description":"The delivery adjustment day of the week.\n"},"eligible":{"type":"boolean","description":"The eligible flag is set as true for a successfully created delivery adjustment.\n"},"reason":{"type":"string","description":"The reason for the delivery adjustment.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"status":{"type":"string","description":"The status of the delivery adjustment will be `Billed` or `Cancelled`.\n"},"subscriptionNumber":{"type":"string","description":"The subscription number for which the delivery adjustment is created.\n"}},"title":"POSTAdjustmentResponseType"},"POSTIneligibleAdjustmentResponseType":{"type":"object","properties":{"adjustmentId":{"type":"string","format":"UUID","description":"The system generated delivery adjustment ID.\n"},"adjustmentNumber":{"type":"string","format":"string","description":"The system generated delivery adjustment number.\n"},"amount":{"type":"number","format":"double","description":"The amount of the delivery adjustment.\n"},"billingDate":{"type":"string","format":"date","description":"The billing date of the delivery adjustment.\n"},"chargeNumber":{"type":"string","description":"The charge number in the subscription for which the delivery adjustment is created.\n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"deliveryDate":{"type":"string","format":"date","description":"The delivery adjustment date, in `yyyy-mm-dd` format.\n"},"deliveryDay":{"type":"string","format":"string","description":"The delivery adjustment day of the week.\n"},"eligible":{"type":"boolean","description":"The eligible flag is set as false for an unsuccessful delivery adjustment.\n"},"errorMessage":{"type":"string","description":"The reason due to which a delivery adjustment is not eligible on the given date. \n"},"reason":{"type":"string","description":"The reason for the delivery adjustment.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"status":{"type":"string","description":"The status of the delivery adjustment.\n"},"subscriptionNumber":{"type":"string","description":"The subscription number for which the delivery adjustment is created.\n"}},"title":"POSTIneligibleAdjustmentResponseType"},"GETAdjustmentsResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetAdjustmentsResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/POSTAdjustmentResponseType"},"description":"Container for delivery adjustments of a subscription.\n"},"ineligibleAdjustments":{"type":"array","items":{"$ref":"#/components/schemas/POSTIneligibleAdjustmentResponseType"},"description":"Container for ineligible delivery adjustments of a subscription.\n"},"totalAmount":{"type":"number","format":"double","description":"The total amount of all the delivery adjustments.\n"},"totalNumberOfDeliveries":{"type":"number","format":"double","description":"The total number of all delivery adjustments.\n"}},"title":"GETAdjustmentsResponseType"},"PostPreviewBillingAdjustmentRequestTypeType":{"type":"string","enum":["DeliveryCredit"],"description":"The type of delivery adjustment.\n","title":"PostPreviewBillingAdjustmentRequestTypeType"},"POSTPreviewBillingAdjustmentRequestType":{"type":"object","properties":{"accountNumber":{"type":"string","description":"The account number for which the delivery adjustment is created.\n**Note**: \n  - The account number should be of the subscription owner.\n  - Only one of accountNumber or subscriptionNumber should be provided.\n"},"chargeNumbers":{"type":"array","items":{"type":"string"},"description":"An optional container to specify charge numbers in the subscription for which the delivery adjustment needs to be created.\n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the delivery adjustment, in `yyyy-mm-dd` format. This is inclusive.\n"},"reason":{"type":"string","description":"The reason for the delivery adjustment.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"startDate":{"type":"string","format":"date","description":"The start date of the delivery adjustment, in `yyyy-mm-dd` format. This is inclusive.\n"},"subscriptionNumber":{"type":"string","description":"The subscription number for which the delivery adjustment is created.\n\n**Note**: Only one of accountNumber or subscriptionNumber should be provided.\n"},"type":{"$ref":"#/components/schemas/PostPreviewBillingAdjustmentRequestTypeType","description":"The type of delivery adjustment.\n"}},"required":["endDate","startDate"],"title":"POSTPreviewBillingAdjustmentRequestType"},"CancelBillingAdjustmentRequestDebitMemoCustomFields":{"type":"object","properties":{},"description":"Custom fields of the Debit Memo object.  The name of each custom field has the form <code>*customField*__c</code>.  Custom field names are case sensitive. See <a href=\"https://docs.zuora.com/en/zuora-platform/extensibility/custom-fields/custom-field-overview\" target=\"_blank\">Manage Custom Fields</a> for more information.\n","title":"CancelBillingAdjustmentRequestDebitMemoCustomFields"},"CancelBillingAdjustmentRequest":{"type":"object","properties":{"debitMemoCustomFields":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CancelBillingAdjustmentRequestDebitMemoCustomFields"},"description":"Container for custom fields of the Debit Memo object. When cancelling a delivery adjustment, Zuora generates a debit memo automatically. You can use this field to specify the custom fields of the debit memo associated with the cancellation of adjustment.\n"}},"description":"Information about `CancelBillingAdjustment`.\n","title":"CancelBillingAdjustmentRequest"},"GetCancelAdjustmentResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"GetCancelAdjustmentResponseTypeReasonsItems"},"GETCancelAdjustmentResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetCancelAdjustmentResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"debitMemoNumber":{"type":"string","description":"The Debit Memo generated to write off the Credit Memo for the delivery adjustment.       \n"}},"title":"GETCancelAdjustmentResponseType"},"V1BillingDocumentsGetParametersStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error"],"title":"V1BillingDocumentsGetParametersStatus"},"GetBillingDocumentsResponseTypeDocumentType":{"type":"string","enum":["Invoice","CreditMemo","DebitMemo"],"description":"The type of the billing document.\n","title":"GetBillingDocumentsResponseTypeDocumentType"},"GetBillingDocumentsResponseTypeStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error"],"description":"The current status of the billing document.\n","title":"GetBillingDocumentsResponseTypeStatus"},"GETBillingDocumentsResponseType":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","description":"The ID of the customer account associated with the billing document."},"amount":{"type":"number","format":"double","description":"The total amount of the billing document.\n"},"balance":{"type":"number","format":"double","description":"The balance of the billing document.\n"},"documentDate":{"type":"string","format":"date","description":"The date of the billing document. The date can be the invoice date for invoices, credit memo date for credit memos, or debit memo date for debit memos.\n"},"documentNumber":{"type":"string","description":"The number of the billing document.\n"},"documentType":{"$ref":"#/components/schemas/GetBillingDocumentsResponseTypeDocumentType","description":"The type of the billing document.\n"},"id":{"type":"string","description":"The ID of the billing document.\n"},"status":{"$ref":"#/components/schemas/GetBillingDocumentsResponseTypeStatus","description":"The current status of the billing document.\n"},"currency":{"type":["string","null"],"description":"The currency of the billing document.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"}},"title":"GETBillingDocumentsResponseType"},"BillingDocumentQueryResponseElementType":{"type":"object","properties":{"documents":{"type":"array","items":{"$ref":"#/components/schemas/GETBillingDocumentsResponseType"},"description":"Container for billing documents.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"BillingDocumentQueryResponseElementType"},"POSTBillingDocumentFilesDeletionJobRequest":{"type":"object","properties":{"accountIds":{"type":"array","items":{"type":"string"},"description":"Container for the IDs of the accounts that you want to create the billing document files deletion job for.\n\n**Note**: When creating jobs to delete billing document PDF files, you must specify either set of `accountIds` or `accountKeys` in the request body.\n"},"accountKeys":{"type":"array","items":{"type":"string"},"description":"Container for the IDs and/or numbers of the accounts that you want to create the billing document files deletion job for.\n\n**Note**: When creating jobs to delete billing document PDF files, you must specify either set of `accountIds` or `accountKeys` in the request body.\n"}},"title":"POSTBillingDocumentFilesDeletionJobRequest"},"PostBillingDocumentFilesDeletionJobResponseStatus":{"type":"string","enum":["Pending"],"description":"The status of the billing document file deletion job.\n","title":"PostBillingDocumentFilesDeletionJobResponseStatus"},"POSTBillingDocumentFilesDeletionJobResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the billing document file deletion job.\n"},"status":{"$ref":"#/components/schemas/PostBillingDocumentFilesDeletionJobResponseStatus","description":"The status of the billing document file deletion job.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"POSTBillingDocumentFilesDeletionJobResponse"},"GetBillingDocumentFilesDeletionJobResponseStatus":{"type":"string","enum":["Pending","Processing","Completed","Error"],"description":"The status of the billing document file deletion job.\n","title":"GetBillingDocumentFilesDeletionJobResponseStatus"},"GETBillingDocumentFilesDeletionJobResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the billing document file deletion job.\n"},"status":{"$ref":"#/components/schemas/GetBillingDocumentFilesDeletionJobResponseStatus","description":"The status of the billing document file deletion job.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETBillingDocumentFilesDeletionJobResponse"},"PostGenerateBillingDocumentType":{"type":"object","properties":{"autoPost":{"type":"boolean","default":false,"description":"Whether to automatically post the billing documents after the draft billing documents are generated. \n\nIf an error occurs during posting billing documents, the draft billing documents are not generated too.\n"},"autoRenew":{"type":"boolean","default":false,"description":"Whether to automatically renew the subscriptions with **Auto Renew** set to **Yes**. \n"},"chargeTypeToExclude":{"type":"array","items":{"type":"string"},"description":"The types of the charges to be excluded from the generation of billing documents. The field values are case insensitive. Supported values include `onetime`, `recurring`, and `usage`. \n"},"commitmentKeys":{"type":"array","items":{"type":"string"},"description":"The IDs of the commitments to include in billing document generation.\n"},"creditMemoReasonCode":{"type":"string","description":"A code identifying the reason for the credit memo transaction that is generated by the request. The value must be an existing reason code. If you do not pass the field or pass the field with empty value, Zuora uses the default reason code."},"effectiveDate":{"type":"string","format":"date","description":"The date on which to generate the billing documents, in `yyyy-mm-dd` format.\n"},"includeSubscriptions":{"type":"boolean","default":true,"description":"Indicates whether to bill subscriptions in the bill run.\n"},"includeOrderLineItems":{"type":"boolean","default":true,"description":"Indicates whether to bill order line items in the bill run.\n"},"subscriptionIds":{"type":"array","items":{"type":"string"},"description":"The IDs of the subscriptions that you want to create the billing documents for. Each value must be the ID of the latest version of an active subscription.\n"},"targetDate":{"type":"string","format":"date","description":"The date used to determine which charges are to be billed, in `yyyy-mm-dd` format.\n"}},"required":["effectiveDate","targetDate"],"title":"PostGenerateBillingDocumentType"},"CreditMemoResponseType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the generated credit memo.\n"}},"title":"CreditMemoResponseType"},"InvoiceResponseType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the generated invoice.\n"}},"title":"InvoiceResponseType"},"GenerateBillingDocumentResponseType":{"type":"object","properties":{"creditMemos":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoResponseType"},"description":"Container for generated credit memos.\n\n**Note:** This container 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"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceResponseType"},"description":"Container for generated invoics.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GenerateBillingDocumentResponseType"},"PostCreateInvoiceContactType":{"type":"object","properties":{"address1":{"type":"string","maxLength":255,"description":"First address line, 255 characters or less.\n"},"address2":{"type":"string","description":"Second address line, 255 characters or less.\n"},"city":{"type":"string","maxLength":40,"description":"City, 40 characters or less.\n"},"country":{"type":"string","description":"Country; must be a valid country name or abbreviation. If using Zuora Tax, you must specify a country in the ship-to or sold-to contact to calculate tax. A bill-to contact may be used if no ship-to or sold-to contact is provided.\n"},"county":{"type":"string","maxLength":32,"description":"County; 32 characters or less. May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","maxLength":40,"description":"Fax phone number, 40 characters or less.\n"},"firstName":{"type":"string","maxLength":100,"description":"First name, 100 characters or less.\n"},"homePhone":{"type":"string","maxLength":40,"description":"Home phone number, 40 characters or less.\n"},"lastName":{"type":"string","maxLength":100,"description":"Last name, 100 characters or less.\n"},"mobilePhone":{"type":"string","maxLength":40,"description":"Mobile phone number, 40 characters or less.\n"},"nickname":{"type":"string","description":"Nickname for this contact\n"},"otherPhone":{"type":"string","maxLength":40,"description":"Other phone number, 40 characters or less.\n"},"otherPhoneType":{"type":"string","description":"Possible values are: `Work`, `Mobile`, `Home`, `Other`.\n"},"personalEmail":{"type":"string","format":"email","maxLength":80,"description":"Personal email address.\n"},"state":{"type":"string","description":"State; must be a valid subregion (state or province) name or code.\nFor more information, see <a\nhref=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\"\ntarget=\"_blank\">View subregions of a specific country or region</a>.\nIf using Zuora Tax, be aware that Zuora Tax requires a\nstate (in the US) or province (in Canada) in this field for the\nship-to or sold-to contact to calculate tax, and that a bill-to contact may be\nused if no ship-to or sold-to contact is provided.\n"},"taxRegion":{"type":"string","description":"If using Zuora Tax, a region string as optionally defined in your tax rules. Not required.\n"},"workEmail":{"type":"string","maxLength":80,"description":"Work email address, 80 characters or less.\n"},"workPhone":{"type":"string","maxLength":40,"description":"Work phone number, 40 characters or less.\n"},"zipCode":{"type":"string","maxLength":20,"description":"Zip code, 20 characters or less.\n"}},"required":["firstName","lastName"],"description":"Container for bill-to, sold-to, or ship-to contact information. A new Contact will be created under the invoice owner account.\n            \n**Note**: If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body.\n","title":"PostCreateInvoiceContactType"},"InvoiceWithCustomRatesType":{"type":"object","properties":{"currency":{"type":"string","description":"The currency code for either Reporting or Home currency.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or later.\n"},"customFxRate":{"type":"number","format":"double","description":"The Custom FX conversion rate between Home/Reporting and Transactional currency items.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or later.\n"},"rateDate":{"type":"string","format":"date","description":"The date on which a particular currency rate is fixed or obtained on.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or later.\n"}},"required":["currency","customFxRate"],"title":"InvoiceWithCustomRatesType"},"PostDiscountItemTypeRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"The date when revenue recognition is triggered.\n","title":"PostDiscountItemTypeRevRecTriggerCondition"},"PostTaxationItemTypeTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n","title":"PostTaxationItemTypeTaxMode"},"PostTaxationItemTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the invoice item.\n","title":"PostTaxationItemTypeTaxRateType"},"PostTaxationItemType":{"type":"object","properties":{"exemptAmount":{"type":"string","format":"number","description":"The calculated tax amount excluded due to the exemption.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"name":{"type":"string","description":"The name of taxation.\n"},"taxAmount":{"type":"string","format":"number","description":"The amount of the taxation item in the invoice item.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific invoice item.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the invoice item, in `yyyy-mm-dd` format.\n"},"taxMode":{"$ref":"#/components/schemas/PostTaxationItemTypeTaxMode","description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n"},"taxRate":{"type":"string","format":"number","description":"The tax rate applied to the invoice item.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/PostTaxationItemTypeTaxRateType","description":"The type of the tax rate applied to the invoice item.\n"}},"required":["name","taxAmount","taxDate","taxMode","taxRate","taxRateType"],"description":"Container for custom fields of a Taxation Item object.\n","title":"PostTaxationItemType"},"PostDiscountItemType":{"type":"object","properties":{"accountingCode":{"type":"string","description":"The accounting code associated with the discount item.\n"},"accountsReceivableAccountingCode":{"type":"string","description":"The accounting code for accounts receivable.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code for adjustment liability.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code for adjustment revenue.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"amount":{"type":"number","format":"double","description":"The amount of the discount item.\n- Should be a negative number. For example, `-10`.\n- Always a fixed amount no matter whether the discount charge associated with the discount item uses the [fixed-amount model or percentage model](https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models#Fixed_amount_model_and_percentage_model).\n- For tax-exclusive discount items, this amount indicates the discount item amount excluding tax.\n- For tax-inclusive discount items, this amount indicates the discount item amount including tax.\n"},"bookingReference":{"type":"string","description":"The booking reference of the discount item.\n"},"chargeDate":{"type":"string","description":"The date when the discount item is charged, in `yyyy-mm-dd hh:mm:ss` format.\n"},"chargeName":{"type":"string","description":"The name of the charge associated with the discount item.\nThis field is required if the `productRatePlanChargeId` field is not specified in the request body.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code for contract asset.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code for contract liability.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for contract recognized revenue.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"description":{"type":"string","description":"The description of the discount item.\n"},"itemType":{"type":"string","description":"The type of the discount item.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the discount item is created from.\n\nIf you specify a value for the `productRatePlanChargeId` field in the request, Zuora directly copies the values of the following fields from the corresponding product rate plan charge, regardless of the values specified in the request body:\n- `chargeName`\n- `sku`\n\nIf you specify a value for the `productRatePlanChargeId` field in the request, Zuora directly copies the values of the following fields from the corresponding discount charge that [uses discount specific accounting codes, rule and segment to manage revenue](https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/B_Charge_Models/Manage_Discount_Charges#Use_discount_specific_accounting_codes.2C_rule_and_segment_to_manage_revenue), regardless of the values specified in the request body:\n- `accountingCode`\n- `deferredRevenueAccountingCode`\n- `recognizedRevenueAccountingCode`\n\nIf you specify a value for the `productRatePlanChargeId` field in the request, Zuora directly copies the values of the following fields from the corresponding invoice item charge if the discount charge DOES NOT [use discount specific accounting codes, rule and segment to manage revenue](https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/B_Charge_Models/Manage_Discount_Charges#Use_discount_specific_accounting_codes.2C_rule_and_segment_to_manage_revenue), regardless of the values specified in the request body:\n- `accountingCode`\n- `deferredRevenueAccountingCode`\n- `recognizedRevenueAccountingCode`\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number associated with the discount item.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"revRecCode":{"type":"string","description":"The revenue recognition code.\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/PostDiscountItemTypeRevRecTriggerCondition","description":"The date when revenue recognition is triggered.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"sku":{"type":"string","description":"The SKU of the invoice item. The SKU of the discount item must be different from the SKU of any existing product.\n"},"taxItems":{"type":"array","items":{"$ref":"#/components/schemas/PostTaxationItemType"},"description":"Container for taxation items. The maximum number of taxation items is 5.\n\n**Note**: This field is only available only if you have Taxation enabled.\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code for unbilled receivables.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the discount item.\nIf the discount charge associated with the discount item uses the percentage model, the unit price will display as a percentage amount in PDF. For example: if unit price is 5.00, it will display as 5.00% in PDF.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice item's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice item was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["amount"],"description":"Container for custom fields of an Discount Item object.\n","title":"PostDiscountItemType"},"PostInvoiceItemTypeRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"The date when revenue recognition is triggered.\n","title":"PostInvoiceItemTypeRevRecTriggerCondition"},"PostInvoiceItemTypeTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n\n**Note**: This field is only available only if you have Taxation enabled.\n","title":"PostInvoiceItemTypeTaxMode"},"PostInvoiceItemType":{"type":"object","properties":{"accountingCode":{"type":"string","description":"The accounting code associated with the invoice item.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code for adjustment liability. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code for adjustment revenue. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"amount":{"type":"number","format":"double","description":"The amount of the invoice item. \n\n- For tax-inclusive invoice items, the amount indicates the invoice item amount including tax. \n- For tax-exclusive invoice items, the amount indicates the invoice item amount excluding tax.\n"},"bookingReference":{"type":"string","description":"The booking reference of the invoice item.\n"},"chargeDate":{"type":"string","description":"The date when the invoice item is charged, in `yyyy-mm-dd hh:mm:ss` format.\n"},"chargeName":{"type":"string","description":"The name of the charge associated with the invoice item. \n\nThis field is required if the `productRatePlanChargeId` field is not specified in the request.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code for contract asset. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code for contract liability. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for contract recognized revenue. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"description":{"type":"string","description":"The description of the invoice item.\n"},"discountItems":{"type":"array","items":{"$ref":"#/components/schemas/PostDiscountItemType"},"description":"Container for discount items. The maximum number of discount items is 10.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the invoice item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"itemType":{"type":"string","description":"The type of the invoice item.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the invoice item is created from.\n\nYou must have the **Create Standalone Invoice With Product Catalog** permission to create an invoice item from an existing charge.\n\nIf you specify a value for the `productRatePlanChargeId` field in the request, Zuora directly copies the values of the following fields from the corresponding product rate plan charge, regardless of the values specified in the request body:\n- `chargeName`\n- `sku`\n- `uom`\n- `taxCode`\n- `taxMode`\n- `accountingCode`\n- `deferredRevenueAccountingCode` \n- `recognizedRevenueAccountingCode`\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number associated with the invoice item.\n"},"quantity":{"type":"number","format":"double","default":1,"description":"The number of units for the invoice item.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"revRecCode":{"type":"string","description":"The revenue recognition code.\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/PostInvoiceItemTypeRevRecTriggerCondition","description":"The date when revenue recognition is triggered.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the invoice item.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the invoice item.\n"},"sku":{"type":"string","description":"The SKU of the invoice item. The SKU of the invoice item must be different from the SKU of any existing product.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to the invoice item.\n\n**Note**: This field is only available only if you have Taxation enabled.\n"},"taxItems":{"type":"array","items":{"$ref":"#/components/schemas/PostTaxationItemType"},"description":"Container for taxation items. The maximum number of taxation items is 5.\n\n**Note**: This field is only available only if you have Taxation enabled.\n"},"taxMode":{"$ref":"#/components/schemas/PostInvoiceItemTypeTaxMode","description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n\n**Note**: This field is only available only if you have Taxation enabled.\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code for unbilled receivables. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the invoice item. To pass Level 3 data to the gateway, this field is required and must be greater than zero.\n"},"uom":{"type":"string","description":"The unit of measure.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice item's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice item was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["amount","serviceStartDate"],"description":"Container for custom fields of an Invoice Item object.\n","title":"PostInvoiceItemType"},"PostInvoiceTypeStatus":{"type":"string","enum":["Draft","Posted"],"default":"Draft","description":"The status of invoice. By default, the invoice status is Draft.\n\nWhen creating an invoice, if you set this field to `Posted`, the invoice is created and posted directly.\n","title":"PostInvoiceTypeStatus"},"PostInvoiceTypeTransferredToAccounting":{"type":"string","enum":["Processing","Error","Ignore","Yes","No"],"title":"PostInvoiceTypeTransferredToAccounting"},"PostInvoiceType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with the invoice. \n\nYou must specify either `accountNumber` or `accountId` for a customer account. If both of them are specified, they must refer to the same customer account.\n"},"accountNumber":{"type":"string","description":"The Number of the account associated with the invoice.\nYou must specify either `accountNumber` or `accountId` for a customer account. If both of them are specified, they must refer to the same customer account.\n"},"autoPay":{"type":"boolean","default":false,"description":"Whether invoices are automatically picked up for processing in the corresponding payment run.\n"},"billToContact":{"$ref":"#/components/schemas/PostCreateInvoiceContactType"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the invoice. This field is mutually exclusive with the `billToContact` field.\n\n**Note**: If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body.\n"},"comments":{"type":"string","description":"Comments about the invoice.\n"},"currency":{"type":"string","description":"The code of a currency as defined in Billing Settings through the Zuora UI.\n\nIf you do not specify a currency during standalone invoice creation, the default account currency is applied. The currency that you specify in the request must be configured and activated in Billing Settings.\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"customRates":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceWithCustomRatesType"},"description":"It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item or Reporting currency item or both).\n      \n**Note**:\n  \n- This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n- You cannot set the custom rates, if both the **Automatically include additional Currency Conversion information in data source exports** option and **Fx data** feature are enabled.\n- Invoice, InvoiceItem, and TaxationItem will utilize the provided custom Fx rate to convert amounts from the transactional currency to the home currency.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for this invoice is due, in `yyyy-mm-dd` format.\n"},"invoiceDate":{"type":"string","format":"date","description":"The date that appears on the invoice being created, in `yyyy-mm-dd` format. The value cannot fall in a closed accounting period.\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/PostInvoiceItemType"},"description":"Container for invoice items. The maximum number of invoice items is 1,000.\n\nYou must have corresponding billing permissions to create invoice items from existing product rate plan charges or new charges. For more information about billing permissions, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/System_Management/Administrator_Settings/User_Roles/d_Billing_Roles\" target=\"_blank\">Billing Roles</a>.\n- To create an invoice item from an existing charge, you must have the **Create Standalone Invoice With Product Catalog** permission and specify the charge ID in the `productRatePlanChargeId` field.\n- To create an invoice item from a new charge, you must have the **Create Standalone Invoice Without Product Catalog** permission without specifying the `productRatePlanChargeId` field.\n\n**Note**: For the \"Create a standalone invoice\" and \"Create standalone invoices\" operations, note the following:\n  - If tax has been calculated by an external tax engine, you need to create a standalone invoice with both `invoiceItems` and `taxItems`. The `taxItems` corresponds to the tax information processed by this external tax engine. In this case, you should not specify the `taxMode` and `taxCode` nested fields of the `invoiceItems` field. Instead, you need to specify the `taxMode` and `taxCode` nested fields of the `taxItems` field. You need to specify the `taxMode` field as `TaxExclusive`.\n  - If tax has not been calculated by an external tax engine, you can create a standalone invoice only with `invoiceItems`, and decide whether Zuora includes the tax in the quoted charge price and invoice item by specifying the `taxMode` nested field of the `invoiceItems` field as either `TaxExclusive` or `TaxInclusive`. Meanwhile, you need to specify the `taxCode` field, indicating the charge price and invoice item are taxable.\n"},"invoiceNumber":{"type":"string","description":"A customized invoice number with the following format requirements:\n- Max length: 32 characters\n- Acceptable characters: a-z,A-Z,0-9,-,_,\n\nPurely numerical prefixes or prefixes ending with a number are supported for standalone invoices. For example, you can use `202310000300`, `2003`, `INV202310000300`, or `2023-09-100009785` as invoice numbers.\n\nThe value must be unique in the system, otherwise it may cause issues with bill runs and subscribe/amend. Check out [things to note and troubleshooting steps](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/IA_Invoices/Unified_Invoicing/Import_external_invoices_as_standalone_invoices?#Customizing_invoice_number). \n"},"paymentTerm":{"type":"string","description":"The ID or name of the payment term associated with the invoice. For example, `Net 30`. The payment term determines the due dates of invoices.\n\n**Note**: If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body.\n"},"sequenceSet":{"type":"string","description":"The ID or name of the sequence set associated with the invoice.\n\n**Note**: If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body.\n"},"shipToContact":{"$ref":"#/components/schemas/PostCreateInvoiceContactType"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the invoice. This field is mutually exclusive with the `shipToContact` field.\n**Note**: If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body.\n"},"shipToSameAsBillTo":{"type":"boolean","default":false,"description":"Whether the ship-to contact and bill-to contact are the same entity. This field is mutually exclusive with the `shipToContact` and `shipToContactId` fields.\n\nThe created invoice has the same bill-to contact and ship-to contact entity only when all the following conditions are met in the request body:\n\n- This field is set to `true`. \n- A bill-to contact or bill-to contact ID is specified.\n- Neither ship-to contact nor ship-to contact ID is specified.\n\n**Note**: If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body.\n"},"soldToContact":{"$ref":"#/components/schemas/PostCreateInvoiceContactType"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the invoice. This field is mutually exclusive with the `soldToContact` field.\n\n**Note**: If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body.\n"},"soldToSameAsBillTo":{"type":"boolean","default":false,"description":"Whether the sold-to contact and bill-to contact are the same entity. This field is mutually exclusive with the `soldToContact` and `soldToContactId` fields.\n\nThe created invoice has the same bill-to contact and sold-to contact entity only when all the following conditions are met in the request body:\n\n- This field is set to `true`. \n- A bill-to contact or bill-to contact ID is specified.\n- Neither sold-to contact nor sold-to contact ID is specified.\n\n**Note**: If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body.\n"},"status":{"$ref":"#/components/schemas/PostInvoiceTypeStatus","default":"Draft","description":"The status of invoice. By default, the invoice status is Draft.\n\nWhen creating an invoice, if you set this field to `Posted`, the invoice is created and posted directly.\n"},"templateId":{"type":"string","description":"The ID of the invoice template associated with the invoice.\n\n**Note**: If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PostInvoiceTypeTransferredToAccounting"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["invoiceDate"],"description":"Container for custom fields of an Invoice object.\n","title":"PostInvoiceType"},"PostInvoiceResponseEinvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the invoice.\n\n- If e-invoicing file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceField` fieldstores the ID of the generated e-inoice file.\n- If the responses from tax vendors such as Sovos or Avalara are taking too long, this field becomes `RetrieveTimeOut`. Once the vendor responds successfully, you can use the 'Resync E-Invoice Status' action to update the status automatically.  You can view these updates in System Health telemetry.\n- If a failure occurs during e-invoice file generation, this field is `Failed` and error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n**Note**: This field 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","title":"PostInvoiceResponseEinvoiceStatus"},"PostInvoiceResponseSource":{"type":"string","enum":["BillRun","API","ApiSubscribe","ApiAmend"],"description":"The source of the invoice.\n","title":"PostInvoiceResponseSource"},"PostInvoiceResponseSourceType":{"type":"string","enum":["Subscription","Standalone","Order","Consolidation"],"description":"The type of the invoice source.\n","title":"PostInvoiceResponseSourceType"},"PostInvoiceResponseStatus":{"type":"string","enum":["Draft","Posted"],"description":"The status of the invoice.\n","title":"PostInvoiceResponseStatus"},"PostInvoiceResponseTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status that the tax engine return after it calculates the taxes of this invoice. \n\n**Note:** This field is only applicable to tax calculation by third-party tax engines. The `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"PostInvoiceResponseTaxStatus"},"PostInvoiceResponseTransferredToAccounting":{"type":"string","enum":["Processing","Error","Ignore","Yes","No"],"description":"Whether the invoice was transferred to an external accounting system.\n","title":"PostInvoiceResponseTransferredToAccounting"},"PostInvoiceResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account associated with the invoice.\n"},"adjustmentAmount":{"type":"number","format":"double","description":"The amount of the invoice adjustments associated with the invoice.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the invoice.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The invoice amount excluding tax.\n"},"autoPay":{"type":"boolean","description":"Whether invoices are automatically picked up for processing in the corresponding payment run.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of the invoice after all payments, adjustments, and refunds are applied.\n"},"billRunId":{"type":"string","description":"The id of bill run if the invoice is generated by a bill run.\n"},"billToContactId":{"type":["string","null"],"description":"The ID of the bill-to contact associated with the invoice.\n"},"billToContactSnapshotId":{"type":["string","null"],"description":"The ID of the bill-to contact snapshot associated with the invoice.\n"},"comments":{"type":"string","description":"Comments about the invoice.\n"},"createdById":{"type":"string","description":"The user ID of the person who created the invoice. If a bill run generated the invoice, then the value is the user ID of person who created the bill run.\n"},"createdDate":{"type":"string","description":"The date and time when the invoice was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditBalanceAdjustmentAmount":{"type":"number","format":"double","description":"The currency amount of the adjustment applied to the customer's credit balance.\n\n **Note:** This field is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.\n"},"creditMemoAmount":{"type":"number","format":"double","description":"The currency amount of all credit memos applied to this invoice.\n\n**Note:** This field 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"},"currency":{"type":["string","null"],"description":"The currency of the invoice.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"discount":{"type":"number","format":"double","description":"the invoice discount amount.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for this invoice is due, in `yyyy-mm-dd` format.\n"},"einvoiceErrorCode":{"type":"string","description":"The error code when status is \"Failed\". This code can either be a Zuora-generated error code or one returned by a third-party e-invoice vendor.\n"},"einvoiceErrorMessage":{"type":"string","description":"The error message when status is \"Failed\". This message can either be a Zuora-generated error code or one returned by a third-party e-invoice vendor.\n"},"einvoiceFileId":{"type":"string","description":"The ID of the e-invoice file.\n"},"einvoiceStatus":{"$ref":"#/components/schemas/PostInvoiceResponseEinvoiceStatus","description":"The status of the e-invoice file generation for the invoice.\n\n- If e-invoicing file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceField` fieldstores the ID of the generated e-inoice file.\n- If the responses from tax vendors such as Sovos or Avalara are taking too long, this field becomes `RetrieveTimeOut`. Once the vendor responds successfully, you can use the 'Resync E-Invoice Status' action to update the status automatically.  You can view these updates in System Health telemetry.\n- If a failure occurs during e-invoice file generation, this field is `Failed` and error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n**Note**: This field 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"},"id":{"type":"string","description":"The unique ID of the invoice.\n"},"includesOneTime":{"type":"boolean","description":"Specifies whether the invoice includes one-time charges.\n"},"includesRecurring":{"type":"boolean","description":"Specifies whether the invoice includes recurring charges.\n"},"includesUsage":{"type":"boolean","description":"Specifies whether the invoice includes usage charges.\n"},"invoiceDate":{"type":"string","format":"date","description":"The date that appears on the invoice being created.\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the invoice. \n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"invoiceNumber":{"type":"string","description":"The unique identification number of the invoice.\n"},"lastEmailSentDate":{"type":["string","null"],"description":"The date when the invoice was last emailed.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentAmount":{"type":"number","format":"double","description":"The amount of payments applied to the invoice.\n"},"paymentTerm":{"type":["string","null"],"description":"The name of payment term associated with the invoice.\n"},"postedBy":{"type":["string","null"],"description":"The user ID of the person who moved the invoice to Posted status.\n"},"postedDate":{"type":["string","null"],"format":"date","description":"The date when the invoice was posted.\n"},"refundAmount":{"type":"number","format":"double","description":"Specifies the amount of a refund that was applied against an earlier payment on the invoice.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the invoice.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the invoice.\n"},"shipToContactId":{"type":["string","null"],"description":"The ID of the ship-to contact associated with the invoice.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the invoice.\n"},"soldToContactId":{"type":["string","null"],"description":"The ID of the sold-to contact associated with the invoice.\n"},"soldToContactSnapshotId":{"type":["string","null"],"description":"The ID of the sold-to contact snapshot associated with the invoice.\n"},"source":{"$ref":"#/components/schemas/PostInvoiceResponseSource","description":"The source of the invoice.\n"},"sourceId":{"type":"string","description":"The ID of the invoice source.\nIf an invoice is generated from a bill run, the value is the number of the corresponding bill run.Otherwise, the value is `null`.\n"},"sourceType":{"$ref":"#/components/schemas/PostInvoiceResponseSourceType","description":"The type of the invoice source.\n"},"status":{"$ref":"#/components/schemas/PostInvoiceResponseStatus","description":"The status of the invoice.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"targetDate":{"type":"string","format":"date","description":"This date is used to determine which charges are to be billed. All charges that are to be billed on this date or prior will be included in this bill run.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxMessage":{"type":["string","null"],"description":"The message that the tax engine return if it calculates the taxes of this invoice fails.\n"},"taxStatus":{"$ref":"#/components/schemas/PostInvoiceResponseTaxStatus","description":"The status that the tax engine return after it calculates the taxes of this invoice. \n\n**Note:** This field is only applicable to tax calculation by third-party tax engines. The `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"templateId":{"type":["string","null"],"description":"The ID of the invoice template.\n\n- If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature enabled, the value of this field depends on the configuration of the invoice template. \n  - If you specify an invoice template at the subscription level, the value of this field is automatically populated from the corresponding subscription.\n  - If you do not specify any invoice template at the subscription level, the value of this field is automatically populated from the corresponding account.\n- If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"transferredToAccounting":{"oneOf":[{"$ref":"#/components/schemas/PostInvoiceResponseTransferredToAccounting"},{"type":"null"}],"description":"Whether the invoice was transferred to an external accounting system.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the invoice.\n"},"updatedDate":{"type":"string","description":"The date when the invoice was last updated.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of an Invoice object.\n","title":"PostInvoiceResponse"},"PutDiscountItemTypeRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"The date when revenue recognition is triggered.\n","title":"PutDiscountItemTypeRevRecTriggerCondition"},"PutDiscountItemType":{"type":"object","properties":{"accountingCode":{"type":"string","description":"The accounting code associated with the discount item.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code for adjustment liability.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code for adjustment revenue.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"amount":{"type":"string","format":"number","description":"The amount of the discount item.\n- Should be a negative number. For example, `-10`.\n- Always a fixed amount no matter whether the discount charge associated with the discount item uses the [fixed-amount model or percentage model](https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models#Fixed_amount_model_and_percentage_model).\n- For tax-exclusive discount items, this amount indicates the discount item amount excluding tax.\n- For tax-inclusive discount items, this amount indicates the discount item amount including tax.\n"},"bookingReference":{"type":"string","description":"The booking reference of the discount item.\n"},"chargeDate":{"type":"string","description":"The date when the discount item is charged, in `yyyy-mm-dd hh:mm:ss` format.\n"},"chargeName":{"type":"string","description":"The name of the charge associated with the discount item.\nThis field is required if the `productRatePlanChargeId` field is not specified in the request.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code for contract asset.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code for contract liability.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for contract recognized revenue.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"description":{"type":"string","description":"The description of the discount item.\n"},"id":{"type":"string","description":"The unique ID of the discount item.\n"},"itemType":{"type":"string","description":"The type of the discount item.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number associated with the discount item.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"revRecCode":{"type":"string","description":"The revenue recognition code.\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/PutDiscountItemTypeRevRecTriggerCondition","description":"The date when revenue recognition is triggered.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"sku":{"type":"string","description":"The SKU of the invoice item. The SKU of the discount item must be different from the SKU of any existing product.\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code for unbilled receivables.\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"unitPrice":{"type":"string","format":"number","description":"The per-unit price of the discount item.\nIf the discount charge associated with the discount item uses the percentage model, the unit price will display as a percentage amount in PDF. For example: if unit price is 5.00, it will display as 5.00% in PDF.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice item's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice item was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["amount"],"description":"Container for custom fields of an Discount Item object.\n","title":"PutDiscountItemType"},"PutInvoiceItemTypeRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"The date when revenue recognition is triggered.\n","title":"PutInvoiceItemTypeRevRecTriggerCondition"},"PutInvoiceItemTypeTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n\n**Note:** \n- This field is only available if you have Taxation enabled.\n- If the values of both `taxCode` and `taxMode` fields are changed to `null` when updating a standalone invoice, the corresponding `invoiceItems` > `taxItems` field and its nested fields specified in the creation request will be removed.\n","title":"PutInvoiceItemTypeTaxMode"},"PutInvoiceItemType":{"type":"object","properties":{"accountingCode":{"type":"string","description":"The accounting code associated with the invoice item.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code for adjustment liability. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code for adjustment revenue. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"amount":{"type":"number","format":"double","description":"The amount of the invoice item. \n\n- For tax-inclusive invoice items, the amount indicates the invoice item amount including tax. \n- For tax-exclusive invoice items, the amount indicates the invoice item amount excluding tax.\n"},"bookingReference":{"type":"string","description":"The booking reference of the invoice item.  \n\n\n**Note**: This field is only available if `id` is null.\n"},"chargeDate":{"type":"string","description":"The date when the invoice item is charged, in `yyyy-mm-dd hh:mm:ss` format.\n"},"chargeName":{"type":"string","description":"The name of the charge associated with the invoice item. \n\nThis field is required if the `productRatePlanChargeId` field is not specified in the request.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code for contract asset. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code for contract liability. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for contract recognized revenue. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"delete":{"type":"boolean","description":"Indicates whether to delete the existing invoice item.\n\n\n**Note**: Set this field to `true` and specify an item `id` to delete an item.\n"},"description":{"type":"string","description":"The description of the invoice item.\n"},"discountItems":{"type":"array","items":{"$ref":"#/components/schemas/PutDiscountItemType"},"description":"Container for discount items. The maximum number of discount items is 10.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude the invoice item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"id":{"type":"string","description":"The unique ID of the invoice item.\n- Specify this field when updating or deleting an existing memo item. \n- Do not specify this field when creating a memo item.\n"},"itemType":{"type":"string","description":"The type of the invoice item.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the invoice item is created from. \n\nIf you specify the ID of a product rate plan charge in this field, no matter whether the following fields are specified with values, the following fields use the values from the corresponding product rate plan charge instead of the specified values:\n  - `chargeName`\n  - `sku`\n  - `uom`\n  - `taxCode`\n  - `taxMode`\n  - `accountingCode`\n  - `deferredRevenueAccountingCode`\n  - `recognizedRevenueAccountingCode`\n\n\n**Note**: Do not specify the invoice item `id` when specifying this field. \n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number associated the invoice item.\n"},"quantity":{"type":"string","format":"number","description":"The number of units for the invoice item.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"revRecCode":{"type":"string","description":"The revenue recognition code.\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/PutInvoiceItemTypeRevRecTriggerCondition","description":"The date when revenue recognition is triggered.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the invoice item.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the invoice item.\n"},"sku":{"type":"string","description":"The SKU of the invoice item. The SKU of the invoice item must be different from the SKU of any existing product.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to the invoice item.\n\n**Note:** \n- This field is only available if you have Taxation enabled.\n- If the values of both `taxCode` and `taxMode` fields are changed to `null` when updating a standalone invoice, the corresponding `invoiceItems` > `taxItems` field and its nested fields specified in the creation request will be removed.\n"},"taxMode":{"$ref":"#/components/schemas/PutInvoiceItemTypeTaxMode","description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n\n**Note:** \n- This field is only available if you have Taxation enabled.\n- If the values of both `taxCode` and `taxMode` fields are changed to `null` when updating a standalone invoice, the corresponding `invoiceItems` > `taxItems` field and its nested fields specified in the creation request will be removed.\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code for unbilled receivables. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"unitPrice":{"type":"string","format":"number","description":"The per-unit price of the invoice item.\n"},"uom":{"type":"string","description":"The unit of measure.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice item's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice item was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of an Invoice Item object.\n","title":"PutInvoiceItemType"},"BatchInvoiceTypeTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the invoice was transferred to an external accounting system.\n","title":"BatchInvoiceTypeTransferredToAccounting"},"BatchInvoiceType":{"type":"object","properties":{"autoPay":{"type":"boolean","description":"Whether invoices are automatically picked up for processing in the corresponding payment run.\n\nBy default, invoices are automatically picked up for processing in the corresponding payment run.\n"},"comments":{"type":"string","maxLength":255,"description":"Additional information related to the invoice that a Zuora user added to the invoice.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for this invoice is due.\n"},"id":{"type":"string","description":"The ID of the invoice to be updated.\n"},"invoiceDate":{"type":"string","format":"date","description":"The new invoice date of the invoice. The new invoice date cannot fall in a closed accounting period.\n\nYou can only specify `invoiceDate` or `dueDate` in one request. Otherwise, an error occurs.\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/PutInvoiceItemType"},"description":"Container for invoice items. The maximum number of items is 1,000.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/BatchInvoiceTypeTransferredToAccounting","description":"Whether the invoice was transferred to an external accounting system.\n"},"templateId":{"type":"string","description":"The ID of the invoice template associated with the invoice.\n\n**Note**: This field is only available if you have the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\"\ntarget=\"_blank\">Flexible Billing Attributes</a> feature enabled.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of an Invoice object.\n","title":"BatchInvoiceType"},"PutBatchInvoiceType":{"type":"object","properties":{"invoices":{"type":"array","items":{"$ref":"#/components/schemas/BatchInvoiceType"},"description":"Container for invoice update details.\n"}},"title":"PutBatchInvoiceType"},"PostBatchInvoicesType":{"type":"object","properties":{"invoices":{"type":"array","items":{"$ref":"#/components/schemas/PostInvoiceType"},"description":"Container for standalone invoices.\n"},"useSingleTransaction":{"type":"boolean","description":"Whether a batch request is handled with a single transaction.\n\n- `true` indicates that a batch request will be handled with a single transaction.\n- `false`  indicates that the standalone invoices to be created in a batch request will be handled with separated transactions.\n\nIf the field is set to `false`, a failure in the batch request will not cause the whole request to fail, so you have to retry the whole batch request.\n"}},"title":"PostBatchInvoicesType"},"PostBatchInvoiceItemResponseEinvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the invoice.\n\n- If e-invoicing file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceField` fieldstores the ID of the generated e-inoice file.\n- If the responses from tax vendors such as Sovos or Avalara are taking too long, this field becomes `RetrieveTimeOut`. Once the vendor responds successfully, you can use the 'Resync E-Invoice Status' action to update the status automatically.  You can view these updates in System Health telemetry.\n- If a failure occurs during e-invoice file generation, this field is `Failed` and error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n**Note**: This field 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","title":"PostBatchInvoiceItemResponseEinvoiceStatus"},"PostBatchInvoiceItemResponseSource":{"type":"string","enum":["BillRun","API","ApiSubscribe","ApiAmend"],"description":"The source of the invoice.\n","title":"PostBatchInvoiceItemResponseSource"},"PostBatchInvoiceItemResponseSourceType":{"type":"string","enum":["Subscription","Standalone","Order","Consolidation"],"description":"The type of the invoice source.\n","title":"PostBatchInvoiceItemResponseSourceType"},"PostBatchInvoiceItemResponseStatus":{"type":"string","enum":["Draft","Posted"],"description":"The status of the invoice.\n","title":"PostBatchInvoiceItemResponseStatus"},"PostBatchInvoiceItemResponseTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status that the tax engine return after it calculates the taxes of this invoice. \n\n**Note:** This field is only applicable to tax calculation by third-party tax engines. The `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"PostBatchInvoiceItemResponseTaxStatus"},"PostBatchInvoiceItemResponseTransferredToAccounting":{"type":"string","enum":["Processing","Error","Ignore","Yes","No"],"description":"Whether the invoice was transferred to an external accounting system.\n","title":"PostBatchInvoiceItemResponseTransferredToAccounting"},"PostBatchInvoiceItemResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"accountId":{"type":"string","description":"The ID of the customer account associated with the invoice.\n"},"adjustmentAmount":{"type":"number","format":"double","description":"The amount of the invoice adjustments associated with the invoice.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the invoice.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The invoice amount excluding tax.\n"},"autoPay":{"type":"boolean","description":"Whether invoices are automatically picked up for processing in the corresponding payment run.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of the invoice after all payments, adjustments, and refunds are applied.\n"},"billRunId":{"type":"string","description":"The id of bill run if the invoice is generated by a bill run.\n"},"billToContactId":{"type":["string","null"],"description":"The ID of the bill-to contact associated with the invoice.\n"},"billToContactSnapshotId":{"type":["string","null"],"description":"The ID of the bill-to contact snapshot associated with the invoice.\n"},"comments":{"type":"string","description":"Comments about the invoice.\n"},"createdById":{"type":"string","description":"The user ID of the person who created the invoice. If a bill run generated the invoice, then the value is the user ID of person who created the bill run.\n"},"createdDate":{"type":"string","description":"The date and time when the invoice was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditBalanceAdjustmentAmount":{"type":"number","format":"double","description":"The currency amount of the adjustment applied to the customer's credit balance.\n\n **Note:** This field is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.\n"},"creditMemoAmount":{"type":"number","format":"double","description":"The currency amount of all credit memos applied to this invoice.\n\n**Note:** This field 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"},"currency":{"type":["string","null"],"description":"The currency of the invoice.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"discount":{"type":"number","format":"double","description":"the invoice discount amount.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for this invoice is due, in `yyyy-mm-dd` format.\n"},"einvoiceErrorCode":{"type":"string","description":"The error code when status is \"Failed\". This code can either be a Zuora-generated error code or one returned by a third-party e-invoice vendor.\n"},"einvoiceErrorMessage":{"type":"string","description":"The error message when status is \"Failed\". This message can either be a Zuora-generated error code or one returned by a third-party e-invoice vendor.\n"},"einvoiceFileId":{"type":"string","description":"The ID of the e-invoice file.\n"},"einvoiceStatus":{"$ref":"#/components/schemas/PostBatchInvoiceItemResponseEinvoiceStatus","description":"The status of the e-invoice file generation for the invoice.\n\n- If e-invoicing file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceField` fieldstores the ID of the generated e-inoice file.\n- If the responses from tax vendors such as Sovos or Avalara are taking too long, this field becomes `RetrieveTimeOut`. Once the vendor responds successfully, you can use the 'Resync E-Invoice Status' action to update the status automatically.  You can view these updates in System Health telemetry.\n- If a failure occurs during e-invoice file generation, this field is `Failed` and error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n**Note**: This field 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"},"id":{"type":"string","description":"The unique ID of the invoice.\n"},"includesOneTime":{"type":"boolean","description":"Specifies whether the invoice includes one-time charges.\n"},"includesRecurring":{"type":"boolean","description":"Specifies whether the invoice includes recurring charges.\n"},"includesUsage":{"type":"boolean","description":"Specifies whether the invoice includes usage charges.\n"},"invoiceDate":{"type":"string","format":"date","description":"The date that appears on the invoice being created.\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the invoice. \n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"invoiceNumber":{"type":"string","description":"The unique identification number of the invoice.\n"},"lastEmailSentDate":{"type":["string","null"],"description":"The date when the invoice was last emailed.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentAmount":{"type":"number","format":"double","description":"The amount of payments applied to the invoice.\n"},"paymentTerm":{"type":["string","null"],"description":"The name of payment term associated with the invoice.\n"},"postedBy":{"type":["string","null"],"description":"The user ID of the person who moved the invoice to Posted status.\n"},"postedDate":{"type":["string","null"],"format":"date","description":"The date when the invoice was posted.\n"},"refundAmount":{"type":"number","format":"double","description":"Specifies the amount of a refund that was applied against an earlier payment on the invoice.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the invoice.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the invoice.\n"},"shipToContactId":{"type":["string","null"],"description":"The ID of the ship-to contact associated with the invoice.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the invoice.\n"},"soldToContactId":{"type":["string","null"],"description":"The ID of the sold-to contact associated with the invoice.\n"},"soldToContactSnapshotId":{"type":["string","null"],"description":"The ID of the sold-to contact snapshot associated with the invoice.\n"},"source":{"$ref":"#/components/schemas/PostBatchInvoiceItemResponseSource","description":"The source of the invoice.\n"},"sourceId":{"type":"string","description":"The ID of the invoice source.\nIf an invoice is generated from a bill run, the value is the number of the corresponding bill run.Otherwise, the value is `null`.\n"},"sourceType":{"$ref":"#/components/schemas/PostBatchInvoiceItemResponseSourceType","description":"The type of the invoice source.\n"},"status":{"$ref":"#/components/schemas/PostBatchInvoiceItemResponseStatus","description":"The status of the invoice.\n"},"targetDate":{"type":"string","format":"date","description":"This date is used to determine which charges are to be billed. All charges that are to be billed on this date or prior will be included in this bill run.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxMessage":{"type":["string","null"],"description":"The message that the tax engine return if it calculates the taxes of this invoice fails.\n"},"taxStatus":{"$ref":"#/components/schemas/PostBatchInvoiceItemResponseTaxStatus","description":"The status that the tax engine return after it calculates the taxes of this invoice. \n\n**Note:** This field is only applicable to tax calculation by third-party tax engines. The `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"templateId":{"type":["string","null"],"description":"The ID of the invoice template.\n\n- If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature enabled, the value of this field depends on the configuration of the invoice template. \n  - If you specify an invoice template at the subscription level, the value of this field is automatically populated from the corresponding subscription.\n  - If you do not specify any invoice template at the subscription level, the value of this field is automatically populated from the corresponding account.\n- If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"transferredToAccounting":{"oneOf":[{"$ref":"#/components/schemas/PostBatchInvoiceItemResponseTransferredToAccounting"},{"type":"null"}],"description":"Whether the invoice was transferred to an external accounting system.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the invoice.\n"},"updatedDate":{"type":"string","description":"The date when the invoice was last updated.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of an Invoice object.\n","title":"PostBatchInvoiceItemResponse"},"PostBatchInvoiceResponse":{"type":"object","properties":{"invoices":{"type":"array","items":{"$ref":"#/components/schemas/PostBatchInvoiceItemResponse"}},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"PostBatchInvoiceResponse"},"InvoicePostType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the invoice to be posted.\n"},"invoiceDate":{"type":"string","format":"date","description":"The date that appears on the invoice being created, in `yyyy-mm-dd` format. The value cannot fall in a closed accounting period.\n"}},"description":"Container for custom fields of an Invoice object.\n","title":"InvoicePostType"},"POSTInvoicesBatchPostType":{"type":"object","properties":{"invoices":{"type":"array","items":{"$ref":"#/components/schemas/InvoicePostType"},"description":"The container for invoices to be posted. The maximum number of invoices to be posted is 50 in one request.\n"}},"title":"POSTInvoicesBatchPostType"},"InvoicePostResponseType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the invoice that was posted.\n"},"success":{"type":"boolean","description":"Returns `true` if the invoice was posted successfully.\n"}},"title":"InvoicePostResponseType"},"InvoicesBatchPostResponseType":{"type":"object","properties":{"invoices":{"type":"array","items":{"$ref":"#/components/schemas/InvoicePostResponseType"},"description":"The container for a list of posted invoices.\n"},"success":{"type":"boolean","description":"Returns `true` if the request has one of invoices was posted successfully.\n"}},"title":"InvoicesBatchPostResponseType"},"GetInvoicePdfStatusResponsePdfGenerationStatus":{"type":"string","enum":["None","Pending","Processing","Generated","Error","Obsolete","Archived"],"description":"The generation status of the invoice PDF. \n- **Obsolete**: The status changes to `Obsolete` when additional updates are applied to the document, for example, payment applied or custom fields updated.  \n- **Archived**: The status changes to `Archived` from `Generated` when the PDF file is archived. The file cannot be used directly until it is restored. For restoring, refer to the <a href=\"https://developer.zuora.com/v1-api-reference/api/operation/PUT_Files/\" target=\"_blank\">Restore a file</a> operation.  \n","title":"GetInvoicePdfStatusResponsePdfGenerationStatus"},"GetInvoicePdfStatusResponse":{"type":"object","properties":{"invoiceId":{"type":"string","description":"The ID of the invoice whose pdf status is requested.\n"},"invoiceNumber":{"type":"string","description":"The invoice number of the invoice whose pdf status is requested.\n"},"pdfGenerationStatus":{"$ref":"#/components/schemas/GetInvoicePdfStatusResponsePdfGenerationStatus","description":"The generation status of the invoice PDF. \n- **Obsolete**: The status changes to `Obsolete` when additional updates are applied to the document, for example, payment applied or custom fields updated.  \n- **Archived**: The status changes to `Archived` from `Generated` when the PDF file is archived. The file cannot be used directly until it is restored. For restoring, refer to the <a href=\"https://developer.zuora.com/v1-api-reference/api/operation/PUT_Files/\" target=\"_blank\">Restore a file</a> operation.  \n"},"createdOn":{"type":"string","description":"The time at which the request to generate the PDF was created.\n"},"updatedOn":{"type":"string","description":"The time at which the request to generate the PDF was updated.\n"},"pdfFileURL":{"type":"string","description":"The file path or the URL of the PDF when the status is `Generated`.  \n"},"errorCategory":{"type":"string","description":"The error category when the status is `Error`. \n"},"errorMessage":{"type":"string","description":"The error message when the status is `Error`. \n"}},"title":"GetInvoicePdfStatusResponse"},"GetInvoicePdfStatusBatchResponse":{"type":"object","properties":{"invoiceFiles":{"type":"array","items":{"$ref":"#/components/schemas/GetInvoicePdfStatusResponse"},"description":"Array of invoice PDF statuses requested.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GetInvoicePdfStatusBatchResponse"},"GetInvoiceResponseEinvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the invoice.\n\n- If e-invoicing file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceField` fieldstores the ID of the generated e-inoice file.\n- If the responses from tax vendors such as Sovos or Avalara are taking too long, this field becomes `RetrieveTimeOut`. Once the vendor responds successfully, you can use the 'Resync E-Invoice Status' action to update the status automatically.  You can view these updates in System Health telemetry.\n- If a failure occurs during e-invoice file generation, this field is `Failed` and error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n**Note**: This field 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","title":"GetInvoiceResponseEinvoiceStatus"},"GetInvoiceResponseSource":{"type":"string","enum":["BillRun","API","ApiSubscribe","ApiAmend"],"description":"The source of the invoice.\n","title":"GetInvoiceResponseSource"},"GetInvoiceResponseSourceType":{"type":"string","enum":["Subscription","Standalone","Order","Consolidation"],"description":"The type of the invoice source.\n","title":"GetInvoiceResponseSourceType"},"GetInvoiceResponseStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","Split"],"description":"The status of the invoice.\n\n**Note:** \n  \n- The `Split` status is applicable only when you use <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/invoice-management/split-invoices/split-invoices-overview\"\ntarget=\"_blank\">Split Invoice feature</a>.\n  \n- When an invoice is split, its status changes from `Draft` to `Split`, and the newly created invoices retain a reference to the original invoice.\n","title":"GetInvoiceResponseStatus"},"GetInvoiceResponseTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status that the tax engine return after it calculates the taxes of this invoice. \n\n**Note:** This field is only applicable to tax calculation by third-party tax engines. The `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"GetInvoiceResponseTaxStatus"},"GetInvoiceResponseTransferredToAccounting":{"type":"string","enum":["Processing","Error","Ignore","Yes","No"],"description":"Whether the invoice was transferred to an external accounting system.\n","title":"GetInvoiceResponseTransferredToAccounting"},"GetInvoiceResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account associated with the invoice.\n"},"adjustmentAmount":{"type":"number","format":"double","description":"The amount of the invoice adjustments associated with the invoice.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the invoice.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The invoice amount excluding tax.\n"},"autoPay":{"type":"boolean","description":"Whether invoices are automatically picked up for processing in the corresponding payment run.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of the invoice after all payments, adjustments, and refunds are applied.\n"},"billRunId":{"type":"string","description":"The id of bill run if the invoice is generated by a bill run.\n"},"billToContactId":{"type":["string","null"],"description":"The ID of the bill-to contact associated with the invoice.\n"},"billToContactSnapshotId":{"type":["string","null"],"description":"The ID of the bill-to contact snapshot associated with the invoice.\n"},"comments":{"type":"string","description":"Comments about the invoice.\n"},"createdById":{"type":"string","description":"The user ID of the person who created the invoice. If a bill run generated the invoice, then the value is the user ID of person who created the bill run.\n"},"createdDate":{"type":"string","description":"The date and time when the invoice was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditBalanceAdjustmentAmount":{"type":"number","format":"double","description":"The currency amount of the adjustment applied to the customer's credit balance.\n\n **Note:** This field is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.\n"},"creditMemoAmount":{"type":"number","format":"double","description":"The currency amount of all credit memos applied to this invoice.\n\n**Note:** This field 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"},"currency":{"type":["string","null"],"description":"The currency of the invoice.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"discount":{"type":"number","format":"double","description":"the invoice discount amount.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for this invoice is due, in `yyyy-mm-dd` format.\n"},"einvoiceErrorCode":{"type":"string","description":"The error code when status is \"Failed\". This code can either be a Zuora-generated error code or one returned by a third-party e-invoice vendor.\n"},"einvoiceErrorMessage":{"type":"string","description":"The error message when status is \"Failed\". This message can either be a Zuora-generated error code or one returned by a third-party e-invoice vendor.\n"},"einvoiceFileId":{"type":"string","description":"The ID of the e-invoice file.\n"},"einvoiceStatus":{"$ref":"#/components/schemas/GetInvoiceResponseEinvoiceStatus","description":"The status of the e-invoice file generation for the invoice.\n\n- If e-invoicing file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceField` fieldstores the ID of the generated e-inoice file.\n- If the responses from tax vendors such as Sovos or Avalara are taking too long, this field becomes `RetrieveTimeOut`. Once the vendor responds successfully, you can use the 'Resync E-Invoice Status' action to update the status automatically.  You can view these updates in System Health telemetry.\n- If a failure occurs during e-invoice file generation, this field is `Failed` and error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n**Note**: This field 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"},"id":{"type":"string","description":"The unique ID of the invoice.\n"},"includesOneTime":{"type":"boolean","description":"Specifies whether the invoice includes one-time charges.\n"},"includesRecurring":{"type":"boolean","description":"Specifies whether the invoice includes recurring charges.\n"},"includesUsage":{"type":"boolean","description":"Specifies whether the invoice includes usage charges.\n"},"invoiceDate":{"type":"string","format":"date","description":"The date that appears on the invoice being created.\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the invoice. \n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"invoiceNumber":{"type":"string","description":"The unique identification number of the invoice.\n"},"lastEmailSentDate":{"type":["string","null"],"description":"The date when the invoice was last emailed.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentAmount":{"type":"number","format":"double","description":"The amount of payments applied to the invoice.\n"},"paymentTerm":{"type":["string","null"],"description":"The name of payment term associated with the invoice.\n"},"postedBy":{"type":["string","null"],"description":"The user ID of the person who moved the invoice to Posted status.\n"},"postedDate":{"type":["string","null"],"format":"date","description":"The date when the invoice was posted.\n"},"refundAmount":{"type":"number","format":"double","description":"Specifies the amount of a refund that was applied against an earlier payment on the invoice.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the invoice.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the invoice.\n"},"shipToContactId":{"type":["string","null"],"description":"The ID of the ship-to contact associated with the invoice.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the invoice.\n"},"soldToContactId":{"type":["string","null"],"description":"The ID of the sold-to contact associated with the invoice.\n"},"soldToContactSnapshotId":{"type":["string","null"],"description":"The ID of the sold-to contact snapshot associated with the invoice.\n"},"source":{"$ref":"#/components/schemas/GetInvoiceResponseSource","description":"The source of the invoice.\n"},"sourceId":{"type":"string","description":"The ID of the invoice source.\nIf an invoice is generated from a bill run, the value is the number of the corresponding bill run.Otherwise, the value is `null`.\n"},"sourceType":{"$ref":"#/components/schemas/GetInvoiceResponseSourceType","description":"The type of the invoice source.\n"},"status":{"$ref":"#/components/schemas/GetInvoiceResponseStatus","description":"The status of the invoice.\n\n**Note:** \n  \n- The `Split` status is applicable only when you use <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/invoice-management/split-invoices/split-invoices-overview\"\ntarget=\"_blank\">Split Invoice feature</a>.\n  \n- When an invoice is split, its status changes from `Draft` to `Split`, and the newly created invoices retain a reference to the original invoice.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"targetDate":{"type":"string","format":"date","description":"This date is used to determine which charges are to be billed. All charges that are to be billed on this date or prior will be included in this bill run.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxMessage":{"type":["string","null"],"description":"The message that the tax engine return if it calculates the taxes of this invoice fails.\n"},"taxStatus":{"$ref":"#/components/schemas/GetInvoiceResponseTaxStatus","description":"The status that the tax engine return after it calculates the taxes of this invoice. \n\n**Note:** This field is only applicable to tax calculation by third-party tax engines. The `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"templateId":{"type":["string","null"],"description":"The ID of the invoice template.\n\n- If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature enabled, the value of this field depends on the configuration of the invoice template. \n  - If you specify an invoice template at the subscription level, the value of this field is automatically populated from the corresponding subscription.\n  - If you do not specify any invoice template at the subscription level, the value of this field is automatically populated from the corresponding account.\n- If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"transferredToAccounting":{"oneOf":[{"$ref":"#/components/schemas/GetInvoiceResponseTransferredToAccounting"},{"type":"null"}],"description":"Whether the invoice was transferred to an external accounting system.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the invoice.\n"},"updatedDate":{"type":"string","description":"The date when the invoice was last updated.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of an Invoice object.\n","title":"GetInvoiceResponse"},"PutInvoiceTypeTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the invoice was transferred to an external accounting system.\n","title":"PutInvoiceTypeTransferredToAccounting"},"PutInvoiceType":{"type":"object","properties":{"autoPay":{"type":"boolean","description":"Whether invoices are automatically picked up for processing in the corresponding payment run.\nBy default, invoices are automatically picked up for processing in the corresponding payment run.\n"},"comments":{"type":"string","maxLength":255,"description":"Additional information related to the invoice that a Zuora user added to the invoice.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for this invoice is due.\n"},"invoiceDate":{"type":"string","format":"date","description":"The new invoice date of the invoice. The new invoice date cannot fall in a closed accounting period.\nYou can only specify `invoiceDate` or `dueDate` in one request. Otherwise, an error occurs.\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/PutInvoiceItemType"},"description":"Container for invoice items, The maximum number of items is 1,000.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PutInvoiceTypeTransferredToAccounting","description":"Whether the invoice was transferred to an external accounting system.\n"},"templateId":{"type":"string","description":"The ID of the invoice template associated with the invoice.\n\n**Note**: This field is only available if you have the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\"\ntarget=\"_blank\">Flexible Billing Attributes</a> feature enabled.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of an Invoice object.\n","title":"PutInvoiceType"},"PutInvoiceResponseTypeStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","Split"],"description":"The status of the invoice.\n\n**Note:** \n- The `Split` status is applicable only when you use <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/invoice-management/split-invoices/split-invoices-overview\"\ntarget=\"_blank\">Split Invoice feature</a>.\n  \n- When an invoice is split, its status changes from `Draft` to `Split`, and the newly created invoices retain a reference to the original invoice.\n","title":"PutInvoiceResponseTypeStatus"},"PutInvoiceResponseTypeTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the invoice was transferred to an external accounting system.\n","title":"PutInvoiceResponseTypeTransferredToAccounting"},"PutInvoiceResponseType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account associated with the invoice.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the invoice.\n"},"autoPay":{"type":"boolean","description":"Whether invoices are automatically picked up for processing in the corresponding payment run. \n"},"balance":{"type":"number","format":"double","description":"The balance of the invoice.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the Zuora user who cancelled the invoice.\n"},"cancelledOn":{"type":["string","null"],"description":"The date and time when the invoice was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":"string","description":"Comments about the invoice. \n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the invoice.\n"},"createdDate":{"type":"string","description":"The date and time when the invoice was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditBalanceAdjustmentAmount":{"type":"number","format":"double","description":"**Note:** This filed is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.\nThe currency amount of the adjustment applied to the customer's credit balance.\n"},"currency":{"type":"string","description":"A currency defined in the web-based UI administrative settings.\n"},"discount":{"type":"number","format":"double","description":"The discount of the invoice.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for this invoice is due. \n"},"id":{"type":"string","description":"The unique ID of the invoice.\n"},"invoiceDate":{"type":"string","format":"date","description":"The date on which to generate the invoice.\n"},"number":{"type":"string","description":"The unique identification number of the invoice.\n"},"postedById":{"type":"string","description":"The ID of the Zuora user who posted the invoice.\n"},"postedOn":{"type":"string","description":"The date and time when the invoice was posted, in `yyyy-mm-dd hh:mm:ss` format. \n"},"status":{"$ref":"#/components/schemas/PutInvoiceResponseTypeStatus","description":"The status of the invoice.\n\n**Note:** \n- The `Split` status is applicable only when you use <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/invoice-management/split-invoices/split-invoices-overview\"\ntarget=\"_blank\">Split Invoice feature</a>.\n  \n- When an invoice is split, its status changes from `Draft` to `Split`, and the newly created invoices retain a reference to the original invoice.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for the invoice, in `yyyy-mm-dd` format. For example, 2017-07-20. \n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"templateId":{"type":"string","description":"The ID of the invoice template associated with the invoice.\n"},"totalTaxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PutInvoiceResponseTypeTransferredToAccounting","description":"Whether the invoice was transferred to an external accounting system.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the invoice.\n"},"updatedDate":{"type":"string","description":"The date and time when the invoice was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of an Invoice object.\n","title":"PutInvoiceResponseType"},"DeleteInvoiceResponseTypeJobStatus":{"type":"string","enum":["Pending","Completed"],"description":"The status of the invoice deletion operation. \n","title":"DeleteInvoiceResponseTypeJobStatus"},"DeleteInvoiceResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of the response.\n"},"message":{"type":"string","description":"The detail information of the error response.\n"}},"title":"DeleteInvoiceResponseTypeReasonsItems"},"DeleteInvoiceResponseType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the deleted invoice.\n"},"jobId":{"type":"string","description":"The ID of the job that handles the invoice deletion operation. \n\nYou can specify the value of this field as the value of the `jobId` path parameter in the [Retrieve an operation job](https://developer.zuora.com/api-references/api/operation/GET_OperationJob/) API operation to query job information.\n"},"jobStatus":{"$ref":"#/components/schemas/DeleteInvoiceResponseTypeJobStatus","description":"The status of the invoice deletion operation. \n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/DeleteInvoiceResponseTypeReasonsItems"}},"success":{"type":"boolean","description":"Whether the call succeeded.\n"}},"title":"DeleteInvoiceResponseType"},"CancelInvoiceResponseTypeJobStatus":{"type":"string","enum":["Pending","Processing","Failed","Completed"],"description":"The status of the job.","title":"CancelInvoiceResponseTypeJobStatus"},"CancelInvoiceResponseType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the business object which is being operated."},"jobId":{"type":"string","description":"The ID of the operation job."},"jobStatus":{"$ref":"#/components/schemas/CancelInvoiceResponseTypeJobStatus","description":"The status of the job."},"success":{"type":"boolean","description":"Indicates whether the request was successful."}},"title":"CancelInvoiceResponseType"},"GetInvoiceApplicationPartType":{"type":"object","properties":{"appliedAmount":{"type":"number","format":"double","description":"The amount that is applied to the invoice.\n"},"createdById":{"type":"string","format":"uuid","description":"The ID of the Zuora user who created the payment or credit memo.\n"},"createdDate":{"type":"string","description":"The date and time when the payment or credit memo was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-12-01 15:31:10.\n"},"creditMemoId":{"type":"string","format":"uuid","description":"The ID of credit memo that is applied to the specified invoice.\n"},"paymentId":{"type":"string","format":"uuid","description":"The ID of the payment that is applied to the specified invoice.\n"},"updatedById":{"type":"string","format":"uuid","description":"The ID of the Zuora user who last updated the payment or credit memo.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment or credit memo was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2018-01-02 11:42:16.\n"}},"title":"GetInvoiceApplicationPartType"},"GetInvoiceApplicationPartCollectionType":{"type":"object","properties":{"applicationParts":{"type":"array","items":{"$ref":"#/components/schemas/GetInvoiceApplicationPartType"},"description":"Container for application parts.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GetInvoiceApplicationPartCollectionType"},"PostInvoiceEmailRequestType":{"type":"object","properties":{"emailAddresses":{"type":"string","description":"The valid email addresses you want to email an invoice to. Use commas to separate email addresses.\n**Note:** This field is only applicable if you set the `useEmailTemplateSetting` field to `false`.\n"},"includeAdditionalEmailAddresses":{"type":"boolean","default":false,"description":"Whether to send an invoice to the additional email addresses of the invoice account. \nYou can set the additional email addresses in the **Additional Email Addresses** field on the account detail page from the Zuora UI. See [Create a Customer Account](https://knowledgecenter.zuora.com/BC_Subscription_Management/Customer_Accounts/B_Create_a_Customer_Account#section_2) for more information.\n"},"useEmailTemplateSetting":{"type":"boolean","default":false,"description":"Indicates whether to email an invoice based on the email template setting. \nIf you set this field to `true`, the invoice is sent to the email addresses specified in the **To Email** field of the email template. The email template is the one you 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"}},"title":"PostInvoiceEmailRequestType"},"InvoiceFile":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the invoice PDF file. This is the ID for the file object and different from the file handle ID in the `pdfFileUrl` field. To open a file, you have to use the file handle ID.\n"},"pdfFileUrl":{"type":"string","description":"The relative URL of the invoice PDF file.\n\nYou can obtain the absolute URL for downloading the file by adding a prefix in the following format: `{environment_base_url}/apps`\n\nFor example, `https://apisandbox.zuora.com/apps/v1/files/2c98901f62d7d83d0162d7facea6262d`.\n"},"versionNumber":{"type":"integer","format":"int64","description":"The version number of the invoice PDF file.\n"}},"title":"InvoiceFile"},"GETInvoiceFilesResponse":{"type":"object","properties":{"invoiceFiles":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceFile"},"description":"Container for invoice PDF files.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETInvoiceFilesResponse"},"POSTUploadFileResponse":{"type":"object","properties":{"fileId":{"type":"string","description":"The unique ID of the uploaded PDF file.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"POSTUploadFileResponse"},"InvoiceItemChargeType":{"type":"string","enum":["OneTime","Recurring","Usage"],"description":"The type of the charge. \n","title":"InvoiceItemChargeType"},"InvoiceItemProcessingType":{"type":"string","enum":["Charge","Discount","Prepayment","Tax","Rounding"],"description":"The kind of the charge for the invoice item. \n","title":"InvoiceItemProcessingType"},"InvoiceItemRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"The date when revenue recognition is triggered.\n","title":"InvoiceItemRevRecTriggerCondition"},"InvoiceItemSourceItemType":{"type":"string","enum":["SubscriptionComponent","Rounding","ProductRatePlanCharge","None","OrderLineItem"],"description":"The type of the source item.\n","title":"InvoiceItemSourceItemType"},"GetInvoiceTaxItemTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate.\n","title":"GetInvoiceTaxItemTypeTaxRateType"},"GETInvoiceTaxItemType":{"type":"object","properties":{"availableToCreditAmount":{"type":"number","format":"double","description":"The amount of the invoice taxation item that is available to credit.\n"},"applicableTaxUnRounded":{"type":"number","format":"double","description":"The unrounded amount of the tax. \n"},"country":{"type":"string","description":"The field which contains country code.\n"},"balance":{"type":"number","format":"double","description":"The balance of the taxation item.\n"},"creditAmount":{"type":"number","format":"double","description":"The amount of credit memos applied to the taxation item. \n"},"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"id":{"type":"string","description":"The ID of the taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"paymentAmount":{"type":"number","format":"double","description":"The amount of payments applied to the taxation item. \n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific invoice.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the invoice, in `yyyy-mm-dd` format.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the invoice.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/GetInvoiceTaxItemTypeTaxRateType","description":"The type of the tax rate.\n"}},"description":"Container for custom fields of a Taxation Item object.\n","title":"GETInvoiceTaxItemType"},"InvoiceItemTaxationItems":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETInvoiceTaxItemType"},"description":"List of taxation items.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"}},"description":"Container for the taxation items of the invoice item. \n","title":"InvoiceItemTaxationItems"},"InvoiceItem":{"type":"object","properties":{"accountingCode":{"type":"string","description":"The accounting code associated with the invoice item."},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code for adjustment liability. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code for adjustment revenue. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"appliedToItemId":{"type":"string","description":"The unique ID of the invoice item that the discount charge is applied to."},"availableToCreditAmount":{"type":"number","format":"double","description":"The amount of the invoice item that is available to credit.        \n"},"balance":{"type":"string","format":"decimal","description":"The balance of the invoice item.\n\n**Note**: This field is only available if you have the Invoice Settlement feature enabled.\n"},"bookingReference":{"type":"string","description":"The booking reference of the invoice item.\n"},"chargeAmount":{"type":"string","format":"decimal","description":"The amount of the charge. \n\n**Note**: This amount does not include taxes regardless if the charge's tax mode is inclusive or exclusive. This is the discount amount actually applied when the invoice item is a discount charge.\n"},"chargeDate":{"type":"string","description":"The date when the invoice item is charged, in `yyyy-mm-dd hh:mm:ss` format.\n"},"chargeDescription":{"type":"string","description":"The description of the charge."},"chargeId":{"type":"string","description":"The unique ID of the charge."},"chargeName":{"type":"string","description":"The name of the charge."},"chargeType":{"$ref":"#/components/schemas/InvoiceItemChargeType","description":"The type of the charge. \n"},"commitmentId":{"type":"string","description":"The ID of the commitment.\n"},"commitmentPeriodId":{"type":"string","description":"The ID of the commitment period.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code for contract asset. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code for contract liability. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for contract recognized revenue. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"deferredRevenueAccountingCode":{"type":"string","description":"The deferred revenue accounting code associated with the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"description":{"type":"string","description":"The description of the invoice item."},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the invoice item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"fulfillmentId":{"type":"string","description":"The reference ID of the fulfillment associated with the invoice item.\n"},"id":{"type":"string","description":"Item ID."},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule item by which Invoice Schedule Item the invoice item is generated by when the Invoice Schedule Item is executed.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"invoiceScheduleItemId":{"type":"string","description":"The ID of the invoice schedule item associated with the invoice item.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"itemType":{"type":"string","description":"The type of the invoice item.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"The number of deliveries dedicated to the Delivery Pricing charges.\n**Note**: This field is available only if you have the Delivery Pricing feature enabled.\n"},"orderLineItemId":{"type":"string","description":"The reference ID of the oder line item associated with the invoice item.\n"},"processingType":{"$ref":"#/components/schemas/InvoiceItemProcessingType","description":"The kind of the charge for the invoice item. \n"},"productName":{"type":"string","description":"Name of the product associated with this item."},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the invoice item is created from.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number associated with the invoice item.\n"},"quantity":{"type":"string","format":"decimal","description":"The quantity of this item, in the configured unit of measure for the charge."},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set both the `excludeItemBookingFromRevenueAccounting` and `ExcludeItemBillingFromRevenueAccounting` fields to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.  \n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The recognized revenue accounting code associated with the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"revRecCode":{"type":"string","description":"The revenue recognition code.\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/InvoiceItemRevRecTriggerCondition","description":"The date when revenue recognition is triggered.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The revenue recognition rule of the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The end date of the service period for this item, i.e., the last day of the service period, as _yyyy-mm-dd_."},"serviceStartDate":{"type":"string","format":"date","description":"The start date of the service period for this item, as _yyyy-mm-dd_. For a one-time fee item, the date of the charge."},"sku":{"type":"string","description":"The SKU of the invoice item.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the invoice item.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the invoice item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the invoice item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"sourceItemType":{"$ref":"#/components/schemas/InvoiceItemSourceItemType","description":"The type of the source item.\n"},"subscriptionId":{"type":"string","description":"The ID of the subscription for this item."},"subscriptionName":{"type":"string","description":"The name of the subscription for this item."},"taxAmount":{"type":"string","format":"decimal","description":"Tax applied to the charge."},"taxCode":{"type":"string","description":"The tax code of the invoice item.\n**Note** Only when taxation feature is enabled, this field can be presented.\n"},"taxMode":{"type":"string","description":"The tax mode of the invoice item.\n**Note** Only when taxation feature is enabled, this field can be presented.\n"},"taxationItems":{"$ref":"#/components/schemas/InvoiceItemTaxationItems","description":"Container for the taxation items of the invoice item. \n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code for unbilled receivables. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"unitOfMeasure":{"type":"string","description":"Unit used to measure consumption."},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the invoice item.\n\n**Note**: For discount charges, this represents the discount percentage (for percentage-based discounts)  or the discount amount (for fixed-amount discounts).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the invoice item's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the invoice item was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of an Invoice Item object.\n","title":"InvoiceItem"},"GETInvoiceItemsResponse":{"type":"object","properties":{"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceItem"},"description":"Container for invoice items.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETInvoiceItemsResponse"},"GETInvoiceTaxationItemsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETInvoiceTaxItemType"},"description":"Container for the taxation items of the invoice item.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETInvoiceTaxationItemsResponse"},"PutReverseInvoiceType":{"type":"object","properties":{"applyEffectiveDate":{"type":"string","format":"date","description":"The date when the credit memo is applied to the invoice that will be reversed, in `yyyy-mm-dd` format. The effective date must be later than or equal to the memo date.\n\nThe default value is the date when you reverse the invoice and create the credit memo.\n\n**Note:** If the target invoice is a split invoice, this date must be equal to or later than all invoice dates in the split invoice group.\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the reversal. The comment is used as the comment of the credit memo generated by reversing the specified invoice.\n"},"memoDate":{"type":"string","format":"date","description":"\nThe date when the credit memo was created, in `yyyy-mm-dd` format. The memo date must be later than or equal to the invoice date.\n\nThe default value is the date when you reverse the invoice and create the credit memo.\n\n**Note:** If the target invoice is a split invoice, this date must be equal to or later than all invoice dates in the split invoice group.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the reversal. The value must be an existing reason code or empty. The code is used as the reason code of the credit memo generated by reversing the specified invoice.\n\nIf you do not specify a value, Zuora uses the default reason code `Invoice reversal` for the credit memo.\n"}},"title":"PutReverseInvoiceType"},"PutReverseInvoiceResponseTypeCreditMemo":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the credit memo."}},"description":"Container for the credit memo that is automatically generated during the invoice reversal.\n","title":"PutReverseInvoiceResponseTypeCreditMemo"},"ReverseInvoiceResponseCreditMemo":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the credit memo."}},"title":"ReverseInvoiceResponseCreditMemo"},"PutReverseInvoiceResponseTypeDebitMemo":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the debit memo."}},"description":"Container for the debit memo that is automatically generated during the reversal of the credit memo related to this invoice. If no related credit memo is reversed, this field is not returned in the response body.\n","title":"PutReverseInvoiceResponseTypeDebitMemo"},"PutReverseInvoiceResponseTypeJobStatus":{"type":"string","enum":["Pending","Processing","Failed","Completed"],"description":"The status of the invoice reversal operation.\n\nThis field is available only when the reversal operation is performed asynchronously.\n","title":"PutReverseInvoiceResponseTypeJobStatus"},"PutReverseInvoiceResponseType":{"type":"object","properties":{"creditMemo":{"$ref":"#/components/schemas/PutReverseInvoiceResponseTypeCreditMemo","description":"Container for the credit memo that is automatically generated during the invoice reversal.\n"},"creditMemos":{"type":"array","items":{"$ref":"#/components/schemas/ReverseInvoiceResponseCreditMemo"},"description":"Array of credit memo objects generated by the reversal. This field can contain multiple items when the target invoice belongs to a split invoice group.\n"},"debitMemo":{"$ref":"#/components/schemas/PutReverseInvoiceResponseTypeDebitMemo","description":"Container for the debit memo that is automatically generated during the reversal of the credit memo related to this invoice. If no related credit memo is reversed, this field is not returned in the response body.\n"},"id":{"type":["string","null"],"description":"The ID of the invoice to be reversed.\n\nThis field is available only when the reversal operation is performed asynchronously.\n"},"jobId":{"type":["string","null"],"description":"The ID of the job that handles the invoice reversal operation.\n\nYou can specify the value of this field as the value of the `jobId` path parameter in the [Retrieve an operation job](https://developer.zuora.com/v1-api-reference/api/operation/GET_OperationJob/) API operation to query job information.\n\nThis field is available only when the reversal operation is performed asynchronously.\n"},"jobStatus":{"oneOf":[{"$ref":"#/components/schemas/PutReverseInvoiceResponseTypeJobStatus"},{"type":"null"}],"description":"The status of the invoice reversal operation.\n\nThis field is available only when the reversal operation is performed asynchronously.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"PutReverseInvoiceResponseType"},"SplitInvoiceRequestSplitType":{"type":"string","enum":["Percentage","Amount"],"description":"How the split is calculated. \n","title":"SplitInvoiceRequestSplitType"},"SplitInvoiceResponseSplitItems":{"type":"object","properties":{"splitAmount":{"type":"number","format":"double","description":"Target invoice total amount (including tax) for this split invoice. Required when `splitType` is `Amount`. The sum of all `splitAmount` values must exactly equal the original invoice total. Each value must be at least the minimum currency unit (for example, 0.01 for USD, 1 for JPY).\n"},"splitPercentage":{"type":"number","format":"double","description":"Percentage of the original invoice total for this split invoice. Required when `splitType` is `Percentage`. The sum of all `splitPercentage` values must be exactly 100.000000000.\n"},"invoiceDate":{"type":"string","format":"date","description":"Date for the new invoice in YYYY-MM-DD format. Defaults to the original invoice date if not specified.\n"},"paymentTerm":{"type":"string","description":"Payment term name for this split invoice (for example, Due Upon Receipt, Net 30). Must be a valid active payment term on the account.\n"}},"title":"SplitInvoiceResponseSplitItems"},"SplitInvoiceRequest":{"type":"object","properties":{"splitType":{"$ref":"#/components/schemas/SplitInvoiceRequestSplitType","description":"How the split is calculated. \n"},"splits":{"type":"array","items":{"$ref":"#/components/schemas/SplitInvoiceResponseSplitItems"},"description":"Array of split configurations."}},"title":"SplitInvoiceRequest"},"SplitInvoiceResponseJobStatus":{"type":"string","enum":["Pending","Processing","Failed","Completed"],"description":"Status of the job. \n\nFor invoices with a large number of invoice items, this operation might run asynchronously. \nIn this case, the response includes `jobId` and `jobStatus`. The `jobId` identifies the operation job, and `jobStatus` \nindicates whether the operation is `Completed` or `Pending`. If `jobStatus` is `Pending`, use the \n\"Retrieve an operation job\" operation to check the job status until the operation is complete.\n","title":"SplitInvoiceResponseJobStatus"},"SplitInvoiceInvoiceItems":{"type":"object","properties":{"id":{"type":"string","description":"Invoice ID."},"invoiceNumber":{"type":"string","description":"Invoice number."},"invoiceDate":{"type":"string","format":"date","description":"Invoice date in YYYY-MM-DD format."},"amount":{"type":"number","format":"double","description":"Invoice amount."}},"title":"SplitInvoiceInvoiceItems"},"SplitInvoiceResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful."},"id":{"type":"string","description":"Unique identifier for the request."},"jobId":{"type":"string","description":"Identifier of the async job."},"jobStatus":{"$ref":"#/components/schemas/SplitInvoiceResponseJobStatus","description":"Status of the job. \n\nFor invoices with a large number of invoice items, this operation might run asynchronously. \nIn this case, the response includes `jobId` and `jobStatus`. The `jobId` identifies the operation job, and `jobStatus` \nindicates whether the operation is `Completed` or `Pending`. If `jobStatus` is `Pending`, use the \n\"Retrieve an operation job\" operation to check the job status until the operation is complete.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/SplitInvoiceInvoiceItems"},"description":"List of generated invoices."}},"title":"SplitInvoiceResponse"},"PostTaxationItemTypeForInvoiceFinanceInformation":{"type":"object","properties":{"accountsReceivableAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for accounts receivable.\n"},"salesTaxPayableAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the taxation item.\n","title":"PostTaxationItemTypeForInvoiceFinanceInformation"},"PostTaxationItemTypeForInvoiceTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n","title":"PostTaxationItemTypeForInvoiceTaxMode"},"PostTaxationItemTypeForInvoiceTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the invoice item.\n","title":"PostTaxationItemTypeForInvoiceTaxRateType"},"POSTTaxationItemTypeForInvoice":{"type":"object","properties":{"exemptAmount":{"type":"string","format":"number","description":"The calculated tax amount excluded due to the exemption.\n"},"financeInformation":{"$ref":"#/components/schemas/PostTaxationItemTypeForInvoiceFinanceInformation","description":"Container for the finance information related to the taxation item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice associated with the taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"name":{"type":"string","description":"The name of taxation.\n"},"taxAmount":{"type":"string","format":"number","description":"The amount of the taxation item in the invoice item.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific invoice item.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the invoice item, in `yyyy-mm-dd` format.\n"},"taxMode":{"$ref":"#/components/schemas/PostTaxationItemTypeForInvoiceTaxMode","description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n"},"taxRate":{"type":"string","format":"number","description":"The tax rate applied to the invoice item.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/PostTaxationItemTypeForInvoiceTaxRateType","description":"The type of the tax rate applied to the invoice item.\n"}},"required":["invoiceItemId","jurisdiction","name","taxAmount","taxDate","taxRate","taxRateType"],"description":"Container for custom fields of a Taxation Item object.\n","title":"POSTTaxationItemTypeForInvoice"},"POSTTaxationItemList":{"type":"object","properties":{"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTTaxationItemTypeForInvoice"},"description":"Container for taxation items.\n"}},"title":"POSTTaxationItemList"},"GetTaxationItemTypewithSuccessFinanceInformation":{"type":"object","properties":{"accountsReceivableAccountingCode":{"type":"string","description":"The accounting code for accounts receivable.\n"},"accountsReceivableAccountingCodeType":{"type":"string","description":"The type of the accounting code for accounts receivable.\n"},"salesTaxPayableAccountingCode":{"type":"string","description":"The accounting code for the sales taxes payable.\n"},"salesTaxPayableAccountingCodeType":{"type":"string","description":"The type of the accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the taxation item.\n","title":"GetTaxationItemTypewithSuccessFinanceInformation"},"GetTaxationItemTypewithSuccessTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n","title":"GetTaxationItemTypewithSuccessTaxMode"},"GetTaxationItemTypewithSuccessTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the invoice.\n","title":"GetTaxationItemTypewithSuccessTaxRateType"},"GETTaxationItemTypewithSuccess":{"type":"object","properties":{"createdById":{"type":"string","description":"The ID of the Zuora user who created the taxation item.\n"},"createdDate":{"type":"string","description":"The date and time when the taxation item was created in the Zuora system, in `yyyy-mm-dd hh:mm:ss` format.\n"},"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"financeInformation":{"$ref":"#/components/schemas/GetTaxationItemTypewithSuccessFinanceInformation","description":"Container for the finance information related to the taxation item.\n"},"id":{"type":"string","description":"The ID of the taxation item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice associated with the taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":["string","null"],"description":"The identifier for the location based on the value of the `taxCode` field.\n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of the tax applied to the invoice.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific invoice.\n"},"taxCodeDescription":{"type":["string","null"],"description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date when the tax is applied to the invoice.\n"},"taxMode":{"$ref":"#/components/schemas/GetTaxationItemTypewithSuccessTaxMode","description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the invoice.\n"},"taxRateDescription":{"type":["string","null"],"description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/GetTaxationItemTypewithSuccessTaxRateType","description":"The type of the tax rate applied to the invoice.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the taxation item.\n"},"updatedDate":{"type":"string","description":"The date and time when the taxation item was last updated, in `yyyy-mm-dd hh:mm:ss` format.\n"}},"description":"Container for custom fields of a Taxation Item object.\n","title":"GETTaxationItemTypewithSuccess"},"GETTaxationItemListType":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/GETTaxationItemTypewithSuccess"},"description":"Container for taxation items.\n"}},"title":"GETTaxationItemListType"},"WriteOffInvoiceRequestRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nThe **Exclude Billing Item From Revenue** field will be automatically set to **Yes** by default for such non-revenue impacting write off credit memos, and this setting cannot be changed. This enhancement helps ensure that only revenue-impacting items are synchronized with Zuora Revenue, reducing unnecessary data processing.\n  \nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n\n\n**Note**: This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a\nhref=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n","title":"WriteOffInvoiceRequestRevenueImpacting"},"CreditMemoItemFromWriteOffInvoiceFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"recognizedRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"revenueRecognitionRuleName":{"type":"string","minLength":0,"maxLength":100,"description":"The name of the revenue recognition rule governing the revenue schedule.\n"}},"description":"Container for the finance information related to the credit memo item.\n","title":"CreditMemoItemFromWriteOffInvoiceFinanceInformation"},"CreditMemoItemFromWriteOffInvoiceTaxationItemsItems":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The credit memo taxation amount.\n"},"taxationItemId":{"type":"string","description":"The Id of the debit memo item.\n"}},"title":"CreditMemoItemFromWriteOffInvoiceTaxationItemsItems"},"CreditMemoItemFromWriteOffInvoice":{"type":"object","properties":{"comment":{"type":"string","description":"Comments about the credit memo item.\n"},"financeInformation":{"$ref":"#/components/schemas/CreditMemoItemFromWriteOffInvoiceFinanceInformation","description":"Container for the finance information related to the credit memo item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the credit memo item. \n"},"amountWithoutTax":{"type":"number","format":"double","description":"The write off amount of the invoice item excluding tax.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the credit memo item. \n"},"skuName":{"type":"string","description":"The name of the charge associated with the invoice.\n"},"unitOfMeasure":{"type":"string","description":"The definable unit that you measure when determining charges.\n"},"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoItemFromWriteOffInvoiceTaxationItemsItems"},"description":"Container for the taxation items of the credit memo item.\n\n**Note**: \n  \n* This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `239.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"}},"description":"Container for custom fields of a Credit Memo Item object.\n","title":"CreditMemoItemFromWriteOffInvoice"},"WriteOffInvoiceRequest":{"type":"object","properties":{"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the credit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the credit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the write-off. The comment is used as the comment of the credit memo generated by writing off the specified invoice.\n"},"amount":{"type":"number","format":"double","description":"The write off amount of the invoice.\n\n\n**Note**: This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a\nhref=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n"},"revenueImpacting":{"$ref":"#/components/schemas/WriteOffInvoiceRequestRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nThe **Exclude Billing Item From Revenue** field will be automatically set to **Yes** by default for such non-revenue impacting write off credit memos, and this setting cannot be changed. This enhancement helps ensure that only revenue-impacting items are synchronized with Zuora Revenue, reducing unnecessary data processing.\n  \nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n\n\n**Note**: This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a\nhref=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n"},"nonRevenueWriteOffAccountingCode":{"type":"string","description":"Specify the accounting code for the non revenue write off. Available only if `revenueImpacting` = `no`.\n\n\n**Note**: This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a\nhref=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoItemFromWriteOffInvoice"},"description":"Container for items. This field is optional. \n  \n\n**Note:** \n  \n* If specified, you must specify ALL the items of the invoice. The entire balance of the invoice will be written off, you cannot just write off some items of the invoice.\n\n* This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a href=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n"},"memoDate":{"type":"string","format":"date","description":"The date when the credit memo was created, in `yyyy-mm-dd` format. The memo date must be later than or equal to the invoice date.\n\nThe default value is the date when you write off the invoice.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code `Write-off`.\n"}},"title":"WriteOffInvoiceRequest"},"WriteOffInvoiceAsyncJobResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"WriteOffInvoiceAsyncJobResponseReasonsItems"},"InvoiceSettlementAsyncJobStatus":{"type":"string","enum":["Pending","Processing","Processed","Error"],"description":"Job status of the Invoice Settlement async job.\n","title":"InvoiceSettlementAsyncJobStatus"},"InvoiceSettlementAsyncJobOperationType":{"type":"string","enum":["AsyncCreditMemoApply","AsyncCreditMemoUnapply"],"description":"Operation type of the Invoice Settlement async job.\n","title":"InvoiceSettlementAsyncJobOperationType"},"InvoiceSettlementAsyncJobReferenceType":{"type":"string","enum":["CreditMemo"],"description":"Reference type of the Invoice Settlement async job.\n","title":"InvoiceSettlementAsyncJobReferenceType"},"WriteOffInvoiceResponseCreditMemo":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the credit memo that is created when the invoice is written off.\n"}},"description":"Container for the credit memo that is automatically generated when writing off\ninvoices.","title":"WriteOffInvoiceResponseCreditMemo"},"WriteOffInvoiceAsyncJobResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/WriteOffInvoiceAsyncJobResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"id":{"type":"string","description":"The ID of the operation job."},"status":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobStatus"},"operationType":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobOperationType"},"referenceId":{"type":"string","description":"The ID of the business object which is being operated."},"referenceType":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobReferenceType"},"error":{"type":["string","null"],"description":"The error message if the operation fails."},"creditMemo":{"$ref":"#/components/schemas/WriteOffInvoiceResponseCreditMemo"}},"title":"WriteOffInvoiceAsyncJobResponse"},"CommonErrorResponse":{"type":"object","properties":{"code":{"type":"integer","description":"The error code.\n"},"message":{"type":"string","description":"The error message.\n"}},"title":"CommonErrorResponse"},"PutWriteOffInvoiceRequestRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nThe **Exclude Billing Item From Revenue** field will be automatically set to **Yes** by default for such non-revenue impacting write off credit memos, and this setting cannot be changed. This enhancement helps ensure that only revenue-impacting items are synchronized with Zuora Revenue, reducing unnecessary data processing.\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n\n\n**Note**: This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a\nhref=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n","title":"PutWriteOffInvoiceRequestRevenueImpacting"},"PUTWriteOffInvoiceRequest":{"type":"object","properties":{"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the write-off. The comment is used as the comment of the credit memo generated by writing off the specified invoice.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoItemFromWriteOffInvoice"},"description":"Container for items. This field is optional. \n\n**Note:** \n* If specified, you must specify ALL the items of the invoice. The entire balance of the invoice will be written off, you cannot just write off some items of the invoice.\n\n\n * This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a\nhref=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n"},"memoDate":{"type":"string","format":"date","description":"The date when the credit memo was created, in `yyyy-mm-dd` format. The memo date must be later than or equal to the invoice date.\n\nThe default value is the date when you write off the invoice.\n"},"revenueImpacting":{"$ref":"#/components/schemas/PutWriteOffInvoiceRequestRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nThe **Exclude Billing Item From Revenue** field will be automatically set to **Yes** by default for such non-revenue impacting write off credit memos, and this setting cannot be changed. This enhancement helps ensure that only revenue-impacting items are synchronized with Zuora Revenue, reducing unnecessary data processing.\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n\n\n**Note**: This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a\nhref=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n"},"amount":{"type":"number","format":"double","description":"The write off amount of the invoice.\n\n\n**Note**: This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a\nhref=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n"},"nonRevenueWriteOffAccountingCode":{"type":"string","description":"Specify the accounting code for the non revenue write off. Available only if `revenueImpacting` = `no`.\n\n\n**Note**: This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a\nhref=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code `Write-off`.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the credit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the credit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for Credit Memo fields provided by the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"PUTWriteOffInvoiceRequest"},"PutWriteOffInvoiceResponseCreditMemo":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the credit memo that is created when the invoice is written off.\n"}},"description":"Container for the credit memo that is automatically generated when writing off invoices.\n","title":"PutWriteOffInvoiceResponseCreditMemo"},"PUTWriteOffInvoiceResponse":{"type":"object","properties":{"creditMemo":{"$ref":"#/components/schemas/PutWriteOffInvoiceResponseCreditMemo","description":"Container for the credit memo that is automatically generated when writing off invoices.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"PUTWriteOffInvoiceResponse"},"V1CreditMemosGetParametersStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"title":"V1CreditMemosGetParametersStatus"},"V1CreditMemosGetParametersTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"title":"V1CreditMemosGetParametersTransferredToAccounting"},"GetCreditMemoTypewithSuccessEinvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n  **Note**: This field is available only if you have the <a\n  href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\n  target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase\n  enabled.\n","title":"GetCreditMemoTypewithSuccessEinvoiceStatus"},"GetCreditMemoTypewithSuccessRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n","title":"GetCreditMemoTypewithSuccessRevenueImpacting"},"GetCreditMemoTypewithSuccessSourceType":{"type":"string","enum":["Subscription","Standalone","Invoice","Order","CreditMemo","Consolidation"],"description":"The type of the credit memo source.\n","title":"GetCreditMemoTypewithSuccessSourceType"},"GetCreditMemoTypewithSuccessStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"description":"The status of the credit memo. \n","title":"GetCreditMemoTypewithSuccessStatus"},"GetCreditMemoTypewithSuccessTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status of tax calculation related to the credit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post,  Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"GetCreditMemoTypewithSuccessTaxStatus"},"GetCreditMemoTypewithSuccessTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the credit memo was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"GetCreditMemoTypewithSuccessTransferredToAccounting"},"GETCreditMemoTypewithSuccess":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account associated with the credit memo.\n"},"accountNumber":{"type":"string","description":"The number of the account associated with the credit memo.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the credit memo.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the credit memo.\n"},"autoApplyUponPosting":{"type":"boolean","description":"Whether the credit memo automatically applies to the invoice upon posting.\n"},"billToContactId":{"type":["string","null"],"description":"The ID of the bill-to contact associated with the credit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the Zuora user who cancelled the credit memo.\n"},"cancelledOn":{"type":["string","null"],"description":"The date and time when the credit memo was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the credit memo.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the credit memo.\n"},"createdDate":{"type":"string","description":"The date and time when the credit memo was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditMemoDate":{"type":"string","format":"date","description":"The date when the credit memo takes effect, in `yyyy-mm-dd` format. For example, 2017-05-20.\n"},"currency":{"type":["string","null"],"description":"The currency of the credit memo.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"einvoiceErrorCode":{"type":["string","null"],"description":"The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceErrorMessage":{"type":["string","null"],"description":"The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceFileId":{"type":["string","null"],"description":"The ID of the e-invoice file generated for the credit memo.\n\n**Note**: This field 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"},"einvoiceStatus":{"oneOf":[{"$ref":"#/components/schemas/GetCreditMemoTypewithSuccessEinvoiceStatus"},{"type":"null"}],"description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n  **Note**: This field is available only if you have the <a\n  href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\n  target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase\n  enabled.\n"},"excludeFromAutoApplyRules":{"type":"boolean","description":"Whether the credit memo is excluded from the rule of automatically applying unapplied credit memos to invoices and debit memos during payment runs.\n"},"id":{"type":"string","description":"The unique ID of the credit memo.\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the credit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"latestPDFFileId":{"type":"string","description":"The ID of the latest PDF file generated for the credit memo.\n"},"number":{"type":"string","description":"The unique identification number of the credit memo.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"postedById":{"type":["string","null"],"description":"The ID of the Zuora user who posted the credit memo.\n"},"postedOn":{"type":["string","null"],"description":"The date and time when the credit memo was posted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty.\n"},"referredInvoiceId":{"type":["string","null"],"description":"The ID of a referred invoice.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the refund on the credit memo.\n"},"revenueImpacting":{"$ref":"#/components/schemas/GetCreditMemoTypewithSuccessRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n"},"reversed":{"type":"boolean","description":"Whether the credit memo is reversed.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the credit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the credit memo.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\nfeature turned on. The value is `null` in the response body without this feature turned on.\n"},"source":{"type":"string","description":"The source of the credit memo.\n\nPossible values:\n- `BillRun`: The credit memo is generated by a bill run.\n- `API`: The credit memo is created by calling the [Invoice and collect](https://developer.zuora.com/api-references/api/operation/POST_TransactionInvoicePayment) operation, or by calling the Orders, Order Line Items, or Fulfillments API operations.\n- `ApiSubscribe`: The credit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.\n- `ApiAmend`: The credit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.\n- `AdhocFromPrpc`: The credit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a credit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc) operation.\n- `AdhocFromInvoice`: The credit memo is created from an invoice or created by reversing an invoice. You can create a credit memo from an invoice through the Zuora UI or by calling the [Create credit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromInvoice) operation. You can create a credit memo by reversing an invoice through the Zuora UI or by calling the [Reverse invoice](https://developer.zuora.com/api-references/api/operation/PUT_ReverseInvoice) operation.\n"},"sourceId":{"type":"string","description":"The ID of the credit memo source. \n\nIf a credit memo is generated from a bill run, the value is the number of the corresponding bill run. Otherwise, the value is `null`.\n"},"sourceType":{"$ref":"#/components/schemas/GetCreditMemoTypewithSuccessSourceType","description":"The type of the credit memo source.\n"},"status":{"$ref":"#/components/schemas/GetCreditMemoTypewithSuccessStatus","description":"The status of the credit memo. \n"},"targetDate":{"type":["string","null"],"format":"date","description":"The target date for the credit memo, in `yyyy-mm-dd` format. For example, 2017-07-20.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxMessage":{"type":["string","null"],"description":"The message about the status of tax calculation related to the credit memo. If tax calculation fails in one credit memo, this field displays the reason for the failure.\n"},"taxStatus":{"oneOf":[{"$ref":"#/components/schemas/GetCreditMemoTypewithSuccessTaxStatus"},{"type":"null"}],"description":"The status of tax calculation related to the credit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post,  Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"totalTaxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetCreditMemoTypewithSuccessTransferredToAccounting","description":"Whether the credit memo was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the credit memo.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the credit memo.\n"},"updatedDate":{"type":"string","description":"The date and time when the credit memo was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the credit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the credit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Credit Memo object.\n","title":"GETCreditMemoTypewithSuccess"},"GETCreditMemoCollectionType":{"type":"object","properties":{"creditmemos":{"type":"array","items":{"$ref":"#/components/schemas/GETCreditMemoTypewithSuccess"},"description":"Container for credit memos.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETCreditMemoCollectionType"},"CreditMemoFromChargeDetailTypeFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"recognizedRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"revenueRecognitionRuleName":{"type":"string","minLength":0,"maxLength":100,"description":"The name of the revenue recognition rule governing the revenue schedule.\n"}},"description":"Container for the finance information related to the product rate plan charge associated with the credit memo.\n","title":"CreditMemoFromChargeDetailTypeFinanceInformation"},"CreditMemoFromChargeDetailType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the credit memo item.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude the credit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.\n"},"description":{"type":"string","minLength":0,"maxLength":255,"description":"The description of the product rate plan charge.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `257.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"financeInformation":{"$ref":"#/components/schemas/CreditMemoFromChargeDetailTypeFinanceInformation","description":"Container for the finance information related to the product rate plan charge associated with the credit memo.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the credit memo is created from.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `257.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"quantity":{"type":"number","format":"double","description":"The number of units for the credit memo item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the credit memo item. If not specified, the effective end date of the corresponding product rate plan will be used.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the credit memo item. If not specified, the effective start date of the corresponding product rate plan will be used.\n"}},"required":["productRatePlanChargeId"],"description":"Container for custom fields of a Credit Memo Item object.\n","title":"CreditMemoFromChargeDetailType"},"CreditMemoFromChargeCustomRatesType":{"type":"object","properties":{"currency":{"type":"string","description":"The currency code for either Reporting or Home currency.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"customFxRate":{"type":"number","format":"double","description":"The Custom FX conversion rate between Home/Reporting and Transactional currency items.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"rateDate":{"type":"string","format":"date","description":"The date on which a particular currency rate is fixed or obtained on.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"}},"required":["currency","customFxRate"],"description":"Container for custom fields of a Credit Memo Item object.\n","title":"CreditMemoFromChargeCustomRatesType"},"CreditMemoFromChargeRequest":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with the credit memo.\n\n**Note**: When creating credit memos from product rate plan charges, you must specify `accountNumber`, `accountId`, or both in the request body. If both fields are specified, they must correspond to the same account.\n"},"accountNumber":{"type":"string","description":"The number of the customer account associated with the credit memo.\n\n**Note**: When creating credit memos from product rate plan charges, you must specify `accountNumber`, `accountId`, or both in the request body. If both fields are specified, they must correspond to the same account.\n"},"autoPost":{"type":"boolean","default":false,"description":"Whether to automatically post the credit memo after it is created. \n\nSetting this field to `true`, you do not need to separately call the [Post a credit memo](https://developer.zuora.com/api-references/api/operation/PUT_PostCreditMemo) operation to post the credit memo.\n"},"charges":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoFromChargeDetailType"},"description":"Container for product rate plan charges. The maximum number of items is 1,000.\n"},"comment":{"type":"string","description":"Comments about the credit memo.\n"},"currency":{"type":"string","description":"The code of a currency as defined in Billing Settings through the Zuora UI.\n\nIf you do not specify a currency during credit memo creation, the default account currency is applied. The currency that you specify in the request must be configured and activated in Billing Settings.\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"customRates":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoFromChargeCustomRatesType"},"description":"It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item or Reporting currency item or both).\n\n**Note**:\n\n- The API custom rate feature is permission controlled.\n\n- You cannot set the custom rates, if both the **Automatically include additional Currency Conversion information in data source exports** option and **Fx data** feature are enabled.\n\n- CreditMemo, CreditMemoItem, and CreditMemoItemTax will utilize the provided custom Fx rate to convert amounts from the transactional currency to the home currency.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the credit memo takes effect.\n"},"excludeFromAutoApplyRules":{"type":"boolean","default":false,"description":"Whether the credit memo is excluded from the rule of automatically applying unapplied credit memos to invoices and debit memos during payment runs. If you set this field to `true`, a payment run does not pick up this credit memo or apply it to other invoices or debit memos.\n"},"number":{"type":"string","maxLength":32,"description":"A customized credit memo number with the following format requirements:\n\n- Max length: 32 characters\n- Acceptable characters: a-z,A-Z,0-9,-,_\n\nThe value must be unique in the system, otherwise it may cause issues with bill runs and subscriptions.\n\nIf not provided, Zuora will generate a unique number per the sequence set on the account level. If the account-level sequence set is not specified, the system default sequence set is used. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Configure_billing_settings/Billing_document_settings/Configure_prefix_and_numbering_for_billing_documents\" target=\"_blank\">Configure prefix and numbering for billing documents</a>.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the credit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the credit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Credit Memo object.\n","title":"CreditMemoFromChargeRequest"},"GetCreditMemoTypeEinvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n  **Note**: This field is available only if you have the <a\n  href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\n  target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase\n  enabled.\n","title":"GetCreditMemoTypeEinvoiceStatus"},"GetCreditMemoTypeRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n","title":"GetCreditMemoTypeRevenueImpacting"},"GetCreditMemoTypeSourceType":{"type":"string","enum":["Subscription","Standalone","Invoice","Order","CreditMemo","Consolidation"],"description":"The type of the credit memo source.\n","title":"GetCreditMemoTypeSourceType"},"GetCreditMemoTypeStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"description":"The status of the credit memo.\n","title":"GetCreditMemoTypeStatus"},"GetCreditMemoTypeTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status of tax calculation related to the credit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"GetCreditMemoTypeTaxStatus"},"GetCreditMemoTypeTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the credit memo was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite.\n","title":"GetCreditMemoTypeTransferredToAccounting"},"GETCreditMemoType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account associated with the credit memo.\n"},"accountNumber":{"type":"string","description":"The number of the customer account associated with the credit memo.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the credit memo.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the credit memo.\n"},"autoApplyUponPosting":{"type":"boolean","description":"Whether the credit memo automatically applies to the invoice upon posting.\n"},"billToContactId":{"type":["string","null"],"description":"The ID of the bill-to contact associated with the credit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"billToContactSnapshotId":{"type":["string","null"],"description":"The ID of the bill-to contact snapshot associated with the credit memo.\n\nThe value of this field is `null` if the bill rule [Preserve snapshot of bill-to and sold-to contacts when billing documents are posted](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Billing_Rules#Preserve_snapshot_of_bill-to_and_sold-to_contacts_when_billing_documents_are_posted) is disabled.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the Zuora user who cancelled the credit memo.\n"},"cancelledOn":{"type":["string","null"],"description":"The date and time when the credit memo was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the credit memo.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the credit memo.\n"},"createdDate":{"type":"string","description":"The date and time when the credit memo was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditMemoDate":{"type":"string","format":"date","description":"The date when the credit memo takes effect, in `yyyy-mm-dd` format. For example, 2017-05-20.\n"},"currency":{"type":["string","null"],"description":"The currency of the credit memo.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"einvoiceErrorCode":{"type":["string","null"],"description":"The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceErrorMessage":{"type":["string","null"],"description":"The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceFileId":{"type":["string","null"],"description":"The ID of the e-invoice file generated for the credit memo.\n\n**Note**: This field 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"},"einvoiceStatus":{"oneOf":[{"$ref":"#/components/schemas/GetCreditMemoTypeEinvoiceStatus"},{"type":"null"}],"description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n  **Note**: This field is available only if you have the <a\n  href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\n  target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase\n  enabled.\n"},"excludeFromAutoApplyRules":{"type":"boolean","description":"Whether the credit memo is excluded from the rule of automatically\napplying credit memos to invoices.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the credit memo item from revenue accounting.\n\n\n**Note**: This field is only available if you have the Billing -\nRevenue Integration feature enabled. \n"},"id":{"type":"string","description":"The unique ID of the credit memo.\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the credit memo.\n\n\nThe value of this field is `null` if you have the [Flexible Billing\nAttributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes)\nfeature disabled.\n"},"latestPDFFileId":{"type":["string","null"],"description":"The ID of the latest PDF file generated for the credit memo.\n"},"number":{"type":"string","description":"The unique identification number of the credit memo.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"postedById":{"type":["string","null"],"description":"The ID of the Zuora user who posted the credit memo.\n"},"postedOn":{"type":["string","null"],"description":"The date and time when the credit memo was posted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty.\n"},"referredInvoiceId":{"type":["string","null"],"description":"The ID of a referred invoice.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the refund on the credit memo.\n"},"revenueImpacting":{"$ref":"#/components/schemas/GetCreditMemoTypeRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n"},"reversed":{"type":"boolean","description":"Whether the credit memo is reversed.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the credit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the credit memo.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\nfeature turned on. The value is `null` in the response body without this feature turned on.\n"},"source":{"type":"string","description":"The source of the credit memo.\n\nPossible values:\n- `BillRun`: The credit memo is generated by a bill run.\n- `API`: The credit memo is created by calling the [Invoice and collect](https://developer.zuora.com/api-references/api/operation/POST_TransactionInvoicePayment) operation, or by calling the Orders, Order Line Items, or Fulfillments API operations.\n- `ApiSubscribe`: The credit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.\n- `ApiAmend`: The credit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.\n- `AdhocFromPrpc`: The credit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a credit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc) operation.\n- `AdhocFromInvoice`: The credit memo is created from an invoice or created by reversing an invoice. You can create a credit memo from an invoice through the Zuora UI or by calling the [Create credit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromInvoice) operation. You can create a credit memo by reversing an invoice through the Zuora UI or by calling the [Reverse invoice](https://developer.zuora.com/api-references/api/operation/PUT_ReverseInvoice) operation.\n"},"sourceId":{"type":["string","null"],"description":"The ID of the credit memo source.\n\nIf a credit memo is generated from a bill run, the value is the number of the corresponding bill run. Otherwise, the value is `null`.\n"},"sourceType":{"$ref":"#/components/schemas/GetCreditMemoTypeSourceType","description":"The type of the credit memo source.\n"},"status":{"$ref":"#/components/schemas/GetCreditMemoTypeStatus","description":"The status of the credit memo.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"targetDate":{"type":["string","null"],"format":"date","description":"The target date for the credit memo, in `yyyy-mm-dd` format. For example, 2017-07-20.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxMessage":{"type":["string","null"],"description":"The message about the status of tax calculation related to the credit memo. If tax calculation fails in one credit memo, this field displays the reason for the failure.\n"},"taxStatus":{"oneOf":[{"$ref":"#/components/schemas/GetCreditMemoTypeTaxStatus"},{"type":"null"}],"description":"The status of tax calculation related to the credit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"totalTaxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetCreditMemoTypeTransferredToAccounting","description":"Whether the credit memo was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the credit memo.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the credit memo.\n"},"updatedDate":{"type":"string","description":"The date and time when the credit memo was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the credit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the credit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Credit Memo object.\n","title":"GETCreditMemoType"},"CreditMemoItemFromInvoiceItemTypeFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"recognizedRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"revenueRecognitionRuleName":{"type":"string","minLength":0,"maxLength":100,"description":"The name of the revenue recognition rule governing the revenue schedule.\n"}},"description":"Container for the finance information related to the credit memo item.\n","title":"CreditMemoItemFromInvoiceItemTypeFinanceInformation"},"CreditMemoTaxItemFromInvoiceTaxItemTypeFinanceInformation":{"type":"object","properties":{"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"salesTaxPayableAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the source taxation item.\n","title":"CreditMemoTaxItemFromInvoiceTaxItemTypeFinanceInformation"},"CreditMemoTaxItemFromInvoiceTaxItemTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the credit memo. \n","title":"CreditMemoTaxItemFromInvoiceTaxItemTypeTaxRateType"},"CreditMemoTaxItemFromInvoiceTaxItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the credit memo taxation item.\n"},"financeInformation":{"$ref":"#/components/schemas/CreditMemoTaxItemFromInvoiceTaxItemTypeFinanceInformation","description":"Container for the finance information related to the source taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city. \n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"sourceTaxItemId":{"type":"string","description":"The ID of the source taxation item.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific credit memo. \n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the credit memo, in `yyyy-mm-dd` format.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxName":{"type":"string","description":"The name of taxation.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the credit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate. \n"},"taxRateType":{"$ref":"#/components/schemas/CreditMemoTaxItemFromInvoiceTaxItemTypeTaxRateType","description":"The type of the tax rate applied to the credit memo. \n"}},"title":"CreditMemoTaxItemFromInvoiceTaxItemType"},"CreditMemoItemFromInvoiceItemTypeTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"default":"TaxExclusive","description":"The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.\n**Note**: \n  - Only includes the `taxMode` field if the credit memo needs to be processed with a different tax mode than what was processed during invoice generation or the product rate plan charge was defined with. Otherwise, do not specify a tax mode.\n  - You can set this field to `TaxInclusive` only if the `taxAutoCalculation` field is set to `true`.\n  - If you set `taxMode` to `TaxInclusive`, you cannot input tax amounts for credit memo items. The corresponding invoice item must use the same tax engine as the credit memo item to calculate tax amounts.\n","title":"CreditMemoItemFromInvoiceItemTypeTaxMode"},"CreditMemoItemFromInvoiceItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the credit memo item.\n"},"description":{"type":"string","description":"The description of the credit memo item.\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `257.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"financeInformation":{"$ref":"#/components/schemas/CreditMemoItemFromInvoiceItemTypeFinanceInformation","description":"Container for the finance information related to the credit memo item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item.\n"},"quantity":{"type":"number","format":"double","description":"The number of units for the credit memo item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the credit memo item.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the credit memo item.\n"},"skuName":{"type":"string","description":"The name of the charge associated with the invoice.\n"},"taxItems":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoTaxItemFromInvoiceTaxItemType"},"description":"Container for taxation items.\n"},"taxMode":{"$ref":"#/components/schemas/CreditMemoItemFromInvoiceItemTypeTaxMode","default":"TaxExclusive","description":"The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.\n**Note**: \n  - Only includes the `taxMode` field if the credit memo needs to be processed with a different tax mode than what was processed during invoice generation or the product rate plan charge was defined with. Otherwise, do not specify a tax mode.\n  - You can set this field to `TaxInclusive` only if the `taxAutoCalculation` field is set to `true`.\n  - If you set `taxMode` to `TaxInclusive`, you cannot input tax amounts for credit memo items. The corresponding invoice item must use the same tax engine as the credit memo item to calculate tax amounts.\n"},"unitOfMeasure":{"type":"string","description":"The definable unit that you measure when determining charges.\n"}},"required":["amount","invoiceItemId","skuName"],"description":"Container for custom fields of a Credit Memo Item object.\n","title":"CreditMemoItemFromInvoiceItemType"},"CreditMemoFromInvoiceRequest":{"type":"object","properties":{"autoApplyToInvoiceUponPosting":{"type":"boolean","description":"Whether the credit memo automatically applies to the invoice upon posting.\n"},"autoPost":{"type":"boolean","default":false,"description":"Whether to automatically post the credit memo after it is created. \nSetting this field to `true`, you do not need to separately call the [Post credit memo](https://developer.zuora.com/api-references/api/operation/PUT_PostCreditMemo) operation to post the credit memo.\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the credit memo.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the credit memo takes effect.\n"},"excludeFromAutoApplyRules":{"type":"boolean","description":"Whether the credit memo is excluded from the rule of automatically applying credit memos to invoices.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice that the credit memo is created from.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoItemFromInvoiceItemType"},"description":"Container for items. The maximum number of items is 1,000.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code.\n"},"taxAutoCalculation":{"type":"boolean","default":true,"description":"Whether to automatically calculate taxes in the credit memo.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the credit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the credit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["invoiceId"],"description":"Container for custom fields of a Credit Memo object.\n","title":"CreditMemoFromInvoiceRequest"},"POSTBulkCreditMemosRequestType":{"oneOf":[{"type":"object","properties":{"sourceType":{"type":"string","enum":["Invoice"],"description":"Discriminator value: Invoice"},"memos":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoFromInvoiceRequest"},"description":"The container for a list of credit memos. The maximum number of credit memos is 50.\n"}},"required":["sourceType"],"description":"Invoice variant"},{"type":"object","properties":{"sourceType":{"type":"string","enum":["Standalone"],"description":"Discriminator value: Standalone"},"memos":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoFromChargeRequest"},"description":"The container for a list of credit memos. The maximum number of credit memos is 50.\n"}},"required":["sourceType"],"description":"Standalone variant"}],"discriminator":{"propertyName":"sourceType"},"title":"POSTBulkCreditMemosRequestType"},"BulkCreditMemosResponseType":{"type":"object","properties":{"memos":{"type":"array","items":{"$ref":"#/components/schemas/GETCreditMemoType"},"description":"The container for a list of credit memos.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"BulkCreditMemosResponseType"},"PutCreditMemoItemTypeFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"recognizedRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"revenueRecognitionRuleName":{"type":"string","minLength":0,"maxLength":100,"description":"The name of the revenue recognition rule governing the revenue schedule.\n"}},"description":"Container for the finance information related to the credit memo item.\n","title":"PutCreditMemoItemTypeFinanceInformation"},"PutCreditMemoTaxItemTypeFinanceInformation":{"type":"object","properties":{"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"salesTaxPayableAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the taxation item in the credit memo item.\n","title":"PutCreditMemoTaxItemTypeFinanceInformation"},"PutCreditMemoTaxItemTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the credit memo.\n","title":"PutCreditMemoTaxItemTypeTaxRateType"},"PutCreditMemoTaxItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the taxation item in the credit memo item.\n"},"financeInformation":{"$ref":"#/components/schemas/PutCreditMemoTaxItemTypeFinanceInformation","description":"Container for the finance information related to the taxation item in the credit memo item.\n"},"id":{"type":"string","description":"The ID of the taxation item in the credit memo item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific credit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the credit memo, in `yyyy-mm-dd` format.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxName":{"type":"string","description":"The name of taxation.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the credit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate. \n"},"taxRateType":{"$ref":"#/components/schemas/PutCreditMemoTaxItemTypeTaxRateType","description":"The type of the tax rate applied to the credit memo.\n"}},"required":["id"],"description":"Container for custom fields of a Credit Taxation Item object.\n","title":"PutCreditMemoTaxItemType"},"PUTCreditMemoItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the credit memo item. For tax-inclusive credit memo items, the amount indicates the credit memo item amount including tax. For tax-exclusive credit memo items, the amount indicates the credit memo item amount excluding tax\n"},"comment":{"type":"string","description":"Comments about the credit memo item.\n"},"delete":{"type":"boolean","description":"Whether to delete the existing credit memo item.\n\n\n**Note**: To delete a credit memo item, set this field to `true` and specify a credit memo item ID in the `id` field.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude the credit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"financeInformation":{"$ref":"#/components/schemas/PutCreditMemoItemTypeFinanceInformation","description":"Container for the finance information related to the credit memo item.\n"},"id":{"type":"string","minLength":32,"maxLength":32,"description":"The ID of the credit memo item. \n- Specify this field when updating or deleting an existing memo item. \n- Do not specify this field when creating a memo item.\n"},"quantity":{"type":"number","format":"double","description":"The number of units for the credit memo item.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the credit memo is created from.\n\n\n**Note**: Do not specify the credit memo item `id` when specifying this field.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the credit memo item.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the credit memo item.\n"},"skuName":{"type":"string","description":"The name of the SKU.\n"},"taxItems":{"type":"array","items":{"$ref":"#/components/schemas/PutCreditMemoTaxItemType"},"description":"Container for credit memo taxation items.\n"},"unitOfMeasure":{"type":"string","description":"The definable unit that you measure when determining charges.\n"}},"description":"Container for custom fields of a Credit Memo Item object.\n","title":"PUTCreditMemoItemType"},"PutCreditMemosWithIdTypeTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the credit memo is transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PutCreditMemosWithIdTypeTransferredToAccounting"},"PUTCreditMemosWithIdType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the credit memo.\n"},"autoApplyUponPosting":{"type":"boolean","description":"Whether the credit memo automatically applies to the invoice upon posting.\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the credit memo.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the credit memo takes effect.\n"},"excludeFromAutoApplyRules":{"type":"boolean","description":"Whether the credit memo is excluded from the rule of automatically applying unapplied credit memos to invoices and debit memos during payment runs. If you set this field to `true`, a payment run does not pick up this credit memo or apply it to other invoices or debit memos.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PUTCreditMemoItemType"},"description":"Container for credit memo items.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PutCreditMemosWithIdTypeTransferredToAccounting","description":"Whether the credit memo is transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the credit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the credit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Credit Memo object.\n","title":"PUTCreditMemosWithIdType"},"PUTBulkCreditMemosRequestType":{"type":"object","properties":{"memos":{"type":"array","items":{"$ref":"#/components/schemas/PUTCreditMemosWithIdType"},"description":"The container for a list of credit memos. The maximum number of credit memos is 50.\n"}},"title":"PUTBulkCreditMemosRequestType"},"GetCreditMemoPdfStatusResponsePdfGenerationStatus":{"type":"string","enum":["None","Pending","Processing","Generated","Error","Obsolete"],"description":"The generation status of the credit memo PDF.\n","title":"GetCreditMemoPdfStatusResponsePdfGenerationStatus"},"GetCreditMemoPdfStatusResponse":{"type":"object","properties":{"creditMemoId":{"type":"string","description":"The ID of the credit memo whose pdf status is requested.\n"},"creditMemoNumber":{"type":"string","description":"The credit memo number of the credit memo whose pdf status is requested.\n"},"pdfGenerationStatus":{"$ref":"#/components/schemas/GetCreditMemoPdfStatusResponsePdfGenerationStatus","description":"The generation status of the credit memo PDF.\n"},"createdOn":{"type":"string","description":"The time at which the request to generate the PDF was created.\n"},"updatedOn":{"type":"string","description":"The time at which the request to generate the PDF was updated.\n"},"pdfFileURL":{"type":"string","description":"The file path or the URL of the PDF when the status is `Generated`.  \n"},"errorCategory":{"type":"string","description":"The error category when the status is `Error`. \n"},"errorMessage":{"type":"string","description":"The error message when the status is `Error`. \n"}},"title":"GetCreditMemoPdfStatusResponse"},"GetCreditMemoPdfStatusBatchResponse":{"type":"object","properties":{"creditMemoFiles":{"type":"array","items":{"$ref":"#/components/schemas/GetCreditMemoPdfStatusResponse"},"description":"Array of credit memo PDF statuses requested.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GetCreditMemoPdfStatusBatchResponse"},"GetcmTaxItemTypeNewFinanceInformation":{"type":"object","properties":{"onAccountAccountingCode":{"type":["string","null"],"description":"The accounting code that maps to an on account in your accounting system.\n"},"onAccountAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code that maps to an on account in your accounting system.\n"},"salesTaxPayableAccountingCode":{"type":["string","null"],"description":"The accounting code for the sales taxes payable.\n"},"salesTaxPayableAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the taxation item.\n","title":"GetcmTaxItemTypeNewFinanceInformation"},"GetcmTaxItemTypeNewTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate.\n","title":"GetcmTaxItemTypeNewTaxRateType"},"GETCMTaxItemTypeNew":{"type":"object","properties":{"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the taxation item.\n"},"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"financeInformation":{"$ref":"#/components/schemas/GetcmTaxItemTypeNewFinanceInformation","description":"Container for the finance information related to the taxation item.\n"},"id":{"type":"string","description":"The ID of the taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the refund on the taxation item.\n"},"sourceTaxItemId":{"type":["string","null"],"description":"The ID of the source taxation item.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific credit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the credit memo, in `yyyy-mm-dd` format.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the credit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/GetcmTaxItemTypeNewTaxRateType","description":"The type of the tax rate.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the taxation item.\n"}},"description":"Container for custom fields of a Credit Taxation Item object.\n","title":"GETCMTaxItemTypeNew"},"GETTaxationItemsOfCreditMemoItemType":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETCMTaxItemTypeNew"},"description":"Container for the taxation items of the credit memo item.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETTaxationItemsOfCreditMemoItemType"},"PUTCreditMemoWriteOff":{"type":"object","properties":{"comment":{"type":"string","description":"Comments about the debit memo.\n"},"memoDate":{"type":"string","format":"date","description":"The creation date of the debit memo and the effective date of the credit memo. Credit memos are applied to the corresponding debit memos on `memoDate`. By default, `memoDate` is set to the current date.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. The default value is `Write-off`.\n"}},"description":"Container for custom fields of a Debit Memo object.\n","title":"PUTCreditMemoWriteOff"},"PutCreditMemoWriteOffResponseTypeDebitMemo":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the created debit memo.\n"}},"description":"Container for the credit memo that is automatically created.\n","title":"PutCreditMemoWriteOffResponseTypeDebitMemo"},"PUTCreditMemoWriteOffResponseType":{"type":"object","properties":{"debitMemo":{"$ref":"#/components/schemas/PutCreditMemoWriteOffResponseTypeDebitMemo","description":"Container for the credit memo that is automatically created.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"PUTCreditMemoWriteOffResponseType"},"PutCreditMemoTypeTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the credit memo is transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PutCreditMemoTypeTransferredToAccounting"},"PUTCreditMemoType":{"type":"object","properties":{"autoApplyUponPosting":{"type":"boolean","description":"Whether the credit memo automatically applies to the invoice upon posting.\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the credit memo.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the credit memo takes effect.\n"},"excludeFromAutoApplyRules":{"type":"boolean","description":"Whether the credit memo is excluded from the rule of automatically applying unapplied credit memos to invoices and debit memos during payment runs. If you set this field to `true`, a payment run does not pick up this credit memo or apply it to other invoices or debit memos.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PUTCreditMemoItemType"},"description":"Container for credit memo items.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PutCreditMemoTypeTransferredToAccounting","description":"Whether the credit memo is transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the credit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the credit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Credit Memo object.\n","title":"PUTCreditMemoType"},"ApplyCreditMemoTypeApplicationRule":{"type":"string","enum":["ApplyCreditToSourceItemRule"],"description":"The application rule to use when applying the credit memo.\nIf you do not specify this field, the tenant-level application rule will be used.\n\nRestrictions:\n- This rule can only be applied to a single invoice, and cannot be applied to debit memos.\n- This rule cannot be used together with the `items` field.\n","title":"ApplyCreditMemoTypeApplicationRule"},"CreditMemoApplyDebitMemoItemRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount that is applied to the specific item. \n"},"creditMemoItemId":{"type":"string","description":"The ID of the credit memo item.\n"},"creditTaxItemId":{"type":"string","description":"The ID of the credit memo taxation item.\n"},"debitMemoItemId":{"type":"string","description":"The ID of the debit memo item that the credit memo item is applied to.\n"},"taxItemId":{"type":"string","description":"The ID of the debit memo taxation item that the credit memo taxation item is applied to.\n"}},"required":["amount"],"title":"CreditMemoApplyDebitMemoItemRequestType"},"CreditMemoApplyDebitMemoRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The credit memo amount to be applied to the debit memo.\n"},"debitMemoId":{"type":"string","description":"The unique ID of the debit memo that the credit memo is applied to.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoApplyDebitMemoItemRequestType"},"description":"Container for items. The maximum number of items is 1,000.\n\nIf `creditMemoItemId` is the source, then it should be accompanied by a target `debitMemoItemId`.\n\nIf `creditTaxItemId` is the source, then it should be accompanied by a target `taxItemId`.\n"}},"required":["amount","debitMemoId"],"title":"CreditMemoApplyDebitMemoRequestType"},"CreditMemoApplyInvoiceItemRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount that is applied to the specific item. \n"},"creditMemoItemId":{"type":"string","description":"The ID of the credit memo item.\n"},"creditTaxItemId":{"type":"string","description":"The ID of the credit memo taxation item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item that the credit memo item is applied to.\n"},"taxItemId":{"type":"string","description":"The ID of the invoice taxation item that the credit memo taxation item is applied to.\n"}},"required":["amount"],"title":"CreditMemoApplyInvoiceItemRequestType"},"CreditMemoApplyInvoiceRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The credit memo amount to be applied to the invoice.\n"},"invoiceId":{"type":"string","description":"The unique ID of the invoice that the credit memo is applied to.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoApplyInvoiceItemRequestType"},"description":"Container for items. The maximum number of items is 1,000.\n\nIf `creditMemoItemId` is the source, then it should be accompanied by a target `invoiceItemId`.\n\nIf `creditTaxItemId` is the source, then it should be accompanied by a target `taxItemId`.\n"}},"required":["amount","invoiceId"],"title":"CreditMemoApplyInvoiceRequestType"},"ApplyCreditMemoType":{"type":"object","properties":{"applicationRule":{"$ref":"#/components/schemas/ApplyCreditMemoTypeApplicationRule","description":"The application rule to use when applying the credit memo.\nIf you do not specify this field, the tenant-level application rule will be used.\n\nRestrictions:\n- This rule can only be applied to a single invoice, and cannot be applied to debit memos.\n- This rule cannot be used together with the `items` field.\n"},"debitMemos":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoApplyDebitMemoRequestType"},"description":"Container for debit memos that the credit memo is applied to. The maximum number of debit memos is 1,000.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the credit memo is applied.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoApplyInvoiceRequestType"},"description":"Container for invoices that the credit memo is applied to. The maximum number of invoices is 1,000.\n"}},"title":"ApplyCreditMemoType"},"PostCreditMemoEmailRequestType":{"type":"object","properties":{"emailAddresses":{"type":"string","description":"The valid email addresses you want to email a credit memo to. Use commas to separate email addresses.\n\n**Note:** This field is only applicable if you set the `useEmailTemplateSetting` field to `false`.\n"},"includeAdditionalEmailAddresses":{"type":"boolean","default":false,"description":"Indicates whether to send a credit memo to the additional email addresses of the memo account. \n\n\nYou can set the additional email addresses in the **Additional Email Addresses** field on the account detail page from the Zuora UI. See [Create a Customer Account](https://knowledgecenter.zuora.com/BC_Subscription_Management/Customer_Accounts/B_Create_a_Customer_Account#section_2) for more information.\n"},"pdfFileId":{"type":"string","description":"The ID of the PDF file that you want to send in the email. \n\nIf you do not specify any PDF file ID, the latest PDF file generated for the credit memo is sent in the email.\n"},"useEmailTemplateSetting":{"type":"boolean","default":false,"description":"Indicates whether to email a credit memo based on the email template setting. \n\nIf you set this field to `true`, the credit memo is sent to the email addresses specified in the **To Email** field of the email template. The email template is the one you 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"}},"title":"PostCreditMemoEmailRequestType"},"CreditMemoFile":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the credit memo PDF file. This is the ID for the file object and different from the file handle ID in the `pdfFileUrl` field. To open a file, you have to use the file handle ID.\n"},"pdfFileUrl":{"type":"string","description":"The relative URL of the credit memo PDF file.\n\nYou can obtain the absolute URL for downloading the file by adding a prefix in the following format: `{environment_base_url}/apps`\n\nFor example, `https://apisandbox.zuora.com/apps/v1/files/8a90a24f8e128020018e12cf610903f8`.\n"},"versionNumber":{"type":"integer","format":"int64","description":"The version number of the credit memo PDF file.\n"}},"title":"CreditMemoFile"},"GETCreditMemoFilesResponse":{"type":"object","properties":{"creditMemoFiles":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoFile"},"description":"Container for credit memo PDF files.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETCreditMemoFilesResponse"},"GetCreditMemoItemTypewithSuccessCreditFromItemSource":{"type":"string","enum":["InvoiceItem","CreditMemoItem"],"description":"The type of the credit from item.\n","title":"GetCreditMemoItemTypewithSuccessCreditFromItemSource"},"GetCreditMemoItemTypewithSuccessFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"deferredRevenueAccountingCodeType":{"type":"string","description":"The type of the deferred revenue accounting code, such as Deferred Revenue. \n"},"nonRevenueWriteOffAccountingCode":{"type":"string","description":"Specify the accounting code for the non revenue write off. Available only if `revenueImpacting` = `no`.\n"},"nonRevenueWriteOffAccountingCodeType":{"type":"string","description":"Specify the accounting code type for the non revenue write off.\n"},"onAccountAccountingCode":{"type":"string","description":"The accounting code that maps to an on account in your accounting system.\n"},"onAccountAccountingCodeType":{"type":"string","description":"The type of the accounting code that maps to an on account in your accounting system.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"recognizedRevenueAccountingCodeType":{"type":"string","description":"The type of the recognized revenue accounting code, such as Sales Revenue or Sales Discount. \n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n"},"revenueScheduleNumber":{"type":"string","description":"Revenue schedule number. The revenue schedule number is always prefixed with \"RS\", for example, RS-00000001.\n"}},"description":"Container for the finance information related to the credit memo item.\n","title":"GetCreditMemoItemTypewithSuccessFinanceInformation"},"GetCreditMemoItemTypewithSuccessRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n","title":"GetCreditMemoItemTypewithSuccessRevenueImpacting"},"GetCreditMemoItemTypewithSuccessSourceItemType":{"type":"string","enum":["SubscriptionComponent","InvoiceDetail","ProductRatePlanCharge","OrderLineItem"],"description":"The type of the source item.\n\n- If a credit memo is not created from an invoice or a product rate plan charge or a return order line item, the value of this field is `SubscriptionComponent`. \n- If a credit memo is created from an invoice, the value of this field is `InvoiceDetail`.\n- If a credit memo is created from a product rate plan charge, the value of this field is `ProductRatePlanCharge`.\n- If a credit memo is created from a return order line item, the value of this field is `OrderLineItem`.\n             \n","title":"GetCreditMemoItemTypewithSuccessSourceItemType"},"GetCreditMemoItemTypewithSuccessTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.\n","title":"GetCreditMemoItemTypewithSuccessTaxMode"},"GetCreditMemoItemTypewithSuccessTaxationItems":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETCMTaxItemTypeNew"},"description":"List of taxation items.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"}},"description":"Container for the taxation items of the credit memo item. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `239.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n","title":"GetCreditMemoItemTypewithSuccessTaxationItems"},"GETCreditMemoItemTypewithSuccess":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the credit memo item. For tax-inclusive credit memo items, the amount indicates the credit memo item amount including tax. For tax-exclusive credit memo items, the amount indicates the credit memo item amount excluding tax.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The credit memo item amount excluding tax.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the credit memo item.\n"},"appliedToItemId":{"type":"string","description":"The unique ID of the credit memo item that the discount charge is applied to.\n"},"commitmentId":{"type":"string","description":"The ID of the commitment.\n"},"commitmentPeriodId":{"type":"string","description":"The ID of the commitment period.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the credit memo item.\n"},"createdDate":{"type":"string","description":"The date and time when the credit memo item was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditFromItemId":{"type":"string","description":"The ID of the credit from item.\n"},"creditFromItemSource":{"$ref":"#/components/schemas/GetCreditMemoItemTypewithSuccessCreditFromItemSource","description":"The type of the credit from item.\n"},"description":{"type":"string","description":"The description of the credit memo item.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `257.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the credit memo item from revenue accounting.\n\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"financeInformation":{"$ref":"#/components/schemas/GetCreditMemoItemTypewithSuccessFinanceInformation","description":"Container for the finance information related to the credit memo item.\n"},"id":{"type":"string","description":"The ID of the credit memo item.\n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule associated with the credit memo item. \n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"invoiceScheduleItemId":{"type":"string","description":"The ID of the invoice schedule item associated with the credit memo item. The credit memo item is generated during the processing of the invoice schedule item.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"The number of deliveries dedicated to the Delivery Pricing charges. The value might be different, as follows:\n- For the credit memo generated by a bill run, this field has a value. \n- For the credit memo generated from an invoice, this field is blank.\n**Note**: This field is available only if you have the Delivery Pricing feature enabled.\n"},"processingType":{"type":"string","description":"The kind of the charge for the credit memo item. Its possible values are `Charge` and `Discount`. \n"},"quantity":{"type":"number","format":"double","description":"The number of units for the credit memo item.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set the `excludeItemBillingFromRevenueAccounting` field to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the refund on the credit memo item.\n"},"revenueImpacting":{"$ref":"#/components/schemas/GetCreditMemoItemTypewithSuccessRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the credit memo item. \n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the credit memo item.\n"},"sku":{"type":"string","description":"The SKU for the product associated with the credit memo item.\n"},"skuName":{"type":"string","description":"The name of the SKU.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"sourceItemId":{"type":"string","description":"The ID of the source item.\n\n- If the value of the `sourceItemType` field is `SubscriptionComponent` , the value of this field is the ID of the corresponding rate plan charge.\n- If the value of the `sourceItemType` field is `InvoiceDetail`, the value of this field is the ID of the corresponding invoice item.\n- If the value of the `sourceItemType` field is `ProductRatePlanCharge` , the value of this field is the ID of the corresponding product rate plan charge.\n- If the value of the `sourceItemType` field is `OrderLineItem` , the value of this field is the ID of the corresponding return order line item.\n"},"sourceItemType":{"$ref":"#/components/schemas/GetCreditMemoItemTypewithSuccessSourceItemType","description":"The type of the source item.\n\n- If a credit memo is not created from an invoice or a product rate plan charge or a return order line item, the value of this field is `SubscriptionComponent`. \n- If a credit memo is created from an invoice, the value of this field is `InvoiceDetail`.\n- If a credit memo is created from a product rate plan charge, the value of this field is `ProductRatePlanCharge`.\n- If a credit memo is created from a return order line item, the value of this field is `OrderLineItem`.\n             \n"},"subscriptionId":{"type":"string","description":"The ID of the subscription associated with the credit memo item.\n"},"taxMode":{"$ref":"#/components/schemas/GetCreditMemoItemTypewithSuccessTaxMode","description":"The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.\n"},"taxationItems":{"$ref":"#/components/schemas/GetCreditMemoItemTypewithSuccessTaxationItems","description":"Container for the taxation items of the credit memo item. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `239.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the credit memo item.\n"},"unitOfMeasure":{"type":"string","description":"The units to measure usage.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the credit memo item.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the credit memo item.\n"},"updatedDate":{"type":"string","description":"The date and time when the credit memo item was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"description":"Container for custom fields of a Credit Memo Item object.\n","title":"GETCreditMemoItemTypewithSuccess"},"GETCreditMemoItemsListType":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/GETCreditMemoItemTypewithSuccess"},"description":"Container for credit memo items.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETCreditMemoItemsListType"},"GetCreditMemoItemTypeCreditFromItemSource":{"type":"string","enum":["InvoiceItem","CreditMemoItem"],"description":"The type of the credit from item.\n","title":"GetCreditMemoItemTypeCreditFromItemSource"},"GetCreditMemoItemTypeFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":["string","null"],"description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"deferredRevenueAccountingCodeType":{"type":["string","null"],"description":"The type of the deferred revenue accounting code, such as Deferred Revenue.'\n"},"nonRevenueWriteOffAccountingCode":{"type":["string","null"],"description":"Specify the accounting code for the non revenue write off. Available only if `revenueImpacting` = `no`.\n"},"nonRevenueWriteOffAccountingCodeType":{"type":["string","null"],"description":"Specify the accounting code type for the non revenue write off.\n"},"onAccountAccountingCode":{"type":["string","null"],"description":"The accounting code that maps to an on account in your accounting system.\n"},"onAccountAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code that maps to an on account in your accounting system.\n"},"recognizedRevenueAccountingCode":{"type":["string","null"],"description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"recognizedRevenueAccountingCodeType":{"type":["string","null"],"description":"The type of the recognized revenue accounting code, such as Sales Revenue or Sales Discount.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n"},"revenueScheduleNumber":{"type":"string","description":"Revenue schedule number. The revenue schedule number is always prefixed with \"RS\", for example, RS-00000001.\n"}},"description":"Container for the finance information related to the credit memo item.\n","title":"GetCreditMemoItemTypeFinanceInformation"},"GetCreditMemoItemTypeRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n","title":"GetCreditMemoItemTypeRevenueImpacting"},"GetCreditMemoItemTypeSourceItemType":{"type":"string","enum":["SubscriptionComponent","InvoiceDetail","ProductRatePlanCharge","OrderLineItem"],"description":"The type of the source item.\n\n- If a credit memo is not created from an invoice or a product rate plan charge or a return order line item,, the value of this field is `SubscriptionComponent`.\n- If a credit memo is created from an invoice, the value of this field is `InvoiceDetail`.\n- If a credit memo is created from a product rate plan charge, the value of this field is `ProductRatePlanCharge`.\n- If a credit memo is created from a return order line item, the value of this field is `OrderLineItem`.\n","title":"GetCreditMemoItemTypeSourceItemType"},"GetCreditMemoItemTypeTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.\n","title":"GetCreditMemoItemTypeTaxMode"},"GetCreditMemoItemTypeTaxationItems":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETCMTaxItemTypeNew"},"description":"List of taxation items.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"}},"description":"Container for the taxation items of the credit memo item. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `239.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n","title":"GetCreditMemoItemTypeTaxationItems"},"GETCreditMemoItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the credit memo item. For tax-inclusive credit memo items, the amount indicates the credit memo item amount including tax. For tax-exclusive credit memo items, the amount indicates the credit memo item amount excluding tax.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The credit memo item amount excluding tax.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the credit memo item.\n"},"appliedToItemId":{"type":["string","null"],"description":"The unique ID of the credit memo item that the discount charge is applied to.\n"},"commitmentId":{"type":"string","description":"The ID of the commitment.\n"},"commitmentPeriodId":{"type":"string","description":"The ID of the commitment period.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the credit memo item.\n"},"createdDate":{"type":"string","description":"The date and time when the credit memo item was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditFromItemId":{"type":"string","description":"The ID of the credit from item.\n"},"creditFromItemSource":{"$ref":"#/components/schemas/GetCreditMemoItemTypeCreditFromItemSource","description":"The type of the credit from item.\n"},"description":{"type":"string","description":"The description of the credit memo item.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `257.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the credit memo item from revenue accounting.\n\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"financeInformation":{"$ref":"#/components/schemas/GetCreditMemoItemTypeFinanceInformation","description":"Container for the finance information related to the credit memo item.\n"},"id":{"type":"string","description":"The ID of the credit memo item.\n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule associated with the credit memo item. \n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"invoiceScheduleItemId":{"type":"string","description":"The ID of the invoice schedule item associated with the credit memo item. The credit memo item is generated during the processing of the invoice schedule item.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"The number of deliveries dedicated to the Delivery Pricing charges. The value might be different, as follows:\n- For the credit memo generated by a bill run, this field has a value. \n- For the credit memo generated from an invoice, this field is blank.\n**Note**: This field is available only if you have the Delivery Pricing feature enabled. \n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"processingType":{"type":"string","description":"The kind of the charge for the credit memo item. Its possible values are `Charge` and `Discount`. \n"},"quantity":{"type":"number","format":"double","description":"The number of units for the credit memo item.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the refund on the credit memo item.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set the `excludeItemBillingFromRevenueAccounting` field to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.\n"},"revenueImpacting":{"$ref":"#/components/schemas/GetCreditMemoItemTypeRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the credit memo item.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the credit memo item. If the associated charge is a one-time fee, this date is the date of that charge.\n"},"sku":{"type":"string","description":"The SKU for the product associated with the credit memo item.\n"},"skuName":{"type":"string","description":"The name of the SKU.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"sourceItemId":{"type":"string","description":"The ID of the source item.\n\n- If the value of the `sourceItemType` field is `SubscriptionComponent` , the value of this field is the ID of the corresponding rate plan charge.\n- If the value of the `sourceItemType` field is `InvoiceDetail`, the value of this field is the ID of the corresponding invoice item.\n- If the value of the `sourceItemType` field is `ProductRatePlanCharge` , the value of this field is the ID of the corresponding product rate plan charge.\n- If the value of the `sourceItemType` field is `OrderLineItem` , the value of this field is the ID of the corresponding return order line item.\n"},"sourceItemType":{"$ref":"#/components/schemas/GetCreditMemoItemTypeSourceItemType","description":"The type of the source item.\n\n- If a credit memo is not created from an invoice or a product rate plan charge or a return order line item,, the value of this field is `SubscriptionComponent`.\n- If a credit memo is created from an invoice, the value of this field is `InvoiceDetail`.\n- If a credit memo is created from a product rate plan charge, the value of this field is `ProductRatePlanCharge`.\n- If a credit memo is created from a return order line item, the value of this field is `OrderLineItem`.\n"},"subscriptionId":{"type":"string","description":"The ID of the subscription associated with the credit memo item.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"taxMode":{"$ref":"#/components/schemas/GetCreditMemoItemTypeTaxMode","description":"The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.\n"},"taxationItems":{"$ref":"#/components/schemas/GetCreditMemoItemTypeTaxationItems","description":"Container for the taxation items of the credit memo item. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `239.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the credit memo item.\n"},"unitOfMeasure":{"type":"string","description":"The units to measure usage.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the credit memo item.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the credit memo item.\n"},"updatedDate":{"type":"string","description":"The date and time when the credit memo item was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"description":"Container for custom fields of a Credit Memo Item object.\n","title":"GETCreditMemoItemType"},"GETCreditMemoPartTypewithSuccess":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the credit memo part.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the credit memo part.\n"},"createdDate":{"type":"string","description":"The date and time when the credit memo part was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"debitMemoId":{"type":"string","description":"The ID of the debit memo associated with the credit memo part.\n"},"id":{"type":"string","description":"The ID of the credit memo part.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice associated with the credit memo part.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the credit memo part.\n"},"updatedDate":{"type":"string","description":"The date and time when the credit memo part was last upated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"title":"GETCreditMemoPartTypewithSuccess"},"GETCreditMemoPartsCollectionType":{"type":"object","properties":{"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/GETCreditMemoPartTypewithSuccess"},"description":"Container for credit memo parts.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETCreditMemoPartsCollectionType"},"GETCreditMemoPartType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the credit memo part.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the credit memo part.\n"},"createdDate":{"type":"string","description":"The date and time when the credit memo part was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"debitMemoId":{"type":"string","description":"The ID of the debit memo associated with the credit memo part.\n"},"id":{"type":"string","description":"The ID of the credit memo part.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice associated with the credit memo part.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the credit memo part.\n"},"updatedDate":{"type":"string","description":"The date and time when the credit memo part was last upated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"title":"GETCreditMemoPartType"},"POSTMemoPdfResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"POSTMemoPdfResponse"},"PostNonRefRefundTypeFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PostNonRefRefundTypeFinanceInformationTransferredToAccounting"},"PostNonRefRefundTypeFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to a bank account in your accounting system.\n"},"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PostNonRefRefundTypeFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the refund.\n","title":"PostNonRefRefundTypeFinanceInformation"},"PostNonRefRefundTypeGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values.\n","title":"PostNonRefRefundTypeGatewayOptions"},"RefundCreditMemoItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the refund on the specific item.\n"},"creditMemoItemId":{"type":"string","description":"The ID of the credit memo item that is refunded.\n"},"creditTaxItemId":{"type":"string","description":"The ID of the credit memo taxation item that is refunded.\n"}},"required":["amount"],"title":"RefundCreditMemoItemType"},"PostNonRefRefundTypeMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer. This field is required for an external refund and must be left empty for an electronic refund. You can issue an external refund on a credit memo.\n","title":"PostNonRefRefundTypeMethodType"},"PostNonRefRefundTypeType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund.\n","title":"PostNonRefRefundTypeType"},"PostNonRefRefundType":{"type":"object","properties":{"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the refund.\n"},"customRates":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoFromChargeCustomRatesType"},"description":"It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item, Reporting currency item, or both).\n\n**Note**:\n  \n- This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `224.0` or a later version.\n- You cannot set the custom rates, if both the **Automatically include additional Currency Conversion information in data source exports** option and **Fx data** feature are enabled.\n"},"financeInformation":{"$ref":"#/components/schemas/PostNonRefRefundTypeFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the refund. This field can be specified only for electronic refunds. The ID must be a valid gateway instance ID, and this gateway must support the specific payment method. \n\nIf no gateway ID is specified, the default gateway in the billing account configuration will be used. If no gateway is specified in the billing account, the default gateway of the corresponding tenant will be used.\n"},"gatewayOptions":{"$ref":"#/components/schemas/PostNonRefRefundTypeGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/RefundCreditMemoItemType"},"description":"Container for credit memo items. The maximum number of items is 1,000.\n\n**Note:** This field 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"},"methodType":{"$ref":"#/components/schemas/PostNonRefRefundTypeMethodType","description":"How an external refund was issued to a customer. This field is required for an external refund and must be left empty for an electronic refund. You can issue an external refund on a credit memo.\n"},"paymentMethodId":{"type":"string","description":"The ID of the payment method used for the refund. This field is required for an electronic refund, and the value must be an electronic payment method ID. This field must be left empty for an external refund. \n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code.\n"},"referenceId":{"type":"string","minLength":0,"maxLength":100,"description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format. The date of the refund cannot be before the credit memo date. Specify this field only for external refunds. Zuora automatically generates this field for electronic refunds.\n"},"secondRefundReferenceId":{"type":"string","minLength":0,"maxLength":100,"description":"The transaction ID returned by the payment gateway if there is an additional transaction for the refund. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"softDescriptor":{"type":"string","maxLength":35,"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi."},"softDescriptorPhone":{"type":"string","maxLength":20,"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi."},"totalAmount":{"type":"number","format":"double","description":"The total amount of the refund. The amount cannot exceed the unapplied amount of the associated credit memo. If the original credit memo was applied to one or more invoices or debit memos, you have to unapply a full or partial credit memo from the invoices or debit memos, and then refund the full or partial unapplied credit memo to your customers.\n"},"type":{"$ref":"#/components/schemas/PostNonRefRefundTypeType","description":"The type of the refund.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the refund's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the refund was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"type":"string","maxLength":255,"description":"Specifies whether the refund should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["totalAmount","type"],"description":"Container for custom fields of a Refund object.\n","title":"PostNonRefRefundType"},"GetRefundCreditMemoTypeFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"GetRefundCreditMemoTypeFinanceInformationTransferredToAccounting"},"GetRefundCreditMemoTypeFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":["string","null"],"description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"oneOf":[{"$ref":"#/components/schemas/GetRefundCreditMemoTypeFinanceInformationTransferredToAccounting"},{"type":"null"}],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":["string","null"],"description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the refund.\n","title":"GetRefundCreditMemoTypeFinanceInformation"},"GetRefundCreditMemoTypeGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the refund in the gateway.\n","title":"GetRefundCreditMemoTypeGatewayState"},"GetRefundCreditMemoTypeMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer.\n","title":"GetRefundCreditMemoTypeMethodType"},"GetRefundCreditMemoTypeStatus":{"type":"string","enum":["Processed","Canceled","Error","Processing"],"description":"The status of the refund.\n","title":"GetRefundCreditMemoTypeStatus"},"GetRefundCreditMemoTypeType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund.\n","title":"GetRefundCreditMemoTypeType"},"GETRefundCreditMemoType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with this refund. Zuora associates the refund automatically with the account from the associated payment.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the refund.\n"},"cancelledOn":{"type":["string","null"],"description":"The date and time when the refund was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the refund.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund.\n"},"createdDate":{"type":"string","description":"The date and time when the refund was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-06 15:31:10.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo that is refunded.\n"},"financeInformation":{"$ref":"#/components/schemas/GetRefundCreditMemoTypeFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the refund.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the refund. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The response code returned from the payment gateway for the refund. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/GetRefundCreditMemoTypeGatewayState","description":"The status of the refund in the gateway.\n"},"id":{"type":"string","description":"The ID of the created refund.\n"},"markedForSubmissionOn":{"type":["string","null"],"description":"The date and time when a refund was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"methodType":{"$ref":"#/components/schemas/GetRefundCreditMemoTypeMethodType","description":"How an external refund was issued to a customer.\n"},"number":{"type":"string","description":"The unique identification number of the refund.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentId":{"type":["string","null"],"description":"The ID of the payment associated with the refund.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the refund.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot, which is a copy of the particular payment method used in a transaction.\n"},"reasonCode":{"type":["string","null"],"description":"A code identifying the reason for the transaction.\n"},"referenceId":{"type":"string","description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in yyyy-mm-dd format.\n"},"refundTransactionTime":{"type":"string","description":"The date and time when the refund was issued, in `yyyy-mm-dd hh:mm:ss` format.\n"},"secondRefundReferenceId":{"type":["string","null"],"description":"The transaction ID returned by the payment gateway if there is an additional transaction for the refund. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":["string","null"],"format":"date-time","description":"The date and time when the refund was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":["string","null"],"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"softDescriptorPhone":{"type":["string","null"],"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"status":{"$ref":"#/components/schemas/GetRefundCreditMemoTypeStatus","description":"The status of the refund.\n"},"submittedOn":{"type":"string","description":"The date and time when the refund was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"type":{"$ref":"#/components/schemas/GetRefundCreditMemoTypeType","description":"The type of the refund.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the refund.\n"},"updatedDate":{"type":"string","description":"The date and time when the refund was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-07 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the refund's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the refund was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"type":"string","maxLength":255,"description":"Specifies whether the refund should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Refund object.\n","title":"GETRefundCreditMemoType"},"PutReverseCreditMemoType":{"type":"object","properties":{"applyEffectiveDate":{"type":"string","format":"date","description":"The date when the to-be-reversed credit memo is applied to the newly generated debit memo, in `yyyy-mm-dd` format. The effective date must be later than or equal to the memo date.\n\nThe default value is the date when you reverse the credit memo and create the debit memo.\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the reversal. The comment is used as the comment of the debit memo generated by reversing the specified credit memo.\n"},"memoDate":{"type":"string","format":"date","description":"The date when the debit memo is created, in `yyyy-mm-dd` format. The memo date must be later than or equal to the credit memo's memo date.\n\nThe default value is the date when you reverse the credit memo and create the debit memo.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the reversal. The value must be an existing reason code or empty. The code is used as the reason code of the debit memo generated by reversing the specified credit memo.\n\nIf you do not specify a value, Zuora uses the default reason code `Credit memo reversal` for the debit memo.\n"}},"title":"PutReverseCreditMemoType"},"PutReverseCreditMemoResponseTypeCreditMemo":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the credit memo."}},"description":"Container for the credit memo that is automatically generated during the reversal of the invoice that is related to the credit memo. If no related invoice is reversed, the value is null.\n","title":"PutReverseCreditMemoResponseTypeCreditMemo"},"PutReverseCreditMemoResponseTypeDebitMemo":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the debit memo."}},"description":"Container for the debit memo that is automatically generated during the credit memo reversal.\n","title":"PutReverseCreditMemoResponseTypeDebitMemo"},"PutReverseCreditMemoResponseType":{"type":"object","properties":{"creditMemo":{"$ref":"#/components/schemas/PutReverseCreditMemoResponseTypeCreditMemo","description":"Container for the credit memo that is automatically generated during the reversal of the invoice that is related to the credit memo. If no related invoice is reversed, the value is null.\n"},"debitMemo":{"$ref":"#/components/schemas/PutReverseCreditMemoResponseTypeDebitMemo","description":"Container for the debit memo that is automatically generated during the credit memo reversal.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"PutReverseCreditMemoResponseType"},"PostTaxationItemForCmTypeFinanceInformation":{"type":"object","properties":{"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"salesTaxPayableAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the taxation item.\n","title":"PostTaxationItemForCmTypeFinanceInformation"},"PostTaxationItemForCmTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the credit memo.\n","title":"PostTaxationItemForCmTypeTaxRateType"},"POSTTaxationItemForCMType":{"type":"object","properties":{"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"financeInformation":{"$ref":"#/components/schemas/PostTaxationItemForCmTypeFinanceInformation","description":"Container for the finance information related to the taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"memoItemId":{"type":"string","description":"The ID of the credit memo that the taxation item is created for.\n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"sourceTaxItemId":{"type":"string","description":"The ID of the taxation item of the invoice, which the credit memo is created from. \n\nIf you want to use this REST API to create taxation items for a credit memo created from an invoice, the taxation items of the invoice must be created or imported through the SOAP API call.\n\n**Note:** \n  - This field is only used if the credit memo is created from an invoice. \n  - If you do not contain this field in the request body, Zuora will automatically set a value for the `sourceTaxItemId` field based on the tax location code, tax jurisdiction, and tax rate.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of the tax applied to the credit memo.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific credit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date when the tax is applied to the credit memo.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the credit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/PostTaxationItemForCmTypeTaxRateType","description":"The type of the tax rate applied to the credit memo.\n"}},"required":["jurisdiction","name","taxAmount","taxRate","taxRateType"],"description":"Container for custom fields of a Taxation Item object.\n","title":"POSTTaxationItemForCMType"},"POSTTaxationItemListForCMType":{"type":"object","properties":{"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTTaxationItemForCMType"},"description":"Container for taxation items.\n"}},"title":"POSTTaxationItemListForCMType"},"CreditMemoUnapplyDebitMemoItemRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount that is unapplied from the specific item. \n"},"creditMemoItemId":{"type":"string","description":"The ID of the credit memo item.\n"},"creditTaxItemId":{"type":"string","description":"The ID of the credit memo taxation item.\n"},"debitMemoItemId":{"type":"string","description":"The ID of the debit memo item that the credit memo item is unapplied from.\n"},"taxItemId":{"type":"string","description":"The ID of the debit memo taxation item that the credit memo taxation item is unapplied from.\n"}},"required":["amount"],"title":"CreditMemoUnapplyDebitMemoItemRequestType"},"CreditMemoUnapplyDebitMemoRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The credit memo amount to be unapplied from the debit memo.\n"},"debitMemoId":{"type":"string","description":"The unique ID of the debit memo that the credit memo is unapplied from.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoUnapplyDebitMemoItemRequestType"},"description":"Container for items. The maximum number of items is 1,000.\n"}},"required":["amount","debitMemoId"],"title":"CreditMemoUnapplyDebitMemoRequestType"},"CreditMemoUnapplyInvoiceItemRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount that is unapplied from the specific item. \n"},"creditMemoItemId":{"type":"string","description":"The ID of the credit memo item.\n"},"creditTaxItemId":{"type":"string","description":"The ID of the credit memo taxation item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item that the credit memo item is unapplied from.\n"},"taxItemId":{"type":"string","description":"The ID of the invoice taxation item that the credit memo taxation item is unapplied from.\n"}},"required":["amount"],"title":"CreditMemoUnapplyInvoiceItemRequestType"},"CreditMemoUnapplyInvoiceRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The credit memo amount to be unapplied from the invoice.\n"},"invoiceId":{"type":"string","description":"The unique ID of the invoice that the credit memo is unapplied from.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoUnapplyInvoiceItemRequestType"},"description":"Container for items. The maximum number of items is 1,000.\n"}},"required":["amount","invoiceId"],"title":"CreditMemoUnapplyInvoiceRequestType"},"UnapplyCreditMemoType":{"type":"object","properties":{"debitMemos":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoUnapplyDebitMemoRequestType"},"description":"Container for debit memos that the credit memo is unapplied from. The maximum number of debit memos is 1,000.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the credit memo is unapplied.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoUnapplyInvoiceRequestType"},"description":"Container for invoices that the credit memo is unapplied from. The maximum number of invoices is 1,000.\n"}},"title":"UnapplyCreditMemoType"},"InvoiceSettlementAsyncJobResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"InvoiceSettlementAsyncJobResponseReasonsItems"},"InvoiceSettlementAsyncJobResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"id":{"type":"string","description":"The ID of the operation job."},"status":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobStatus"},"operationType":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobOperationType"},"referenceId":{"type":"string","description":"The ID of the business object which is being operated."},"referenceType":{"$ref":"#/components/schemas/InvoiceSettlementAsyncJobReferenceType"},"error":{"type":["string","null"],"description":"The error message if the operation error out."}},"title":"InvoiceSettlementAsyncJobResponse"},"AsyncApplyCreditMemoToInvoice":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The credit memo amount to be applied to the invoice.\n"},"invoiceId":{"type":"string","description":"The unique ID of the invoice that the credit memo is applied to.\n"}},"required":["amount","invoiceId"],"title":"AsyncApplyCreditMemoToInvoice"},"AsyncApplyCreditMemoRequest":{"type":"object","properties":{"effectiveDate":{"type":"string","format":"date","description":"The date when the credit memo is applied.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/AsyncApplyCreditMemoToInvoice"},"description":"Container for invoices that the credit memo is applied to. The maximum number of invoices is 1,000.\n"}},"title":"AsyncApplyCreditMemoRequest"},"AsyncUnapplyCreditMemoToInvoice":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The credit memo amount to be unapplied from the invoice.\n"},"invoiceId":{"type":"string","description":"The unique ID of the invoice that the credit memo is unapplied from.\n"}},"required":["amount","invoiceId"],"title":"AsyncUnapplyCreditMemoToInvoice"},"AsyncUnapplyCreditMemoRequest":{"type":"object","properties":{"effectiveDate":{"type":"string","format":"date","description":"The date when the credit memo is unapplied.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/AsyncUnapplyCreditMemoToInvoice"},"description":"Container for invoices that the credit memo is unapplied. The maximum number of invoices is 1,000.\n"}},"title":"AsyncUnapplyCreditMemoRequest"},"V1DebitMemosGetParametersStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"title":"V1DebitMemosGetParametersStatus"},"GetDebitMemoTypewithSuccessEinvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the debit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n  **Note**: This field is available only if you have the <a\n  href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\n  target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase\n  enabled.\n","title":"GetDebitMemoTypewithSuccessEinvoiceStatus"},"GetDebitMemoTypewithSuccessSourceType":{"type":"string","enum":["Subscription","Standalone","Order","Consolidation","Invoice","CreditMemo"],"description":"The type of the debit memo source.\n","title":"GetDebitMemoTypewithSuccessSourceType"},"GetDebitMemoTypewithSuccessStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"description":"The status of the debit memo. \n","title":"GetDebitMemoTypewithSuccessStatus"},"GetDebitMemoTypewithSuccessTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status of tax calculation related to the debit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"GetDebitMemoTypewithSuccessTaxStatus"},"GetDebitMemoTypewithSuccessTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the debit memo was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"GetDebitMemoTypewithSuccessTransferredToAccounting"},"GETDebitMemoTypewithSuccess":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account associated with the debit memo.\n"},"accountNumber":{"type":"string","description":"The number of the customer account associated with the debit memo.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the debit memo.\n"},"autoPay":{"type":"boolean","description":"Whether debit memos are automatically picked up for processing in the corresponding payment run. \n\nBy default, debit memos are automatically picked up for processing in the corresponding payment run.      \n"},"balance":{"type":"number","format":"double","description":"The balance of the debit memo.\n"},"beAppliedAmount":{"type":"number","format":"double","description":"The applied amount of the debit memo.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the Zuora user who cancelled the debit memo.\n"},"cancelledOn":{"type":["string","null"],"description":"The date and time when the debit memo was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the debit memo.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the debit memo.\n"},"createdDate":{"type":"string","description":"The date and time when the debit memo was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"currency":{"type":["string","null"],"description":"The currency of the debit memo.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"debitMemoDate":{"type":"string","format":"date","description":"The date when the debit memo takes effect, in `yyyy-mm-dd` format. For example, 2017-05-20.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for the debit memo is due, in `yyyy-mm-dd` format.\n"},"einvoiceErrorCode":{"type":["string","null"],"description":"The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceErrorMessage":{"type":["string","null"],"description":"The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceFileId":{"type":["string","null"],"description":"The ID of the e-invoice file generated for the debit memo.\n\n**Note**: This field 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"},"einvoiceStatus":{"oneOf":[{"$ref":"#/components/schemas/GetDebitMemoTypewithSuccessEinvoiceStatus"},{"type":"null"}],"description":"The status of the e-invoice file generation for the debit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n  **Note**: This field is available only if you have the <a\n  href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\n  target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase\n  enabled.\n"},"id":{"type":"string","description":"The unique ID of the debit memo.\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"latestPDFFileId":{"type":"string","description":"The ID of the latest PDF file generated for the debit memo.\n"},"number":{"type":"string","description":"The unique identification number of the debit memo.\n"},"paymentTerm":{"type":["string","null"],"description":"The name of the payment term associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"postedById":{"type":["string","null"],"description":"The ID of the Zuora user who posted the debit memo.\n"},"postedOn":{"type":["string","null"],"description":"The date and time when the debit memo was posted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty.\n"},"referredCreditMemoId":{"type":["string","null"],"description":"The ID of the credit memo from which the debit memo was created.\n"},"referredInvoiceId":{"type":["string","null"],"description":"The ID of a referred invoice.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the debit memo.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\nfeature turned on. The value is `null` in the response body without this feature turned on.\n"},"sourceType":{"$ref":"#/components/schemas/GetDebitMemoTypewithSuccessSourceType","description":"The type of the debit memo source.\n"},"status":{"$ref":"#/components/schemas/GetDebitMemoTypewithSuccessStatus","description":"The status of the debit memo. \n"},"targetDate":{"type":["string","null"],"format":"date","description":"The target date for the debit memo, in `yyyy-mm-dd` format. For example, 2017-07-20.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxMessage":{"type":["string","null"],"description":"The message about the status of tax calculation related to the debit memo. If tax calculation fails in one debit memo, this field displays the reason for the failure.\n"},"taxStatus":{"oneOf":[{"$ref":"#/components/schemas/GetDebitMemoTypewithSuccessTaxStatus"},{"type":"null"}],"description":"The status of tax calculation related to the debit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"totalTaxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetDebitMemoTypewithSuccessTransferredToAccounting","description":"Whether the debit memo was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the debit memo.\n"},"updatedDate":{"type":"string","description":"The date and time when the debit memo was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:31:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the debit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the debit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Debit Memo object.\n","title":"GETDebitMemoTypewithSuccess"},"GETDebitMemoCollectionType":{"type":"object","properties":{"debitmemos":{"type":"array","items":{"$ref":"#/components/schemas/GETDebitMemoTypewithSuccess"},"description":"Container for debit memos.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETDebitMemoCollectionType"},"DebitMemoFromChargeDetailTypeFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":["string","null"],"minLength":0,"maxLength":100,"description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"recognizedRevenueAccountingCode":{"type":["string","null"],"minLength":0,"maxLength":100,"description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"revenueRecognitionRuleName":{"type":["string","null"],"minLength":0,"maxLength":100,"description":"The name of the revenue recognition rule governing the revenue schedule.\n"}},"description":"Container for the finance information related to the product rate plan charge associated with the debit memo.\n","title":"DebitMemoFromChargeDetailTypeFinanceInformation"},"DebitMemoFromChargeDetailType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the debit memo item.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude the debit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.            \n"},"description":{"type":"string","minLength":0,"maxLength":255,"description":"The description of the product rate plan charge.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `257.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"financeInformation":{"$ref":"#/components/schemas/DebitMemoFromChargeDetailTypeFinanceInformation","description":"Container for the finance information related to the product rate plan charge associated with the debit memo.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the debit memo is created from.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `257.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"quantity":{"type":"number","format":"double","description":"The number of units for the debit memo item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the debit memo item. If not specified, the effective end date of the corresponding product rate plan will be used.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the debit memo item. If not specified, the effective start date of the corresponding product rate plan will be used.\n"}},"required":["productRatePlanChargeId"],"description":"Container for custom fields of a Debit Memo Item object.\n","title":"DebitMemoFromChargeDetailType"},"DebitMemoFromChargeCustomRatesType":{"type":"object","properties":{"currency":{"type":"string","description":"The currency code for either Reporting or Home currency.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"customFxRate":{"type":"number","format":"double","description":"The Custom FX conversion rate between home currency and transactional currency items.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"rateDate":{"type":"string","format":"date","description":"The date on which a particular currency rate is fixed or obtained on.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"}},"required":["currency","customFxRate"],"description":"Container for custom fields of a Debit Memo Item object.\n","title":"DebitMemoFromChargeCustomRatesType"},"DebitMemoFromChargeRequest":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with the debit memo.\n\n**Note**: When creating debit memos from product rate plan charges, you must specify `accountNumber`, `accountId`, or both in the request body. If both fields are specified, they must correspond to the same account.\n"},"accountNumber":{"type":"string","description":"The number of the account associated with the debit memo.\n\n**Note**: When creating debit memos from product rate plan charges, you must specify `accountNumber`, `accountId`, or both in the request body. If both fields are specified, they must correspond to the same account.\n"},"autoPay":{"type":"boolean","description":"Whether debit memos are automatically picked up for processing in the corresponding payment run. \n\nBy default, debit memos are automatically picked up for processing in the corresponding payment run.\n"},"autoPost":{"type":"boolean","default":false,"description":"Whether to automatically post the debit memo after it is created. \n\nSetting this field to `true`, you do not need to separately call the [Post a debit memo](https://developer.zuora.com/api-references/api/operation/PUT_PostDebitMemo) operation to post the debit memo.\n"},"charges":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoFromChargeDetailType"},"description":"Container for product rate plan charges. The maximum number of items is 1,000.\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the debit memo.\n"},"currency":{"type":"string","description":"The code of a currency as defined in Billing Settings through the Zuora UI.\n\nIf you do not specify a currency during debit memo creation, the default account currency is applied. The currency that you specify in the request must be configured and activated in Billing Settings.\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"customRates":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoFromChargeCustomRatesType"},"description":"It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item or Reporting currency item or both).\n\n**Note**:\n  \n- The API custom rate feature is permission controlled.\n- You cannot set the custom rates, if both the **Automatically include additional Currency Conversion information in data source exports** option and **Fx data** feature are enabled.\n- DebitMemo, DebitMemoItem, and DebitMemoItemTax will utilize the provided custom Fx rate to convert amounts from the transactional currency to the home currency.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for the debit memo is due, in `yyyy-mm-dd` format.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the debit memo takes effect.\n"},"number":{"type":"string","maxLength":32,"description":"A customized debit memo number with the following format requirements:\n\n- Max length: 32 characters\n- Acceptable characters: a-z,A-Z,0-9,-,_\n\nThe value must be unique in the system, otherwise it may cause issues with bill runs and subscriptions.\n\nIf not provided, Zuora will generate a unique number per the sequence set on the account level. If the account-level sequence set is not specified, the system default sequence set is used. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Configure_billing_settings/Billing_document_settings/Configure_prefix_and_numbering_for_billing_documents\" target=\"_blank\">Configure prefix and numbering for billing documents</a>.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the debit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the debit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Debit Memo object.\n","title":"DebitMemoFromChargeRequest"},"GetDebitMemoTypeEinvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the debit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n  **Note**: This field is available only if you have the <a\n  href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\n  target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase\n  enabled.\n","title":"GetDebitMemoTypeEinvoiceStatus"},"GetDebitMemoTypeSourceType":{"type":"string","enum":["Subscription","Standalone","Order","Consolidation","Invoice","CreditMemo"],"description":"The type of the debit memo source.\n","title":"GetDebitMemoTypeSourceType"},"GetDebitMemoTypeStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"description":"The status of the debit memo.\n","title":"GetDebitMemoTypeStatus"},"GetDebitMemoTypeTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status of tax calculation related to the debit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"GetDebitMemoTypeTaxStatus"},"GetDebitMemoTypeTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the debit memo was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite.\n","title":"GetDebitMemoTypeTransferredToAccounting"},"GETDebitMemoType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account associated with the debit memo.\n"},"accountNumber":{"type":"string","description":"The number of the customer account associated with the debit memo.       \n"},"amount":{"type":"number","format":"double","description":"The total amount of the debit memo.\n"},"autoPay":{"type":"boolean","description":"Whether debit memos are automatically picked up for processing in the corresponding payment run.\n\nBy default, debit memos are automatically picked up for processing in the corresponding payment run.\n"},"balance":{"type":"number","format":"double","description":"The balance of the debit memo.\n"},"beAppliedAmount":{"type":"number","format":"double","description":"The amount that is applied to the debit memo.\n"},"billToContactId":{"type":["string","null"],"description":"The ID of the bill-to contact associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"billToContactSnapshotId":{"type":["string","null"],"description":"The ID of the bill-to contact snapshot associated with the debit memo.\n\nThe value of this field is `null` if the bill rule [Preserve snapshot of bill-to and sold-to contacts when billing documents are posted](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Billing_Rules#Preserve_snapshot_of_bill-to_and_sold-to_contacts_when_billing_documents_are_posted) is disabled.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the Zuora user who cancelled the debit memo.\n"},"cancelledOn":{"type":["string","null"],"description":"The date and time when the debit memo was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"currency":{"type":["string","null"],"description":"The currency of the debit memo.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"comment":{"type":["string","null"],"description":"Comments about the debit memo.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the debit memo.\n"},"createdDate":{"type":"string","description":"The date and time when the debit memo was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"debitMemoDate":{"type":"string","format":"date","description":"The date when the debit memo takes effect, in `yyyy-mm-dd` format. For example, 2017-05-20.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for the debit memo is due, in `yyyy-mm-dd` format.\n"},"einvoiceErrorCode":{"type":["string","null"],"description":"The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceErrorMessage":{"type":["string","null"],"description":"The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceFileId":{"type":["string","null"],"description":"The ID of the e-invoice file generated for the debit memo.\n\n**Note**: This field 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"},"einvoiceStatus":{"oneOf":[{"$ref":"#/components/schemas/GetDebitMemoTypeEinvoiceStatus"},{"type":"null"}],"description":"The status of the e-invoice file generation for the debit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n  **Note**: This field is available only if you have the <a\n  href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\n  target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase\n  enabled.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the debit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"id":{"type":"string","description":"The unique ID of the debit memo.\n"},"invoiceGroupNumber":{"type":["string","null"],"description":"The number of the invoice group associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"latestPDFFileId":{"type":"string","description":"The ID of the latest PDF file generated for the debit memo.\n"},"number":{"type":"string","description":"The unique identification number of the debit memo.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term assoicated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"postedById":{"type":["string","null"],"description":"The ID of the Zuora user who posted the debit memo.\n"},"postedOn":{"type":["string","null"],"description":"The date and time when the debit memo was posted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty.\n"},"referredCreditMemoId":{"type":"string","description":"The ID of the credit memo from which the debit memo was created.\n"},"referredInvoiceId":{"type":["string","null"],"description":"The ID of a referred invoice.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n             \n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the debit memo.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\nfeature turned on. The value is `null` in the response body without this feature turned on.\n"},"soldToContactId":{"type":["string","null"],"description":"The ID of the sold-to contact associated with the debit memo.\nThe value of this field is `null` if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled.\n"},"soldToContactSnapshotId":{"type":["string","null"],"description":"The ID of the sold-to contact snapshot associated with the debit memo.\nThe value of this field is `null` if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled.\n"},"sourceType":{"$ref":"#/components/schemas/GetDebitMemoTypeSourceType","description":"The type of the debit memo source.\n"},"status":{"$ref":"#/components/schemas/GetDebitMemoTypeStatus","description":"The status of the debit memo.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"targetDate":{"type":["string","null"],"format":"date","description":"The target date for the debit memo, in `yyyy-mm-dd` format. For example, 2017-07-20.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxMessage":{"type":["string","null"],"description":"The message about the status of tax calculation related to the debit memo. If tax calculation fails in one debit memo, this field displays the reason for the failure.\n"},"taxStatus":{"oneOf":[{"$ref":"#/components/schemas/GetDebitMemoTypeTaxStatus"},{"type":"null"}],"description":"The status of tax calculation related to the debit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"totalTaxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetDebitMemoTypeTransferredToAccounting","description":"Whether the debit memo was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the debit memo.\n"},"updatedDate":{"type":"string","description":"The date and time when the debit memo was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the debit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the debit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Debit Memo object.\n","title":"GETDebitMemoType"},"BatchDebitMemoType":{"type":"object","properties":{"dueDate":{"type":"string","format":"date","description":"The date by which the payment for the debit memo is due, in `yyyy-mm-dd` format.\n"},"id":{"type":"string","description":"The unique ID or number of the debit memo to be updated. For example, 402890555a87d7f5015a892f2ba10057 or or DM00000001.\n"}},"title":"BatchDebitMemoType"},"PUTBatchDebitMemosRequest":{"type":"object","properties":{"debitMemos":{"type":"array","items":{"$ref":"#/components/schemas/BatchDebitMemoType"},"description":"Container for debit memo update details.\n"}},"title":"PUTBatchDebitMemosRequest"},"DebitMemoItemFromInvoiceItemTypeFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"recognizedRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"revenueRecognitionRuleName":{"type":"string","minLength":0,"maxLength":100,"description":"The name of the revenue recognition rule governing the revenue schedule.\n"}},"description":"Container for the finance information related to the debit memo item.\n","title":"DebitMemoItemFromInvoiceItemTypeFinanceInformation"},"DebitMemoTaxItemFromInvoiceTaxItemTypeFinanceInformation":{"type":"object","properties":{"salesTaxPayableAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the source taxation item.\n","title":"DebitMemoTaxItemFromInvoiceTaxItemTypeFinanceInformation"},"DebitMemoTaxItemFromInvoiceTaxItemTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the debit memo.\n","title":"DebitMemoTaxItemFromInvoiceTaxItemTypeTaxRateType"},"DebitMemoTaxItemFromInvoiceTaxItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the debit memo taxation item.\n"},"financeInformation":{"$ref":"#/components/schemas/DebitMemoTaxItemFromInvoiceTaxItemTypeFinanceInformation","description":"Container for the finance information related to the source taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"sourceTaxItemId":{"type":"string","description":"The ID of the source taxation item.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific debit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the debit memo, in `yyyy-mm-dd` format.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxName":{"type":"string","description":"The name of taxation.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the debit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/DebitMemoTaxItemFromInvoiceTaxItemTypeTaxRateType","description":"The type of the tax rate applied to the debit memo.\n"}},"required":["amount"],"title":"DebitMemoTaxItemFromInvoiceTaxItemType"},"DebitMemoItemFromInvoiceItemTypeTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"default":"TaxExclusive","description":"The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.\n\n**Note**: You can set this field to `TaxInclusive` only if the `taxAutoCalculation` field is set to `true`.\n\nIf you set `taxMode` to `TaxInclusive`, you cannot input tax amounts for debit memo items. The corresponding invoice item must use the same tax engine as the debit memo item to calculate tax amounts.\n","title":"DebitMemoItemFromInvoiceItemTypeTaxMode"},"DebitMemoItemFromInvoiceItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the debit memo item.\n"},"description":{"type":"string","description":"The description of the debit memo item.\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `257.0` or a later available version.\n"},"financeInformation":{"$ref":"#/components/schemas/DebitMemoItemFromInvoiceItemTypeFinanceInformation","description":"Container for the finance information related to the debit memo item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item.\n"},"quantity":{"type":"number","format":"double","description":"The number of units for the debit memo item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the debit memo item.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the debit memo item. \n"},"skuName":{"type":"string","description":"The name of the charge associated with the invoice.\n"},"taxItems":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoTaxItemFromInvoiceTaxItemType"},"description":"Container for taxation items.\n"},"taxMode":{"$ref":"#/components/schemas/DebitMemoItemFromInvoiceItemTypeTaxMode","default":"TaxExclusive","description":"The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.\n\n**Note**: You can set this field to `TaxInclusive` only if the `taxAutoCalculation` field is set to `true`.\n\nIf you set `taxMode` to `TaxInclusive`, you cannot input tax amounts for debit memo items. The corresponding invoice item must use the same tax engine as the debit memo item to calculate tax amounts.\n"},"unitOfMeasure":{"type":"string","description":"The definable unit that you measure when determining charges.\n"}},"required":["amount","skuName"],"description":"Container for custom fields of a Debit Memo Item object.\n","title":"DebitMemoItemFromInvoiceItemType"},"DebitMemoFromInvoiceRequest":{"type":"object","properties":{"autoPay":{"type":"boolean","description":"Whether debit memos are automatically picked up for processing in the corresponding payment run. \nBy default, debit memos are automatically picked up for processing in the corresponding payment run.\n"},"autoPost":{"type":"boolean","default":false,"description":"Whether to automatically post the debit memo after it is created. \nSetting this field to `true`, you do not need to separately call the [Post debit memo](https://developer.zuora.com/api-references/api/operation/PUT_PostDebitMemo) operation to post the debit memo.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the debit memo.\n\n\n**Note**: This field is available only if you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Flexible_Billing_Attributes/A_Overview_of_Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> enabled for your tenant.\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the debit memo. \n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the debit memo takes effect.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice that the debit memo is created from.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoItemFromInvoiceItemType"},"description":"Container for items. The maximum number of items is 1,000.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the debit memo.\n\n\n**Note**: This field is available only if you have <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Flexible_Billing_Attributes/A_Overview_of_Flexible_Billing_Attributes\" target=\"_blank\"> Flexible Billing Attributes</a> enabled for your tenant.\n"},"soldToSameAsBillTo":{"type":"boolean","description":"Whether the sold-to contact and bill-to contact are the same entity.\n\nThe created debit memo has the same bill-to contact and sold-to contact entity only when all the following conditions are met in the request body:\n\n- This field is set to `true`.\n- The `billToContactId` field is specified.\n- The `soldToContactId` field is not specified.\n"},"taxAutoCalculation":{"type":"boolean","default":true,"description":"Whether to automatically calculate taxes in the debit memo.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the debit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the debit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["invoiceId"],"description":"Container for custom fields of a Debit Memo object.\n","title":"DebitMemoFromInvoiceRequest"},"POSTBulkDebitMemosRequestType":{"oneOf":[{"type":"object","properties":{"sourceType":{"type":"string","enum":["Invoice"],"description":"Discriminator value: Invoice"},"memos":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoFromInvoiceRequest"},"description":"The container for a list of debit memos. The maximum number of debit memos is 50.\n"}},"required":["sourceType"],"description":"Invoice variant"},{"type":"object","properties":{"sourceType":{"type":"string","enum":["Standalone"],"description":"Discriminator value: Standalone"},"memos":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoFromChargeRequest"},"description":"The container for a list of debit memos. The maximum number of debit memos is 50.\n"}},"required":["sourceType"],"description":"Standalone variant"}],"discriminator":{"propertyName":"sourceType"},"title":"POSTBulkDebitMemosRequestType"},"BulkDebitMemosResponseType":{"type":"object","properties":{"memos":{"type":"array","items":{"$ref":"#/components/schemas/GETDebitMemoType"},"description":"The container for a list of debit memos.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"BulkDebitMemosResponseType"},"PutDebitMemoItemTypeFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"recognizedRevenueAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"revenueRecognitionRuleName":{"type":"string","minLength":0,"maxLength":100,"description":"The name of the revenue recognition rule governing the revenue schedule.\n"}},"description":"Container for the finance information related to the debit memo item.\n","title":"PutDebitMemoItemTypeFinanceInformation"},"PutDebitMemoTaxItemTypeFinanceInformation":{"type":"object","properties":{"salesTaxPayableAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the taxation item in the debit memo item.\n","title":"PutDebitMemoTaxItemTypeFinanceInformation"},"PutDebitMemoTaxItemTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the debit memo.\n","title":"PutDebitMemoTaxItemTypeTaxRateType"},"PutDebitMemoTaxItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the taxation item in the debit memo item.\n"},"financeInformation":{"$ref":"#/components/schemas/PutDebitMemoTaxItemTypeFinanceInformation","description":"Container for the finance information related to the taxation item in the debit memo item.\n"},"id":{"type":"string","description":"The ID of the taxation item in the debit memo item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific debit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the debit memo, in `yyyy-mm-dd` format.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxName":{"type":"string","description":"The name of taxation.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the debit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/PutDebitMemoTaxItemTypeTaxRateType","description":"The type of the tax rate applied to the debit memo.\n"}},"required":["id"],"description":"Container for custom fields of a Debit Taxation Item object.\n","title":"PutDebitMemoTaxItemType"},"PUTDebitMemoItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the debit memo item. For tax-inclusive debit memo items, the amount indicates the debit memo item amount including tax. For tax-exclusive debit memo items, the amount indicates the debit memo item amount excluding tax.\n"},"comment":{"type":"string","description":"Comments about the debit memo item.\n"},"delete":{"type":"boolean","description":"Whether to delete the existing debit memo item.\n\n\n**Note**: To delete a debit memo item, set this field to `true` and specify a debit memo item ID in the `id` field.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude the debit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled.            \n"},"financeInformation":{"$ref":"#/components/schemas/PutDebitMemoItemTypeFinanceInformation","description":"Container for the finance information related to the debit memo item.\n"},"id":{"type":"string","minLength":32,"maxLength":32,"description":"The ID of the debit memo item.\n- Specify this field when updating or deleting an existing memo item. \n- Do not specify this field when creating a memo item.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the debit memo is created from.\n\n\n**Note**: Do not specify the debit memo item `id` when specifying this field.\n"},"quantity":{"type":"number","format":"double","description":"The number of units for the debit memo item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the debit memo item.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the debit memo item. \n"},"skuName":{"type":"string","description":"The name of the SKU.\n"},"taxItems":{"type":"array","items":{"$ref":"#/components/schemas/PutDebitMemoTaxItemType"},"description":"Container for debit memo taxation items.\n"},"unitOfMeasure":{"type":"string","description":"The definable unit that you measure when determining charges.\n"}},"description":"Container for custom fields of a Debit Memo Item object.\n","title":"PUTDebitMemoItemType"},"PutDebitMemoWithIdTypeTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the debit memo is transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PutDebitMemoWithIdTypeTransferredToAccounting"},"PUTDebitMemoWithIdType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the debit memo.\n"},"autoPay":{"type":"boolean","description":"Whether debit memos are automatically picked up for processing in the corresponding payment run. \n\nBy default, debit memos are automatically picked up for processing in the corresponding payment run.\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the debit memo.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for the debit memo is due, in `yyyy-mm-dd` format.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the debit memo takes effect.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PUTDebitMemoItemType"},"description":"Container for debit memo items.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PutDebitMemoWithIdTypeTransferredToAccounting","description":"Whether the debit memo is transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the debit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the debit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Debit Memo object.\n","title":"PUTDebitMemoWithIdType"},"PUTBulkDebitMemosRequestType":{"type":"object","properties":{"memos":{"type":"array","items":{"$ref":"#/components/schemas/PUTDebitMemoWithIdType"},"description":"The container for a list of debit memos. The maximum number of debit memos is 50.\n"}},"title":"PUTBulkDebitMemosRequestType"},"GetDebitMemoPdfStatusResponsePdfGenerationStatus":{"type":"string","enum":["None","Pending","Processing","Generated","Error","Obsolete"],"description":"The generation status of the debit memo PDF.\n","title":"GetDebitMemoPdfStatusResponsePdfGenerationStatus"},"GetDebitMemoPdfStatusResponse":{"type":"object","properties":{"debitMemoId":{"type":"string","description":"The ID of the debit memo whose pdf status is requested.\n"},"debitMemoNumber":{"type":"string","description":"The debit memo number of the debit memo whose pdf status is requested.\n"},"pdfGenerationStatus":{"$ref":"#/components/schemas/GetDebitMemoPdfStatusResponsePdfGenerationStatus","description":"The generation status of the debit memo PDF.\n"},"createdOn":{"type":"string","description":"The time at which the request to generate the PDF was created.\n"},"updatedOn":{"type":"string","description":"The time at which the request to generate the PDF was updated.\n"},"pdfFileURL":{"type":"string","description":"The file path or the URL of the PDF when the status is `Generated`.  \n"},"errorCategory":{"type":"string","description":"The error category when the status is `Error`. \n"},"errorMessage":{"type":"string","description":"The error message when the status is `Error`. \n"}},"title":"GetDebitMemoPdfStatusResponse"},"GetDebitMemoPdfStatusBatchResponse":{"type":"object","properties":{"debitMemoFiles":{"type":"array","items":{"$ref":"#/components/schemas/GetDebitMemoPdfStatusResponse"},"description":"Array of debit memo PDF statuses requested.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GetDebitMemoPdfStatusBatchResponse"},"GetDebitMemoApplicationPartType":{"type":"object","properties":{"appliedAmount":{"type":"number","format":"double","description":"The amount that is applied to the debit memo.\n"},"createdById":{"type":"string","format":"uuid","description":"The ID of the Zuora user who created the payment or credit memo.\n"},"createdDate":{"type":"string","description":"The date and time when the payment or credit memo was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-12-01 15:31:10.\n"},"creditMemoId":{"type":"string","format":"uuid","description":"The ID of credit memo that is applied to the specified debit memo.\n"},"paymentId":{"type":"string","format":"uuid","description":"The ID of the payment that is applied to the specified debit memo.\n"},"updatedById":{"type":"string","format":"uuid","description":"The ID of the Zuora user who last updated the payment or credit memo.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment or credit memo was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2018-01-02 11:42:16.\n"}},"title":"GetDebitMemoApplicationPartType"},"GetDebitMemoApplicationPartCollectionType":{"type":"object","properties":{"applicationParts":{"type":"array","items":{"$ref":"#/components/schemas/GetDebitMemoApplicationPartType"},"description":"Container for application parts.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GetDebitMemoApplicationPartCollectionType"},"GetdmTaxItemTypeNewFinanceInformation":{"type":"object","properties":{"salesTaxPayableAccountingCode":{"type":"string","description":"The accounting code for the sales taxes payable.\n"},"salesTaxPayableAccountingCodeType":{"type":"string","description":"The type of the accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the taxation item.\n","title":"GetdmTaxItemTypeNewFinanceInformation"},"GetdmTaxItemTypeNewTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate.\n","title":"GetdmTaxItemTypeNewTaxRateType"},"GETDMTaxItemTypeNew":{"type":"object","properties":{"balance":{"type":"number","format":"double","description":"The balance of the taxation item.\n"},"creditAmount":{"type":"number","format":"double","description":"The amount of credit memos applied to the debit memo. \n"},"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"financeInformation":{"$ref":"#/components/schemas/GetdmTaxItemTypeNewFinanceInformation","description":"Container for the finance information related to the taxation item.\n"},"id":{"type":"string","description":"The ID of the taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"paymentAmount":{"type":"number","format":"double","description":"The amount of payments applied to the debit memo. \n"},"sourceTaxItemId":{"type":"string","description":"The ID of the source taxation item.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific debit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the debit memo, in `yyyy-mm-dd` format.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the debit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/GetdmTaxItemTypeNewTaxRateType","description":"The type of the tax rate.\n"}},"description":"Container for custom fields of a Debit Taxation Item object.\n","title":"GETDMTaxItemTypeNew"},"GETTaxationItemsOfDebitMemoItemType":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETDMTaxItemTypeNew"},"description":"Container for the taxation items of the debit memo item.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETTaxationItemsOfDebitMemoItemType"},"PutDebitMemoTypeTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the debit memo is transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PutDebitMemoTypeTransferredToAccounting"},"PUTDebitMemoType":{"type":"object","properties":{"autoPay":{"type":"boolean","description":"Whether debit memos are automatically picked up for processing in the corresponding payment run. \n\nBy default, debit memos are automatically picked up for processing in the corresponding payment run.\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the debit memo.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for the debit memo is due, in `yyyy-mm-dd` format.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the debit memo takes effect.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PUTDebitMemoItemType"},"description":"Container for debit memo items.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PutDebitMemoTypeTransferredToAccounting","description":"Whether the debit memo is transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the debit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the debit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Debit Memo object.\n","title":"PUTDebitMemoType"},"DebitMemoCollectRequestPayment":{"type":"object","properties":{"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the payment. The ID must be a valid gateway instance ID and this gateway must support the specific payment method.\nIf no gateway ID is specified in the request body, the default gateway for the customer account is used automatically, if this default one is not configured, the default gateway of the tenant would be used.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment.\nIf no payment method ID is specified in the request body, the default payment method for the customer account is used automatically. If the default payment method is different from the type of payments that you want to create, an error occurs.\n"}},"description":"Some detail info that would be used to processed an electronic payment.\nThe info would only effect when `collect` set to `true`.\n","title":"DebitMemoCollectRequestPayment"},"DebitMemoCollectRequest":{"type":"object","properties":{"applicationOrder":{"type":"array","items":{"type":"string"},"description":"The priority order to apply credit memos and/or unapplied payments to the debit memo. Possible item values are: `CreditMemo`, `UnappliedPayment`.\n\n**Note:**\n  - This field is valid only if the `applyCredit` field is set to `true`.\n  - If no value is specified for this field, the default priority order is used, [\"CreditMemo\", \"UnappliedPayment\"], to apply credit memos first and then apply unapplied payments.\n  - If only one item is specified, only the items of the spedified type are applied to invoices. For example, if the value is `[\"CreditMemo\"]`, only credit memos are used to apply the debit memo.\n"},"applyCredit":{"type":"boolean","default":false,"description":"Whether to automatically apply credit memos or unapplied payments, or both to the debit memo.\nIf the value is `true`, the credit memo or unapplied payment, or both will be automatically applied to the debit memo. If no value is specified or the value is `false`, no action is taken.\n"},"collect":{"type":"boolean","default":false,"description":"Indicates if the current request needs to collect payment or not.\n"},"payment":{"$ref":"#/components/schemas/DebitMemoCollectRequestPayment","description":"Some detail info that would be used to processed an electronic payment.\nThe info would only effect when `collect` set to `true`.\n"}},"title":"DebitMemoCollectRequest"},"DebitMemoCollectResponseAppliedCreditMemos":{"type":"object","properties":{"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the credit memo to the debit memo.\n"},"id":{"type":"string","description":"The unique ID of the credit memo.\n"},"number":{"type":"string","description":"The unique identification number of the credit memo.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the credit memo after applied to the debit memo.\n"}},"title":"DebitMemoCollectResponseAppliedCreditMemos"},"DebitMemoCollectResponseAppliedPayments":{"type":"object","properties":{"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the payment to the debit memo.\n"},"id":{"type":"string","description":"The unique ID of the payment.\n"},"number":{"type":"string","description":"The unique identification number of the payment.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the payment after applied to the debit memo.\n"}},"title":"DebitMemoCollectResponseAppliedPayments"},"DebitMemoCollectResponseDebitMemo":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the debit memo.\n"},"number":{"type":"string","description":"The unique identification number of the debit memo.\n"}},"description":"The information about the debit memo that just collected.\n","title":"DebitMemoCollectResponseDebitMemo"},"DebitMemoCollectResponseProcessedPaymentStatus":{"type":"string","enum":["Processing","Processed","Error","Canceled"],"description":"The status of the payment.\n","title":"DebitMemoCollectResponseProcessedPaymentStatus"},"DebitMemoCollectResponseProcessedPayment":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The total amount of the payment.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the payment.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the payment. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the payment. This code is gateway-dependent.\n"},"id":{"type":"string","description":"The unique ID of the created payment. For example, 4028905f5a87c0ff015a87eb6b75007f.\n"},"number":{"type":"string","description":"The unique identification number of the payment. For example, P-00000001.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment.\n"},"status":{"$ref":"#/components/schemas/DebitMemoCollectResponseProcessedPaymentStatus","description":"The status of the payment.\n"}},"description":"The information about the payment that newly processed to the debit memo.\n","title":"DebitMemoCollectResponseProcessedPayment"},"DebitMemoCollectResponse":{"type":"object","properties":{"appliedCreditMemos":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoCollectResponseAppliedCreditMemos"},"description":"The information about which credit memo applied to the specific debit memo.\n"},"appliedPayments":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoCollectResponseAppliedPayments"},"description":"The information about which payment applied to the specific debit memo.\n"},"debitMemo":{"$ref":"#/components/schemas/DebitMemoCollectResponseDebitMemo","description":"The information about the debit memo that just collected.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"processedPayment":{"$ref":"#/components/schemas/DebitMemoCollectResponseProcessedPayment","description":"The information about the payment that newly processed to the debit memo.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"DebitMemoCollectResponse"},"PostDebitMemoEmailType":{"type":"object","properties":{"emailAddresses":{"type":"string","description":"The valid email addresses you want to email a debit memo to. Use commas to separate email addresses.\n\n**Note:** This field is only applicable if you set the `useEmailTemplateSetting` field to `false`.\n"},"includeAdditionalEmailAddresses":{"type":"boolean","default":false,"description":"Indicates whether to send a debit memo to the additional email addresses of the memo account. \n\n\nYou can set the additional email addresses in the **Additional Email Addresses** field on the account detail page from the Zuora UI. See [Create a Customer Account](https://knowledgecenter.zuora.com/BC_Subscription_Management/Customer_Accounts/B_Create_a_Customer_Account#section_2) for more information.\n"},"pdfFileId":{"type":"string","description":"The ID of the PDF file that you want to send in the email. \n\nIf you do not specify any PDF file ID, the latest PDF file generated for the debit memo is sent in the email.\n"},"useEmailTemplateSetting":{"type":"boolean","default":false,"description":"Indicates whether to email a debit memo based on the email template setting. \n\nIf you set this field to `true`, the debit memo is sent to the email addresses specified in the **To Email** field of the email template. The email template is the one you 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"}},"title":"PostDebitMemoEmailType"},"DebitMemoFile":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the debit memo PDF file. This is the ID for the file object and different from the file handle ID in the `pdfFileUrl` field. To open a file, you have to use the file handle ID.\n"},"pdfFileUrl":{"type":"string","description":"The relative URL of the debit memo PDF file.\n\nYou can obtain the absolute URL for downloading the file by adding a prefix in the following format: `{environment_base_url}/apps`\n\nFor example, `https://apisandbox.zuora.com/apps/v1/files/2c98901f62d7d83d0162d7facea6262d`.\n"},"versionNumber":{"type":"integer","format":"int64","description":"The version number of the debit memo PDF file.\n"}},"title":"DebitMemoFile"},"GETDebitMemoFilesResponse":{"type":"object","properties":{"debitMemoFiles":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoFile"},"description":"Container for debit memo PDF files.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETDebitMemoFilesResponse"},"GetDebitMemoItemTypewithSuccessFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"deferredRevenueAccountingCodeType":{"type":"string","description":"The type of the deferred revenue accounting code, such as Deferred Revenue.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"recognizedRevenueAccountingCodeType":{"type":"string","description":"The type of the recognized revenue accounting code, such as Sales Revenue or Sales Discount.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n"},"revenueScheduleNumber":{"type":"string","description":"The revenue schedule number. The revenue schedule number is always prefixed with \"RS\", for example, RS-00000001.\n"}},"description":"Container for the finance information related to the debit memo item.\n","title":"GetDebitMemoItemTypewithSuccessFinanceInformation"},"GetDebitMemoItemTypewithSuccessSourceItemType":{"type":"string","enum":["CreditMemoItem","SubscriptionComponent","InvoiceDetail","ProductRatePlanCharge"],"description":"The type of the source item.\n","title":"GetDebitMemoItemTypewithSuccessSourceItemType"},"GetDebitMemoItemTypewithSuccessTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.\n","title":"GetDebitMemoItemTypewithSuccessTaxMode"},"GetDebitMemoItemTypewithSuccessTaxationItems":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETDMTaxItemTypeNew"},"description":"List of taxation items.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"}},"description":"Container for the taxation items of the debit memo item. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `239.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n","title":"GetDebitMemoItemTypewithSuccessTaxationItems"},"GETDebitMemoItemTypewithSuccess":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the debit memo item. For tax-inclusive debit memo items, the amount indicates the debit memo item amount including tax. For tax-exclusive debit memo items, the amount indicates the debit memo item amount excluding tax.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The debit memo item amount excluding tax.\n"},"appliedToItemId":{"type":"string","description":"The parent debit memo item that this debit memo items is applied to if this item is discount.\n"},"balance":{"type":"number","format":"double","description":"The balance of the debit memo item.\n"},"beAppliedAmount":{"type":"number","format":"double","description":"The applied amount of the debit memo item.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the debit memo item.\n"},"createdDate":{"type":"string","description":"The date and time when the debit memo item was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"description":{"type":"string","description":"The description of the debit memo item.\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `257.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the debit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"financeInformation":{"$ref":"#/components/schemas/GetDebitMemoItemTypewithSuccessFinanceInformation","description":"Container for the finance information related to the debit memo item.\n"},"id":{"type":"string","description":"The ID of the debit memo item.\n"},"processingType":{"type":"string","description":"The kind of the charge for the debit memo item. Its possible values are `Charge` and `Discount`. \n"},"quantity":{"type":"number","format":"double","description":"The number of units for the debit memo item.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set the `excludeItemBillingFromRevenueAccounting` field to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The end date of the service period associated with this debit memo item. Service ends one second before the date specified in this field.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The start date of the service period associated with this debit memo item. If the associated charge is a one-time fee, this date is the date of that charge.\n"},"sku":{"type":"string","description":"The SKU for the product associated with the debit memo item.\n"},"skuName":{"type":"string","description":"The name of the SKU.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the invoice item.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the invoice item.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the invoice item.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.               \n"},"sourceItemId":{"type":"string","description":"The ID of the source item.\n"},"sourceItemType":{"$ref":"#/components/schemas/GetDebitMemoItemTypewithSuccessSourceItemType","description":"The type of the source item.\n"},"subscriptionId":{"type":"string","description":"The ID of the subscription associated with the debit memo item.\n"},"taxMode":{"$ref":"#/components/schemas/GetDebitMemoItemTypewithSuccessTaxMode","description":"The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.\n"},"taxationItems":{"$ref":"#/components/schemas/GetDebitMemoItemTypewithSuccessTaxationItems","description":"Container for the taxation items of the debit memo item. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `239.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"unitOfMeasure":{"type":"string","description":"The units to measure usage.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the debit memo item.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the debit memo item.\n"},"updatedDate":{"type":"string","description":"The date and time when the debit memo item was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"description":"Container for custom fields of a Debit Memo Item object.\n","title":"GETDebitMemoItemTypewithSuccess"},"GETDebitMemoItemCollectionType":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/GETDebitMemoItemTypewithSuccess"},"description":"Container for debit memo items.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETDebitMemoItemCollectionType"},"GetDebitMemoItemTypeFinanceInformation":{"type":"object","properties":{"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability.\n"},"deferredRevenueAccountingCodeType":{"type":"string","description":"The type of the deferred revenue accounting code, such as Deferred Revenue.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"recognizedRevenueAccountingCodeType":{"type":"string","description":"The type of the recognized revenue accounting code, such as Sales Revenue or Sales Discount.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n"},"revenueScheduleNumber":{"type":"string","description":"The revenue schedule number. The revenue schedule number is always prefixed with \"RS\", for example, RS-00000001.\n"}},"description":"Container for the finance information related to the debit memo item.\n","title":"GetDebitMemoItemTypeFinanceInformation"},"GetDebitMemoItemTypeSourceItemType":{"type":"string","enum":["CreditMemoItem","SubscriptionComponent","InvoiceDetail","ProductRatePlanCharge"],"description":"The type of the source item.\n","title":"GetDebitMemoItemTypeSourceItemType"},"GetDebitMemoItemTypeTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.\n","title":"GetDebitMemoItemTypeTaxMode"},"GetDebitMemoItemTypeTaxationItems":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETDMTaxItemTypeNew"},"description":"List of taxation items.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"}},"description":"Container for the taxation items of the debit memo item.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `239.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n","title":"GetDebitMemoItemTypeTaxationItems"},"GETDebitMemoItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the debit memo item. For tax-inclusive debit memo items, the amount indicates the debit memo item amount including tax. For tax-exclusive debit memo items, the amount indicates the debit memo item amount excluding tax.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The debit memo item amount excluding tax.\n"},"appliedToItemId":{"type":"string","description":"The parent debit memo item that this debit memo items is applied to if this item is discount.\n"},"balance":{"type":"number","format":"double","description":"The balance of the debit memo item.\n"},"beAppliedAmount":{"type":"number","format":"double","description":"The applied amount of the debit memo item.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the debit memo item.\n"},"createdDate":{"type":"string","description":"The date and time when the debit memo item was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"description":{"type":"string","description":"Description about the debit memo item.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `257.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the debit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"financeInformation":{"$ref":"#/components/schemas/GetDebitMemoItemTypeFinanceInformation","description":"Container for the finance information related to the debit memo item.\n"},"id":{"type":"string","description":"The ID of the debit memo item.\n"},"processingType":{"type":"string","description":"The kind of the charge for the debit memo item. Its possible values are `Charge` and `Discount`. \n"},"quantity":{"type":"number","format":"double","description":"The number of units for the debit memo item.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set the `excludeItemBillingFromRevenueAccounting` field to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The end date of the service period associated with this debit memo item. Service ends one second before the date specified in this field.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The start date of the service period associated with this debit memo item. If the associated charge is a one-time fee, this date is the date of that charge.\n"},"sku":{"type":"string","description":"The SKU for the product associated with the debit memo item.\n"},"skuName":{"type":"string","description":"The name of the SKU.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the invoice item.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the invoice item.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the invoice item.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.             \n"},"sourceItemId":{"type":"string","description":"The ID of the source item.\n"},"sourceItemType":{"$ref":"#/components/schemas/GetDebitMemoItemTypeSourceItemType","description":"The type of the source item.\n"},"subscriptionId":{"type":"string","description":"The ID of the subscription associated with the debit memo item.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"taxMode":{"$ref":"#/components/schemas/GetDebitMemoItemTypeTaxMode","description":"The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.\n"},"taxationItems":{"$ref":"#/components/schemas/GetDebitMemoItemTypeTaxationItems","description":"Container for the taxation items of the debit memo item.\n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `239.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"unitOfMeasure":{"type":"string","description":"The units to measure usage.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the debit memo item.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the debit memo item.\n"},"updatedDate":{"type":"string","description":"The date and time when the debit memo item was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"description":"Container for custom fields of a Debit Memo Item object.\n","title":"GETDebitMemoItemType"},"PostTaxationItemForDmTypeFinanceInformation":{"type":"object","properties":{"salesTaxPayableAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the taxation item.\n","title":"PostTaxationItemForDmTypeFinanceInformation"},"PostTaxationItemForDmTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the debit memo.\n","title":"PostTaxationItemForDmTypeTaxRateType"},"POSTTaxationItemForDMType":{"type":"object","properties":{"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"financeInformation":{"$ref":"#/components/schemas/PostTaxationItemForDmTypeFinanceInformation","description":"Container for the finance information related to the taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field.\n"},"memoItemId":{"type":"string","description":"The ID of the debit memo that the taxation item is created for.\n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"sourceTaxItemId":{"type":"string","description":"The ID of the taxation item of the invoice, which the debit memo is created from. \n\nIf you want to use this REST API to create taxation items for a debit memo created from an invoice, the taxation items of the invoice must be created or imported through the SOAP API call.\n\n**Note:** \n  - This field is only used if the debit memo is created from an invoice. \n  - If you do not contain this field in the request body, Zuora will automatically set a value for the `sourceTaxItemId` field based on the tax location code, tax jurisdiction, and tax rate.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of the tax applied to the debit memo.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific debit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date when the tax is applied to the debit memo.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the debit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/PostTaxationItemForDmTypeTaxRateType","description":"The type of the tax rate applied to the debit memo.\n"}},"required":["jurisdiction","name","taxAmount","taxRate","taxRateType"],"description":"Container for custom fields of a Taxation Item object.\n","title":"POSTTaxationItemForDMType"},"POSTTaxationItemListForDMType":{"type":"object","properties":{"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTTaxationItemForDMType"},"description":"Container for taxation items.\n"}},"title":"POSTTaxationItemListForDMType"},"PutWriteOffDebitMemoRequestRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice.\n\nThe **Exclude Billing Item From Revenue** field will be automatically set to **Yes** by default for such non-revenue impacting write off credit memos, and this setting cannot be changed. This enhancement helps ensure that only revenue-impacting items are synchronized with Zuora Revenue, reducing unnecessary data processing.\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n","title":"PutWriteOffDebitMemoRequestRevenueImpacting"},"DebitMemoItemFromWriteOffInvoiceTaxationItemsItems":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The credit memo taxation amount.\n"},"taxationItemId":{"type":"string","description":"The Id of the debit memo item.\n"}},"title":"DebitMemoItemFromWriteOffInvoiceTaxationItemsItems"},"DebitMemoItemFromWriteOffInvoice":{"type":"object","properties":{"comment":{"type":"string","description":"Comments about the credit memo item.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The credit memo item amount excluding tax.\n"},"debitMemoItemId":{"type":"string","description":"The ID of the debit memo item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the credit memo item. \n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the credit memo item. \n"},"skuName":{"type":"string","description":"The name of the charge associated with the invoice.\n"},"unitOfMeasure":{"type":"string","description":"The definable unit that you measure when determining charges.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the credit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoItemFromWriteOffInvoiceTaxationItemsItems"},"description":"Container for the taxation items of the credit memo item. \n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `239.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"}},"description":"Container for custom fields of a Credit Memo Item object.\n","title":"DebitMemoItemFromWriteOffInvoice"},"PUTWriteOffDebitMemoRequest":{"type":"object","properties":{"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the write-off. The comment is used as the comment of the credit memo generated by writing off the specified invoice.\n"},"amount":{"type":"number","format":"double","description":"The write off amount of the invoice.\n"},"taxAutoCalculation":{"type":"boolean","description":"Indicates whether to automatically calculate taxes in the credit memo.\n"},"revenueImpacting":{"$ref":"#/components/schemas/PutWriteOffDebitMemoRequestRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice.\n\nThe **Exclude Billing Item From Revenue** field will be automatically set to **Yes** by default for such non-revenue impacting write off credit memos, and this setting cannot be changed. This enhancement helps ensure that only revenue-impacting items are synchronized with Zuora Revenue, reducing unnecessary data processing.\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n"},"nonRevenueWriteOffAccountingCode":{"type":"string","description":"Specify the accounting code for the non revenue write off. Available only if `revenueImpacting` = `no`.\n\n\n**Note**: This field is available only if you have enabled the enhanced write-off permission for your tenant. Contact <a\nhref=\"https://support.zuora.com/hc/en-us\" target=\"_blank\">Zuora Global Support</a> to enable this permission.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoItemFromWriteOffInvoice"},"description":"Container for items. This field is optional. \n**Note:** If specified, you must specify ALL the items of the invoice. The entire balance of the invoice will be written off, you cannot just write off some items of the invoice.\n"},"memoDate":{"type":"string","format":"date","description":"The date when the credit memo was created, in `yyyy-mm-dd` format. The memo date must be later than or equal to the invoice date.\n\nThe default value is the date when you write off the invoice.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code `Write-off`.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the credit memo's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the credit memo was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for Credit Memo fields provided by the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"PUTWriteOffDebitMemoRequest"},"PutWriteOffDebitMemoResponseCreditMemo":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the credit memo that is created when the invoice is written off.\n"}},"description":"Container for the credit memo that is automatically generated when writing off invoices.\n","title":"PutWriteOffDebitMemoResponseCreditMemo"},"PUTWriteOffDebitMemoResponse":{"type":"object","properties":{"creditMemo":{"$ref":"#/components/schemas/PutWriteOffDebitMemoResponseCreditMemo","description":"Container for the credit memo that is automatically generated when writing off invoices.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"PUTWriteOffDebitMemoResponse"},"GetEInvoicingServiceProviderResponseProvider":{"type":"string","enum":["Sovos","PEPPOL","Avalara"],"description":"The name of the e-invoicing service provider that can help you generate e-invoice files for billing documents.\n","title":"GetEInvoicingServiceProviderResponseProvider"},"GetEInvoicingServiceProviderResponse":{"type":"object","properties":{"companyIdentifier":{"type":"string","description":"The identifier of the company used to create a sender system ID, which serves to identify the system where the transactions are sent.\n"},"id":{"type":"string","description":"The ID of the e-invoicing service provider.\n"},"name":{"type":"string","maxLength":100,"description":"The name of the e-invoicing service provider.\n"},"provider":{"$ref":"#/components/schemas/GetEInvoicingServiceProviderResponseProvider","description":"The name of the e-invoicing service provider that can help you generate e-invoice files for billing documents.\n"},"serviceProviderNumber":{"type":"string","description":"The unique number of the e-invoicing service provider.\n"},"test":{"type":"boolean","description":"Whether the e-invoicing service provider's configuration is intended for testing. \n\n- If you set this field to `true`, requests are directed to the testing integration endpoints.\n- If you set this field to `false`, requests are directed to the production integration endpoints.\n"},"apiKey":{"type":"string","description":"The API key is used to authenticate the e-invoicing service provider's requests. This field only applies to the Sovos or Avalara service provider. \n"},"use_certificate":{"type":"boolean","default":true,"description":"This field is used to indicate whether the `clientCertificate`, `clientCertificateType`, and `clientCertificatePassord` fields need to be supplied in the request.\n\n**Note:** If the flag is `true`, the TLS endpoint config is enabled. If the flag is `false`, the Non-TLS config endpoint is enabled. \n  A TLS certificate and password are no longer required for integration with Sovos. Zuora now uses token-based authentication for all supported countries, including India.\n"},"clientCertificate":{"type":"string","format":"byte","description":"The client certificate is used to authenticate the e-invoicing service provider's requests, which should be in base64 encoded format. This field only applies to the Sovos service provider. \n"},"clientCertificateType":{"type":"string","default":"PKCS12","description":"The client certificate type is used to authenticate the e-invoicing service provider's requests. This field only applies to the Sovos service provider. \n"}},"title":"GetEInvoicingServiceProviderResponse"},"ListEInvoicingServiceProvidersResponse":{"type":"object","properties":{"serviceProviders":{"type":"array","items":{"$ref":"#/components/schemas/GetEInvoicingServiceProviderResponse"},"description":"Container for e-invoicing service providers.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"ListEInvoicingServiceProvidersResponse"},"CreateEInvoicingServiceProviderRequestProvider":{"type":"string","enum":["Sovos","PEPPOL","Avalara"],"description":"The name of the e-invoicing service provider that can help you generate e-invoice files for billing documents.\n","title":"CreateEInvoicingServiceProviderRequestProvider"},"CreateEInvoicingServiceProviderRequest":{"type":"object","properties":{"companyIdentifier":{"type":"string","description":"The identifier of the company used to create a sender system ID, which serves to identify the system where the transactions are sent.\n"},"name":{"type":"string","maxLength":100,"description":"The name of the e-invoicing service provider.\n"},"provider":{"$ref":"#/components/schemas/CreateEInvoicingServiceProviderRequestProvider","description":"The name of the e-invoicing service provider that can help you generate e-invoice files for billing documents.\n"},"test":{"type":"boolean","description":"Whether the e-invoicing service provider's configuration is intended for testing. \n\n- If you set this field to `true`, requests are directed to the testing integration endpoints.\n- If you set this field to `false`, requests are directed to the production integration endpoints.\n"},"apiKey":{"type":"string","description":"The API key is used to authenticate the e-invoicing service provider's requests. This field is required for configuring Sovos or Avalara as the service provider.\n"},"secretKey":{"type":"string","description":"The secret key is used to authenticate the e-invoicing service provider's requests. This field is required for configuring Sovos or Avalara as the service provider.\n"},"use_certificate":{"type":"boolean","default":true,"description":"This field is used to indicate whether the `clientCertificate`, `clientCertificateType`, and `clientCertificatePassord` fields need to be supplied in the request.\n\n**Note:** If the flag is `true`, the TLS endpoint config is enabled. If the flag is `false`, the Non-TLS config endpoint is enabled. \nA TLS certificate and password are no longer required for integration with Sovos. Zuora now uses token-based authentication for all supported countries, including India.\n"},"clientCertificate":{"type":"string","format":"byte","description":"The client certificate is used to authenticate the e-invoicing service provider's requests, which should be in base64 encoded format. This field is required for configuring Sovos as the service provider.\n"},"clientCertificateType":{"type":"string","default":"PKCS12","description":"The client certificate type is used to specify the type of the client certificate. This field is required for configuring Sovos as the service provider.\n"},"clientCertificatePassword":{"type":"string","format":"password","description":"The client certificate password is the password to protect the client certificate. This field is required for configuring Sovos as the service provider.\n"}},"required":["name","provider"],"title":"CreateEInvoicingServiceProviderRequest"},"UpdateEInvoicingServiceProviderRequest":{"type":"object","properties":{"companyIdentifier":{"type":"string","description":"The identifier of the company used to create a sender system ID, which serves to identify the system where the transactions are sent.\n"},"name":{"type":"string","maxLength":100,"description":"The name of the e-invoicing service provider.\n"},"test":{"type":"boolean","description":"Whether the e-invoicing service provider's configuration is intended for testing. \n\n- If you set this field to `true`, requests are directed to the testing integration endpoints.\n- If you set this field to `false`, requests are directed to the production integration endpoints.\n"},"apiKey":{"type":"string","description":"The API key is used to authenticate the e-invoicing service provider's requests. This field only applies to the Sovos or Avalara service provider. \n"},"secretKey":{"type":"string","description":"The secret key is used to authenticate the e-invoicing service provider's requests. This field only applies to the Sovos or Avalara service provider. \n"},"use_certificate":{"type":"boolean","default":true,"description":"This field is used to indicate whether the *clientCertificate*, `clientCertificateType`, and `clientCertificatePassord` fields need to be supplied in the request.\n\n**Note:** If the flag is `true`, the TLS endpoint config is enabled. If the flag is `false`, the Non-TLS config endpoint is enabled.\nA TLS certificate and password are no longer required for integration with Sovos. Zuora now uses token-based authentication for all supported countries, including India.\n"},"clientCertificate":{"type":"string","format":"byte","description":"The client certificate is used to authenticate the e-invoicing service provider's requests, which should be in base64 encoded format. This field only applies to the Sovos service provider. \n"},"clientCertificateType":{"type":"string","default":"PKCS12","description":"The client certificate type is used to specify the type of the client certificate. This field only applies to the Sovos service provider. \n"},"clientCertificatePassword":{"type":"string","format":"password","description":"The client certificate password is the password to protect the client certificate. This field only applies to the Sovos service provider. \n"}},"title":"UpdateEInvoicingServiceProviderRequest"},"GetEInvoicingBusinessRegionResponseProcessType":{"type":"string","enum":["Clearance","ClearanceWithCancellation","PEPPOLNetwork","Unknown"],"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","title":"GetEInvoicingBusinessRegionResponseProcessType"},"InvoiceFiltersConditionOperator":{"type":"string","enum":["eq","neq","gt","lt","gte","lte","lk","in","nl","nnl"],"description":"The operator of a single condition that is indicated by the `conditions` field.  The operator is added between the `field` and `value` fields.\n- eq: equal (`field` = `value`)\n- neq: not equal (`field` != `value`) \n- gt: greater than (`field` > `value`) \n- lt: less than (`field` < `value`) \n- gte: greater than or equal (`field` >= `value`)\n- lte: less than or equal (`field` <= `value`)\n- lk: like (`field` like `value`) \n- in: in (`field` in `value`, the values are separated by comma)\n- nl: null (`field` is null)\n- nnl: not null (`field` is not null)\n","title":"InvoiceFiltersConditionOperator"},"InvoiceFiltersConditionRelation":{"type":"string","enum":["and","or"],"description":"The relation among the `conditions` fields.\n","title":"InvoiceFiltersConditionRelation"},"InvoiceFiltersConditionObjectType":{"type":"string","enum":["Invoice","InvoiceItem"],"description":"The target object type of the condition when the `filterType` field is specified as `FilterCondition`.\n","title":"InvoiceFiltersConditionObjectType"},"InvoiceFiltersCondition":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceFiltersCondition"},"description":"Multiple `conditions` fields are combined by the `relation` fields. These `conditions` fields form a custom filter.\nEach `conditions` field is a formula combined by the `field`, `operator`, and `value` fields.\n"},"field":{"type":"string","description":"The field name of a single condition that is indicated by the `conditions` field.\n"},"operator":{"$ref":"#/components/schemas/InvoiceFiltersConditionOperator","description":"The operator of a single condition that is indicated by the `conditions` field.  The operator is added between the `field` and `value` fields.\n- eq: equal (`field` = `value`)\n- neq: not equal (`field` != `value`) \n- gt: greater than (`field` > `value`) \n- lt: less than (`field` < `value`) \n- gte: greater than or equal (`field` >= `value`)\n- lte: less than or equal (`field` <= `value`)\n- lk: like (`field` like `value`) \n- in: in (`field` in `value`, the values are separated by comma)\n- nl: null (`field` is null)\n- nnl: not null (`field` is not null)\n"},"relation":{"$ref":"#/components/schemas/InvoiceFiltersConditionRelation","description":"The relation among the `conditions` fields.\n"},"value":{"type":"string","description":"The value of a single condition that is indicated by the `conditions` field.\n"},"objectType":{"$ref":"#/components/schemas/InvoiceFiltersConditionObjectType","description":"The target object type of the condition when the `filterType` field is specified as `FilterCondition`.\n"}},"description":"Container for condition information about the invoice filters.","title":"InvoiceFiltersCondition"},"InvoiceFiltersResponseType":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/InvoiceFiltersCondition"}},"title":"InvoiceFiltersResponseType"},"CreditMemoFiltersConditionOperator":{"type":"string","enum":["eq","neq","gt","lt","gte","lte","lk","in","nl","nnl"],"description":"The operator of a single condition that is indicated by the `conditions` field.  The operator is added between the `field` and `value` fields.\n- eq: equal (`field` = `value`)\n- neq: not equal (`field` != `value`) \n- gt: greater than (`field` > `value`) \n- lt: less than (`field` < `value`) \n- gte: greater than or equal (`field` >= `value`)\n- lte: less than or equal (`field` <= `value`)\n- lk: like (`field` like `value`) \n- in: in (`field` in `value`, the values are separated by comma)\n- nl: null (`field` is null)\n- nnl: not null (`field` is not null)\n","title":"CreditMemoFiltersConditionOperator"},"CreditMemoFiltersConditionRelation":{"type":"string","enum":["and","or"],"description":"The relation among the `conditions` fields.\n","title":"CreditMemoFiltersConditionRelation"},"CreditMemoFiltersConditionObjectType":{"type":"string","enum":["CreditMemo","CreditMemoItem"],"description":"The target object type of the condition when the `filterType` field is specified as `FilterCondition`.\n","title":"CreditMemoFiltersConditionObjectType"},"CreditMemoFiltersCondition":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoFiltersCondition"},"description":"Multiple `conditions` fields are combined by the `relation` fields. These `conditions` fields form a custom filter.\nEach `conditions` field is a formula combined by the `field`, `operator`, and `value` fields.\n"},"field":{"type":"string","description":"The field name of a single condition that is indicated by the `conditions` field.\n"},"operator":{"$ref":"#/components/schemas/CreditMemoFiltersConditionOperator","description":"The operator of a single condition that is indicated by the `conditions` field.  The operator is added between the `field` and `value` fields.\n- eq: equal (`field` = `value`)\n- neq: not equal (`field` != `value`) \n- gt: greater than (`field` > `value`) \n- lt: less than (`field` < `value`) \n- gte: greater than or equal (`field` >= `value`)\n- lte: less than or equal (`field` <= `value`)\n- lk: like (`field` like `value`) \n- in: in (`field` in `value`, the values are separated by comma)\n- nl: null (`field` is null)\n- nnl: not null (`field` is not null)\n"},"relation":{"$ref":"#/components/schemas/CreditMemoFiltersConditionRelation","description":"The relation among the `conditions` fields.\n"},"value":{"type":"string","description":"The value of a single condition that is indicated by the `conditions` field.\n"},"objectType":{"$ref":"#/components/schemas/CreditMemoFiltersConditionObjectType","description":"The target object type of the condition when the `filterType` field is specified as `FilterCondition`.\n"}},"description":"Container for condition information about the credit memo filters.","title":"CreditMemoFiltersCondition"},"CreditMemoFiltersResponseType":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/CreditMemoFiltersCondition"}},"title":"CreditMemoFiltersResponseType"},"DebitMemoFiltersConditionOperator":{"type":"string","enum":["eq","neq","gt","lt","gte","lte","lk","in","nl","nnl"],"description":"The operator of a single condition that is indicated by the `conditions` field.  The operator is added between the `field` and `value` fields.\n- eq: equal (`field` = `value`)\n- neq: not equal (`field` != `value`) \n- gt: greater than (`field` > `value`) \n- lt: less than (`field` < `value`) \n- gte: greater than or equal (`field` >= `value`)\n- lte: less than or equal (`field` <= `value`)\n- lk: like (`field` like `value`) \n- in: in (`field` in `value`, the values are separated by comma)\n- nl: null (`field` is null)\n- nnl: not null (`field` is not null)\n","title":"DebitMemoFiltersConditionOperator"},"DebitMemoFiltersConditionRelation":{"type":"string","enum":["and","or"],"description":"The relation among the `conditions` fields.\n","title":"DebitMemoFiltersConditionRelation"},"DebitMemoFiltersConditionObjectType":{"type":"string","enum":["DebitMemo","DebitMemoItem"],"description":"The target object type of the condition when the `filterType` field is specified as `FilterCondition`.\n","title":"DebitMemoFiltersConditionObjectType"},"DebitMemoFiltersCondition":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoFiltersCondition"},"description":"Multiple `conditions` fields are combined by the `relation` fields. These `conditions` fields form a custom filter.\nEach `conditions` field is a formula combined by the `field`, `operator`, and `value` fields.\n"},"field":{"type":"string","description":"The field name of a single condition that is indicated by the `conditions` field.\n"},"operator":{"$ref":"#/components/schemas/DebitMemoFiltersConditionOperator","description":"The operator of a single condition that is indicated by the `conditions` field.  The operator is added between the `field` and `value` fields.\n- eq: equal (`field` = `value`)\n- neq: not equal (`field` != `value`) \n- gt: greater than (`field` > `value`) \n- lt: less than (`field` < `value`) \n- gte: greater than or equal (`field` >= `value`)\n- lte: less than or equal (`field` <= `value`)\n- lk: like (`field` like `value`) \n- in: in (`field` in `value`, the values are separated by comma)\n- nl: null (`field` is null)\n- nnl: not null (`field` is not null)\n"},"relation":{"$ref":"#/components/schemas/DebitMemoFiltersConditionRelation","description":"The relation among the `conditions` fields.\n"},"value":{"type":"string","description":"The value of a single condition that is indicated by the `conditions` field.\n"},"objectType":{"$ref":"#/components/schemas/DebitMemoFiltersConditionObjectType","description":"The target object type of the condition when the `filterType` field is specified as `FilterCondition`.\n"}},"description":"Container for condition information about the debit memo filters.","title":"DebitMemoFiltersCondition"},"DebitMemoFiltersResponseType":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/DebitMemoFiltersCondition"}},"title":"DebitMemoFiltersResponseType"},"GetEInvoicingBusinessRegionResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the e-invoicing business region.\n"},"country":{"type":"string","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"},"businessName":{"type":"string","maxLength":255,"description":"The full official name that the Seller is registered with the relevant legal authority.\n"},"businessNumber":{"type":"string","description":"The specify the unique identifier number of the legal entity or person that you do business with.\n\nFor example, you must use a GSTIN for India and Tax Identification Number (TIN) for Saudi Arabia.\n"},"businessNumberSchemaId":{"type":"string","description":"The identification scheme identifier that an official registrar issues to identify the Seller as a legal entity or person.\n"},"tradeName":{"type":["string","null"],"maxLength":100,"description":"The name that the Seller is known as, other than the legal business name.\n"},"endpointId":{"type":"string","description":"The Seller's electronic address, to which the application-level response to the e-invoice file might be delivered.\n"},"endpointSchemeId":{"type":"string","description":"The identification scheme identifier of the Seller’s electronic address.\n"},"taxRegisterNumber":{"type":["string","null"],"description":"The Seller's VAT identifier (also known as Seller VAT identification number) or the local identification (defined by the Seller’s address) of the Seller for tax purposes, or a reference that enables the Seller to state the registered tax status.\n"},"state":{"type":["string","null"],"description":"The name of the state or province where the business is located.\n"},"city":{"type":"string","description":"The the name of the city where the business is located.\n"},"postalCode":{"type":"string","description":"The short code that can identify the business address.\n"},"addressLine1":{"type":["string","null"],"description":"The first line of the Seller’s address, which is often a street address or business name.\n"},"addressLine2":{"type":["string","null"],"description":"The second line of the Seller’s address, which is often the name of a building.\n"},"contactName":{"type":["string","null"],"maxLength":255,"description":"The name of the Seller contact to receive e-invoicing data.\n"},"phoneNumber":{"type":["string","null"],"description":"The business phone number of the Seller contact to receive e-invoicing data.\n"},"email":{"type":["string","null"],"description":"The email address of the Seller contact to receive e-invoicing data.\n"},"serviceProviderId":{"type":"string","description":"The unique ID of the e-invoicing service provider that is associated to the business region.\n"},"businessRegionNumber":{"type":"string","description":"The unique number of the e-invoicing business region.\n"},"digitalSignatureEnable":{"type":"boolean","default":false,"description":"Whether the e-invoicing service provider signs PDF files for billing documents.\n"},"digitalSignatureBoxEnable":{"type":"boolean","default":false,"description":"Whether the digital signature box is displayed on PDF files for billing documents.\n"},"digitalSignatureBoxPosX":{"type":"number","format":"double","minimum":0,"description":"The X-coordinate to determine where the digital signature box is displayed on PDF files for billing documents.\n"},"digitalSignatureBoxPosY":{"type":"number","format":"double","minimum":0,"description":"The Y-coordinate to determine where the digital signature box is displayed on PDF files for billing documents. \n"},"responseMapping":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for e-invoicing response field mappings that map values from the e-invoicing service provider’s response data to fields on the EInvoiceData object in Zuora. Each response field mapping consists of a field name and a field path.\n\n**Note**: This field is applicable only to the Sovos or Avalara service provider.\n\nFor more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview/B_Configure_the_E-Invoicing_feature/Configure_e-invoicing_response_field_mappings\" target=\"_blank\">Configure e-invoicing response field mappings</a>.\n"},"processType":{"$ref":"#/components/schemas/GetEInvoicingBusinessRegionResponseProcessType","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"},"invoiceEnabled":{"type":"boolean","default":false,"description":"It will control whether the invoice should be supported by the process type or not. This field is available when the service provider is Sovos or Avalara.\n"},"creditMemoEnabled":{"type":"boolean","default":false,"description":"It will control whether the credit memo should be supported by the process type or not. This field is available when the service provider is Sovos or Avalara.\n"},"debitMemoEnabled":{"type":"boolean","default":false,"description":"It will control whether the debit memo should be supported by the process type or not. This field is available when the service provider is Sovos or Avalara.\n"},"invoiceFilters":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceFiltersResponseType"},"description":"The documents belonging to the e-invoicing business region. \n"},"creditMemoFilters":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoFiltersResponseType"},"description":"The documents belonging to the e-invoicing business region. \n"},"debitMemoFilters":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoFiltersResponseType"},"description":"The documents belonging to the e-invoicing business region. \n"},"fileFormat":{"type":"array","items":{"type":"string"},"description":"The file format for each business category. An example response is \"[ \"application/xml\", \"application/vnd.oasis.ubl+xml\" ]\"  \n"},"success":{"type":"boolean","description":"Indicats if the request succeeds.\n"}},"title":"GetEInvoicingBusinessRegionResponse"},"ListEInvoicingBusinessRegionsResponse":{"type":"object","properties":{"regions":{"type":"array","items":{"$ref":"#/components/schemas/GetEInvoicingBusinessRegionResponse"},"description":"Container for e-invoicing business regions.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"ListEInvoicingBusinessRegionsResponse"},"CreateEInvoicingBusinessRegionRequestProcessType":{"type":"string","enum":["Clearance","ClearanceWithCancellation","PEPPOLNetwork"],"description":"The process type of the e-invoicing business region.\n- If the service provider is Sovos, specify the process type as `Clearance` or `ClearanceWithCancellation`.\n- If the service provider is Avalara, specify the process type as `Clearance` or `PEPPOLNetwork`.\n- If the service provider is PEPPOL, leave this field empty. \n","title":"CreateEInvoicingBusinessRegionRequestProcessType"},"InvoiceFiltersRequestType":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/InvoiceFiltersCondition"}},"title":"InvoiceFiltersRequestType"},"CreditMemoFiltersRequestType":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/CreditMemoFiltersCondition"}},"title":"CreditMemoFiltersRequestType"},"DebitMemoFiltersRequestType":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/DebitMemoFiltersCondition"}},"title":"DebitMemoFiltersRequestType"},"CreateEInvoicingBusinessRegionRequest":{"type":"object","properties":{"addressLine1":{"type":"string","description":"The first line of the Seller's address, which is often a street address or business name.\n"},"addressLine2":{"type":"string","description":"The second line of the Seller's address, which is often the name of a building.\n"},"businessName":{"type":"string","maxLength":255,"description":"The full official name that the Seller is registered with the relevant legal authority.\n"},"businessNumber":{"type":"string","description":"The specify the unique identifier number of the legal entity or person that you do business with.\n\nFor example, you must use a GSTIN for India and Tax Identification Number (TIN) for Saudi Arabia.\n"},"businessNumberSchemaId":{"type":"string","description":"The identification scheme identifier that an official registrar issues to identify the Seller as a legal entity or person.\n"},"city":{"type":"string","description":"The the name of the city where the business is located.\n"},"contactName":{"type":"string","maxLength":255,"description":"The name of the Seller contact to receive e-invoicing data.\n"},"country":{"type":"string","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"},"digitalSignatureEnable":{"type":"boolean","default":false,"description":"Whether the e-invoicing service provider signs PDF files for billing documents.\n"},"digitalSignatureBoxEnable":{"type":"boolean","default":false,"description":"Whether the digital signature box is displayed on PDF files for billing documents.\n"},"digitalSignatureBoxPosX":{"type":"number","format":"double","minimum":0,"description":"The X-coordinate to determine where the digital signature box is displayed on PDF files for billing documents.\n"},"digitalSignatureBoxPosY":{"type":"number","format":"double","minimum":0,"description":"The Y-coordinate to determine where the digital signature box is displayed on PDF files for billing documents. \n"},"email":{"type":"string","description":"The email address of the Seller contact to receive e-invoicing data.\n"},"endpointId":{"type":"string","description":"The Seller's electronic address, to which the application-level response to the e-invoice file might be delivered.\n"},"endpointSchemeId":{"type":"string","description":"The identification scheme identifier of the Seller's electronic address.\n"},"phoneNumber":{"type":"string","description":"The business phone number of the Seller contact to receive e-invoicing data.\n"},"postalCode":{"type":"string","description":"The short code that can identify the business address.\n"},"responseMapping":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for e-invoicing response field mappings that map values from the e-invoicing service provider's response data to fields on the EInvoiceData object in Zuora. Each response field mapping consists of a field name and a field path.\n\n**Note**: This field is applicable only to the Sovos or Avalara service provider.\n\nFor more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview/B_Configure_the_E-Invoicing_feature/Configure_e-invoicing_response_field_mappings\" target=\"_blank\">Configure e-invoicing response field mappings</a>.\n"},"processType":{"$ref":"#/components/schemas/CreateEInvoicingBusinessRegionRequestProcessType","description":"The process type of the e-invoicing business region.\n- If the service provider is Sovos, specify the process type as `Clearance` or `ClearanceWithCancellation`.\n- If the service provider is Avalara, specify the process type as `Clearance` or `PEPPOLNetwork`.\n- If the service provider is PEPPOL, leave this field empty. \n"},"invoiceEnabled":{"type":"boolean","default":false,"description":"This field controls whether the invoice should be supported by the process type or not. For some countries, this field is required to be set to `true`. For more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview/B_Configure_the_E-Invoicing_feature/Manage_country-specific_configurations\" target=\"_blank\">Manage country-specific configurations</a>.\n"},"creditMemoEnabled":{"type":"boolean","default":false,"description":"This field controls whether the credit memo should be supported by the process type or not. For some countries, this field is required to be set to `true`. For more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview/B_Configure_the_E-Invoicing_feature/Manage_country-specific_configurations\" target=\"_blank\">Manage country-specific configurations</a>.\n"},"debitMemoEnabled":{"type":"boolean","default":false,"description":"This field controls whether the debit memo should be supported by the process type or not. For some countries, this field is required to be set to `true`. For more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview/B_Configure_the_E-Invoicing_feature/Manage_country-specific_configurations\" target=\"_blank\">Manage country-specific configurations</a>.\n"},"invoiceFilters":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceFiltersRequestType"},"description":"The documents belonging to the e-invoicing business region. \n"},"creditMemoFilters":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoFiltersRequestType"},"description":"The documents belonging to the e-invoicing business region. \n"},"debitMemoFilters":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoFiltersRequestType"},"description":"The documents belonging to the e-invoicing business region. \n"},"serviceProviderId":{"type":"string","description":"The unique ID of the e-invoicing service provider that is associated to the business region.\n"},"state":{"type":"string","description":"The name of the state or province where the business is located.\n"},"taxRegisterNumber":{"type":"string","description":"The Seller's VAT identifier (also known as Seller VAT identification number) or the local identification (defined by the Seller's address) of the Seller for tax purposes, or a reference that enables the Seller to state the registered tax status.\n"},"tradeName":{"type":"string","maxLength":100,"description":"The name that the Seller is known as, other than the legal business name.\n"},"fileFormat":{"type":"array","items":{"type":"string"},"description":"\nYou can define the file format for each business category as shown in the following example:   \n  \nfileFormat\" : {\n  \n  \"B2B\" : [ \"XML\" ],\n  \n  \"B2C\" : [ ],\n  \n  \"B2G\" : [ \"XML\" ]\n\n}\n\n **Note:** This field is optional; however, if you use Avalara integration, it becomes a mandatory field.\n"}},"required":["businessName","country"],"title":"CreateEInvoicingBusinessRegionRequest"},"UpdateEInvoicingBusinessRegionRequest":{"type":"object","properties":{"addressLine1":{"type":"string","description":"The first line of the Seller's address, which is often a street address or business name.\n"},"addressLine2":{"type":"string","description":"The second line of the Seller's address, which is often the name of a building.\n"},"businessName":{"type":"string","maxLength":255,"description":"The full official name that the Seller is registered with the relevant legal authority.\n"},"businessNumber":{"type":"string","description":"The specify the unique identifier number of the legal entity or person that you do business with.\n\nFor example, you must use a GSTIN for India and Tax Identification Number (TIN) for Saudi Arabia.\n"},"businessNumberSchemaId":{"type":"string","description":"The identification scheme identifier that an official registrar issues to identify the Seller as a legal entity or person.\n"},"city":{"type":"string","description":"The the name of the city where the business is located.\n"},"contactName":{"type":"string","maxLength":255,"description":"The name of the Seller contact to receive e-invoicing data.\n"},"country":{"type":"string","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"},"digitalSignatureEnable":{"type":"boolean","default":false,"description":"Whether the e-invoicing service provider signs PDF files for billing documents.\n"},"digitalSignatureBoxEnable":{"type":"boolean","default":false,"description":"Whether the digital signature box is displayed on PDF files for billing documents.\n"},"digitalSignatureBoxPosX":{"type":"number","format":"double","minimum":0,"description":"The X-coordinate to determine where the digital signature box is displayed on PDF files for billing documents.\n"},"digitalSignatureBoxPosY":{"type":"number","format":"double","minimum":0,"description":"The Y-coordinate to determine where the digital signature box is displayed on PDF files for billing documents. \n"},"email":{"type":"string","description":"The email address of the Seller contact to receive e-invoicing data.\n"},"endpointId":{"type":"string","description":"The Seller's electronic address, to which the application-level response to the e-invoice file might be delivered.\n"},"endpointSchemeId":{"type":"string","description":"The identification scheme identifier of the Seller's electronic address.\n"},"phoneNumber":{"type":"string","description":"The business phone number of the Seller contact to receive e-invoicing data.\n"},"postalCode":{"type":"string","description":"The short code that can identify the business address.\n"},"responseMapping":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for e-invoicing response field mappings that map values from Sovos response data to fields on the EInvoiceData object in Zuora. Each response field mapping consists of a field name and a field path.\n\nNote that this field is applicable only to the Sovos service provider.\n\nFor more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview/B_Configure_the_E-Invoicing_feature/Configure_e-invoicing_response_field_mappings\" target=\"_blank\">Configure e-invoicing response field mappings</a>.\n"},"invoiceEnabled":{"type":"boolean","default":false,"description":"This field controls whether the invoice should be supported by the process type or not. For some countries, this field is required to be set to `true`. For more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview/B_Configure_the_E-Invoicing_feature/Manage_country-specific_configurations\" target=\"_blank\">Manage country-specific configurations</a>.\n"},"creditMemoEnabled":{"type":"boolean","default":false,"description":"This field controls whether the credit memo should be supported by the process type or not. For some countries, this field is required to be set to `true`. For more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview/B_Configure_the_E-Invoicing_feature/Manage_country-specific_configurations\" target=\"_blank\">Manage country-specific configurations</a>.\n"},"debitMemoEnabled":{"type":"boolean","default":false,"description":"This field controls whether the debit memo should be supported by the process type or not. For some countries, this field is required to be set to `true`. For more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview/B_Configure_the_E-Invoicing_feature/Manage_country-specific_configurations\" target=\"_blank\">Manage country-specific configurations</a>.\n"},"invoiceFilters":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceFiltersRequestType"},"description":"The documents belonging to the e-invoicing business region. \n"},"creditMemoFilters":{"type":"array","items":{"$ref":"#/components/schemas/CreditMemoFiltersRequestType"},"description":"The documents belonging to the e-invoicing business region. \n"},"debitMemoFilters":{"type":"array","items":{"$ref":"#/components/schemas/DebitMemoFiltersRequestType"},"description":"The documents belonging to the e-invoicing business region. \n"},"serviceProviderId":{"type":"string","description":"The unique ID of the e-invoicing service provider that is associated to the business region.\n"},"state":{"type":"string","description":"The name of the state or province where the business is located.\n"},"taxRegisterNumber":{"type":"string","description":"The Seller's VAT identifier (also known as Seller VAT identification number) or the local identification (defined by the Seller’s address) of the Seller for tax purposes, or a reference that enables the Seller to state the registered tax status.\n"},"tradeName":{"type":"string","maxLength":100,"description":"The name that the Seller is known as, other than the legal business name.\n"},"fileFormat":{"type":"array","items":{"type":"string"},"description":"\nYou can define the file format for each business category as shwown in the following example:   \n  \nfileFormat\" : {\n  \n  \"B2B\" : [ \"XML\" ],\n  \n  \"B2C\" : [ ],\n  \n  \"B2G\" : [ \"XML\" ]\n\n}\n\n **Note:** This field is optional; however, if you use Avalara integration, it becomes a mandatory field.\n"}},"title":"UpdateEInvoicingBusinessRegionRequest"},"V1EInvoiceMandatesGetParametersProcessType":{"type":"string","enum":["Clearance","ClearanceWithCancellation","PEPPOLNetwork","Unknown"],"title":"V1EInvoiceMandatesGetParametersProcessType"},"GetEinvoiceFetchMandatesCategory":{"type":"string","enum":["B2B","B2C","B2G"],"description":"The business categories that Zuora supports for customer accounts. Supported values are B2B, B2C, or B2G.\n","title":"GetEinvoiceFetchMandatesCategory"},"GetEinvoiceFetchMandatesProcessType":{"type":"string","enum":["Clearance","ClearanceWithCancellation","PEPPOLNetwork","Unknown"],"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","title":"GetEinvoiceFetchMandatesProcessType"},"GETEinvoiceFetchMandates":{"type":"object","properties":{"countryCode":{"type":"string","description":"2-digit country code. \n"},"fileFormats":{"type":"array","items":{"type":"string"},"description":"Following 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"},"category":{"$ref":"#/components/schemas/GetEinvoiceFetchMandatesCategory","description":"The business categories that Zuora supports for customer accounts. Supported values are B2B, B2C, or B2G.\n"},"processType":{"$ref":"#/components/schemas/GetEinvoiceFetchMandatesProcessType","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"},"defaultFileFormats":{"type":"string","description":"The default file format.\n"}},"title":"GETEinvoiceFetchMandates"},"GETEinvoiceFetchMandatesErrors":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `false` if the request was not processed successfully.\n"},"processId":{"type":"string","description":"Process Id of the validation error.\n"},"requestId":{"type":"string","description":"Request Id for the validation error.\n"}},"title":"GETEinvoiceFetchMandatesErrors"},"EinvoiceFetchMandates":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETEinvoiceFetchMandates"},"description":"Container for fetching mandates.\n"},"error":{"type":"array","items":{"$ref":"#/components/schemas/GETEinvoiceFetchMandatesErrors"},"description":"Container for fetching validation errors.\n"}},"title":"EinvoiceFetchMandates"},"GetEinvoiceInvoiceFetchMandateCategory":{"type":"string","enum":["B2B","B2C","B2G"],"description":"The business categories that Zuora supports for customer accounts. Supported values are B2B, B2C, or B2G.\n","title":"GetEinvoiceInvoiceFetchMandateCategory"},"GetEinvoiceInvoiceFetchMandateProcessType":{"type":"string","enum":["Clearance","ClearanceWithCancellation","PEPPOLNetwork","Unknown"],"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","title":"GetEinvoiceInvoiceFetchMandateProcessType"},"GETEinvoiceInvoiceFetchMandate":{"type":"object","properties":{"countryCode":{"type":"string","description":"2-digit country code. \n"},"fileFormats":{"type":"array","items":{"type":"string"},"description":"Following 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"},"category":{"$ref":"#/components/schemas/GetEinvoiceInvoiceFetchMandateCategory","description":"The business categories that Zuora supports for customer accounts. Supported values are B2B, B2C, or B2G.\n"},"processType":{"$ref":"#/components/schemas/GetEinvoiceInvoiceFetchMandateProcessType","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"},"defaultFileFormats":{"type":"string","description":"The default file format.\n"}},"title":"GETEinvoiceInvoiceFetchMandate"},"GETEinvoiceInvoiceFetchMandatesError":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `false` if the request was not processed successfully.\n"},"processId":{"type":"string","description":"Process Id of the validation error.\n"},"requestId":{"type":"string","description":"Request Id for the validation error.\n"}},"title":"GETEinvoiceInvoiceFetchMandatesError"},"EinvoiceInvoiceFetchMandate":{"type":"object","properties":{"success":{"type":"array","items":{"$ref":"#/components/schemas/GETEinvoiceInvoiceFetchMandate"},"description":"Container for fetching mandates.\n"},"error":{"type":"array","items":{"$ref":"#/components/schemas/GETEinvoiceInvoiceFetchMandatesError"},"description":"Container for fetching validation errors.\n"}},"title":"EinvoiceInvoiceFetchMandate"},"GetEinvoiceCreditMemosMandateCategory":{"type":"string","enum":["B2B","B2C","B2G"],"description":"Business categories that Zuora supports for customer accounts. Supported values are B2B, B2C, or B2G.\n","title":"GetEinvoiceCreditMemosMandateCategory"},"GetEinvoiceCreditMemosMandateProcessType":{"type":"string","enum":["Clearance","ClearanceWithCancellation","PEPPOLNetwork","Unknown"],"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","title":"GetEinvoiceCreditMemosMandateProcessType"},"GETEinvoiceCreditMemosMandate":{"type":"object","properties":{"countryCode":{"type":"string","description":"2-digit country code. \n"},"fileFormats":{"type":"array","items":{"type":"string"},"description":"Following 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"},"category":{"$ref":"#/components/schemas/GetEinvoiceCreditMemosMandateCategory","description":"Business categories that Zuora supports for customer accounts. Supported values are B2B, B2C, or B2G.\n"},"processType":{"$ref":"#/components/schemas/GetEinvoiceCreditMemosMandateProcessType","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"},"defaultFileFormats":{"type":"string","description":"The default file format.\n"}},"title":"GETEinvoiceCreditMemosMandate"},"GETEinvoiceCreditMemosMandatesErrors":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `false` if the request was not processed successfully.\n"},"processId":{"type":"string","description":"Process Id of the validation error.\n"},"requestId":{"type":"string","description":"Request Id for the validation error.\n"}},"title":"GETEinvoiceCreditMemosMandatesErrors"},"CreditMemosEinvoiceMandate":{"type":"object","properties":{"success":{"type":"array","items":{"$ref":"#/components/schemas/GETEinvoiceCreditMemosMandate"},"description":"Container for fetching mandates.\n"},"error":{"type":"array","items":{"$ref":"#/components/schemas/GETEinvoiceCreditMemosMandatesErrors"},"description":"Container for fetching validation errors.\n"}},"title":"CreditMemosEinvoiceMandate"},"GetEinvoiceDebitMemosMandatesCategory":{"type":"string","enum":["B2B","B2C","B2G"],"description":"Business categories that Zuora supports for customer accounts. Supported values are B2B, B2C, or B2G.\n","title":"GetEinvoiceDebitMemosMandatesCategory"},"GetEinvoiceDebitMemosMandatesProcessType":{"type":"string","enum":["Clearance","ClearanceWithCancellation","PEPPOLNetwork","Unknown"],"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","title":"GetEinvoiceDebitMemosMandatesProcessType"},"GETEinvoiceDebitMemosMandates":{"type":"object","properties":{"countryCode":{"type":"string","description":"2-digit country code. \n"},"fileFormats":{"type":"array","items":{"type":"string"},"description":"Following 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"},"category":{"$ref":"#/components/schemas/GetEinvoiceDebitMemosMandatesCategory","description":"Business categories that Zuora supports for customer accounts. Supported values are B2B, B2C, or B2G.\n"},"processType":{"$ref":"#/components/schemas/GetEinvoiceDebitMemosMandatesProcessType","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"},"defaultFileFormats":{"type":"string","description":"The default file format.\n"}},"title":"GETEinvoiceDebitMemosMandates"},"GETEinvoiceDebitMemosMandatesErrors":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `false` if the request was not processed successfully.\n"},"processId":{"type":"string","description":"Process Id of the validation error.\n"},"requestId":{"type":"string","description":"Request Id for the validation error.\n"}},"title":"GETEinvoiceDebitMemosMandatesErrors"},"DebitMemosEinvoiceMandate":{"type":"object","properties":{"success":{"type":"array","items":{"$ref":"#/components/schemas/GETEinvoiceDebitMemosMandates"},"description":"Container for fetching mandates.\n"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/GETEinvoiceDebitMemosMandatesErrors"},"description":"Container for fetching validation errors.\n"}},"title":"DebitMemosEinvoiceMandate"},"V1InvoicesInvoiceKeyEInvoiceDownloadGetParametersFileFormat":{"type":"string","enum":["XML","PDF","ZIP","OASIS_Universal_Business_Language_XML"],"title":"V1InvoicesInvoiceKeyEInvoiceDownloadGetParametersFileFormat"},"GETEinvoiceDownload":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `false` if the request was not processed successfully.\n"},"processId":{"type":"string","description":"Process Id of the validation error.\n"},"requestId":{"type":"string","description":"Request Id for the validation error.\n"}},"title":"GETEinvoiceDownload"},"EinvoiceDownload":{"type":"object","properties":{"success":{"description":"Stream the file contents.\n"},"error":{"type":"array","items":{"$ref":"#/components/schemas/GETEinvoiceDownload"},"description":"Container for downloading e-invoice.\n"}},"title":"EinvoiceDownload"},"V1CreditMemosCreditMemoKeyEInvoiceDownloadGetParametersFileFormat":{"type":"string","enum":["XML","PDF","ZIP","OASIS_Universal_Business_Language_XML"],"title":"V1CreditMemosCreditMemoKeyEInvoiceDownloadGetParametersFileFormat"},"GETCreditMemosEinvoiceDownload":{"type":"object","properties":{"processId":{"type":"string","description":"Process Id of the validation error.\n"},"requestId":{"type":"string","description":"Request Id for the validation error.\n"}},"title":"GETCreditMemosEinvoiceDownload"},"CreditMemosEinvoiceDownload":{"type":"object","properties":{"success":{"description":"Stream the file contents.\n"},"error":{"type":"array","items":{"$ref":"#/components/schemas/GETCreditMemosEinvoiceDownload"},"description":"Container for downloading Credit Memo.\n"}},"title":"CreditMemosEinvoiceDownload"},"V1DebitMemosDebitMemoKeyEInvoiceDownloadGetParametersFileFormat":{"type":"string","enum":["XML","PDF","ZIP","OASIS_Universal_Business_Language_XML"],"title":"V1DebitMemosDebitMemoKeyEInvoiceDownloadGetParametersFileFormat"},"GETDebitMemosEinvoiceDownload":{"type":"object","properties":{"processId":{"type":"string","description":"Process Id of the validation error.\n"},"requestId":{"type":"string","description":"Request Id for the validation error.\n"}},"title":"GETDebitMemosEinvoiceDownload"},"DebitMemosEinvoiceDownload":{"type":"object","properties":{"success":{"description":"Stream the file contents.\n"},"error":{"type":"array","items":{"$ref":"#/components/schemas/GETDebitMemosEinvoiceDownload"},"description":"Container for downloading Debit Memo.\n"}},"title":"DebitMemosEinvoiceDownload"},"PutCancelEInvoiceRequestReason":{"type":"string","enum":["01","02","03","04"],"description":"The reason code for cancelation.\n","title":"PutCancelEInvoiceRequestReason"},"PutCancelEInvoiceRequest":{"type":"object","properties":{"reason":{"$ref":"#/components/schemas/PutCancelEInvoiceRequestReason","description":"The reason code for cancelation.\n"},"documentReferenceID":{"type":"string","description":"The ID or number of the billing document that replaces the e-invoice being canceled. You can replace the canceled e-invoice with a new invoice or debit memo.\n\n**Note:** The documentReferenceID is applicable only for the reason 01 when you cancel E-Invoice for Mexico.\n"}},"title":"PutCancelEInvoiceRequest"},"V1EinvoiceTemplatesGetParametersDocumentType":{"type":"string","enum":["Invoice","CreditMemo","DebitMemo"],"title":"V1EinvoiceTemplatesGetParametersDocumentType"},"GetEInvoiceFileTemplateResponseDocumentType":{"type":"string","enum":["Invoice","CreditMemo","DebitMemo"],"description":"The type of billing document for which the e-invoice file template is intended.\n","title":"GetEInvoiceFileTemplateResponseDocumentType"},"GetEInvoiceFileTemplateResponseProvider":{"type":"string","enum":["Sovos"],"description":"The name of the e-invoicing service provider that assists in generating e-invoice files for billing documents. \n","title":"GetEInvoiceFileTemplateResponseProvider"},"GetEInvoiceFileTemplateResponse":{"type":"object","properties":{"content":{"type":"string","description":"The content of the e-invoice file template, which must be encoded in Base64 format.\n"},"country":{"type":"boolean","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"},"documentType":{"$ref":"#/components/schemas/GetEInvoiceFileTemplateResponseDocumentType","description":"The type of billing document for which the e-invoice file template is intended.\n"},"id":{"type":"string","description":"The unique ID of the e-invoice file template.\n"},"name":{"type":"string","maxLength":255,"description":"The name of the e-invoice file template.\n"},"provider":{"$ref":"#/components/schemas/GetEInvoiceFileTemplateResponseProvider","description":"The name of the e-invoicing service provider that assists in generating e-invoice files for billing documents. \n"},"templateNumber":{"type":"string","description":"The unique number of the e-invoice file template.\n"}},"title":"GetEInvoiceFileTemplateResponse"},"ListEInvoiceFileTemplatesResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"templates":{"type":"array","items":{"$ref":"#/components/schemas/GetEInvoiceFileTemplateResponse"},"description":"Container for e-invoice file emplates.\n"}},"title":"ListEInvoiceFileTemplatesResponse"},"CreateEInvoiceFileTemplateRequestDocumentType":{"type":"string","enum":["Invoice","CreditMemo","DebitMemo"],"description":"The type of billing documents, which the e-invoice file template is intended for.\n","title":"CreateEInvoiceFileTemplateRequestDocumentType"},"CreateEInvoiceFileTemplateRequestProvider":{"type":"string","enum":["Sovos"],"description":"The name of an e-invoicing service provider that assists in generating e-invoice files.\n","title":"CreateEInvoiceFileTemplateRequestProvider"},"CreateEInvoiceFileTemplateRequest":{"type":"object","properties":{"content":{"type":"string","description":"The content of the e-invoice file template, which must be encoded in Base64 format.\n"},"country":{"type":"string","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"},"documentType":{"$ref":"#/components/schemas/CreateEInvoiceFileTemplateRequestDocumentType","description":"The type of billing documents, which the e-invoice file template is intended for.\n"},"name":{"type":"string","maxLength":255,"description":"The name of the e-invoice file template.\n"},"provider":{"$ref":"#/components/schemas/CreateEInvoiceFileTemplateRequestProvider","description":"The name of an e-invoicing service provider that assists in generating e-invoice files.\n"}},"required":["content","country","documentType","name","provider"],"title":"CreateEInvoiceFileTemplateRequest"},"UpdateEInvoiceFileTemplateRequestDocumentType":{"type":"string","enum":["Invoice","CreditMemo","DebitMemo"],"description":"The type of billing documents, which the e-invoice file template is intended for.\n","title":"UpdateEInvoiceFileTemplateRequestDocumentType"},"UpdateEInvoiceFileTemplateRequestProvider":{"type":"string","enum":["Sovos"],"description":"The name of an e-invoicing service provider that assists in generating e-invoice files.\n","title":"UpdateEInvoiceFileTemplateRequestProvider"},"UpdateEInvoiceFileTemplateRequest":{"type":"object","properties":{"content":{"type":"string","description":"The content of the e-invoice file template, which must be encoded in Base64 format.\n"},"country":{"type":"string","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"},"documentType":{"$ref":"#/components/schemas/UpdateEInvoiceFileTemplateRequestDocumentType","description":"The type of billing documents, which the e-invoice file template is intended for.\n"},"name":{"type":"string","maxLength":255,"description":"The name of the e-invoice file template.\n"},"provider":{"$ref":"#/components/schemas/UpdateEInvoiceFileTemplateRequestProvider","description":"The name of an e-invoicing service provider that assists in generating e-invoice files.\n"}},"title":"UpdateEInvoiceFileTemplateRequest"},"UpdateInvoiceInvokeSyncStatusRequestClientRequestError":{"oneOf":[{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"},{"$ref":"#/components/schemas/CommonResponse"}],"title":"UpdateInvoiceInvokeSyncStatusRequestClientRequestError"},"UpdateDebitMemoInvokeSyncStatusRequestClientRequestError":{"oneOf":[{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"},{"$ref":"#/components/schemas/CommonResponse"}],"title":"UpdateDebitMemoInvokeSyncStatusRequestClientRequestError"},"UpdateCreditMemoInvokeSyncStatusRequestClientRequestError":{"oneOf":[{"$ref":"#/components/schemas/ProxyUnauthorizedResponse"},{"$ref":"#/components/schemas/CommonResponse"}],"title":"UpdateCreditMemoInvokeSyncStatusRequestClientRequestError"},"POSTScheduleItemType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the invoice to be generated during the processing of the invoice schedule item. \n\nYou can only specify either the `amount` field or `percentage` field in one request. \n  - If you choose to specify the `amount` field in the request, `null` is returned as the value of the `percentage` field in the corresponding response. \n  - If you choose to specify the `percentage` field in the request, the value of the `amount` field returned in the corresponding response is calculated based on the percentage of the total amount.            \n"},"name":{"type":"string","maxLength":100,"description":"The name of the invoice schedule item.\n"},"percentage":{"type":"number","format":"double","maximum":100,"description":"The percentage of the total amount to be billed during the processing of the invoice schedule item. \n\nYou can only specify either the `amount` field or `percentage` field in one request. \n  - If you choose to specify the `amount` field in the request, `null` is returned as the value of the `percentage` field in the corresponding response. \n  - If you choose to specify the `percentage` field in the request, the value of the `amount` field returned in the corresponding response is calculated based on the percentage of the total amount.\n"},"runDate":{"type":"string","format":"date","description":"The date in the tenant’s time zone when the invoice schedule item is planned to be processed to generate an invoice.\n\n\nWhen specifying run dates for invoice schedule items, consider that:\n- An invoice schedule item with a blank run date will not be executed.\n- You can only update the run date for an invoice schedule item in Pending status.\n- If the run date of an invoice schedule item is left empty, the dates of all subsequent invoice schedule items must also be blank.\n- You must specify run dates in chronological order for invoice schedule items.                  \n"},"targetDateForAdditionalSubscriptions":{"type":"string","format":"date","description":"The date in the tenant's time zone used by the invoice schedule to determine which fixed-period regular charges to be billed together with the invoice schedule item. \n\nThe regular charges must come from the subscriptions specified in the `additionalSubscriptionsToBill` field.\n"}},"description":"Container for custom fields of an Invoice Schedule Item object.\n","title":"POSTScheduleItemType"},"InvoiceScheduleSpecificSubscriptions":{"type":"object","properties":{"chargeNumbers":{"type":"string","description":"A list of charges in the subscription that are chosen to be included in the invoice schedule.\n"},"orderKey":{"type":"string","description":"The unique ID or number of the order associated with the invoice schedule.\n"},"subscriptionKey":{"type":"string","description":"The unique number of the subscription contained in the order associated with the invoice schedule.\n"}},"title":"InvoiceScheduleSpecificSubscriptions"},"POSTCreateInvoiceScheduleRequest":{"type":"object","properties":{"accountKey":{"type":"string","description":"The ID or number of the account associated with the invoice schedule.\n"},"additionalSubscriptionsToBill":{"type":"array","items":{"type":"string"},"description":"A list of the numbers of the subscriptions that need to be billed together with the invoice schedule. \n\nOne invoice schedule can have at most 600 additional subscriptions.\n"},"invoiceSeparately":{"type":"boolean","description":"Whether the invoice items created from the invoice schedule appears on a separate invoice when Zuora generates invoices.\n"},"notes":{"type":"string","maxLength":255,"description":"Comments on the invoice schedule.\n"},"orders":{"type":"array","items":{"type":"string"},"description":"A list of the IDs or numbers of the orders associated with the invoice schedule. One invoice schedule can be associated with at most 10 orders.\n"},"scheduleItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTScheduleItemType"},"description":"Container for invoice schedule items. One invoice schedule can have at most 50 invoice schedule items.\n"},"specificSubscriptions":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceScheduleSpecificSubscriptions"},"description":"A list of the numbers of specific subscriptions associated with the invoice schedule.\n\n- If the subscriptions specified in this field belong to the orders specified in the `orders` field, only the specific subscriptions instead of the orders are associated with the invoice schedule. \n- If only the `orders` field is specified, all the subscriptions from the order are associated with the invoice schedule.\n\nExample:\n```\n{\n  \"orders\": [\n    \"O-00000001\", \"O-00000002\"\n  ],\n  \"specificSubscriptions\": [\n    {\n      \"orderKey\": \"O-00000001\",\n      \"subscriptionKey\": \"S-00000001\"\n    }\n  ]\n}\n```\n- For the order with number O-00000001, only subscription S-00000001 contained in the order is associated with the invoice schedule.\n- For the order with number O-00000002, all subscriptions contained in the order are associated with the invoice schedule.\n"}},"description":"Container for custom fields of an Invoice Schedule object.\n","title":"POSTCreateInvoiceScheduleRequest"},"ScheduleItemsResponseStatus":{"type":"string","enum":["Pending","Executing","Processed"],"description":"The status of the invoice schedule item.\n","title":"ScheduleItemsResponseStatus"},"ScheduleItemsResponse":{"type":"object","properties":{"actualAmount":{"type":"string","format":"number","description":"The actual amount that needs to be billed during the processing of the invoice schedule item.\n\nBy default, the actual amount is the same as the total amount. Even if order changes occur like Remove Product or Cancel Subscription, the value of the `amount` field keeps unchanged. The value of the `actualAmount` field reflects the actual amount to be billed.\n"},"amount":{"type":"string","format":"number","description":"The amount of the invoice generated during the processing of the invoice schedule item.\n\nYou can only specify either the `amount` field or `percentage` field in one request. \n- If you choose to specify the `amount` field in the request, `null` is returned as the value of the `percentage` field in the corresponding response. \n- If you choose to specify the `percentage` field in the request, the value of the `amount` field returned in the corresponding response is calculated based on the percentage of the total amount.\n\nThe value of this field keeps unchanged once invoice schedule items are created. \n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo that is generated during the processing of the invoice schedule item.\n"},"id":{"type":"string","description":"The unique ID of the invoice schedule item.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice that is generated during the processing of the invoice schedule item.\n"},"name":{"type":"string","maxLength":100,"description":"The name of the invoice schedule item.\n"},"percentage":{"description":"The percentage of the total amount to be billed during the processing of the invoice schedule item. \n\nYou can only specify either the `amount` field or `percentage` field in one request. \n- If you choose to specify the `amount` field in the request, `null` is returned as the value of the `percentage` field in the corresponding response. \n- If you choose to specify the `percentage` field in the request, the value of the `amount` field returned in the corresponding response is calculated based on the percentage of the total amount.\n"},"runDate":{"type":"string","format":"date","description":"The date in the tenant’s time zone when the invoice schedule item is processed to generate an invoice.\n"},"status":{"$ref":"#/components/schemas/ScheduleItemsResponseStatus","description":"The status of the invoice schedule item.\n"},"targetDateForAdditionalSubscriptions":{"type":"string","format":"date","description":"The date in the tenant's time zone used by the invoice schedule to determine which fixed-period regular charges to be billed together with the invoice schedule item. \n\nThe regular charges must come from the subscriptions specified in the `additionalSubscriptionsToBill` field.\n"},"organizationLabel":{"type":"string","description":"Indicates the organization assigned to the Invoice Schedule Item for multi-org.\n"}},"description":"Container for custom fields of an Invoice Schedule Item object.\n","title":"ScheduleItemsResponse"},"InvoiceScheduleResponsesStatus":{"type":"string","enum":["Pending","PartiallyProcessed","Paused","FullyProcessed"],"description":"The status of the invoice schedule.\n","title":"InvoiceScheduleResponsesStatus"},"InvoiceScheduleResponses":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account that the invoice schedule belongs to.\n"},"actualAmount":{"type":"number","format":"double","description":"The actual amount that needs to be billed during the processing of the invoice schedule.\n\nBy default, the actual amount is the same as the total amount. Even if order changes occur like Remove Product or Cancel Subscription, the value of the `totalAmount` field keeps unchanged. The value of the `actualAmount` field reflects the actual amount to be billed.\n"},"additionalSubscriptionsToBill":{"type":"array","items":{"type":"string"},"description":"A list of the numbers of the subscriptions that need to be billed together with the invoice schedule. \n\nOne invoice schedule can have at most 600 additional subscriptions.\n"},"billedAmount":{"type":"number","format":"double","description":"The amount that has been billed during the processing of the invoice schedule.\n"},"currency":{"type":"string","description":"The currency of the billing documents generated during the processing of the invoice schedule.\n**Note**:  - This field is available only if you have the <a\n  href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\"\n  target=\"_blank\">Multiple Currencies</a> feature enabled.\n\n- If you have the Multiple Currencies feature disabled, the corresponding account's default currency is always used.\n"},"id":{"type":"string","description":"The unique ID of the invoice schedule.\n"},"invoiceSeparately":{"type":"boolean","description":"Whether the invoice items created from the invoice schedule appears on a separate invoice when Zuora generates invoices.\n"},"nextRunDate":{"type":"string","format":"date","description":"The run date of the next execution of invoice schedule. By default, the next run date is the same as run date of next pending invoice schedule item. It can be overwritten with a different date other than the default value. When the invoice schedule has completed the execution, the next run date is null.\n"},"notes":{"type":"string","maxLength":255,"description":"Comments on the invoice schedule.\n"},"number":{"type":"string","description":"The sequence number of the invoice schedule.\n"},"orders":{"type":"array","items":{"type":"string"},"description":"A list of the IDs or numbers of the orders associated with the invoice schedule. One invoice schedule can be associated with at most 10 orders.\n"},"scheduleItems":{"type":"array","items":{"$ref":"#/components/schemas/ScheduleItemsResponse"},"description":"Container for schedule items. One invoice schedule can have at most 50 invoice schedule items.\n"},"specificSubscriptions":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceScheduleSpecificSubscriptions"},"description":"A list of the numbers of specific subscriptions associated with the invoice schedule.\n"},"status":{"$ref":"#/components/schemas/InvoiceScheduleResponsesStatus","description":"The status of the invoice schedule.\n"},"totalAmount":{"type":"number","format":"double","description":"The total amount that needs to be billed during the processing of the invoice schedule. \n\nThe value of this field keeps unchanged once invoice schedule items are created.\n"},"unbilledAmount":{"type":"number","format":"double","description":"The amount that is waiting to be billed during the processing of the invoice schedule.\n"},"organizationLabel":{"type":"string","description":"Indicates the organization assigned to the Invoice Schedule for multi-org.\n"}},"description":"Container for custom fields of an Invoice Schedule object.\n","title":"InvoiceScheduleResponses"},"UpdateScheduleItems":{"type":"object","properties":{"amount":{"type":"string","format":"number","description":"The amount of the invoice to be generated during the processing of the invoice schedule item. \n\nYou can only specify either the `amount` field or `percentage` field in one request. \n- If you choose to specify the `amount` field in the request, `null` is returned as the value of the `percentage` field in the corresponding response. \n- If you choose to specify the `percentage` field in the request, the value of the `amount` field returned in the corresponding response is calculated based on the percentage of the total amount.\n"},"id":{"type":"string","description":"The unique ID of the invoice schedule item to be updated. \n\nIf this field is not provided, a new invoice schedule item is added to the invoice schedule.\n"},"name":{"type":"string","maxLength":100,"description":"The name of the invoice schedule item.\n"},"percentage":{"description":"The percentage of the total amount to be billed during the processing of the invoice schedule item. \n\nYou can only specify either the `amount` field or `percentage` field in one request. \n- If you choose to specify the `amount` field in the request, `null` is returned as the value of the `percentage` field in the corresponding response. \n- If you choose to specify the `percentage` field in the request, the value of the `amount` field returned in the corresponding response is calculated based on the percentage of the total amount.              \n"},"runDate":{"type":"string","format":"date","description":"The date in the tenant’s time zone when the invoice schedule item is planned to be processed to generate an invoice.\n"},"targetDateForAdditionalSubscriptions":{"type":"string","format":"date","description":"The date in the tenant's time zone used by the invoice schedule to determine which fixed-period regular charges to be billed together with the invoice schedule item. \n\nThe regular charges must come from the subscriptions specified in the `additionalSubscriptionsToBill` field.\n"}},"description":"Container for custom fields of an Invoice Schedule Item object.\n","title":"UpdateScheduleItems"},"PUTUpdateInvoiceScheduleRequest":{"type":"object","properties":{"additionalSubscriptionsToBill":{"type":"array","items":{"type":"string"},"description":"A list of the numbers of the subscriptions that need to be billed together with the invoice schedule. \n\nOne invoice schedule can have at most 600 additional subscriptions.\n"},"invoiceSeparately":{"type":"boolean","description":"Whether the invoice items created from the invoice schedule appears on a separate invoice when Zuora generates invoices.\n"},"nextRunDate":{"type":"string","format":"date","description":"The run date of the next execution of the invoice schedule. \n\nBy default, the next run date is the same as the run date of next pending invoice schedule item. The date can be overwritten by a different date other than the default value. If the invoice schedule has completed the execution, the next run date is `null`.\n"},"notes":{"type":"string","maxLength":255,"description":"Comments on the invoice schedule.\n"},"orders":{"type":"array","items":{"type":"string"},"description":"A list of the IDs or numbers of the orders associated with the invoice schedule. One invoice schedule can be associated with at most 10 orders.\n\nThe orders specified in this field override all the existing orders associated with the invoice schedule.\n"},"scheduleItems":{"type":"array","items":{"$ref":"#/components/schemas/UpdateScheduleItems"},"description":"Container for invoice schedule items. The maximum number of schedule items is 50.\n\nThe invoice schedule items specified in this field override all the existing invoice schedule items.\n"},"specificSubscriptions":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceScheduleSpecificSubscriptions"},"description":"A list of the numbers of specific subscriptions associated with the invoice schedule.\n\n- If the subscriptions specified in this field belong to the orders specified in the `orders` field, only the specific subscriptions instead of the orders are associated with the invoice schedule. \n- If only the `orders` field is specified, all the subscriptions from the order are associated with the invoice schedule.\n  \nThe specific subscriptions specified in this field override all the existing specific subscriptions associated with the invoice schedule.\n\nExample:\n```\n{\n  \"orders\": [\n    \"O-00000001\", \"O-00000002\"\n  ],\n  \"specificSubscriptions\": [\n    {\n      \"orderKey\": \"O-00000001\",\n      \"subscriptionKey\": \"S-00000001\"\n    }\n  ]\n}\n```\n- For the order with number O-00000001, only subscription S-00000001 contained in the order is associated with the invoice schedule.\n- For the order with number O-00000002, all subscriptions contained in the order are associated with the invoice schedule.\n"}},"description":"Container for custom fields of an Invoice Schedule object.\n","title":"PUTUpdateInvoiceScheduleRequest"},"POSTExecuteInvoiceScheduleRequest":{"type":"object","properties":{"scheduleItemId":{"type":"string","description":"The ID of the invoice schedule item to be executed.\n\nThe item must be the earliest pending schedule item. If all the invoice schedule items have been processed and credit is needed to be generated, do not specify this field in the request.\n"}},"title":"POSTExecuteInvoiceScheduleRequest"},"BillRunFiltersFilterType":{"type":"string","enum":["Account","Subscription","InvoiceSchedule"],"description":"The type of the filter to determine whether to create a bill run at the account level or subscription level.\n","title":"BillRunFiltersFilterType"},"BillRunFilters":{"type":"object","properties":{"accountId":{"type":"string","description":"The target account of the bill run.\n"},"filterType":{"$ref":"#/components/schemas/BillRunFiltersFilterType","description":"The type of the filter to determine whether to create a bill run at the account level or subscription level.\n"},"subscriptionId":{"type":"string","description":"The unique ID of the target subscription belonged to the target account. \n\nThis field is required if you set the `filterType` field to `Subscription`.\n"}},"title":"BillRunFilters"},"ExecuteInvoiceScheduleBillRunResponseChargeTypeToExcludeItems":{"type":"string","enum":["OneTime","Recurring","Usage"],"title":"ExecuteInvoiceScheduleBillRunResponseChargeTypeToExcludeItems"},"ExecuteInvoiceScheduleBillRunResponseOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"ExecuteInvoiceScheduleBillRunResponseOrganizationLabelsItems"},"ExecuteInvoiceScheduleBillRunResponseStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","Canceled","Posted","PostInProgress","CancelInProgress","RemoveInProgress","Paused"],"description":"The status of the bill run.\n","title":"ExecuteInvoiceScheduleBillRunResponseStatus"},"ExecuteInvoiceScheduleBillRunResponse":{"type":"object","properties":{"autoEmail":{"type":"boolean","description":"Whether to automatically send an email after Auto-Post is complete.\n"},"autoPost":{"type":"boolean","description":"Whether to automatically post the bill run after the bill run is created.\n"},"autoRenewal":{"type":"boolean","description":"Whether to automatically renew auto-renew subscriptions that are up for renewal.\n"},"batches":{"type":"array","items":{"type":"string"},"description":"A list of the batches of accounts for this bill run. \n\nThis field cannot exist with the `billRunFilters` field.\n\n**Values:** `AllBatches` or Batch*n* where *n* is a number between 1 and 50, for example, `Batch7`.\n"},"billCycleDay":{"type":"string","description":"The day of the bill cycle, this field is only valid when `batches` is specified.\n\n**Values:** \n- `AllBillCycleDays` or 1 - 31 for an ad-hoc bill run \n- `AllBillCycleDays` or 1 - 31 or `AsRunDay` for a scheduled bill run\n"},"billRunFilters":{"type":"array","items":{"$ref":"#/components/schemas/BillRunFilters"},"description":"A list of the target account or subscriptions for this bill run.\n\nThis field cannot exist with the `batches` field.\n"},"billRunNumber":{"type":"string","description":"The number of bill run.\n"},"chargeTypeToExclude":{"type":"array","items":{"$ref":"#/components/schemas/ExecuteInvoiceScheduleBillRunResponseChargeTypeToExcludeItems"},"description":"The types of the charges to be excluded from the generation of billing documents.\n"},"createdById":{"type":"string","description":"The ID of the user who created the bill run.\n"},"createdDate":{"type":"string","description":"The date and time when the bill run was created.\n"},"id":{"type":"string","description":"The unique ID of the bill run.\n"},"invoiceDate":{"type":"string","format":"date","description":"The invoice date for this bill run, only valid for ad-hoc bill runs.\n"},"invoiceDateOffset":{"type":"integer","description":"The offset compared to bill run execution date, only valid for scheduled bill runs.\n"},"noEmailForZeroAmountInvoice":{"type":"boolean","description":"Whether to suppress emails for invoices with the total amount of zero or not for this bill run after the bill run is complete. \n\n**Note**: Do not email invoices with the total amount of zero.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/ExecuteInvoiceScheduleBillRunResponseOrganizationLabelsItems"},"description":"The organization(s) that the object belongs to. \n\nNote: This field is available only when the Multi-Org feature is enabled.            \n"},"scheduledExecutionTime":{"type":"string","description":"The scheduled execution time for a bill run.\n"},"status":{"$ref":"#/components/schemas/ExecuteInvoiceScheduleBillRunResponseStatus","description":"The status of the bill run.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for this bill run, only valid for ad-hoc bill run.\n"},"targetDateOffset":{"type":"integer","description":"The offset compared to bill run execution date, only valid for scheduled bill run.\n"},"updatedById":{"type":"string","description":"The ID of the user who updated the bill run.\n"},"updatedDate":{"type":"string","description":"The date and time when the bill run was updated.\n"}},"title":"ExecuteInvoiceScheduleBillRunResponse"},"DetachInvoiceScheduleRequestSpecificSubscriptionsItems":{"type":"object","properties":{"chargeNumbers":{"type":"string","description":"A list of charge numbers in the subscription to be detached from the invoice schedule.\n\nIf you want to detach all charges, you must specify all of the charge numbers in this field.\n"},"orderKey":{"type":"string","description":"The unique ID or number of the order associated with the invoice schedule.\n"},"subscriptionKey":{"type":"string","description":"The unique number of the subscription contained in the order associated with the invoice schedule.\n"}},"title":"DetachInvoiceScheduleRequestSpecificSubscriptionsItems"},"DetachInvoiceScheduleRequest":{"type":"object","properties":{"specificSubscriptions":{"type":"array","items":{"$ref":"#/components/schemas/DetachInvoiceScheduleRequestSpecificSubscriptionsItems"},"description":"A list of charge numbers to be detached from the invoice schedule.\n\nEach item in this array represents a specific subscription associated with the invoice schedule. Use the `chargeNumbers` field to specify all the charges you want to detach for each subscription.\n"}},"title":"DetachInvoiceScheduleRequest"},"AttachInvoiceScheduleRequestSpecificSubscriptionsItems":{"type":"object","properties":{"chargeNumbers":{"type":"string","description":"A list of charge numbers in the subscription to be attached to the invoice schedule.\n\nIf you want to attach all charges, you must specify all of the charge numbers in this field.\n"},"orderKey":{"type":"string","description":"The unique ID or number of the order associated with the invoice schedule.\n"},"subscriptionKey":{"type":"string","description":"The unique number of the subscription contained in the order associated with the invoice schedule.\n"}},"title":"AttachInvoiceScheduleRequestSpecificSubscriptionsItems"},"AttachInvoiceScheduleRequest":{"type":"object","properties":{"specificSubscriptions":{"type":"array","items":{"$ref":"#/components/schemas/AttachInvoiceScheduleRequestSpecificSubscriptionsItems"},"description":"A list of charge numbers to be attached to the invoice schedule.\n\nEach item in this array represents a specific subscription associated with the invoice schedule. Use the `chargeNumbers` field to specify all the charges you want to attach for each subscription.\n"}},"title":"AttachInvoiceScheduleRequest"},"ProxyCreateTaxationItem":{"type":"object","properties":{"AccountingCode":{"type":"string","description":" The Chart of Accounts "},"ExemptAmount":{"type":"number","format":"double","description":" The calculated tax amount excluded due to the exemption.\n**Character limit**: 16 **Values**: a decimal value "},"InvoiceItemId":{"type":"string","description":" The ID of the specific invoice item that the taxation information applies to.\n**Character limit**: 32 **Values**: a valid invoice item ID "},"Jurisdiction":{"type":"string","description":" The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n**Character limit**: 32 **Values**: a string of 32 characterrs or fewer "},"LocationCode":{"type":"string","description":" The identifier for the location based on the value of the `TaxCode` field.\n**Character limit**: 32 **Values**: automatically generated "},"Name":{"type":"string","description":" The name of the tax rate, such as sales tax or GST. This name is displayed on invoices.\n**Character limit**: 128 **Values**: a string of 128 characters or fewer "},"TaxAmount":{"type":"number","format":"double","description":" The amount of the tax applied to the charge.\n**Character limit**: 16 **Values**: a decimal value "},"TaxCode":{"type":"string","description":" The tax code identifies which tax rules and tax rates to apply to a specific charge.\n**Character limit**: 32 **Values**: a string of 32 characters or fewer "},"TaxCodeDescription":{"type":"string","description":" The description for the tax code.\n**Character limit**: 255 **Values**: a string of 255 characters or fewer "},"TaxDate":{"type":"string","format":"date","description":" The date that the tax is applied to the charge, in `yyyy-mm-dd` format.\n**Character limit**: 29 "},"TaxRate":{"type":"number","format":"double","description":" The tax rate applied to the charge.\n**Character limit**: 16 **Values**: a valid decimal value "},"TaxRateDescription":{"type":"string","description":" The description of the tax rate.\n**Character limit**: 255 **Values**: a string of 255 characters or fewer "},"TaxRateType":{"type":"string","description":" The type of the tax rate applied to the charge.\n**Character limit**: 10 **Values**: `Percentage`, `FlatFee` "}},"required":["InvoiceItemId","Jurisdiction","Name","TaxAmount","TaxDate","TaxRate","TaxRateType"],"description":"Container for custom fields of a Taxation Item object.\n","title":"ProxyCreateTaxationItem"},"GetTaxationItemTypeFinanceInformation":{"type":"object","properties":{"onAccountAccountingCode":{"type":"string","description":"The accounting code that maps to an on account in your accounting system.\n"},"onAccountAccountingCodeType":{"type":"string","description":"The type of the accounting code that maps to an on account in your accounting system.\n"},"salesTaxPayableAccountingCode":{"type":"string","description":"The accounting code for the sales taxes payable.\n"},"salesTaxPayableAccountingCodeType":{"type":"string","description":"The type of the accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the taxation item.\n","title":"GetTaxationItemTypeFinanceInformation"},"GetTaxationItemTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the credit or debit memo.\n","title":"GetTaxationItemTypeTaxRateType"},"GETTaxationItemType":{"type":"object","properties":{"createdById":{"type":"string","description":"The ID of the Zuora user who created the taxation item. \n"},"createdDate":{"type":"string","description":"The date and time when the taxation item was created in the Zuora system, in `yyyy-mm-dd hh:mm:ss` format.\n"},"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"financeInformation":{"$ref":"#/components/schemas/GetTaxationItemTypeFinanceInformation","description":"Container for the finance information related to the taxation item.\n"},"id":{"type":"string","description":"The ID of the taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field. \n"},"memoItemId":{"type":"string","description":"The ID of the credit or debit memo associated with the taxation item.\n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"sourceTaxItemId":{"type":"string","description":"The ID of the taxation item of the invoice, which the credit or debit memo is created from.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"taxAmount":{"type":"number","format":"double","description":"The amount of the tax applied to the credit or debit memo.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific credit or debit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date when the tax is applied to the credit or debit memo.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the credit or debit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/GetTaxationItemTypeTaxRateType","description":"The type of the tax rate applied to the credit or debit memo.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the taxation item.\n"},"updatedDate":{"type":"string","description":"The date and time when the taxation item was last updated, in `yyyy-mm-dd hh:mm:ss` format. \n"}},"description":"Container for custom fields of a Taxation Item object.\n","title":"GETTaxationItemType"},"PutTaxationItemTypeFinanceInformation":{"type":"object","properties":{"onAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to an on account in your accounting system.\n"},"salesTaxPayableAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the sales taxes payable.\n"}},"description":"Container for the finance information related to the taxation item.\n","title":"PutTaxationItemTypeFinanceInformation"},"PutTaxationItemTypeTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the credit or debit memo.\n","title":"PutTaxationItemTypeTaxRateType"},"PUTTaxationItemType":{"type":"object","properties":{"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"financeInformation":{"$ref":"#/components/schemas/PutTaxationItemTypeFinanceInformation","description":"Container for the finance information related to the taxation item.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field. \n"},"name":{"type":"string","description":"The name of the taxation item to be updated.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of the tax applied to the credit or debit memo.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific credit or debit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date when the tax is applied to the credit or debit memo.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the credit or debit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate. \n"},"taxRateType":{"$ref":"#/components/schemas/PutTaxationItemTypeTaxRateType","description":"The type of the tax rate applied to the credit or debit memo.\n"}},"description":"Container for custom fields of a Taxation Item object.\n","title":"PUTTaxationItemType"},"CreditMemoEntityPrefix":{"type":"object","properties":{"prefix":{"type":"string","description":"The prefix of credit memos.\n"},"startNumber":{"type":"integer","description":"The starting document number of credit memos.\n"}},"description":"Container for the prefix and starting document number of credit memos.\n\n**Note:** This field is only available if you have the Invoice Settlement feature 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","title":"CreditMemoEntityPrefix"},"DebitMemoEntityPrefix":{"type":"object","properties":{"prefix":{"type":"string","description":"The prefix of debit memos.\n"},"startNumber":{"type":"integer","description":"The starting document number of debit memos.\n"}},"description":"Container for the prefix and starting document number of debit memos.\n\n**Note:** This field is only available if you have the Invoice Settlement feature 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","title":"DebitMemoEntityPrefix"},"InvoiceEntityPrefix":{"type":"object","properties":{"prefix":{"type":"string","description":"The prefix of invoices.\n"},"startNumber":{"type":"integer","description":"The starting document number of invoices.\n"}},"description":"Container for the prefix and starting document number of invoices.\n","title":"InvoiceEntityPrefix"},"PaymentEntityPrefix":{"type":"object","properties":{"prefix":{"type":"string","description":"The prefix of payments.\n"},"startNumber":{"type":"integer","description":"The starting number of payments.\n"}},"description":"Container for the prefix and starting number of payments.\n","title":"PaymentEntityPrefix"},"RefundEntityPrefix":{"type":"object","properties":{"prefix":{"type":"string","description":"The prefix of refunds.\n"},"startNumber":{"type":"integer","description":"The starting number of refunds.\n"}},"description":"Container for the prefix and starting number of refunds.\n","title":"RefundEntityPrefix"},"GETSequenceSetResponse":{"type":"object","properties":{"creditMemo":{"$ref":"#/components/schemas/CreditMemoEntityPrefix"},"debitMemo":{"$ref":"#/components/schemas/DebitMemoEntityPrefix"},"id":{"type":"string","description":"The unique ID of the sequence set. For example, 402892c74c9193cd014c96bbe7c101f9.\n"},"invoice":{"$ref":"#/components/schemas/InvoiceEntityPrefix"},"name":{"type":"string","description":"The name of the sequence set.\n"},"payment":{"$ref":"#/components/schemas/PaymentEntityPrefix"},"refund":{"$ref":"#/components/schemas/RefundEntityPrefix"}},"title":"GETSequenceSetResponse"},"GETSequenceSetsResponse":{"type":"object","properties":{"sequenceSets":{"type":"array","items":{"$ref":"#/components/schemas/GETSequenceSetResponse"},"description":"Array of sequence sets configured for billing documents, payments, and refunds.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"GETSequenceSetsResponse"},"POSTSequenceSetRequest":{"type":"object","properties":{"creditMemo":{"$ref":"#/components/schemas/CreditMemoEntityPrefix"},"debitMemo":{"$ref":"#/components/schemas/DebitMemoEntityPrefix"},"invoice":{"$ref":"#/components/schemas/InvoiceEntityPrefix"},"name":{"type":"string","description":"The name of the sequence set to configure for billing documents, payments, and refunds.\n"},"sequenceSetNumber":{"type":"string","description":"Specifies the sequence set number to assign when creating the sequence set.\n\n**Note:** This value is set only during creation and cannot be updated after the sequence set is created."},"payment":{"$ref":"#/components/schemas/PaymentEntityPrefix"},"refund":{"$ref":"#/components/schemas/RefundEntityPrefix"}},"required":["creditMemo","debitMemo","invoice","name"],"title":"POSTSequenceSetRequest"},"POSTSequenceSetsRequest":{"type":"object","properties":{"sequenceSets":{"type":"array","items":{"$ref":"#/components/schemas/POSTSequenceSetRequest"},"description":"Array of sequence sets configured for billing documents, payments, and refunds.\n"}},"title":"POSTSequenceSetsRequest"},"POSTSequenceSetsResponse":{"type":"object","properties":{"sequenceSets":{"type":"array","items":{"$ref":"#/components/schemas/GETSequenceSetResponse"},"description":"Array of sequence sets configured for billing documents, payments, and refunds.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"POSTSequenceSetsResponse"},"PUTSequenceSetRequest":{"type":"object","properties":{"creditMemo":{"$ref":"#/components/schemas/CreditMemoEntityPrefix"},"debitMemo":{"$ref":"#/components/schemas/DebitMemoEntityPrefix"},"invoice":{"$ref":"#/components/schemas/InvoiceEntityPrefix"},"name":{"type":"string","description":"The name of the sequence set configured for billing documents, payments, and refunds.\n"},"payment":{"$ref":"#/components/schemas/PaymentEntityPrefix"},"refund":{"$ref":"#/components/schemas/RefundEntityPrefix"}},"title":"PUTSequenceSetRequest"},"PUTSequenceSetResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"PUTSequenceSetResponse"},"PostBillingPreviewParam":{"type":"object","properties":{"accountId":{"type":"string","maxLength":255,"description":"The ID of the customer account to which the billing preview applies.\n\n**Note**: When posting billing preview, you must specify either `accountId` or `accountNumber` in the request body.\n"},"accountNumber":{"type":"string","description":"The number of the customer account to which the billing preview applies.\n\n**Note**: When posting billing preview, you must specify either `accountId` or `accountNumber` in the request body.\n"},"assumeRenewal":{"type":"string","description":"Indicates whether to generate a preview of future invoice items and credit memo items with the assumption that the subscriptions are renewed.\n\nSet one of the following values in this field to decide how the assumption is applied in the billing preview.\n\n  * **All:** The assumption is applied to all the subscriptions. Zuora generates preview invoice item data and credit memo item data from the first day of the customer's next billing period to the target date.\n  \n  * **None:** (Default) The assumption is not applied to the subscriptions. Zuora generates preview invoice item data and credit memo item data based on the current term end date and the target date.\n  \n    * If the target date is later than the current term end date, Zuora generates preview invoice item data and credit memo item data from the first day of the customer's next billing period to the current term end date.\n\n    * If the target date is earlier than the current term end date, Zuora generates preview invoice item data and credit memo item data from the first day of the customer's next billing period to the target date.\n\n  * **Autorenew:** The assumption is applied to the subscriptions that have auto-renew enabled. Zuora generates preview invoice item data and credit memo item data from the first day of the customer's next billing period to the target date.\n\n**Note:** \n  - This field can only be used if the subscription renewal term is not set to 0.  \n  \n  \n  - The credit memo item data is only available if you have Invoice Settlement feature 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"},"chargeTypeToExclude":{"type":"string","description":"The charge types to exclude from the billing preview.\n\n**Possible values:** OneTime, Recurring, Usage, and any combination of these values.\n"},"includingDraftItems":{"type":"boolean","description":"Whether draft document items are included in the billing preview run. By default, draft document items are not included.\n\nThis field loads draft invoice items and credit memo items. The `chargeTypeToExclude`, `targetDate`, `includingEvergreenSubscription`, and `assumeRenewal` fields do not affect the behavior of the `includingDraftItems` field.          \n"},"includingEvergreenSubscription":{"type":"boolean","description":"Indicates if evergreen subscriptions are included in the billingPreview call.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for the billingPreview call. The billingPreview call generates preview invoice item data and credit memo item data from the first day of the customer's next billing period to the TargetDate. \n\nIf the TargetDate is later than the subscription current term end date, the preview invoice item data and credit memo item data is generated from the first day of the customer's next billing period to the current term end date. If you want to generate preview invoice item data and credit memo item data past the end of the subscription current term, specify the `AssumeRenewal` field in the request.\n\n\n**Note:** The credit memo item data is only available if you have Invoice Settlement feature 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"}},"required":["targetDate"],"title":"PostBillingPreviewParam"},"POSTBillingPreviewCreditMemoItem":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the credit memo item. For tax-inclusive credit memo items, the amount indicates the credit memo item amount including tax. For tax-exclusive credit memo items, the amount indicates the credit memo item amount excluding tax\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The credit memo item amount excluding tax.\n"},"appliedToItemId":{"type":["string","null"],"description":"The unique ID of the credit memo item that the discount charge is applied to.\n"},"chargeDate":{"type":"string","description":"The date when the credit memo item is created.\n"},"chargeNumber":{"type":"string","description":"Number of the charge.\n"},"chargeType":{"type":"string","description":"The type of charge. \n\nPossible values are `OneTime`, `Recurring`, and `Usage`.\n"},"comment":{"type":"string","description":"Comment of the credit memo item.\n"},"id":{"type":"string","description":"Credit memo item id.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"The number of deliveries dedicated to the Delivery Pricing charges. \n**Note**: This field is available only if you have the Delivery Pricing feature enabled.  \n"},"processingType":{"type":"string","description":"Identifies the kind of charge. \n\nPossible values:\n* charge\n* discount\n* prepayment\n* tax\n"},"quantity":{"type":"string","format":"decimal","description":"Quantity of this item, in the configured unit of measure for the charge.\n"},"ratePlanChargeId":{"type":"string","description":"Id of the rate plan charge associated with this item.\n"},"serviceEndDate":{"type":"string","format":"date","description":"End date of the service period for this item, i.e., the last day of the service period, in yyyy-mm-dd format.\n"},"serviceStartDate":{"type":"string","format":"date","description":"Start date of the service period for this item, in yyyy-mm-dd format. If the charge is a one-time fee, this is the date of that charge.\n"},"sku":{"type":"string","description":"Unique SKU for the product associated with this item.\n"},"skuName":{"type":"string","description":"Name of the unique SKU for the product associated with this item.\n"},"subscriptionId":{"type":"string","description":"ID of the subscription associated with this item.\n"},"subscriptionNumber":{"type":"string","description":"Name of the subscription associated with this item.\n"},"unitOfMeasure":{"type":"string","description":"Unit used to measure consumption.\n"}},"title":"POSTBillingPreviewCreditMemoItem"},"POSTBillingPreviewInvoiceItem":{"type":"object","properties":{"appliedToItemId":{"type":["string","null"],"description":"The unique ID of the invoice item that the discount charge is applied to.\n"},"chargeAmount":{"type":"string","format":"decimal","description":"The amount of the charge. This amount doesn't include taxes regardless if the charge's tax mode is inclusive or exclusive.\n"},"chargeDate":{"type":"string","description":"The date when the invoice item was created.\n"},"chargeDescription":{"type":"string","description":"Description of the charge.\n"},"chargeId":{"type":"string","description":"Id of the charge.\n"},"chargeName":{"type":"string","description":"Name of the charge.\n"},"chargeNumber":{"type":"string","description":"Number of the charge.\n"},"chargeType":{"type":"string","description":"The type of charge. \n\nPossible values are `OneTime`, `Recurring`, and `Usage`.\n"},"id":{"type":"string","description":"Invoice item ID.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"The number of deliveries dedicated to the Delivery Pricing charges. \n**Note**: This field is available only if you have the Delivery Pricing feature enabled. \n"},"processingType":{"type":"string","description":"Identifies the kind of charge. \n\nPossible values:\n* charge\n* discount\n* prepayment\n* tax\n"},"productName":{"type":"string","description":"Name of the product associated with this item.\n"},"quantity":{"type":"string","format":"decimal","description":"Quantity of this item, in the configured unit of measure for the charge.\n"},"serviceEndDate":{"type":"string","format":"date","description":"End date of the service period for this item, i.e., the last day of the service period, in `yyyy-mm-dd` format.\n"},"serviceStartDate":{"type":"string","format":"date","description":"Start date of the service period for this item, in `yyyy-mm-dd` format. If the charge is a one-time fee, this is the date of that charge.\n"},"subscriptionId":{"type":"string","description":"ID of the subscription associated with this item.\n"},"subscriptionName":{"type":"string","description":"Name of the subscription associated with this item.\n"},"subscriptionNumber":{"type":"string","description":"Number of the subscription associated with this item.\n"},"taxAmount":{"type":"string","format":"decimal","description":"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 is of [tax inclusive mode](https://knowledgecenter.zuora.com/Billing/Taxes/A_Zuora_Tax/D_Associate_tax_codes_with_product_charges_and_set_the_tax_mode), the value of this field is the amount of tax applied to the charge. Otherwise, the value of this field is `0`. \n"},"unitOfMeasure":{"type":"string","description":"Unit used to measure consumption.\n"}},"title":"POSTBillingPreviewInvoiceItem"},"BillingPreviewResult":{"type":"object","properties":{"accountId":{"type":"string","description":"ID of the customer account to which the billing preview applies.\n"},"creditMemoItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTBillingPreviewCreditMemoItem"},"description":"An array of credit memo items returned as the result of the billing preivew request.\n\n**Note:** The credit memo items are only available if you have Invoice Settlement feature 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"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTBillingPreviewInvoiceItem"},"description":"An array of invoice items returned as the result of the billing preview request.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"BillingPreviewResult"},"POSTInvoiceCollectType":{"type":"object","properties":{"accountKey":{"type":"string","description":"Customer account ID or account number.\n"},"documentDate":{"type":"string","format":"date","description":"The date that should appear on the invoice and credit memo being generated,\nin `yyyy-mm-dd` format. If this field is omitted\nand `invoiceId` is not specified, the current date is used by default. \n\n\n**Note:** The credit memo is only available if you have the Invoice Settlement feature enabled.\n\n\n**Note**: This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `215.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"invoiceId":{"type":"string","description":"The ID or number of an existing invoice for which to collect payment using\nthe account's default payment method. If this value is specified, no new\ninvoice is generated, and the following fields are ignored:\n  - `invoiceDate` and `invoiceTargetDate` (if the Zuora minor API version is 214.0 or earlier)\n  - `documentDate` and `targetDate` (if the Zuora minor API version is 215.0 or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version))\n"},"paymentGateway":{"type":"string","description":"The name of the gateway that will be used for the payment. Must be a valid gateway name and the gateway must support the specific payment method. If a value is not specified, the default gateway on the Account will be used.\n"},"targetDate":{"type":"string","format":"date","description":"The date through which to calculate charges on this account if an invoice or a credit memo is generated, in `yyyy-mm-dd` format. If this field is omitted and `invoiceId` is not specified, the current date is used by default. \nThis field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `215.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n\n**Note:** The credit memo is only available if you have the Invoice Settlement feature enabled.\n"}},"required":["accountKey"],"title":"POSTInvoiceCollectType"},"POSTInvoiceCollectCreditMemosType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the credit memo.\n"},"totalAmount":{"type":"number","format":"double","description":"The amount of the credit memo.\n"},"memoNumber":{"type":"string","description":"The unique identification number of the credit memo.\n"}},"title":"POSTInvoiceCollectCreditMemosType"},"POSTInvoiceCollectInvoicesType":{"type":"object","properties":{"invoiceAmount":{"type":"string","format":"decimal","description":"The amount of the invoice.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice.\n"},"invoiceNumber":{"type":"string","description":"The unique identification number of the invoice.\n"}},"title":"POSTInvoiceCollectInvoicesType"},"POSTInvoiceCollectResponseType":{"type":"object","properties":{"amountCollected":{"type":"number","format":"double","description":"Payment amount applied.\n"},"creditMemos":{"type":"array","items":{"$ref":"#/components/schemas/POSTInvoiceCollectCreditMemosType"},"description":"Information on one or more credit memos associated with this operation.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/POSTInvoiceCollectInvoicesType"},"description":"Information on one or more invoices associated with this operation.\n"},"paymentId":{"type":"string","description":"Payment ID.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"POSTInvoiceCollectResponseType"},"GetOperationJobResponseTypeObjectType":{"type":"string","enum":["Invoice"],"description":"The object type of the job. \n","title":"GetOperationJobResponseTypeObjectType"},"GetOperationJobResponseTypeOperationType":{"type":"string","enum":["Delete","Reverse"],"description":"The operation type of the job.\n","title":"GetOperationJobResponseTypeOperationType"},"GetOperationJobResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of the response.\n"},"message":{"type":"string","description":"The detail information of the error response.\n"}},"title":"GetOperationJobResponseTypeReasonsItems"},"GetOperationJobResponseTypeStatus":{"type":"string","enum":["Pending","Processing","Failed","Completed"],"description":"The status of the operation job. \n","title":"GetOperationJobResponseTypeStatus"},"GetOperationJobResponseType":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the operation job to retrieve information about.\n"},"objectId":{"type":"string","description":"The ID of the business object which is being operated.\n"},"objectType":{"$ref":"#/components/schemas/GetOperationJobResponseTypeObjectType","description":"The object type of the job. \n"},"operationType":{"$ref":"#/components/schemas/GetOperationJobResponseTypeOperationType","description":"The operation type of the job.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/GetOperationJobResponseTypeReasonsItems"}},"status":{"$ref":"#/components/schemas/GetOperationJobResponseTypeStatus","description":"The status of the operation job. \n"},"success":{"type":"boolean","description":"Whether the call succeeded.\n"}},"title":"GetOperationJobResponseType"},"DocumentListDocType":{"type":"string","enum":["Invoice","CreditMemo","DebitMemo"],"description":"The type of billing document.","title":"DocumentListDocType"},"DocumentList":{"type":"object","properties":{"docType":{"$ref":"#/components/schemas/DocumentListDocType","description":"The type of billing document."},"objectIds":{"type":"array","items":{"type":"string"},"description":"The collection of billing document IDs."}},"title":"DocumentList"},"PostBulkPdfGenerationJobRequestTypeIndexFileFormat":{"type":"string","enum":["JSON","CSV"],"description":"The format of the index file. It contains the metadata about the files and their contents.\n","title":"PostBulkPdfGenerationJobRequestTypeIndexFileFormat"},"POSTBulkPdfGenerationJobRequestType":{"type":"object","properties":{"documents":{"type":"array","items":{"$ref":"#/components/schemas/DocumentList"},"description":"An array that contains a collection of objects where each object contains billing document type and their IDs.\n"},"fileName":{"type":"string","maxLength":32,"description":"The prefix part of output file name(s). The response will include multiple file URLs. The number of zip files generated corresponds to the number of invoice IDs. Each zip file contains up to 1000 document IDs.\nEg: \n  if fileName is \"all-invoices-posted-jan-2024\" then fileURL(s) will start with the file name followed by an underscore and a number. For instance, all-invoices-posted-jan-2024_1.zip, all-invoices-posted-jan-2024_2.zip, and so on.\n"},"name":{"type":"string","maxLength":32,"description":"The name of the job.\n"},"indexFileFormat":{"$ref":"#/components/schemas/PostBulkPdfGenerationJobRequestTypeIndexFileFormat","description":"The format of the index file. It contains the metadata about the files and their contents.\n"},"generateMissingPDF":{"type":"boolean","description":"This flag controls the behavior of whether to generate PDF(s) for billing documents that do not already have one.\n\n  - setting it to true indicates service would go through the provided document ID list, find the billing documents that do not have a generated PDF,\n  generate them all at once, and then proceed to the zipping process.\n\n  - setting it to false indicates service would go through the provided document ID list, find the billing documents that do not have a generated PDF,\n  mark them as Invalid, and skip them from the zipping process. IDs marked as invalid will be included in the response.\n\nThe default value is false.\n"},"ignoreArchivedFiles":{"type":"boolean","description":"Ignores archived PDF files during export without causing the entire job request to fail when enabled. \n"},"persistIndexFile":{"type":"boolean","description":"Controls the generation of the index file, allowing you to efficiently handle high volumes of requests. By default, this field is set to `true`.  \n  - When set to `true`, the index file is generated and included in the zip file.\n  - When set to `false`, the index file is not generated and consequently not included in the zip file. \n"}},"required":["documents","fileName","indexFileFormat"],"title":"POSTBulkPdfGenerationJobRequestType"},"PostBulkPdfGenerationJobResponseTypeReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"PostBulkPdfGenerationJobResponseTypeReasonsItems"},"PostBulkPdfGenerationJobResponseTypeSkippedDocumentsItemsDocType":{"type":"string","enum":["Invoice","CreditMemo","DebitMemo"],"description":"The document type of the skipped document.\n","title":"PostBulkPdfGenerationJobResponseTypeSkippedDocumentsItemsDocType"},"PostBulkPdfGenerationJobResponseTypeSkippedDocumentsItems":{"type":"object","properties":{"docType":{"$ref":"#/components/schemas/PostBulkPdfGenerationJobResponseTypeSkippedDocumentsItemsDocType","description":"The document type of the skipped document.\n"},"objectIds":{"type":"array","items":{"type":"string"},"description":"The IDs of the skipped document objects.\n"}},"title":"PostBulkPdfGenerationJobResponseTypeSkippedDocumentsItems"},"POSTBulkPdfGenerationJobResponseType":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PostBulkPdfGenerationJobResponseTypeReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"jobId":{"type":"string","description":"Unique Id for the Job Triggered.\n"},"invalidIds":{"description":"Collection of Ids that are not valid. \n\n Id is considered to be invalid if,\n  \n  * Billing Document Id doesn't exist in the database for the corresponding Billing Document Type\n  * generateMissingPDF property is false in the Job Request and Valid PDF doesn't exist for the Billing Document Id\n"},"skippedDocuments":{"type":"array","items":{"$ref":"#/components/schemas/PostBulkPdfGenerationJobResponseTypeSkippedDocumentsItems"},"description":"The `skippedDocuments` array will be empty unless archived files are marked to skip during job creation.\n"}},"title":"POSTBulkPdfGenerationJobResponseType"},"GetBulkpdfGenerationJobResponseTypeStatus":{"type":"string","enum":["Submitted","Executing","Completed","Error","Aborted","Cancelled"],"description":"Status of the job","title":"GetBulkpdfGenerationJobResponseTypeStatus"},"GetBulkpdfGenerationJobResponseTypeStepStatus":{"type":"string","enum":["JobCreated","TasksCreated","GenerateMissPDF","PdfToZip","PostProcessing"],"description":"Status of the Current Step that the Job is undergoing","title":"GetBulkpdfGenerationJobResponseTypeStepStatus"},"GETBulkpdfGenerationJobResponseType":{"type":"object","properties":{"jobId":{"type":"string","description":"Unique Id for the Triggered Job"},"jobName":{"type":"string","description":"Name of the Job provided during the POST request of the Job"},"status":{"$ref":"#/components/schemas/GetBulkpdfGenerationJobResponseTypeStatus","description":"Status of the job"},"stepStatus":{"$ref":"#/components/schemas/GetBulkpdfGenerationJobResponseTypeStepStatus","description":"Status of the Current Step that the Job is undergoing"},"fileUrls":{"type":"array","items":{"type":"string"},"description":"Collection of S3 Pre-Signed URL(s) that can be downloaded"},"failedDocuments":{"type":"array","items":{"$ref":"#/components/schemas/DocumentList"},"description":"Array of objects where each object contains billing document type and the IDs which failed to execute."},"createdOn":{"type":"string","description":"Job Created Time"},"createdBy":{"type":"string","description":"Id of the user who created the job"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETBulkpdfGenerationJobResponseType"},"SummaryStatementRunRequestTypeRunType":{"type":"string","enum":["AdHoc"],"description":"The scheduled type of the run which can either be AdHoc or Scheduled. Currently, only `AdHoc` is supported.\n","title":"SummaryStatementRunRequestTypeRunType"},"SummaryStatementRunRequestTypeTargetAccountCategory":{"type":"string","enum":["SingleAccount","AllAccounts","AccountsWithOpenInvoices","AccountsWithOpenBalances","AccountsWithoutInvoices","AccountsWithoutInvoicesAndOpenBalances"],"description":"Specifies the type of account filter.\n\nIf the filter type is set to `AllAccounts`, `AccountsWithOpenInvoices`, `AccountsWithOpenBalances`, `AccountsWithoutInvoices`, or `AccountsWithoutInvoicesAndOpenBalances`, you can further refine the filter using `batchName` and `billCycleDay`. \nHowever, these criteria are not applicable when the filter type is `SingleAccount`.\n","title":"SummaryStatementRunRequestTypeTargetAccountCategory"},"SummaryStatementRunRequestTypeDateRangeType":{"type":"string","enum":["Custom","PreviousThreeCalendarMonth","PreviousOneCalendarMonth"],"description":"The date range for the statement.\n\nIf `PreviousThreeCalendarMonth` or `PreviousOneCalendarMonth` is selected, the start and end dates are automatically calculated.\nFor example, if `PreviousThreeCalendarMonth` is chosen today (2024-08-20), the dates would be 2024-05-01 to 2024-07-31.\n","title":"SummaryStatementRunRequestTypeDateRangeType"},"SummaryStatementRunRequestType":{"type":"object","properties":{"runType":{"$ref":"#/components/schemas/SummaryStatementRunRequestTypeRunType","description":"The scheduled type of the run which can either be AdHoc or Scheduled. Currently, only `AdHoc` is supported.\n"},"targetAccountCategory":{"$ref":"#/components/schemas/SummaryStatementRunRequestTypeTargetAccountCategory","description":"Specifies the type of account filter.\n\nIf the filter type is set to `AllAccounts`, `AccountsWithOpenInvoices`, `AccountsWithOpenBalances`, `AccountsWithoutInvoices`, or `AccountsWithoutInvoicesAndOpenBalances`, you can further refine the filter using `batchName` and `billCycleDay`. \nHowever, these criteria are not applicable when the filter type is `SingleAccount`.\n"},"accountKey":{"type":["string","null"],"description":"The related account ID or account number when the filter type is `SingleAccount`.\n"},"batchName":{"type":"string","description":"The batch name used for filtering accounts, for example, Batch1.\n"},"billCycleDay":{"type":["string","null"],"description":"The bill cycle day for filtering accounts, with values ranging from '01' to '31'.\n"},"dateRangeType":{"$ref":"#/components/schemas/SummaryStatementRunRequestTypeDateRangeType","description":"The date range for the statement.\n\nIf `PreviousThreeCalendarMonth` or `PreviousOneCalendarMonth` is selected, the start and end dates are automatically calculated.\nFor example, if `PreviousThreeCalendarMonth` is chosen today (2024-08-20), the dates would be 2024-05-01 to 2024-07-31.\n"},"startDate":{"type":"string","format":"date","description":"Required when `Custom` is selected for the date range. The start date can be set to a maximum of 5 years in the past and must follow the format YYYY-MM-DD.\n"},"endDate":{"type":"string","format":"date","description":"When creating a statement run, this field cannot be manually entered. If `Custom` is selected, the end date automatically defaults to today’s date in the tenant’s timezone.\n"},"autoEmailEnabled":{"type":"boolean","description":"Indicates whether to send an email after a statement is generated. Acceptable values are `true` or `false`. If unspecified, the default value is `false`.\n"},"description":{"type":"string","description":"A text description of the statement run.\n"}},"required":["runType","targetAccountCategory","dateRangeType"],"title":"SummaryStatementRunRequestType"},"SummaryStatementRunResponseRunType":{"type":"string","enum":["AdHoc"],"description":"The scheduled type of the run which can either be AdHoc or Scheduled. Currently, only `AdHoc` is supported.\n","title":"SummaryStatementRunResponseRunType"},"SummaryStatementRunResponseTargetAccountCategory":{"type":"string","enum":["SingleAccount","AllAccounts","AccountsWithOpenInvoices","AccountsWithOpenBalances","AccountsWithoutInvoices","AccountsWithoutInvoicesAndOpenBalances"],"description":"Specifies the type of account filter. \n\nIf the filter type is set to `AllAccounts`, `AccountsWithOpenInvoices`, `AccountsWithOpenBalances`, `AccountsWithoutInvoices`, or `AccountsWithoutInvoicesAndOpenBalances`, you can further refine the filter using `batchName` and `billCycleDay`. \nHowever, these criteria are not applicable when the filter type is `SingleAccount`.\n","title":"SummaryStatementRunResponseTargetAccountCategory"},"SummaryStatementRunResponseDateRangeType":{"type":"string","enum":["PreviousThreeCalendarMonth","PreviousOneCalendarMonth","PreviousOneCalendarMonth"],"description":"The date range for the statement.\n","title":"SummaryStatementRunResponseDateRangeType"},"SummaryStatementRunResponseStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","Terminated"],"description":"The status of the run.\n","title":"SummaryStatementRunResponseStatus"},"SummaryStatementRunResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the statement run.\n"},"statementRunNumber":{"type":"string","description":"The number of the statement run.\n"},"runType":{"$ref":"#/components/schemas/SummaryStatementRunResponseRunType","description":"The scheduled type of the run which can either be AdHoc or Scheduled. Currently, only `AdHoc` is supported.\n"},"targetAccountCategory":{"$ref":"#/components/schemas/SummaryStatementRunResponseTargetAccountCategory","description":"Specifies the type of account filter. \n\nIf the filter type is set to `AllAccounts`, `AccountsWithOpenInvoices`, `AccountsWithOpenBalances`, `AccountsWithoutInvoices`, or `AccountsWithoutInvoicesAndOpenBalances`, you can further refine the filter using `batchName` and `billCycleDay`. \nHowever, these criteria are not applicable when the filter type is `SingleAccount`.\n"},"accountKey":{"type":["string","null"],"description":"When the filter type is `SingleAccount`, this field contains the related account ID.\n"},"batchName":{"type":"string","description":"The name of the batch used for filtering accounts.\n"},"billCycleDay":{"type":["string","null"],"description":"The bill cycle day for filtering accounts, with values ranging from '01' to '31'.\n"},"dateRangeType":{"$ref":"#/components/schemas/SummaryStatementRunResponseDateRangeType","description":"The date range for the statement.\n"},"startDate":{"type":"string","format":"date","description":"The start date.\n"},"endDate":{"type":"string","format":"date","description":"The end date, which defaults to today’s date when `Custom` is selected. This field cannot be manually entered.\n"},"autoEmailEnabled":{"type":"boolean","description":"Indicates whether to send an email after a statement is generated. \n"},"description":{"type":"string","description":"A text description of the statement run.\n"},"status":{"$ref":"#/components/schemas/SummaryStatementRunResponseStatus","description":"The status of the run.\n"},"createdById":{"type":"string","description":"The ID of the user who created the statement run.\n"},"createdDate":{"type":"string","format":"dateTime","description":"The date and time the statement run was created.\n"},"success":{"type":"boolean","description":"Indicates whether the operation was successful.\n"},"updatedById":{"type":"string","description":"The ID of the user who last updated the statement run.\n"},"updatedDate":{"type":"string","format":"dateTime","description":"The date the statement run was last updated.\n"}},"title":"SummaryStatementRunResponse"},"BillRunFilterRequestTypeFilterType":{"type":"string","enum":["Account","Subscription","FilterCondition"],"description":"To create bill runs based on the selected filter type:\n  - `Account`: Create bill runs by account. \n  - `Subscription`: Create bill runs by subscription, you must specify the `subscriptionId` field.\n  - `FilterCondition`: Create bill runs by custom filter combining the Account, Subscription, and Rate Plan objects, you must specify the `condition` and `objectType` fields. See <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/bill-runs/automate-billing-document-generation/bill-run-advanced-filter\" target=\"_blank\">Bill Run Advanced Filter</a>.\n","title":"BillRunFilterRequestTypeFilterType"},"ConditionOperator":{"type":"string","enum":["eq","neq","gt","lt","gte","lte","lk","in","nl","nnl"],"description":"The operator of a single condition that is indicated by the `conditions` field.  The operator is added between the `field` and `value` fields.\n- eq: equal (`field` = `value`)\n- neq: not equal (`field` != `value`) \n- gt: greater than (`field` > `value`) \n- lt: less than (`field` < `value`) \n- gte: greater than or equal (`field` >= `value`)\n- lte: less than or equal (`field` <= `value`)\n- lk: like (`field` like `value`) \n- in: in (`field` in `value`, the values are separated by comma)\n- nl: null (`field` is null)\n- nnl: not null (`field` is not null)\n","title":"ConditionOperator"},"ConditionRelation":{"type":"string","enum":["and","or"],"description":"The relation among the `conditions` fields.\n","title":"ConditionRelation"},"Condition":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/Condition"},"description":"Multiple `conditions` fields are combined by the `relation` fields. These `conditions` fields form a custom filter.\nEach `conditions` field is a formula combined by the `field`, `operator`, and `value` fields. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Automate_billing_document_generation/Bill_runs/Bill_Run_Advanced_Filter/B_Common_use_cases_of_Bill_Run_Advanced_Filter\" target=\"_blank\">Common use cases of Bill Run Advanced Filter</a>.\n"},"field":{"type":"string","description":"The field name of a single condition that is indicated by the `conditions` field.\n"},"operator":{"$ref":"#/components/schemas/ConditionOperator","description":"The operator of a single condition that is indicated by the `conditions` field.  The operator is added between the `field` and `value` fields.\n- eq: equal (`field` = `value`)\n- neq: not equal (`field` != `value`) \n- gt: greater than (`field` > `value`) \n- lt: less than (`field` < `value`) \n- gte: greater than or equal (`field` >= `value`)\n- lte: less than or equal (`field` <= `value`)\n- lk: like (`field` like `value`) \n- in: in (`field` in `value`, the values are separated by comma)\n- nl: null (`field` is null)\n- nnl: not null (`field` is not null)\n"},"relation":{"$ref":"#/components/schemas/ConditionRelation","description":"The relation among the `conditions` fields.\n"},"value":{"type":"string","description":"The value or list of values to compare against, depending on the operator. For most operators (for example, `eq`, `lt`, `gt`), `value` contains a single literal value or a supported built-in variable. When you use the `in` operator in an Advanced Filter, `value` must be a comma-separated list with no more than 500 values. If more than 500 values are provided, the API returns a validation error and the Bill Run is not started. This limit applies only to the `in` operator and does not affect the total number of accounts or subscriptions a Bill Run can process.\n\nWhen `filterType` is set to `FilterCondition`, you can provide either:\n  - A literal value (for example, `\"15\"`), or\n  - A built-in variable in the format `{{VariableName}}`.\n\n  Built-in variables are supported only in the `value` field of date-type conditions and are resolved at runtime:\n  - `{{Today}}`: Current date in `yyyy-MM-dd` format.\n  - `{{BillRunDate}}`: Bill run execution date in `yyyy-MM-dd` format.\n  - `{{TargetDate}}`: Bill run target date in `yyyy-MM-dd` format.\n  - `{{InvoiceDate}}`: Bill run invoice date in `yyyy-MM-dd` format.\n\n     Example: `\"value\": \"{{BillRunDate}}\"`\n\n  Built‑in variable for Bill Cycle Day:\n  - `{{AsRunDay}}`: \n    - The day of the month from the bill run execution date, formatted for Bill Cycle Day (BCD) matching.\n    - You must use this variable only with the `BillCycleDay` field of the `Account` object.\n      \n"}},"description":"Container for condition information about the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Automate_billing_document_generation/Bill_runs/Bill_Run_Advanced_Filter\" target=\"_blank\">Bill Run Advanced Filter</a>.","title":"Condition"},"BillRunFilterRequestTypeObjectType":{"type":"string","enum":["Account","Subscription","RatePlanCharge"],"description":"The target object type of the condition when the `filterType` field is specified as `FilterCondition`. See <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/bill-runs/automate-billing-document-generation/bill-run-advanced-filter\" target=\"_blank\">Bill Run Advanced Filter</a>.\n","title":"BillRunFilterRequestTypeObjectType"},"BillRunFilterRequestType":{"type":"object","properties":{"accountId":{"type":"string","description":"The target account of the bill run. \n\nIf multiple subscriptions are specified, the account ID must be the same.\n"},"filterType":{"$ref":"#/components/schemas/BillRunFilterRequestTypeFilterType","description":"To create bill runs based on the selected filter type:\n  - `Account`: Create bill runs by account. \n  - `Subscription`: Create bill runs by subscription, you must specify the `subscriptionId` field.\n  - `FilterCondition`: Create bill runs by custom filter combining the Account, Subscription, and Rate Plan objects, you must specify the `condition` and `objectType` fields. See <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/bill-runs/automate-billing-document-generation/bill-run-advanced-filter\" target=\"_blank\">Bill Run Advanced Filter</a>.\n"},"condition":{"$ref":"#/components/schemas/Condition"},"objectType":{"$ref":"#/components/schemas/BillRunFilterRequestTypeObjectType","description":"The target object type of the condition when the `filterType` field is specified as `FilterCondition`. See <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/bill-runs/automate-billing-document-generation/bill-run-advanced-filter\" target=\"_blank\">Bill Run Advanced Filter</a>.\n"},"subscriptionId":{"type":"string","description":"The target subscripiton ID of the account. \n\nIf you set the `filterType` field to `Subscription`, you must specify the `subscriptionId` field.\n"}},"required":["accountId","filterType"],"title":"BillRunFilterRequestType"},"PostCreateBillRunRequestTypeChargeTypeToExcludeItems":{"type":"string","enum":["OneTime","Recurring","Usage"],"title":"PostCreateBillRunRequestTypeChargeTypeToExcludeItems"},"PostCreateBillRunRequestTypeOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"PostCreateBillRunRequestTypeOrganizationLabelsItems"},"BillRunScheduleRequestTypeRepeatType":{"type":"string","enum":["None","Daily","Weekly","Monthly"],"description":"The repeat type of the bill run.\n","title":"BillRunScheduleRequestTypeRepeatType"},"BillRunScheduleRequestTypeWeeklyOnDayItems":{"type":"string","enum":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"title":"BillRunScheduleRequestTypeWeeklyOnDayItems"},"BillRunScheduleRequestType":{"type":"object","properties":{"repeatFrom":{"type":"string","format":"date","description":"The start date of the scheduled bill run.\n"},"repeatTo":{"type":"string","format":"date","description":"The end date of of the scheduled bill run.\n"},"repeatType":{"$ref":"#/components/schemas/BillRunScheduleRequestTypeRepeatType","description":"The repeat type of the bill run.\n"},"runTime":{"type":"integer","description":"The scheduled run time (hour) of day.\n\n**Values:** 0 - 23\n"},"weeklyOnDay":{"type":"array","items":{"$ref":"#/components/schemas/BillRunScheduleRequestTypeWeeklyOnDayItems"},"description":"The repeat day in a week. \n\nThis field is required if you set `repeatType` field to `Weekly`.\n"},"monthlyOnEndOfMonth":{"type":"boolean","description":"Whether to schedule monthly bill run on the end of month or the specific day of month.\n\n\n**Note**: This field is available only when the `repeatType` field is set to `Monthly` and the `repeatFrom` field is set to the end of month.\n  \nFor example:\n  - When repeatFrom = `2024-04-30` and `monthlyOnEndOfMonth` = `true`, next bill run will be scheduled on `2024-05-31`.\n  - When repeatFrom = `2024-04-30` and `monthlyOnEndOfMonth` = `false`, next bill run will be scheduled on `2024-05-30`.\n"}},"required":["repeatFrom","repeatType","runTime"],"description":"Container for information about the scheduled bill run.\n","title":"BillRunScheduleRequestType"},"POSTCreateBillRunRequestType":{"type":"object","properties":{"autoEmail":{"type":"boolean","default":false,"description":"Whether to automatically send emails after Auto-Post is complete.\n\n**Note:** To use this field, you must first set the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/billing-settings-configuration/general-billing-settings/define-billing-rules\" target=\"_blank\">Support Bill Run Auto-Post?</a> billing rule to **Yes** through the Zuora UI.\n"},"autoPost":{"type":"boolean","default":false,"description":"Whether to automatically post the bill run after the bill run is created.\n\n**Note:** To use this field, you must first set the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/billing-settings-configuration/general-billing-settings/define-billing-rules\" target=\"_blank\">Support Bill Run Auto-Post?</a> billing rule to **Yes** through the Zuora UI.\n"},"autoRenewal":{"type":"boolean","default":false,"description":"Whether to automatically renew auto-renew subscriptions that are up for renewal.\n"},"batches":{"type":"array","items":{"type":"string"},"description":"The batch of accounts for this bill run. \n\nYou can only specify either this field or the `billRunFilters` field.\n\n**Values:** `AllBatches` or an array of `Batch*n*` where *n* is one of numbers 1 - 50, for example, `Batch7`.\n\n**Note**: By default, you have 50 configurable account batches. To increase the limit to 200 batches, you must have the <a href=\"https://docs.zuora.com/en/entitlements/current-entitlements/performance-booster-elite\" target=\"_blank\">Performance Booster Elite</a> package.\n"},"billCycleDay":{"type":"string","description":"The day of the bill cycle. This field is only valid if the `batches` field is specified.\n\n**Values:** \n- `AllBillCycleDays` or one of numbers 1 - 31 for an ad-hoc bill run\n- `AllBillCycleDays`, one of numbers 1 - 31, or `AsRunDay` for a scheduled bill run\n"},"billRunFilters":{"type":"array","items":{"$ref":"#/components/schemas/BillRunFilterRequestType"},"description":"The target account, subscriptions, invoice schedule, or a combination of objects for this bill run. You can only specify either this field or the `batches` field. \n"},"billRunType":{"type":"string","description":"The type of the bill run. If you do not specify any value for this field, the default value is `Regular`.\n\n- You can use this field only if the \"Catch-Up Bill Run\" feature is enabled. \n- You must specify this field to create a catch up bill run.\n\n**Values:** \n- `Regular`\n- `CatchUp`\n"},"chargeTypeToExclude":{"type":"array","items":{"$ref":"#/components/schemas/PostCreateBillRunRequestTypeChargeTypeToExcludeItems"},"description":"The types of the charges to be excluded from the generation of billing documents. You can specify at most two charge types in the array.\n"},"includeSubscriptions":{"type":"boolean","default":true,"description":"Indicates whether to bill subscriptions in the bill run.\n"},"includeOrderLineItems":{"type":"boolean","default":true,"description":"Indicates whether to bill order line items in the bill run.\n"},"invoiceDate":{"type":"string","format":"date","description":"The invoice date for the bill run.\n\n- When creating an ad-hoc bill run, if you do not specify any value for this field, the default value is the current date.\n- When creating a scheduled bill run, if you do not specify any value for this field, the invoice date is the value of the `repeatFrom` field.\n\n**Note**: You can use one of the following methods to specify the invoice date:\n\n- Specify `invoiceDate`\n- Specify `invoiceDateMonthOffset` and `InvoiceDateDayOfMonth`\n"},"invoiceDateMonthOffset":{"type":"integer","description":"The month offset of invoice date for this bill run compared to bill run execution date.\n\n\n**Notes**: \n- This field is only valid when the `repeatType` field is set to `Monthly`. \n- You can use one of the following methods to specify the invoice date:\n  - Specify `invoiceDate`\n  - Specify `invoiceDateMonthOffset` and `InvoiceDateDayOfMonth`\n"},"invoiceDateDayOfMonth":{"type":"integer","minimum":1,"maximum":31,"description":"The day of month of invoice date for this bill run. Specify a day of the month. If you specify 31, even though the month doesn't have 31, for example, February or April, the date recurs on the end day of each scheduled month. \n\n\n**Notes**: \n  - This field is only valid when the `repeatType` field is set to `Monthly`. \n  - You can use one of the following methods to specify the invoice date:\n    - Specify `invoiceDate`\n    - Specify `invoiceDateMonthOffset` and `InvoiceDateDayOfMonth`\n"},"name":{"type":"string","description":"The name of the bill run.\n"},"noEmailForZeroAmountInvoice":{"type":"boolean","default":false,"description":"Whether to suppress emails for invoices with zero total amount generated in this bill run after the bill run is complete. \n\nIt is best practice to not send emails for invoices with zero amount.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/PostCreateBillRunRequestTypeOrganizationLabelsItems"},"description":"The organization(s) that the bill run is created for. \n\nFor each item in the array, either the `organizationId` or the `organizationName` field is required.\n\nThis field is only required when you have already turned on Multi-Org feature.\n"},"schedule":{"$ref":"#/components/schemas/BillRunScheduleRequestType"},"targetDate":{"type":"string","format":"date","description":"The target date for this bill run. \n\n- You must specify this field when creating an ad-hoc bill run.\n- For scheduled bill runs, if you do not specify any value for this field, the target date is the value of the `repeatFrom` field.\n"},"targetDateMonthOffset":{"type":"integer","description":"The month offset of target date for this bill run compared to bill run execution date.\n\n\n**Note**: This field is only valid when the `repeatType` field is set to `Monthly`.\n"},"targetDateDayOfMonth":{"type":"integer","minimum":1,"maximum":31,"description":"The day of month of target date for this bill run. Specify a day of the month. If you specify 31, even though the month doesn't have 31, for example, February or April, the date recurs on the end day of each scheduled month. \n\n\n**Note**: This field is only valid when the `repeatType` field is set to `Monthly`. \n"}},"title":"POSTCreateBillRunRequestType"},"BillRunFilterResponseTypeFilterType":{"type":"string","enum":["Account","Subscription","InvoiceSchedule","FilterCondition"],"description":"To create bill runs based on the selected filter type:\n  - `Account`: Create bill runs by account. \n  - `Subscription`: Create bill runs by subscription, you must specify the `subscriptionId` field.\n  - `InvoiceSchedule`: Create a scheduled bill run, you must specify the schedule field. See <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/bill-runs/automate-billing-document-generation/manage-scheduled-bill-runs\" target=\"_blank\">Manage scheduled bill runs</a>.\n  - `FilterCondition`: Create bill runs by custom filter combining the Account, Subscription, and Rate Plan objects, you must specify the `condition` and `objectType` fields. See <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/bill-runs/automate-billing-document-generation/bill-run-advanced-filter\" target=\"_blank\">Bill Run Advanced Filter</a>.\n","title":"BillRunFilterResponseTypeFilterType"},"BillRunFilterResponseTypeObjectType":{"type":"string","enum":["Account","Subscription","RatePlanCharge"],"description":"The target object type of the condition when the `filterType` field is specified as `FilterCondition`. See <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/bill-runs/automate-billing-document-generation/bill-run-advanced-filter\" target=\"_blank\">Bill Run Advanced Filter</a>.\n","title":"BillRunFilterResponseTypeObjectType"},"BillRunFilterResponseType":{"type":"object","properties":{"accountId":{"type":"string","description":"The target account of the bill run.\n"},"filterType":{"$ref":"#/components/schemas/BillRunFilterResponseTypeFilterType","description":"To create bill runs based on the selected filter type:\n  - `Account`: Create bill runs by account. \n  - `Subscription`: Create bill runs by subscription, you must specify the `subscriptionId` field.\n  - `InvoiceSchedule`: Create a scheduled bill run, you must specify the schedule field. See <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/bill-runs/automate-billing-document-generation/manage-scheduled-bill-runs\" target=\"_blank\">Manage scheduled bill runs</a>.\n  - `FilterCondition`: Create bill runs by custom filter combining the Account, Subscription, and Rate Plan objects, you must specify the `condition` and `objectType` fields. See <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/bill-runs/automate-billing-document-generation/bill-run-advanced-filter\" target=\"_blank\">Bill Run Advanced Filter</a>.\n"},"condition":{"$ref":"#/components/schemas/Condition"},"objectType":{"$ref":"#/components/schemas/BillRunFilterResponseTypeObjectType","description":"The target object type of the condition when the `filterType` field is specified as `FilterCondition`. See <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/bill-runs/automate-billing-document-generation/bill-run-advanced-filter\" target=\"_blank\">Bill Run Advanced Filter</a>.\n"},"subscriptionId":{"type":"string","description":"The target subscripiton ID of the account. \n"}},"title":"BillRunFilterResponseType"},"GetBillRunResponseTypeChargeTypeToExcludeItems":{"type":"string","enum":["OneTime","Recurring","Usage"],"title":"GetBillRunResponseTypeChargeTypeToExcludeItems"},"GetBillRunResponseTypeOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"GetBillRunResponseTypeOrganizationLabelsItems"},"BillRunScheduleResponseTypeRepeatType":{"type":"string","enum":["None","Daily","Weekly","Monthly"],"description":"The repeat type of the bill run.\n","title":"BillRunScheduleResponseTypeRepeatType"},"BillRunScheduleResponseTypeWeeklyOnDayItems":{"type":"string","enum":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"title":"BillRunScheduleResponseTypeWeeklyOnDayItems"},"BillRunScheduleResponseType":{"type":"object","properties":{"repeatFrom":{"type":"string","format":"date","description":"The start date of the scheduled bill run.\n"},"repeatTo":{"type":"string","format":"date","description":"The end date of of the scheduled bill run.\n"},"repeatType":{"$ref":"#/components/schemas/BillRunScheduleResponseTypeRepeatType","description":"The repeat type of the bill run.\n"},"runTime":{"type":"integer","description":"The scheduled run time (hour) of day.\n\n**Values:** 0 - 23\n"},"weeklyOnDay":{"type":"array","items":{"$ref":"#/components/schemas/BillRunScheduleResponseTypeWeeklyOnDayItems"},"description":"The repeat day in a week.\n"},"monthlyOnEndOfMonth":{"type":"boolean","description":"Whether to schedule monthly bill run on the end of month or the specific day of month.\n\n\n**Note**: This field is available only when the `repeatType` field is set to `Monthly` and the `repeatFrom` field is set to the end of month.\n  \nFor example:\n- When repeatFrom = `2024-04-30` and monthlyOnEndOfMonth = `true`, next bill run will be scheduled on `2024-05-31`.\n- When repeatFrom = `2024-04-30` and monthlyOnEndOfMonth = `false`, next bill run will be scheduled on `2024-05-30`.\n"}},"description":"Container for information about the scheduled bill run.\n","title":"BillRunScheduleResponseType"},"GetBillRunResponseTypeStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","Canceled","Posted","PostInProgress","CancelInProgress","RemoveInProgress","Paused"],"description":"The status of the bill run.\n","title":"GetBillRunResponseTypeStatus"},"GetBillRunResponseType":{"type":"object","properties":{"autoEmail":{"type":"boolean","description":"Whether to automatically send emails after Auto-Post is complete.\n"},"autoPost":{"type":"boolean","description":"Whether to automatically post the bill run after the bill run is created.\n"},"autoRenewal":{"type":"boolean","description":"Whether to automatically renew auto-renew subscriptions that are up for renewal.\n"},"batches":{"type":"array","items":{"type":"string"},"description":"The batch of accounts for this bill run, this field can not exist with `billRunFilters` together.\n\n**Values:** `AllBatches` or an array of `Batch`*n* where *n* is a number between 1 and 50, for example, `Batch7`.\n"},"billCycleDay":{"type":"string","description":"The day of the bill cycle, this field is only valid when `batches` is specified.\n\n**Values:** \n- `AllBillCycleDays` or one of numbers 1 - 31 for an ad-hoc bill run\n- `AllBillCycleDays`, one of numbers 1 - 31, or `AsRunDay` for a scheduled bill run\n"},"billRunFilters":{"type":"array","items":{"$ref":"#/components/schemas/BillRunFilterResponseType"},"description":"The target account, subscriptions, invoice schedule, or a combination of objects for this bill run.\nYou can only specify either this field or the `batches` field. \n"},"billRunNumber":{"type":"string","description":"The number of the bill run.\n"},"chargeTypeToExclude":{"type":"array","items":{"$ref":"#/components/schemas/GetBillRunResponseTypeChargeTypeToExcludeItems"},"description":"The types of the charges to be excluded from the generation of billing documents.\n"},"createdById":{"type":"string","description":"The ID of the user who created the bill run.\n"},"createdDate":{"type":"string","description":"The date and time when the bill run was created.\n"},"includeSubscriptions":{"type":"boolean","default":true,"description":"Indicates whether to bill subscriptions in the bill run.\n"},"includeOrderLineItems":{"type":"boolean","default":true,"description":"Indicates whether to bill order line items in the bill run.\n"},"id":{"type":"string","description":"The unqie ID of the bill run.\n"},"invoiceDate":{"type":"string","format":"date","description":"The invoice date for this bill run, only valid for ad-hoc bill runs.\n"},"invoiceDateOffset":{"type":"integer","description":"The offset compared to bill run execution date, only valid for scheduled bill runs.\n"},"invoiceDateMonthOffset":{"type":"integer","description":"The month offset of invoice date for this bill run compared to bill run execution date.\n\n\n**Note**: This field is only valid when the `repeatType` field is set to `Monthly`. When using the `invoiceDateMonthOffset` and `invoiceDateDayOfMonth` fields, do not use the `invoiceDateOffset` field, and vice versa.\n"},"invoiceDateDayOfMonth":{"type":"integer","minimum":1,"maximum":31,"description":"The day of month of invoice date for this bill run. Specify a day of the month. If you specify 31, even though the month doesn't have 31, for example, February or April, the date recurs on the end day of each scheduled month. \n\n\n**Note**: This field is only valid when the `repeatType` field is set to `Monthly`. When using the `invoiceDateMonthOffset` and `invoiceDateDayOfMonth` fields, do not use the `invoiceDateOffset` field, and vice versa. \n"},"name":{"type":"string","description":"The name of the bill run.\n"},"noEmailForZeroAmountInvoice":{"type":"boolean","description":"Whether to suppress emails for invoices with zero total amount generated in this bill run after the bill run is complete. \n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetBillRunResponseTypeOrganizationLabelsItems"},"description":"The organization(s) that the run is created for. \n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"schedule":{"$ref":"#/components/schemas/BillRunScheduleResponseType"},"scheduledExecutionTime":{"type":"string","description":"The scheduled execution time for a bill run.\n"},"status":{"$ref":"#/components/schemas/GetBillRunResponseTypeStatus","description":"The status of the bill run.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for this bill run, only valid for ad-hoc bill runs.\n"},"targetDateOffset":{"type":"integer","description":"The offset compared to bill run execution date, only valid for scheduled bill runs.\n"},"targetDateMonthOffset":{"type":"integer","description":"The month offset of target date for this bill run compared to bill run execution date.\n\n\n**Note**: This field is only valid when the `repeatType` field is set to `Monthly`. When using the `targetDateMonthOffset` and `targetDateDayOfMonth` fields, do not use the `targetDateOffset` field, and vice versa.\n"},"targetDateDayOfMonth":{"type":"integer","minimum":1,"maximum":31,"description":"The day of month of target date for this bill run. Specify a day of the month. If you specify 31, even though the month doesn't have 31, for example, February or April, the date recurs on the end day of each scheduled month. \n\n\n**Note**: This field is only valid when the `repeatType` field is set to `Monthly`. When using the `targetDateMonthOffset` and `targetDateDayOfMonth` fields, do not use the `targetDateOffset` field, and vice versa.\n"},"updatedById":{"type":"string","description":"The ID of the user who last updated the bill run.\n"},"updatedDate":{"type":"string","description":"The date and time when the bill run was last updated.\n"}},"title":"GetBillRunResponseType"},"CancelBillRunResponseTypeChargeTypeToExcludeItems":{"type":"string","enum":["OneTime","Recurring","Usage"],"title":"CancelBillRunResponseTypeChargeTypeToExcludeItems"},"CancelBillRunResponseTypeOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"CancelBillRunResponseTypeOrganizationLabelsItems"},"CancelBillRunResponseTypeStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","Canceled","Posted","PostInProgress","CancelInProgress","RemoveInProgress","Paused"],"description":"The status of the bill run.\n","title":"CancelBillRunResponseTypeStatus"},"NextRunResponseTypeChargeTypeToExcludeItems":{"type":"string","enum":["OneTime","Recurring","Usage"],"title":"NextRunResponseTypeChargeTypeToExcludeItems"},"NextRunResponseTypeStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","Canceled","Posted","PostInProgress","CancelInProgress","RemoveInProgress","Paused"],"description":"The status of the bill run.\n","title":"NextRunResponseTypeStatus"},"NextRunResponseType":{"type":"object","properties":{"autoEmail":{"type":"boolean","description":"Whether to automatically send emails after Auto-Post is complete.\n"},"autoPost":{"type":"boolean","description":"Whether to automatically post the bill run after the bill run is created.\n"},"autoRenewal":{"type":"boolean","description":"Whether to automatically renew auto-renew subscriptions that are up for renewal.\n"},"batches":{"type":"array","items":{"type":"string"},"description":"The batch of accounts for this bill run. \n\n**Values:** `AllBatches` or an array of `Batch`*n* where *n* is one of numbers 1 - 50, for example, `Batch7`.\n"},"billCycleDay":{"type":"string","description":"The day of the bill cycle. This field is only valid if the `batches` field is specified.\n\n**Values:** \n- `AllBillCycleDays` or one of numbers 1 - 31 for an ad-hoc bill run\n- `AllBillCycleDays`, one of numbers 1 - 31, or `AsRunDay` for a scheduled bill run\n"},"billRunFilters":{"type":"array","items":{"$ref":"#/components/schemas/BillRunFilterResponseType"},"description":"The target account or subscriptions for this bill run. \n"},"billRunNumber":{"type":"string","description":"The number of the bill run.\n"},"chargeTypeToExclude":{"type":"array","items":{"$ref":"#/components/schemas/NextRunResponseTypeChargeTypeToExcludeItems"},"description":"The types of the charges to be excluded from the generation of billing documents.\n"},"createdById":{"type":"string","description":"The ID of the user who created the bill run.\n"},"createdDate":{"type":"string","description":"The date and time when the bill run was created.\n"},"id":{"type":"string","description":"The ID of the bill run.\n"},"invoiceDate":{"type":"string","format":"date","description":"The invoice date for this bill run, only valid for ad-hoc bill runs.\n"},"invoiceDateOffset":{"type":"integer","description":"The offset compared to the bill run execution date, only valid for scheduled bill runs.\n"},"noEmailForZeroAmountInvoice":{"type":"boolean","description":"Whether to suppress emails for invoices with zero total amount generated in this bill run after the bill run is complete. \n"},"schedule":{"$ref":"#/components/schemas/BillRunScheduleResponseType"},"scheduledExecutionTime":{"type":"string","description":"The scheduled execution time for the bill run.\n"},"status":{"$ref":"#/components/schemas/NextRunResponseTypeStatus","description":"The status of the bill run.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for this bill run, only valid for ad-hoc bill runs.\n"},"targetDateOffset":{"type":"integer","description":"The offset compared to the bill run execution date, only valid for scheduled bill runs.\n"},"updatedById":{"type":"string","description":"The ID of the user who last updated the bill run.\n"},"updatedDate":{"type":"string","description":"The date and time when the bill run was last updated.\n"}},"description":"Container about information about the next bill run to be executed.\n","title":"NextRunResponseType"},"CancelBillRunResponseType":{"type":"object","properties":{"autoEmail":{"type":"boolean","description":"Whether to automatically send emails after Auto-Post is complete.\n"},"autoPost":{"type":"boolean","description":"Whether to automatically post the bill run after the bill run is created.\n"},"autoRenewal":{"type":"boolean","description":"Whether to automatically renew auto-renew subscriptions that are up for renewal.\n"},"batches":{"type":"array","items":{"type":"string"},"description":"The batch of accounts for this bill run, this field can not exist with `billRunFilters` together.\n\n**Values:** `AllBatches` or an array of `Batch`*n* where *n* is a number between 1 and 50, for example, `Batch7`.\n"},"billCycleDay":{"type":"string","description":"The day of the bill cycle, this field is only valid when `batches` is specified.\n\n**Values:** \n- `AllBillCycleDays` or one of numbers 1 - 31 for an ad-hoc bill run\n- `AllBillCycleDays`, one of numbers 1 - 31, or `AsRunDay` for a scheduled bill run\n"},"billRunFilters":{"type":"array","items":{"$ref":"#/components/schemas/BillRunFilterResponseType"},"description":"The target account, subscriptions, invoice schedule, or a combination of objects for this bill run.\nYou can only specify either this field or the `batches` field. \n"},"billRunNumber":{"type":"string","description":"The number of the bill run.\n"},"chargeTypeToExclude":{"type":"array","items":{"$ref":"#/components/schemas/CancelBillRunResponseTypeChargeTypeToExcludeItems"},"description":"The types of the charges to be excluded from the generation of billing documents.\n"},"createdById":{"type":"string","description":"The ID of the user who created the bill run.\n"},"createdDate":{"type":"string","description":"The date and time when the bill run was created.\n"},"includeSubscriptions":{"type":"boolean","default":true,"description":"Indicates whether to bill subscriptions in the bill run.\n"},"includeOrderLineItems":{"type":"boolean","default":true,"description":"Indicates whether to bill order line items in the bill run.\n"},"id":{"type":"string","description":"The unqie ID of the bill run.\n"},"invoiceDate":{"type":"string","format":"date","description":"The invoice date for this bill run, only valid for ad-hoc bill runs.\n"},"invoiceDateOffset":{"type":"integer","description":"The offset compared to bill run execution date, only valid for scheduled bill runs.\n"},"invoiceDateMonthOffset":{"type":"integer","description":"The month offset of invoice date for this bill run compared to bill run execution date.\n\n\n**Note**: This field is only valid when the `repeatType` field is set to `Monthly`. When using the `invoiceDateMonthOffset` and `invoiceDateDayOfMonth` fields, do not use the `invoiceDateOffset` field, and vice versa.\n"},"invoiceDateDayOfMonth":{"type":"integer","minimum":1,"maximum":31,"description":"The day of month of invoice date for this bill run. Specify a day of the month. If you specify 31, even though the month doesn't have 31, for example, February or April, the date recurs on the end day of each scheduled month. \n\n\n**Note**: This field is only valid when the `repeatType` field is set to `Monthly`. When using the `invoiceDateMonthOffset` and `invoiceDateDayOfMonth` fields, do not use the `invoiceDateOffset` field, and vice versa. \n"},"name":{"type":"string","description":"The name of the bill run.\n"},"noEmailForZeroAmountInvoice":{"type":"boolean","description":"Whether to suppress emails for invoices with zero total amount generated in this bill run after the bill run is complete. \n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/CancelBillRunResponseTypeOrganizationLabelsItems"},"description":"The organization(s) that the run is created for. \n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"schedule":{"$ref":"#/components/schemas/BillRunScheduleResponseType"},"scheduledExecutionTime":{"type":"string","description":"The scheduled execution time for a bill run.\n"},"status":{"$ref":"#/components/schemas/CancelBillRunResponseTypeStatus","description":"The status of the bill run.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for this bill run, only valid for ad-hoc bill runs.\n"},"targetDateOffset":{"type":"integer","description":"The offset compared to bill run execution date, only valid for scheduled bill runs.\n"},"targetDateMonthOffset":{"type":"integer","description":"The month offset of target date for this bill run compared to bill run execution date.\n\n\n**Note**: This field is only valid when the `repeatType` field is set to `Monthly`. When using the `targetDateMonthOffset` and `targetDateDayOfMonth` fields, do not use the `targetDateOffset` field, and vice versa.\n"},"targetDateDayOfMonth":{"type":"integer","minimum":1,"maximum":31,"description":"The day of month of target date for this bill run. Specify a day of the month. If you specify 31, even though the month doesn't have 31, for example, February or April, the date recurs on the end day of each scheduled month. \n\n\n**Note**: This field is only valid when the `repeatType` field is set to `Monthly`. When using the `targetDateMonthOffset` and `targetDateDayOfMonth` fields, do not use the `targetDateOffset` field, and vice versa.\n"},"updatedById":{"type":"string","description":"The ID of the user who last updated the bill run.\n"},"updatedDate":{"type":"string","description":"The date and time when the bill run was last updated.\n"},"nextRun":{"$ref":"#/components/schemas/NextRunResponseType"}},"title":"CancelBillRunResponseType"},"POSTEmailBillingDocfromBillRunType":{"type":"object","properties":{"resend":{"type":"boolean","default":false,"description":"Whether to send out emails for all the billing documents that are associated with the bill run. \n  - If the value is `false`, emails are sent out only for the billing documents that never have emails sent out. **Note**: Do not perform this API operation with the `resend` field set to `false` multiple times in a short period. Otherwise, you may receive the same email multiple times, which contradicts the purpose of this setting.\n  \n  - If the value is `true`, emails are sent out for all the billing documents.\n"}},"title":"POSTEmailBillingDocfromBillRunType"},"PostBillingPreviewRunParamOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"PostBillingPreviewRunParamOrganizationLabelsItems"},"PostBillingPreviewRunParamStorageOption":{"type":"string","enum":["Csv","Database"],"description":"The saving options. The default value is `Csv`.\n\nTo compare the current billing preview run result with a specified billing preview run result and store the difference in the database, you must set the `storageOption` field to `Database`. For more information, see [Billing Preview Run Result data source](https://knowledgecenter.zuora.com/Zuora_Central_Platform/Reporting/D_Data_Sources_and_Exports/C_Data_Source_Reference/Billing_Preview_Run_Result_data_source).\n","title":"PostBillingPreviewRunParamStorageOption"},"BillingPreviewRunFilterItemsFilterType":{"type":"string","enum":["Account"],"description":"The type of filter to apply.\n","title":"BillingPreviewRunFilterItemsFilterType"},"BillingPreviewRunFilterItems":{"type":"object","properties":{"filterType":{"$ref":"#/components/schemas/BillingPreviewRunFilterItemsFilterType","description":"The type of filter to apply.\n"},"accountId":{"type":"string","pattern":"^[0-9a-fA-F]{32}$","description":"The target account ID.\n"}},"required":["filterType","accountId"],"title":"BillingPreviewRunFilterItems"},"BillingPreviewRunFilter":{"type":"array","items":{"$ref":"#/components/schemas/BillingPreviewRunFilterItems"},"description":"A list of filters to apply to the billing preview run. You can specify only one filter. \n","title":"BillingPreviewRunFilter"},"PostBillingPreviewRunParam":{"type":"object","properties":{"assumeRenewal":{"type":"string","description":"Indicates whether to generate a preview of future invoice items and credit memo items with the assumption that the subscriptions are renewed.\n\nSet one of the following values in this field to decide how the assumption is applied in the billing preview.\n\n  * **All:** The assumption is applied to all the subscriptions. Zuora generates preview invoice item data and credit memo item data from the first day of the customer's next billing period to the target date.\n  \n  * **None:** (Default) The assumption is not applied to the subscriptions. Zuora generates preview invoice item data and credit memo item data based on the current term end date and the target date.\n  \n    * If the target date is later than the current term end date, Zuora generates preview invoice item data and credit memo item data from the first day of the customer's next billing period to the current term end date.\n\n    * If the target date is earlier than the current term end date, Zuora generates preview invoice item data and credit memeo item data from the first day of the customer's next billing period to the target date.\n\n  * **Autorenew:** The assumption is applied to the subscriptions that have auto-renew enabled. Zuora generates preview invoice item data and credit memo item data from the first day of the customer's next billing period to the target date.\n\n  \n**Note:** \n  - This field can only be used if the subscription renewal term is not set to 0.  \n  \n  \n  - The credit memo item data is only available if you have Invoice Settlement feature 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"},"batches":{"type":"string","maxLength":1000,"description":"The customer batches to include in the billing preview run. You can specify multiple batches separated by comma. If not specified, all customer batches are included.\n\n**Note**: \n  - By default, you have 50 configurable account batches. To increase the limit to 200 batches, you must have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Performance_Booster_Elite\" target=\"_blank\">Performance Booster Elite</a> package.\n  - This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `314.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"chargeTypeToExclude":{"type":"string","description":"The charge types to exclude from the forecast run.\n\n**Possible values:** OneTime, Recurring, Usage, and any comma-separated combination of these values.\n"},"includingDraftItems":{"type":"boolean","description":"Whether draft document items are included in the billing preview run. By default, draft document items are not included.\n\nThis field loads draft invoice items and credit memo items. The `chargeTypeToExclude`, `targetDate`, `includingEvergreenSubscription`, and `assumeRenewal` fields do not affect the behavior of the `includingDraftItems` field.\n"},"includingEvergreenSubscription":{"type":"boolean","description":"Whether evergreen subscriptions are included in the billing preview run. By default, evergreen subscriptions are not included.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/PostBillingPreviewRunParamOrganizationLabelsItems"},"description":"The organization(s) that this billing preview run is created for. \n\nFor each item in the array, either the `organizationId` or the `organizationName` field is required.\n\nThis field is only required when you have already turned on Multi-Org feature.\n"},"storageOption":{"$ref":"#/components/schemas/PostBillingPreviewRunParamStorageOption","description":"The saving options. The default value is `Csv`.\n\nTo compare the current billing preview run result with a specified billing preview run result and store the difference in the database, you must set the `storageOption` field to `Database`. For more information, see [Billing Preview Run Result data source](https://knowledgecenter.zuora.com/Zuora_Central_Platform/Reporting/D_Data_Sources_and_Exports/C_Data_Source_Reference/Billing_Preview_Run_Result_data_source).\n"},"storeDifference":{"type":"boolean","description":"Specify this field to `yes` to compare the current billing preview run result with a specified billing preview run result and store the difference in the database. You can view the difference in the Billing Preview Run Result Difference data source. **Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\nThe default value is `false`.\n"},"comparedBillingPreviewRunId":{"type":"string","description":"Specify an existing billing preview run result to compare the current billing preview result with. You can view the difference in the Billing Preview Run Result Difference data source. **Note**: This feature is in the **Early Adopter** phase. If you want to use the feature, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for the billing preview run. The billing preview run generates preview invoice item data and credit memo item data from the first day of the customer's next billing period to the target date. \n\nThe value for the `targetDate` field must be in _`YYYY-MM-DD`_ format.\n\nIf the target date is later than the subscription current term end date, the preview invoice item data and credit memo item data is generated from the first day of the customer's next billing period to the current term end date. If you want to generate preview invoice item data and credit memo item data past the end of the subscription current term, specify the AssumeRenewal field in the request.\n\n**Note:** The credit memo item data is only available if you have Invoice Settlement feature 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"},"filters":{"$ref":"#/components/schemas/BillingPreviewRunFilter"}},"required":["targetDate"],"title":"PostBillingPreviewRunParam"},"Billing_Preview_Run_POST_BillingPreviewRun_Response_200":{"type":"object","properties":{"billingPreviewRunId":{"type":"string","description":"Id of the billing preview run.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"Billing Preview Run_POST_BillingPreviewRun_Response_200"},"GetBillingPreviewRunResponseOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"GetBillingPreviewRunResponseOrganizationLabelsItems"},"GetBillingPreviewRunResponseStorageOption":{"type":"string","enum":["Csv","Database"],"description":"The saving options. The default value is `Csv`.    \n","title":"GetBillingPreviewRunResponseStorageOption"},"GetBillingPreviewRunResponse":{"type":"object","properties":{"assumeRenewal":{"type":"string"},"batches":{"type":"string","description":"The customer batches included in the billing preview run. \n\n**Note**: This field is available only if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `314.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"chargeTypeToExclude":{"type":"string","description":"The charge types excluded from the forecast run.\n"},"createdById":{"type":"string","description":"The ID of the user who created the billing preview run.\n"},"createdDate":{"type":"string","description":"The date and time when the billing preview run was created.\n"},"endDate":{"type":"string","description":"The date and time when the billing preview run completes.\n"},"errorMessage":{"type":"string","description":"The error message generated by a failed billing preview run.\n"},"includingDraftItems":{"type":"boolean","description":"Whether draft document items are included in the billing preview run. By default, draft document items are not included.\n"},"includingEvergreenSubscription":{"type":"boolean","description":"Indicates if evergreen subscriptions are included in the billing preview run.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetBillingPreviewRunResponseOrganizationLabelsItems"},"description":"The organization(s) that the object belongs to. \n\nNote: This field is available only when the Multi-Org feature is enabled.            \n"},"resultFileUrl":{"type":"string","description":"The URL of the zipped CSV result file generated by the billing preview run. This file contains the preview invoice item data and credit memo item data for the specified customers.\n\nIf the value of `storageOption` field is `Database`, the returned `resultFileUrl` field is null.\n\n**Note:** The credit memo item data is only available if you have Invoice Settlement feature 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"},"runNumber":{"type":"string","description":"The run number of the billing preview run.\n"},"startDate":{"type":"string","format":"datetime","description":"The date and time when the billing preview run starts.\n"},"status":{"type":"string","description":"The status of the >billing preview run.\n\n**Possible values:** \n\n* 0: Pending\n* 1: Processing\n* 2: Completed\n* 3: Error\n* 4: Canceled\n"},"storageOption":{"$ref":"#/components/schemas/GetBillingPreviewRunResponseStorageOption","description":"The saving options. The default value is `Csv`.    \n"},"succeededAccounts":{"type":"integer","description":"The number of accounts for which preview invoice item data and credit memo item data was successfully generated during the billing preview run.\n\n**Note:** The credit memo item data is only available if you have Invoice Settlement feature 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"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"targetDate":{"type":"string","format":"date","description":"The target date for the billing preview run.          \n"},"totalAccounts":{"type":"integer","description":"The total number of accounts in the billing preview run.\n"},"updatedById":{"type":"string","description":"The ID of the user who last updated the billing preview run.\n"},"updatedDate":{"type":"string","description":"The date and time when the billing preview run was last updated.\n"}},"description":"get billingPreviewRun response","title":"GetBillingPreviewRunResponse"},"PostPaymentMethodResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"Error code.\n"},"message":{"type":"string","description":"Error message.\n"}},"description":"Error information. Only applicable if the payment method was not created.\n","title":"PostPaymentMethodResponseReasonsItems"},"POSTPaymentMethodResponse":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PostPaymentMethodResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"id":{"type":"string","description":"Internal ID of the payment method that was created.\n"}},"title":"POSTPaymentMethodResponse"},"CreateApplePayPaymentMethodCardholderInfo":{"type":"object","properties":{"addressLine1":{"type":"string","maxLength":255,"description":"The first address line.\n"},"addressLine2":{"type":"string","maxLength":255,"description":"The second address line.\n"},"cardHolderName":{"type":"string","maxLength":50,"description":"The cardholder's full name as it appears on the card.\n\nThe cardholder name information is required for credit card validation. \nZuora retrieves the cardholder name using the following priority:\n  1. This `cardHolderName` field if available.\n  2. The cardholder name in the `paymentToken` field if available. \n  3. The full bill-to-contact name of the customer account.\n\nIt is strongly recommended to provide the cardholder name through this field.\n"},"city":{"type":"string","maxLength":40,"description":"The city.\n\nIt is recommended to provide the city and country information when\ncreating a payment method. The information will be used to process\npayments. If the information is not provided during payment method\ncreation, the city and country data will be missing during payment\nprocessing.\n"},"country":{"type":"string","description":"The country, which must be a valid country name or abbreviation.\n\nIt is recommended to provide the city and country information when\ncreating a payment method. The information will be used to process\npayments. If the information is not provided during payment method\ncreation, the city and country data will be missing during payment\nprocessing.\n"},"email":{"type":"string","maxLength":80,"description":"The cardholder's email address.\n"},"phone":{"type":"string","maxLength":40,"description":"The phone number.\n"},"state":{"type":"string","description":"The state, which must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>.\n"},"zipCode":{"type":"string","maxLength":20,"description":"The zip code.\n"}},"description":"The container for the cardholder information.\n\nThe cardholder name is required for credit card validation. It is strongly recommended to specify the nested `cardHolderName` field in this container. For more information, see `cardHolderName`.\n\nThe required cardholder address fields vary by gateway. It is strongly recommended to review the gateway's documentation for the most accurate and up-to-date information.\n","title":"CreateApplePayPaymentMethodCardholderInfo"},"PostPaymentMethodDecryptionMitConsentAgreementSrc":{"type":"string","enum":["External"],"description":"This field is only available for the following gateway integrations to create stored credential profiles within payment methods:\n  - Chase Paymentech Orbital Gateway\n  - CyberSource Payment API v2.0\n  - Stripe v2\n  - Vantiv (Now Worldpay)\n  - Worldpay 1.4\n\nSpecify how the consent agreement has been established with the customer. The allowed value is `External`. It is required if the `mitProfileAction` field is specified. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.\n","title":"PostPaymentMethodDecryptionMitConsentAgreementSrc"},"PostPaymentMethodDecryptionMitProfileAction":{"type":"string","enum":["Activate","Persist"],"description":"This field is only available for the following gateway integrations to create stored credential profiles within payment methods:\n  - Chase Paymentech Orbital Gateway\n  - CyberSource Payment API v2.0\n  - Stripe v2\n  - Vantiv (Now Worldpay)\n  - Worldpay 1.4\n\nSpecify either of the following values in this field:\n    \n  - `Activate` - Use this value if you are creating the stored credential profile after receiving the customer's consent.\n    \n    Zuora will create the stored credential profile then send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile. If the CIT succeeds, the status of the stored credential profile will be `Active`. If the CIT does not succeed, Zuora will not create a stored credential profile.\n      \n    If the payment gateway does not support the stored credential transaction framework, the status of the stored credential profile will be `Agreed`.\n    \n  - `Persist` - Use this value if the stored credential profile represents a stored credential profile in an external system. The status of the payment method's stored credential profile will be `Active`.\n\n  If you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Activate` set to this field.\n    \n","title":"PostPaymentMethodDecryptionMitProfileAction"},"PostPaymentMethodDecryptionMitProfileType":{"type":"string","enum":["Recurring","Unscheduled"],"description":"This field is only available for the following gateway integrations to create stored credential profiles within payment methods:\n  - Chase Paymentech Orbital Gateway\n  - CyberSource Payment API v2.0\n  - Stripe v2\n  - Vantiv (Now Worldpay)\n  - Worldpay 1.4\n\nThis field indicates the type of the stored credential profile to process recurring or unsecheduled transactions. It is required if the `mitProfileAction` field is specified. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Recurring` set to this field.\n    \n","title":"PostPaymentMethodDecryptionMitProfileType"},"PostPaymentMethodDecryptionPaymentToken":{"type":"object","properties":{},"description":"The payload with the Apple Pay token or payment data.\n","title":"PostPaymentMethodDecryptionPaymentToken"},"POSTPaymentMethodDecryption":{"type":"object","properties":{"accountID":{"type":"string","description":"The ID of the customer account associated with this payment method.\nTo create an orphan payment method that is not associated with any customer account, you can skip this field.  As soon as the account information is available, associate the payment method with an account through the [Update a payment method](https://developer.zuora.com/v1-api-reference/api/operation/PUT_PaymentMethod/)  operation."},"cardHolderInfo":{"$ref":"#/components/schemas/CreateApplePayPaymentMethodCardholderInfo"},"integrationType":{"type":"string","description":"Field to identify the token decryption type.\n\n**Note:** The only value at this time is `ApplePay`.\n"},"invoiceId":{"type":"string","description":"The id of invoice this payment will apply to.\n\n**Note:** When `processPayment` is `true`, this field is required.\nOnly one invoice can be paid; for scenarios where you want to pay for multiple invoices, set `processPayment` to `false` and call payment API separately.\n"},"merchantID":{"type":"string","description":"The Merchant ID that was configured for use with Apple Pay in the Apple iOS Developer Center.\n"},"mitConsentAgreementSrc":{"$ref":"#/components/schemas/PostPaymentMethodDecryptionMitConsentAgreementSrc","description":"This field is only available for the following gateway integrations to create stored credential profiles within payment methods:\n  - Chase Paymentech Orbital Gateway\n  - CyberSource Payment API v2.0\n  - Stripe v2\n  - Vantiv (Now Worldpay)\n  - Worldpay 1.4\n\nSpecify how the consent agreement has been established with the customer. The allowed value is `External`. It is required if the `mitProfileAction` field is specified. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.\n"},"mitProfileAction":{"$ref":"#/components/schemas/PostPaymentMethodDecryptionMitProfileAction","description":"This field is only available for the following gateway integrations to create stored credential profiles within payment methods:\n  - Chase Paymentech Orbital Gateway\n  - CyberSource Payment API v2.0\n  - Stripe v2\n  - Vantiv (Now Worldpay)\n  - Worldpay 1.4\n\nSpecify either of the following values in this field:\n    \n  - `Activate` - Use this value if you are creating the stored credential profile after receiving the customer's consent.\n    \n    Zuora will create the stored credential profile then send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile. If the CIT succeeds, the status of the stored credential profile will be `Active`. If the CIT does not succeed, Zuora will not create a stored credential profile.\n      \n    If the payment gateway does not support the stored credential transaction framework, the status of the stored credential profile will be `Agreed`.\n    \n  - `Persist` - Use this value if the stored credential profile represents a stored credential profile in an external system. The status of the payment method's stored credential profile will be `Active`.\n\n  If you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Activate` set to this field.\n    \n"},"mitProfileType":{"$ref":"#/components/schemas/PostPaymentMethodDecryptionMitProfileType","description":"This field is only available for the following gateway integrations to create stored credential profiles within payment methods:\n  - Chase Paymentech Orbital Gateway\n  - CyberSource Payment API v2.0\n  - Stripe v2\n  - Vantiv (Now Worldpay)\n  - Worldpay 1.4\n\nThis field indicates the type of the stored credential profile to process recurring or unsecheduled transactions. It is required if the `mitProfileAction` field is specified. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Recurring` set to this field.\n    \n"},"paymentGateway":{"type":"string","description":"The label name of the gateway instance configured in Zuora that will be used for \npayment method validation and payment processing.\n  - When `processPayment` is `true`, this `paymentGateway` field is required.\n  - When `processPayment` is `false`  or is not provided, the specified gateway instance will be used for \n  payment method validation.\n\nSpecify a valid gateway instance and it must support the Apple Pay payment method. \nIf not specified, the default gateway of your Zuora customer account will be used.\n"},"paymentToken":{"$ref":"#/components/schemas/PostPaymentMethodDecryptionPaymentToken","description":"The payload with the Apple Pay token or payment data.\n"},"processPayment":{"type":"boolean","description":"A boolean flag to control whether a payment should be processed after\ncreating payment method. The payment amount will be equivalent to the\namount the merchant supplied in the ApplePay session. Default is false.\n\n\nIf this field is set to `true`, you must specify the `paymentGateway`\nfield with the payment gateway instance name.\n\n\nIf this field is set to `false`:\n  - You must select the **Verify new credit card** check box on the gateway instance settings page. Otherwise, the cryptogram will not be sent to the gateway.\n  - A separate subscribe or payment API call is required after this payment method creation call.\n"}},"required":["integrationType","merchantID","paymentToken"],"title":"POSTPaymentMethodDecryption"},"POSTPaymentMethodResponseDecryption":{"type":"object","properties":{"amount":{"type":"string","description":"The payment amount contained within the encrypted token.\n"},"paymentId":{"type":"string","description":"The ID of newly processed payment,\n"},"paymentMethodId":{"type":"string","description":"ID of the newly-created payment method.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"POSTPaymentMethodResponseDecryption"},"GETPMAccountHolderInfo":{"type":"object","properties":{"accountHolderName":{"type":"string","description":"The full name of the account holder.\n"},"addressLine1":{"type":"string","description":"The first line of the address for the account holder.\n"},"addressLine2":{"type":"string","description":"The second line of the address for the account holder. \n"},"city":{"type":"string","description":"The city where the account holder stays.\n"},"country":{"type":"string","description":"The country where the account holder stays.\n\nWhen creating a payment method through a translated UI or Payment Page, a country name in a translated language might be selected. Regardless of the country texts selected when creating the payment method, only the supported country name returns in this field. For a complete list of supported country names, 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>. Internationalization is not supported for the API field value.\n"},"email":{"type":"string","description":"The email address of the account holder.\n"},"phone":{"type":"string","description":"The phone number of the account holder.\n"},"state":{"type":"string","description":"The state where the account holder stays.\n"},"zipCode":{"type":"string","description":"The zip code for the address of the account holder.\n"}},"description":"The account holder information.\n","title":"GETPMAccountHolderInfo"},"GetPaymentMethodResponseAccountVerificationStatus":{"type":"string","enum":["Active","Expired","Expiring","Inactive"],"description":"Displays the status of the account.\n**Note:** \n- `Active` - Access token is active. \n- `Expired` - Access token has expired and must be linked again. \n- `Expiring` - Access token will expire in few days(7 days for Plaid) and must be linked again\n- `Inactive` - The end customer has revoked the account permission. The end customer can login again and select the same method for the access token to be linked again.\n","title":"GetPaymentMethodResponseAccountVerificationStatus"},"GetPaymentMethodResponseExistingMandate":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is an existing mandate.\n","title":"GetPaymentMethodResponseExistingMandate"},"PostpmMandateInfoExistingMandateStatus":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is an existing mandate.\n","title":"PostpmMandateInfoExistingMandateStatus"},"PostpmMandateInfoMandateReceivedStatus":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is received from the gateway\n","title":"PostpmMandateInfoMandateReceivedStatus"},"PostpmMandateInfoMitConsentAgreementSrc":{"type":"string","enum":["External"],"description":"Required if you set the `mitProfileAction` field. Specifies how the consent agreement has been established with the customer. The allowed value is `External`. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.\n","title":"PostpmMandateInfoMitConsentAgreementSrc"},"PostpmMandateInfoMitProfileAction":{"type":"string","enum":["Activate","Persist"],"description":"Specifies how Zuora creates and activates the stored credential profile. Only applicable if you set the `status` field to `Active`.\n\n- `Activate` (default) - Use this value if you are creating the stored credential profile after receiving the customer's consent.\n\n  Zuora will create the stored credential profile then send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile. If the CIT succeeds, the status of the stored credential profile will be `Active`. If the CIT does not succeed, Zuora will not create a stored credential profile.\n  \n  If the payment gateway does not support the stored credential transaction framework, the status of the stored credential profile will be `Agreed`.\n\n\n- `Persist` - Use this value if the stored credential profile represents a stored credential profile in an external system. The status of the payment method's stored credential profile will be `Active`.\n\nIf you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Activate` set to this field.\n","title":"PostpmMandateInfoMitProfileAction"},"POSTPMMandateInfo":{"type":"object","properties":{"existingMandateStatus":{"$ref":"#/components/schemas/PostpmMandateInfoExistingMandateStatus","description":"Indicates whether the mandate is an existing mandate.\n"},"mandateCreationDate":{"type":"string","format":"date","description":"The date on which the mandate was created.\n"},"mandateId":{"type":"string","description":"The mandate ID.\n"},"mandateReason":{"type":"string","description":"The reason of the mandate from the gateway side.\n"},"mandateReceivedStatus":{"$ref":"#/components/schemas/PostpmMandateInfoMandateReceivedStatus","description":"Indicates whether the mandate is received from the gateway\n"},"mandateStatus":{"type":"string","description":"The status of the mandate from the gateway side.\n"},"mandateUpdateDate":{"type":"string","format":"date","description":"The date on which the mandate was updated.\n"},"mitConsentAgreementRef":{"type":"string","description":"Reference for the consent agreement that you have established with the customer.  \n"},"mitConsentAgreementSrc":{"$ref":"#/components/schemas/PostpmMandateInfoMitConsentAgreementSrc","description":"Required if you set the `mitProfileAction` field. Specifies how the consent agreement has been established with the customer. The allowed value is `External`. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `External` set to this field.\n"},"mitProfileAction":{"$ref":"#/components/schemas/PostpmMandateInfoMitProfileAction","description":"Specifies how Zuora creates and activates the stored credential profile. Only applicable if you set the `status` field to `Active`.\n\n- `Activate` (default) - Use this value if you are creating the stored credential profile after receiving the customer's consent.\n\n  Zuora will create the stored credential profile then send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile. If the CIT succeeds, the status of the stored credential profile will be `Active`. If the CIT does not succeed, Zuora will not create a stored credential profile.\n  \n  If the payment gateway does not support the stored credential transaction framework, the status of the stored credential profile will be `Agreed`.\n\n\n- `Persist` - Use this value if the stored credential profile represents a stored credential profile in an external system. The status of the payment method's stored credential profile will be `Active`.\n\nIf you do not specify this field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Activate` set to this field.\n"},"mitProfileAgreedOn":{"type":"string","format":"date","description":"The date on which the stored credential profile is agreed. The date format is `yyyy-mm-dd`.\n"},"mitProfileType":{"type":"string","description":"Indicates the type of the stored credential profile. If you do not specify the `mitProfileAction` field, Zuora will automatically create a stored credential profile for the payment method, with the default value `Recurring` set to this field.\n"},"mitTransactionId":{"type":"string","maxLength":128,"description":"Specifies the ID of the transaction. Only applicable if you set the `mitProfileAction` field to `Persist`.\n"}},"description":"The mandate information for the Credit Card, Apple Pay, Google Pay, Credit Card Reference Transaction, ACH, or Bank Transfer payment method.\n\nThe following mandate fields are common to all supported payment methods:\n* `mandateId`\n* `mandateReason`\n* `mandateStatus`\n\nThe following mandate fields are specific to the ACH and Bank Transfer payment methods:\n* `mandateReceivedStatus`\n* `existingMandateStatus`\n* `mandateCreationDate`\n* `mandateUpdateDate`\n\nThe following mandate fields are specific to the Credit Card, Apple Pay, and Google Pay payment methods:\n* `mitTransactionId`\n* `mitProfileAgreedOn`\n* `mitConsentAgreementRef`\n* `mitConsentAgreementSrc`\n* `mitProfileType`\n* `mitProfileAction`\n","title":"POSTPMMandateInfo"},"GetPaymentMethodResponseStatus":{"type":"string","enum":["Active","Closed","Scrubbed"],"description":"The status of the payment method.\n","title":"GetPaymentMethodResponseStatus"},"GetPaymentMethodResponseType":{"type":"string","enum":["CreditCard","CreditCardReferenceTransaction","ACH","SEPA","Betalingsservice","Autogiro","Bacs","Becs","Becsnz","PAD","PayPalCP","PayPalEC","PayPalNativeEC","PayPalAdaptive","AdyenApplePay","AdyenGooglePay","GooglePay"],"description":"The type of the payment method.\n","title":"GetPaymentMethodResponseType"},"GetPaymentMethodResponseCardBinInfoCardClass":{"type":"string","enum":["ChargeCard","Credit","Debit","DeferredDebit","Prepaid"],"description":"The type of the card.\n","title":"GetPaymentMethodResponseCardBinInfoCardClass"},"GetPaymentMethodResponseCardBinInfoProductType":{"type":"string","enum":["Commercial_or_Corporate_Card","Consumer_Card"],"description":"The product type of the card.\n","title":"GetPaymentMethodResponseCardBinInfoProductType"},"GetPaymentMethodResponseCardBinInfo":{"type":"object","properties":{"brand":{"type":"string","description":"The card brand, such as `Visa` and `MasterCard`.\n"},"cardClass":{"$ref":"#/components/schemas/GetPaymentMethodResponseCardBinInfoCardClass","description":"The type of the card.\n"},"productType":{"$ref":"#/components/schemas/GetPaymentMethodResponseCardBinInfoProductType","description":"The product type of the card.\n"},"issuer":{"type":"string","description":"The issuer bank of the card, such as `JPMORGAN CHASE BANK N.A.`.\n"},"issuingCountryCode":{"type":"string","description":"The issuing country code of the card, such as `US`.\n"}},"description":"The BIN information of a card payment method.\n","title":"GetPaymentMethodResponseCardBinInfo"},"GetPaymentMethodResponseBankAccountType":{"type":"string","enum":["BusinessChecking","Checking","Saving"],"description":"The type of bank account associated with the ACH payment. This field is only required if the `type` field is set to `ACH`.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, `Checking` preferably.\n","title":"GetPaymentMethodResponseBankAccountType"},"GETPaymentMethodResponse":{"type":"object","properties":{"accountHolderInfo":{"$ref":"#/components/schemas/GETPMAccountHolderInfo"},"accountVerificationService":{"type":"string","description":"Displays the name of the service provider. For example, Plaid.\n"},"accountVerificationStatus":{"$ref":"#/components/schemas/GetPaymentMethodResponseAccountVerificationStatus","description":"Displays the status of the account.\n**Note:** \n- `Active` - Access token is active. \n- `Expired` - Access token has expired and must be linked again. \n- `Expiring` - Access token will expire in few days(7 days for Plaid) and must be linked again\n- `Inactive` - The end customer has revoked the account permission. The end customer can login again and select the same method for the access token to be linked again.\n"},"bankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the payment method's number, such as the credit card number or account number. Banks use this number to identify a payment method.\n"},"createdBy":{"type":"string","description":"ID of the user who created this payment method."},"createdOn":{"type":"string","format":"date-time","description":"The date and time when the payment method was created, in `yyyy-mm-dd hh:mm:ss` format.\n"},"creditCardMaskNumber":{"type":"string","description":"The masked credit card number, such as:\n```\n*********1112\n```\n"},"creditCardType":{"type":"string","description":"The type of the credit card or debit card.\n\nPossible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).\n\n**Note:** This field is only returned for the Credit Card and Debit Card payment types.\n"},"deviceSessionId":{"type":"string","description":"The session ID of the user when the `PaymentMethod` was created or updated.\n"},"existingMandate":{"$ref":"#/components/schemas/GetPaymentMethodResponseExistingMandate","description":"Indicates whether the mandate is an existing mandate.\n"},"id":{"type":"string","description":"The payment method ID.\n"},"ipAddress":{"type":"string","description":"The IP address of the user when the payment method was created or updated.\n"},"isDefault":{"type":"boolean","description":"Indicates whether this payment method is the default payment method for the account.\n"},"lastFailedSaleTransactionDate":{"type":"string","description":"The date of the last failed attempt to collect payment with this payment method.\n"},"lastTransaction":{"type":"string","description":"Indicates the occurrence and status of the last transaction."},"lastTransactionTime":{"type":"string","format":"date-time","description":"The time when the last transaction of this payment method happened."},"mandateInfo":{"$ref":"#/components/schemas/POSTPMMandateInfo"},"maxConsecutivePaymentFailures":{"type":"integer","description":"The number of allowable consecutive failures Zuora attempts with the payment method before stopping.\n"},"numConsecutiveFailures":{"type":"integer","description":"The number of consecutive failed payments for this payment method. It is reset to `0` upon successful payment. \n"},"paymentRetryWindow":{"type":"integer","description":"The retry interval setting, which prevents making a payment attempt if the last failed attempt was within the last specified number of hours.\n"},"secondTokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data.\n\n**Note:** This field is only returned for the Credit Card Reference Transaction payment type.\n"},"status":{"$ref":"#/components/schemas/GetPaymentMethodResponseStatus","description":"The status of the payment method.\n"},"tokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data or represents a gateway's unique customer profile.\n\n**Note:** This field is only returned for the Credit Card Reference Transaction payment type.\n"},"totalNumberOfErrorPayments":{"type":"integer","description":"The number of error payments that used this payment method.\n"},"totalNumberOfProcessedPayments":{"type":"integer","description":"The number of successful payments that used this payment method.\n"},"type":{"$ref":"#/components/schemas/GetPaymentMethodResponseType","description":"The type of the payment method.\n"},"updatedBy":{"type":"string","description":"ID of the user who made the last update to this payment method."},"updatedOn":{"type":"string","format":"date-time","description":"The last date and time when the payment method was updated, in `yyyy-mm-dd hh:mm:ss` format.\n"},"useDefaultRetryRule":{"type":"boolean","description":"Indicates whether this payment method uses the default retry rules configured in the Zuora Payments settings.\n"},"cardBinInfo":{"$ref":"#/components/schemas/GetPaymentMethodResponseCardBinInfo","description":"The BIN information of a card payment method.\n"},"IBAN":{"type":"string","description":"The International Bank Account Number used to create the SEPA payment method. The value is masked.\n"},"accountNumber":{"type":"string","description":"The number of the customer's bank account and it is masked.\n"},"bankCode":{"type":"string","description":"The sort code or number that identifies the bank. This is also known as the sort code.         \n"},"bankTransferType":{"type":"string","description":"The type of the Bank Transfer payment method. For example, `SEPA`.\n"},"branchCode":{"type":"string","description":"The branch code of the bank used for Direct Debit.          \n"},"businessIdentificationCode":{"type":"string","description":"The BIC code used for SEPA. The value is masked.       \n"},"identityNumber":{"type":"string","description":"The identity number of the account holder or the cardholder.\n"},"bankABACode":{"type":"string","description":"The nine-digit routing number or ABA number used by banks. This field is only required if the `type` field is set to `ACH`.\n"},"bankAccountName":{"type":"string","description":"The name of the account holder, which can be either a person or a company. This field is only required if the `type` field is set to `ACH`.\n"},"bankAccountNumber":{"type":"string","description":"The bank account number associated with the ACH payment. This field is only required if the `type` field is set to `ACH`.\n"},"bankAccountType":{"$ref":"#/components/schemas/GetPaymentMethodResponseBankAccountType","description":"The type of bank account associated with the ACH payment. This field is only required if the `type` field is set to `ACH`.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, `Checking` preferably.\n"},"bankName":{"type":"string","description":"The name of the bank where the ACH payment account is held. This field is only required if the `type` field is set to `ACH`.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify a dummy value.\n"},"cardNumber":{"type":"string","description":"The masked credit card number.\n\nWhen `cardNumber` is `null`, the following fields will not be returned:\n  - `expirationMonth`\n  - `expirationYear`\n  - `accountHolderInfo`\n"},"expirationMonth":{"type":"integer","description":"One or two digits expiration month (1-12).\n        \n"},"expirationYear":{"type":"integer","description":"Four-digit expiration year.\n"},"securityCode":{"type":"string","description":"The CVV or CVV2 security code for the credit card or debit card.\n            Only required if changing expirationMonth, expirationYear, or cardHolderName.\n            To ensure PCI compliance, this value isn''t stored and can''t be queried.                  \n"},"BAID":{"type":"string","description":"ID of a PayPal billing agreement. For example, I-1TJ3GAGG82Y9.\n"},"email":{"type":"string","description":"Email address associated with the PayPal payment method. \n"},"preapprovalKey":{"type":"string","description":"The PayPal preapproval key.\n"},"googleBIN":{"type":"string","description":"This field is only available for Google Pay payment methods.\n"},"googleCardNumber":{"type":"string","description":"This field is only available for Google Pay payment methods.\n"},"googleCardType":{"type":"string","description":"This field is only available for Google Pay payment methods.\n\nFor Google Pay payment methods on Adyen, the first 100 characters of [paymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant) returned from Adyen are stored in this field.\n"},"googleExpiryDate":{"type":"string","description":"This field is only available for Google Pay payment methods.\n"},"googleGatewayToken":{"type":"string","description":"This field is only available for Google Pay payment methods.\n"},"appleBIN":{"type":"string","description":"This field is only available for Apple Pay payment methods.\n"},"appleCardNumber":{"type":"string","description":"This field is only available for Apple Pay payment methods.\n"},"appleCardType":{"type":"string","description":"This field is only available for Apple Pay payment methods.\n\nFor Apple Pay payment methods on Adyen, the first 100 characters of [paymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant) returned from Adyen are stored in this field.\n"},"appleExpiryDate":{"type":"string","description":"This field is only available for Apple Pay payment methods.\n"},"appleGatewayToken":{"type":"string","description":"This field is only available for Apple Pay payment methods.\n"}},"description":"Container for custom fields of a payment method object.\n","title":"GETPaymentMethodResponse"},"PUTPMAccountHolderInfo":{"type":"object","properties":{"addressLine1":{"type":"string","description":"The first line of the address for the account holder.\n\nThis field is required for SEPA Direct Debit payment methods on Stripe v2 for [certain countries](https://stripe.com/docs/payments/sepa-debit/set-up-payment?platform=web#web-submit-payment-method).\n"},"addressLine2":{"type":"string","description":"The second line of the address for the account holder. \n"},"city":{"type":"string","description":"The city where the account holder stays.\n"},"country":{"type":"string","description":"The country where the account holder stays.\n\nThis field is required for SEPA payment methods on Stripe v2 for [certain countries](https://stripe.com/docs/payments/sepa-debit/set-up-payment?platform=web#web-submit-payment-method).\n"},"email":{"type":"string","description":"The email address of the account holder.\n"},"phone":{"type":"string","description":"The phone number of the account holder.\n"},"state":{"type":"string","description":"The state where the account holder stays.\n"},"zipCode":{"type":"string","description":"The zip code for the address of the account holder.\n"}},"description":"The account holder information. This field is not supported in updating Credit Card Reference Transaction payment methods.\n","title":"PUTPMAccountHolderInfo"},"PutPaymentMethodRequestGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n\nThis field is not supported in updating Credit Card Reference Transaction payment methods.\n","title":"PutPaymentMethodRequestGatewayOptions"},"PutPaymentMethodRequestMandateInfo":{"type":"object","properties":{"mandateId":{"type":"string","maxLength":36,"description":"The mandate ID.\n"},"mandateReason":{"type":"string","maxLength":64,"description":"The reason of the mandate from the gateway side.\n"},"mandateStatus":{"type":"string","maxLength":64,"description":"The status of the mandate from the gateway side.\n"}},"description":"The mandate information for the Credit Card, Credit Card Reference Transaction, ACH, or Bank Transfer payment method.\n","title":"PutPaymentMethodRequestMandateInfo"},"PutPaymentMethodRequestProcessingOptions":{"type":"object","properties":{"checkDuplicated":{"type":"boolean","description":"Indicates whether to perform a duplication check when you create a payment method of the following types:\n  - Credit Card\n  - ACH\n  - Bank Transfer\n\nThe default value is `false`.\n\nWith this field set to `true`, Zuora will check the active and closed payment methods associated with the same billing account to ensure that no duplicate payment methods are created. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/D1_Duplication_check_on_payment_methods\" target=\"_blank\">Duplication check on payment methods</a>.\n"}},"description":"The container for payment method processing options.\n","title":"PutPaymentMethodRequestProcessingOptions"},"PUTPaymentMethodRequest":{"type":"object","properties":{"accountHolderInfo":{"$ref":"#/components/schemas/PUTPMAccountHolderInfo"},"accountKey":{"type":"string","description":"The customer account ID such as `2x92c0f859b0480f0159d3a4a6ee5bb6` or the customer account number such as `A02855638`.\n\n**Note:** You can use this field to associate an orphan payment method with a customer account. If a payment method is already associated with a customer account, you cannot change the associated payment method through this operation. You cannot remove the previous account ID and leave this field empty, either.\n"},"authGateway":{"type":"string","description":"Specifies the ID of the payment gateway that Zuora will use to authorize the payments that are made with the payment method. \nThis field is not supported in updating Credit Card Reference Transaction payment methods.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  -  If this field is specified, the specified gateway will be used to update the payment.\n\nIf Payment Gateway Routing is disabled:\n  -  If this field is not specified, the default payment gateway will be used to update the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  -  If this field is specified, the specified gateway will be used to update the payment.\n"},"currencyCode":{"type":"string","description":"The currency used for payment method authorization.\n"},"gatewayOptions":{"$ref":"#/components/schemas/PutPaymentMethodRequestGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n\nThis field is not supported in updating Credit Card Reference Transaction payment methods.\n"},"ipAddress":{"type":"string","description":"The IPv4 or IPv6 information of the user when the payment method is created or updated. Some gateways use this field for fraud prevention. If this field is passed to Zuora, Zuora directly passes it to gateways. \n\nIf the IP address length is beyond 45 characters, a validation error occurs.\n\nFor validating SEPA payment methods on Stripe v2, this field is required.\n"},"mandateInfo":{"$ref":"#/components/schemas/PutPaymentMethodRequestMandateInfo","description":"The mandate information for the Credit Card, Credit Card Reference Transaction, ACH, or Bank Transfer payment method.\n"},"processingOptions":{"$ref":"#/components/schemas/PutPaymentMethodRequestProcessingOptions","description":"The container for payment method processing options.\n"},"maxConsecutivePaymentFailures":{"type":["integer","null"],"minimum":1,"maximum":100,"description":"The maximum number of payment failures allowed for this payment method.  \nThis field is only applicable if `useDefaultRetryRule` is set to `false`.\n"},"paymentRetryWindow":{"type":["integer","null"],"minimum":1,"maximum":1000,"description":"The retry interval in hours.  \nThis field is only applicable if `useDefaultRetryRule` is set to `false`.\n"},"useDefaultRetryRule":{"type":"boolean","description":"Specifies whether to apply the default retry rule configured for your tenant in the Zuora Payments settings:\n  - To use the default retry rule, specify `true`. \n  - To use the custom retry rule specific to this payment method, specify `false`.\n"},"expirationMonth":{"type":"integer","description":"One or two digits expiration month (1-12).\n        \n"},"expirationYear":{"type":"integer","description":"Four-digit expiration year.\n"},"securityCode":{"type":"string","description":"Optional. It is the CVV or CVV2 security code specific for the credit card or debit card. To ensure PCI compliance, this value is not stored and cannot be queried. \n\nIf securityCode code is not passed in the request payload, this operation only updates related fields in the payload. It does not validate the payment method through the gateway.\n\nIf securityCode is passed in the request payload, this operation retrieves the credit card information from payload and validates them through the gateway.\n"}},"description":"Container for custom fields of a payment method object.\n","title":"PUTPaymentMethodRequest"},"PUTPaymentMethodResponse":{"type":"object","properties":{"id":{"type":"string","description":"ID of the updated payment method.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"PUTPaymentMethodResponse"},"PutVerifyPaymentMethodTypeGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"PutVerifyPaymentMethodTypeGatewayOptions"},"PUTVerifyPaymentMethodType":{"type":"object","properties":{"currencyCode":{"type":"string","description":"The currency used for payment method authorization. \n"},"gatewayOptions":{"$ref":"#/components/schemas/PutVerifyPaymentMethodTypeGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"paymentGatewayName":{"type":"string","description":"The name of the payment gateway instance.\n \nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to verify the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to verify the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to verify the payment.\n"},"securityCode":{"type":"string","description":"The CVV or CVV2 security code for the credit card or debit card. To ensure PCI compliance, the value of this field is not stored and cannot be queried.\n"}},"title":"PUTVerifyPaymentMethodType"},"PUTVerifyPaymentMethodResponseType":{"type":"object","properties":{"paymentMethodId":{"type":"string","description":"The ID of the verified payment method.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"PUTVerifyPaymentMethodResponseType"},"GetBankAccountBalanceResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether this call succeeds.\n"},"currency":{"type":"string","description":"The currency of the account balance.\n"},"availableBalance":{"type":"number","format":"double","description":"The amount of funds available to be withdrawn from the account. \nFor more information, see <a href=\"https://plaid.com/docs/api/products/balance/#accounts-balance-get-response-accounts-balances\" target=\"_blank\">Plaid's documentation</a>.\n"},"currentBalance":{"type":"number","format":"double","description":"The total amount of funds in the account, which does not take pending transactions into account. \nFor more information, see <a href=\"https://plaid.com/docs/api/products/balance/#accounts-balance-get-response-accounts-balances\" target=\"_blank\">Plaid's documentation</a>.\n"}},"title":"GetBankAccountBalanceResponse"},"GetStoredCredentialProfilesResponseProfilesItemsConsentAgreementSrc":{"type":"string","enum":["External"],"title":"GetStoredCredentialProfilesResponseProfilesItemsConsentAgreementSrc"},"GetStoredCredentialProfilesResponseProfilesItemsStatus":{"type":"string","enum":["Agreed","Active","Cancelled","Expired"],"description":"The status of the stored credential profile.\n\n* `Agreed` - The stored credential profile has not been validated via an authorization transaction with the payment gateway.\n* `Active` - The stored credential profile has been validated via an authorization transaction with the payment gateway.\n* `Cancelled` - The stored credentials are no longer valid, per a customer request. Zuora cannot use the stored credentials in transactions.\n* `Expired` - The stored credentials are no longer valid, per an expiration policy in the stored credential transaction framework. Zuora cannot use the stored credentials in transactions.\n","title":"GetStoredCredentialProfilesResponseProfilesItemsStatus"},"GetStoredCredentialProfilesResponseProfilesItemsType":{"type":"string","enum":["Recurring","Unscheduled"],"title":"GetStoredCredentialProfilesResponseProfilesItemsType"},"GetStoredCredentialProfilesResponseProfilesItems":{"type":"object","properties":{"activatedOn":{"type":"string","format":"date-time","description":"The date when the stored credential profile was activated (if applicable).\n"},"agreedOn":{"type":"string","format":"date-time","description":"The date when the stored credential profile was created.\n"},"brand":{"type":"string","description":"The stored credential transaction framework. For example, Visa.\n"},"cancelledOn":{"type":"string","format":"date-time","description":"The date when the stored credential profile was cancelled (if applicable).\n"},"consentAgreementRef":{"type":"string","maxLength":128,"description":"Your reference for the consent agreement that you have established with the customer.\n"},"consentAgreementSrc":{"$ref":"#/components/schemas/GetStoredCredentialProfilesResponseProfilesItemsConsentAgreementSrc"},"expiredOn":{"type":"string","format":"date-time","description":"The date when the stored credential profile was expired (if applicable).\n"},"number":{"type":"integer","description":"The number that identifies the stored credential profile within the payment method.\n"},"paymentMethodId":{"type":"string","description":"ID of the payment method.\n"},"status":{"$ref":"#/components/schemas/GetStoredCredentialProfilesResponseProfilesItemsStatus","description":"The status of the stored credential profile.\n\n* `Agreed` - The stored credential profile has not been validated via an authorization transaction with the payment gateway.\n* `Active` - The stored credential profile has been validated via an authorization transaction with the payment gateway.\n* `Cancelled` - The stored credentials are no longer valid, per a customer request. Zuora cannot use the stored credentials in transactions.\n* `Expired` - The stored credentials are no longer valid, per an expiration policy in the stored credential transaction framework. Zuora cannot use the stored credentials in transactions.\n"},"type":{"$ref":"#/components/schemas/GetStoredCredentialProfilesResponseProfilesItemsType"}},"title":"GetStoredCredentialProfilesResponseProfilesItems"},"GetStoredCredentialProfilesResponse":{"type":"object","properties":{"profiles":{"type":"array","items":{"$ref":"#/components/schemas/GetStoredCredentialProfilesResponseProfilesItems"},"description":"Container for stored credential profiles.\n"},"success":{"type":"boolean"}},"title":"GetStoredCredentialProfilesResponse"},"CreateStoredCredentialProfileRequestAction":{"type":"string","enum":["Activate","Persist"],"description":"Specifies how Zuora activates the stored credential profile. Only applicable if you set the `status` field to `Active`.\n\n- `Activate` (default) - Use this value if you are creating the stored credential profile after receiving the customer's consent.\n\n  Zuora will create the stored credential profile then send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile. If the CIT succeeds, the status of the stored credential profile will be `Active`. If the CIT does not succeed, Zuora will not create a stored credential profile.\n  \n  If the payment gateway does not support the stored credential transaction framework, the status of the stored credential profile will be `Agreed`.\n\n\n- `Persist` - Use this value if the stored credential profile represents a stored credential profile in an external system. The status of the payment method's stored credential profile will be `Active`.\n","title":"CreateStoredCredentialProfileRequestAction"},"CreateStoredCredentialProfileRequestConsentAgreementSrc":{"type":"string","enum":["External"],"description":"Specifies how the consent agreement has been established with the customer. The allowed value is `External`.\n","title":"CreateStoredCredentialProfileRequestConsentAgreementSrc"},"CreateStoredCredentialProfileRequestStatus":{"type":"string","enum":["Agreed","Active"],"description":"Specifies the status of the stored credential profile.\n\n- `Active` - Use this value if you are creating the stored credential profile after receiving the customer's consent, or if the stored credential profile represents a stored credential profile in an external system.\n\n  You can use the `action` field to specify how Zuora activates the stored credential profile.\n\n\n- `Agreed` - Use this value if you are migrating the payment method to the stored credential transaction framework.\n\n  In this case, Zuora will not send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile.\n","title":"CreateStoredCredentialProfileRequestStatus"},"CreateStoredCredentialProfileRequestType":{"type":"string","enum":["Recurring","Unscheduled"],"description":"Indicates the type of the stored credential profile to process recurring or unsecheduled transactions.\n","title":"CreateStoredCredentialProfileRequestType"},"CreateStoredCredentialProfileRequest":{"type":"object","properties":{"action":{"$ref":"#/components/schemas/CreateStoredCredentialProfileRequestAction","description":"Specifies how Zuora activates the stored credential profile. Only applicable if you set the `status` field to `Active`.\n\n- `Activate` (default) - Use this value if you are creating the stored credential profile after receiving the customer's consent.\n\n  Zuora will create the stored credential profile then send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile. If the CIT succeeds, the status of the stored credential profile will be `Active`. If the CIT does not succeed, Zuora will not create a stored credential profile.\n  \n  If the payment gateway does not support the stored credential transaction framework, the status of the stored credential profile will be `Agreed`.\n\n\n- `Persist` - Use this value if the stored credential profile represents a stored credential profile in an external system. The status of the payment method's stored credential profile will be `Active`.\n"},"agreedOn":{"type":"string","format":"date","description":"The date on which the profile is agreed. The date format is `yyyy-mm-dd`.\n"},"authGateway":{"type":"string","description":"Specifies the ID of the payment gateway that Zuora will use when activating the stored credential profile.\n"},"cardSecurityCode":{"type":"string","description":"The security code of the credit card.\n"},"consentAgreementRef":{"type":"string","maxLength":128,"description":"Specifies your reference for the consent agreement that you have established with the customer.\n"},"consentAgreementSrc":{"$ref":"#/components/schemas/CreateStoredCredentialProfileRequestConsentAgreementSrc","description":"Specifies how the consent agreement has been established with the customer. The allowed value is `External`.\n"},"networkTransactionId":{"type":"string","maxLength":128,"description":"The ID of a network transaction. Only applicable if you set the `action` field to `Persist`.\n"},"status":{"$ref":"#/components/schemas/CreateStoredCredentialProfileRequestStatus","description":"Specifies the status of the stored credential profile.\n\n- `Active` - Use this value if you are creating the stored credential profile after receiving the customer's consent, or if the stored credential profile represents a stored credential profile in an external system.\n\n  You can use the `action` field to specify how Zuora activates the stored credential profile.\n\n\n- `Agreed` - Use this value if you are migrating the payment method to the stored credential transaction framework.\n\n  In this case, Zuora will not send a cardholder-initiated transaction (CIT) to the payment gateway to validate the stored credential profile.\n"},"type":{"$ref":"#/components/schemas/CreateStoredCredentialProfileRequestType","description":"Indicates the type of the stored credential profile to process recurring or unsecheduled transactions.\n"}},"required":["consentAgreementSrc","status","type"],"title":"CreateStoredCredentialProfileRequest"},"ModifiedStoredCredentialProfileResponse":{"type":"object","properties":{"number":{"type":"integer","description":"The number that identifies the stored credential profile within the payment method.\n"},"paymentMethodId":{"type":"string","description":"ID of the payment method.\n"},"success":{"type":"boolean"}},"title":"ModifiedStoredCredentialProfileResponse"},"V1PaymentMethodsWalletDomainsGetParametersWalletType":{"type":"string","enum":["ApplePay","GooglePay"],"title":"V1PaymentMethodsWalletDomainsGetParametersWalletType"},"GetListApplePayDomainsResponseDomainsItems":{"type":"object","properties":{"createdBy":{"type":"string","description":"The ID of the user who created this domain.\n"},"createdOn":{"type":"string","description":"The date and time when the domain was created, in `yyyy-mm-dd hh:mm:ss` format. \n"},"domainIdentifier":{"type":"string","description":"This identifier is automatically assigned during\ndomain registration and is used for Apple Pay merchant validation\nand session initialization.\n"},"domainName":{"type":"string","description":"The name of the domain registered with Apple Pay, such as `testapplepay.zuora.com`. \n"},"domainVerified":{"type":"boolean","description":"Indicates whether the domain registration is successfully verified. \n"},"id":{"type":"string","description":"The ID of the domain, such as `402881a38924ff1001892502da090021`.\n"},"updatedBy":{"type":"string","description":"The ID of the user who made the last update to this domain.\n"},"updatedOn":{"type":"string","description":"The last date and time when the domain was updated, in `yyyy-mm-dd hh:mm:ss` format.\n"},"walletType":{"type":"string","description":"The type of digital wallet associated with the domain.\n"}},"title":"GetListApplePayDomainsResponseDomainsItems"},"GETListApplePayDomainsResponse":{"type":"object","properties":{"domains":{"type":"array","items":{"$ref":"#/components/schemas/GetListApplePayDomainsResponseDomainsItems"},"description":"Container for domains that are already registered with Apple Pay.\n"},"success":{"type":"boolean","description":"Indicates whether this call succeeds.\n"}},"title":"GETListApplePayDomainsResponse"},"PostRegisterApplePayDomainRequestWalletType":{"type":"string","enum":["ApplePay","GooglePay"],"description":"The type of digital wallet for the domain registration. This field is required and determines which wallet-specific domain management flow is executed.\n","title":"PostRegisterApplePayDomainRequestWalletType"},"POSTRegisterApplePayDomainRequest":{"type":"object","properties":{"domainName":{"type":"string","description":"The name of the domain to be registered. for example,  `testapplepay.zuora.com`.\n"},"walletType":{"$ref":"#/components/schemas/PostRegisterApplePayDomainRequestWalletType","description":"The type of digital wallet for the domain registration. This field is required and determines which wallet-specific domain management flow is executed.\n"}},"required":["domainName","walletType"],"title":"POSTRegisterApplePayDomainRequest"},"POSTRegisterApplePayDomainResponse":{"type":"object","properties":{"domainName":{"type":"string","description":"The name of the domain registered with Apple Pay, such as `testapplepay.zuora.com`.\n"},"domainVerified":{"type":"boolean","description":"Indicates whether the domain registration is successfully verified.\n"},"id":{"type":"string","description":"The ID of the domain, such as `402881a38924ff1001892502da090021`.\n"},"domainIdentifier":{"type":"string","description":"This identifier is automatically assigned during\ndomain registration and is used for Apple Pay merchant validation\nand session initialization.\n"},"walletType":{"type":"string","description":"The type of digital wallet associated with the domain.\n"},"success":{"type":"boolean","description":"Indicates whether this call succeeds.\n"}},"title":"POSTRegisterApplePayDomainResponse"},"DELETEUnresigerApplePayDomainResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether this call succeeds."}},"title":"DELETEUnresigerApplePayDomainResponse"},"PostCreatePaymentSessionRequestInvoicesItems":{"type":"object","properties":{"invoiceNumber":{"type":"string","description":"The invoice number, such as `INV0000001`.\n"}},"title":"PostCreatePaymentSessionRequestInvoicesItems"},"POSTCreatePaymentSessionRequest":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account in Zuora that is associated with this\npayment method.\n\nThis field is required when `processPayment` is set to `true`. It is optional when `processPayment` is set to `false`.\n"},"amount":{"type":"number","format":"double","description":"If `processPayment` is `true`, it is the amount of the payment. If `invoices` is specified, the value of `amount` must be the current total balances of the specified invoices.\n\nIf `processPayment` is `false`, it is the authorization amount for the payment method.\n"},"authAmount":{"type":"number","format":"double","description":"The authorization amount for the payment method. Specify a value greater\nthan 0.\n\n**Note:** This field is being deprecated. It is recommended to use the `amount` field.\n"},"currency":{"type":"string","description":"The currency of the payment in the format of the three-character ISO\ncurrency code.\n"},"gatewayOptions":{"type":"object","additionalProperties":{"type":"string"},"description":"The field used to pass gateway-specific parameters and parameter values.\nThe fields supported by gateways vary. For more information, see the\noverview topic of each gateway integration in <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Manage_payment_gateway_integrations_and_payment_methods/Set_up_payment_gateway_integrations\" target=\"_blank\">Zuora Knowledge Center</a>.\n\nZuora sends all the information that you specified to the gateway. If you\nspecify any unsupported gateway option parameters, they will be ignored\nwithout error prompts.\n"},"paymentGateway":{"type":"string","description":"The ID of the payment gateway instance configured in Zuora that will\nprocess the payment, such as `e884322ab8c711edab030242ac120004`.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n  - If this field is specified, the specified gateway will be used to process the payment.\n"},"processPayment":{"type":"boolean","description":"Indicate whether a payment should be processed after creating the payment\nmethod.\n\nIf this field is set to `true`, you must specify either the `amount` field or the `invoices` and `amount` fields.\n\nIf this field is set to `false`, you must specify the `amount` field.\n"},"storePaymentMethod":{"type":"boolean","default":true,"description":"`true` indicates that the payment method will be stored in Zuora and will be used \nin subsequent recurring payments.\n\n`false` indicates that the payment method will not be stored in Zuora. \nEnd-customers need to be brought back on-session to authenticate the payment.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/PostCreatePaymentSessionRequestInvoicesItems"},"description":"The array of invoices that a payment applies to. All the specified invoices will be fully paid. \nThe value of the `amount` field must be the current total balances of the specified invoices.\n\nHere is an example:\n\n```\n\"invoices\": [\n  {\n    \"invoiceNumber\": \"INV00001274\"\n  },\n  {\n    \"invoiceNumber\": \"INV00001278\"\n  }\n]\n```\n"}},"required":["amount","currency","processPayment"],"title":"POSTCreatePaymentSessionRequest"},"POSTCreatePaymentSessionResponse":{"type":"object","properties":{"token":{"type":"string","description":"The token for the payment session data.\n"}},"title":"POSTCreatePaymentSessionResponse"},"OpenPaymentMethodTypeRequestFieldsType":{"type":"string","enum":["string","date","datetime","number","boolean"],"description":"The type of this field.\n\nFor the `date` type, ISO_LOCAL_DATE format is supported, such as `2011-12-03`. The timezone is not expected for the `date` type. For example, `2011-12-03+01:00` will be rejected.\n\nFor the `datetime` type, only ISO_OFFSET_DATE_TIME format is supported, such as `2011-12-03T10:15:30+01:00`. Timezone must be included. A string like `2011-12-03T10:15:30` or `2011-12-03T10:15:30+01:00[Europe/Paris]` will be rejected.\n\nIf you need to define a `date` type with timezone or a `datetime` type without timezone, use the `string` type for now.\n\nThis field cannot be `null` or empty.\n\nThis field cannot be updated after the creation of the custom payment method type.\n","title":"OpenPaymentMethodTypeRequestFieldsType"},"OpenPaymentMethodTypeRequestFields":{"type":"object","properties":{"checksum":{"type":"boolean","description":"The checksum value of a payment method is used to identify if this payment method is the same as another one, or if this payment method is altered to another new payment method.\n\nSet this flag to `true` for the following scenarios:\n  - The field should be part of checksum calculation.\n  - The field is a critical differentiator for this type. \n\n    \nFor example, if you select the credit card number and expiration date as the checksum fields for the CreditCard payment method type, when you modified the expiration date, Zuora considers this payment method as a different payment method compared to the original one.\n\nThis field cannot be `null` or empty.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"defaultValue":{"type":"string","maxLength":255,"description":"The default value of the field. `null` is supported.\n\nIf a required field is added after the custom payment method type is published, `defaultValue` is required.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"description":{"type":"string","maxLength":70,"description":"An explanation of this field. It can be an empty string.\n"},"editable":{"type":"boolean","description":"Specify `true` if this field can be updated through PUT API or UI.\n\nThis field cannot be `null` or empty.\n\nNote: If `editable` is set to `false`, you can specify the value of this field in the UI and POST API when creating a payment method. However, after you created the payment method, you cannot edit this field through PUT API or UI.\n"},"index":{"type":"integer","description":"The order of the field in this type, starting from 1. It must be unique.\n\nThis field cannot be `null` or empty.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"label":{"type":"string","maxLength":30,"description":"The label that is used to refer to this field in the Zuora UI.\n\nAn alphanumeric string, excluding JSON preserved characters e.g.  * \\ ’ ”\n\nThis field cannot be `null` or empty or any reserved field name.\n"},"maxLength":{"type":"integer","description":"A maximum length limitation of the field value. The specified value must be in the range of [1,8000]. `maxLength` must be greater than or equal to `minLength`.\n\nAfter the custom payment method type is created, you can only increase the value of `maxLength`. Decreasing the value is not supported.\n"},"minLength":{"type":"integer","description":"A minimal length limitation of the field value.\n    \n0 <= `minLength` <= `maxLength`\n\nThe value of this metadata does not determine whether the field is a required field. It only defines the minimal length of the field value.\n\nAfter the custom payment method type is created, you can only decrease the value of `minLength`. Increasing the value is not supported.\n"},"name":{"type":"string","maxLength":30,"description":"The API name of this field. It must be uinique.\n\nAn alphanumeric string starting with a capital letter, excluding JSON preserved characters e.g.  * \\ ’ ”\n\nThough this field must be defined with a string starting with a capital letter, use this string with the first letter in lowercase when you specify it in other API operations. For example, `AmazonPayToken` is the defined value for `name`. In the request of the \"Create a payment method\" API operation, use `amazonPayToken`.\n\nThis field cannot be `null` or empty or any reserved field name.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"representer":{"type":"boolean","description":"This flag determines whether this field will be used for identifying this payment method in the Zuora UI. The field will be shown in the Payment Method field in the UI.\n\nThis field cannot be `null` or empty.\n\nNotes:\n  - In one custom payment method type, set `representer` to `true` for at least one field .\n  - In one custom payment method type, you can set `representer` to `true` for multiple fields.\n"},"required":{"type":"boolean","description":"Specify whether this field is required.\n\nThis field cannot be `null` or empty.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"type":{"$ref":"#/components/schemas/OpenPaymentMethodTypeRequestFieldsType","description":"The type of this field.\n\nFor the `date` type, ISO_LOCAL_DATE format is supported, such as `2011-12-03`. The timezone is not expected for the `date` type. For example, `2011-12-03+01:00` will be rejected.\n\nFor the `datetime` type, only ISO_OFFSET_DATE_TIME format is supported, such as `2011-12-03T10:15:30+01:00`. Timezone must be included. A string like `2011-12-03T10:15:30` or `2011-12-03T10:15:30+01:00[Europe/Paris]` will be rejected.\n\nIf you need to define a `date` type with timezone or a `datetime` type without timezone, use the `string` type for now.\n\nThis field cannot be `null` or empty.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"visible":{"type":"boolean","description":"Specify `true` if this field can be retrieved through GET API or UI for displaying payment method details.\n\nThis field cannot be `null` or empty.\n\nNotes: \n  - If `visible` is set to `false`, you can still specify the value of this field in the UI and POST API when creating the payment method.\n  - If `visible` is set to `false` and `editable` is set to `true`, this field is not accessible through GET API or UI for displaying details, but you can still see it and edit the value in the UI and PUT API when updating this payment method.\n"}},"title":"OpenPaymentMethodTypeRequestFields"},"POSTCreateOpenPaymentMethodTypeRequest":{"type":"object","properties":{"entityId":{"type":"string","description":"If this custom payment method type is specific to one entity only, provide the entity ID in this field in UUID format, such as `123e4567-e89b-12d3-a456-426614174000`. If no entity UUID is provided, the custom payment method type is available to the global entity and all the sub entities in the tenant.\n\nYou can get the entity ID through the [Multi-entity: List entities](https://developer.zuora.com/api-references/older-api/operation/GET_Entities/) API operation or the **Manage Entity Profile** administration setting in the UI. To convert the format of the entity ID to UUID, separate the entity ID string in five groups with hyphens, in the form `<8-characters>-<4-characters>-<4-characters>-<4-characters>-<12-characters>` for a total of 36 characters.\n\nNote: After the custom payment method type is created, you can only update this field to be empty.\n"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/OpenPaymentMethodTypeRequestFields"},"description":"An array containing field metadata of the custom payment method type.\n\nNotes:\n  - All the following nested metadata must be provided in the request to define a field. \n  - At least one field must be defined in the fields array for a custom payment method type. \n  - Up to 20 fields can be defined in the fields array for a custom payment method type.\n"},"internalName":{"type":"string","maxLength":19,"description":"A string to identify the custom payment method type in the API name of the payment method type.\n\nThis field must be alphanumeric, starting with a capital letter, excluding JSON preserved characters such as  * \\ ’ ”. Additionally, '_' or '-' is not allowed.\n\nThis field must be unique in a tenant.\n\nThis field is used along with the `tenantId` field by the system to construct and generate the API name of the custom payment method type in the following way:\n\n`<internalName>__c_<tenantId>`\n\nFor example, if `internalName` is `AmazonPay`, and `tenantId` is `12368`, the API name of the custom payment method type will be `AmazonPay__c_12368`.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"isSupportAsyncPayment":{"type":"boolean","default":false,"description":"If you want to enable 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 in handling transactions \nwith your custom payment method, specify `true` in this field. \nYou also need to complete tasks described in <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DA_Electronic_Payment_Processing#Enable_the_Asynchronous_Payment_Statuses_feature\" target=\"_blank\">Enable the Asynchronous Payment Statuses feature</a> in Zuora Knowledge Center.\n"},"label":{"type":"string","maxLength":40,"description":"The label that is used to refer to this type in the Zuora UI.\n\nThis value must be alphanumeric, excluding JSON preserved characters such as  * \\ ’ ” \n"},"methodReferenceIdField":{"type":"string","description":"The identification reference of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Payment Method Data Source Exports and Data Query.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"subTypeField":{"type":"string","description":"The identification reference indicating the subtype of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"tenantId":{"type":"string","description":"Zuora tenant ID. If multi-entity is enabled in your tenant, this is the ID of the parent tenant of all the sub entities.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"userReferenceIdField":{"type":"string","description":"The identification reference of the user or customer account.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"}},"required":["fields","internalName","label","methodReferenceIdField","tenantId"],"title":"POSTCreateOpenPaymentMethodTypeRequest"},"POSTCreateOpenPaymentMethodTypeResponse":{"type":"object","properties":{"paymentMethodType":{"type":"string","description":"The API name of the custom payment method type.\n"},"publishDate":{"type":"string","description":"The date when the custom payment method type was published. It is empty if the custom payment method type has not been published yet.\n"},"revision":{"type":"integer","description":"The revision number of the custom payment method type, which starts from 1 and increases by 1 when you update a published revision for the first time.\n"},"status":{"type":"string","description":"The status of the custom payment method type.\n"}},"title":"POSTCreateOpenPaymentMethodTypeResponse"},"OpenPaymentMethodTypeResponseFieldsType":{"type":"string","enum":["string","date","datetime","number","boolean"],"description":"The type of this field.\n","title":"OpenPaymentMethodTypeResponseFieldsType"},"OpenPaymentMethodTypeResponseFields":{"type":"object","properties":{"checksum":{"type":"boolean","description":"The checksum value of a payment method is used to identify if this payment method is the same as another one, or if this payment method is altered to another new payment method.\n\nFor example, if you select the credit card number and expiration date as the checksum fields for the CreditCard payment method type, when you modified the expiration date, Zuora considers this payment method as a different payment method compared to the original one.\n"},"defaultValue":{"type":"string","description":"The default value of the field.\n"},"description":{"type":"string","description":"An explanation of this field.\n"},"editable":{"type":"boolean","description":"Specify `true` if this field can be updated through PUT API or UI.\n\nNote: If `editable` is set to `false`, you can specify the value of this field in the UI and POST API when creating a payment method. However, after you created the payment method, you cannot edit this field through PUT API or UI.\n"},"index":{"type":"integer","description":"The order of the field in this type, starting from 1.\n"},"label":{"type":"string","description":"The label that is used to refer to this field in the Zuora UI.\n"},"maxLength":{"type":"integer","description":"A maximum length limitation of the field value.\n"},"minLength":{"type":"integer","description":"A minimal length limitation of the field value.\n"},"name":{"type":"string","description":"The API name of this field. It must be uinique.\n"},"representer":{"type":"boolean","description":"This flag determines whether this field will be used for identifying this payment method in the Zuora UI. The field will be shown in the Payment Method field in the UI.\n"},"required":{"type":"boolean","description":"Specify whether this field is required.\n"},"type":{"$ref":"#/components/schemas/OpenPaymentMethodTypeResponseFieldsType","description":"The type of this field.\n"},"visible":{"type":"boolean","description":"Specify `true` if this field can be retrieved through GET API or UI for displaying payment method details.\n\nNotes: \n  - If `visible` is set to `false`, you can still specify the value of this field in the UI and POST API when creating the payment method.\n  - If `visible` is set to `false` and `editable` is set to `true`, this field is not accessible through GET API or UI for displaying details, but you can still see it and edit the value in the UI and PUT API when updating this payment method.\n"}},"title":"OpenPaymentMethodTypeResponseFields"},"PUTPublishOpenPaymentMethodTypeResponse":{"type":"object","properties":{"entityId":{"type":"string","description":"If an entity UUID is provided, this custom payment method type is specific to this entity only. If no entity UUID is provided, the custom payment method type is available to the global entity and all the sub entities in the tenant.\n"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/OpenPaymentMethodTypeResponseFields"},"description":"An array containing field metadata of the custom payment method type.\n"},"internalName":{"type":"string","description":"A string to identify the custom payment method type in the API name of the payment method type.\n\nThis field is used along with the `tenantId` field by the system to construct and generate the API name of the custom payment method type in the following way:\n\n`<internalName>__c_<tenantId>`\n\nFor example, if `internalName` is `AmazonPay`, and `tenantId` is `12368`, the API name of the custom payment method type will be `AmazonPay__c_12368`.\n"},"label":{"type":"string","description":"The label that is used to refer to this type in the Zuora UI.\n"},"methodReferenceIdField":{"type":"string","description":"The identification reference of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Payment Method Data Source Exports and Data Query.\n"},"revision":{"type":"integer","description":"The revision number of the custom payment method type, which starts from 1 and increases by 1 when you update a published revision for the first time.\n"},"status":{"type":"string","description":"The status of the custom payment method type.\n"},"subTypeField":{"type":"string","description":"The identification reference indicating the subtype of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"tenantId":{"type":"string","description":"Zuora tenant ID. If multi-entity is enabled in your tenant, this is the ID of the parent tenant of all the sub entities.\n"},"userReferenceIdField":{"type":"string","description":"The identification reference of the user or customer account.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"version":{"type":"string","description":"The time when the custom payment method type was first published.\n"}},"title":"PUTPublishOpenPaymentMethodTypeResponse"},"PUTUpdateOpenPaymentMethodTypeRequest":{"type":"object","properties":{"entityId":{"type":"string","description":"If this custom payment method type is specific to one entity only, specify the entity ID in UUID format when creating the draft payment method type, such as `123e4567-e89b-12d3-a456-426614174000`.\n\nYou can only update this field to be empty, indicating that this custom payment method type is available to the global entity and all the sub entities in the tenant.\n"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/OpenPaymentMethodTypeRequestFields"},"description":"An array containing field metadata of the custom payment method type.\n\nNotes:\n  - All the following nested metadata fields must be provided in the request to define a field. \n  - At least one field must be defined in the fields array for a custom payment method type. \n  - Up to 20 fields can be defined in the fields array for a custom method type.\n"},"internalName":{"type":"string","maxLength":19,"description":"A string to identify the custom payment method type in the API name of the payment method type.\n\nThe value of this field must be the same as the value specified when creating the draft revision of this custom payment method type.\n\nThis field cannot be updated after the creation of the custom payment method type.\n\nThis field is used along with the `tenantId` field by the system to construct and generate the API name of the custom payment method type in the following way:\n\n`<internalName>__c_<tenantId>`\n\nFor example, if `internalName` is `AmazonPay`, and `tenantId` is `12368`, the API name of the custom payment method type will be `AmazonPay__c_12368`.\n"},"isSupportAsyncPayment":{"type":"boolean","default":false,"description":"If you want to enable 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 in handling transactions \nwith your custom payment method, specify `true` in this field. \nYou also need to complete tasks described in <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DA_Electronic_Payment_Processing#Enable_the_Asynchronous_Payment_Statuses_feature\" target=\"_blank\">Enable the Asynchronous Payment Statuses feature</a> in Zuora Knowledge Center.\n"},"label":{"type":"string","maxLength":40,"description":"The label that is used to refer to this type in the Zuora UI.\n\nThis value must be alphanumeric, excluding JSON preserved characters such as  * \\ ’ ” \n"},"methodReferenceIdField":{"type":"string","description":"The identification reference of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Payment Method Data Source Exports and Data Query.\n\nThe value of this field must be the same as the value specified when creating the draft revision of this custom payment method type.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"subTypeField":{"type":"string","description":"The identification reference indicating the subtype of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"tenantId":{"type":"string","description":"Zuora tenant ID. If multi-entity is enabled in your tenant, this is the ID of the parent tenant of all the sub entities.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"},"userReferenceIdField":{"type":"string","description":"The identification reference of the user or customer account.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n\nThis field cannot be updated after the creation of the custom payment method type.\n"}},"required":["fields","internalName","label","methodReferenceIdField","tenantId"],"title":"PUTUpdateOpenPaymentMethodTypeRequest"},"PUTUpdateOpenPaymentMethodTypeResponse":{"type":"object","properties":{"paymentMethodType":{"type":"string","description":"The API name of the custom payment method type.\n"},"publishDate":{"type":"string","description":"The date when the custom payment method type was published. It is emptry if the custom payment method type has not been published yet.\n"},"revision":{"type":"integer","description":"The revision number of the custom payment method type, which starts from 1 and increases by 1 when you update a published revision for the first time.\n"},"status":{"type":"string","description":"The status of the custom payment method type.\n"}},"title":"PUTUpdateOpenPaymentMethodTypeResponse"},"GETOpenPaymentMethodTypeRevisionResponse":{"type":"object","properties":{"entityId":{"type":"string","description":"If an entity UUID is provided, this custom payment method type is specific to this entity only. If no entity UUID is provided, the custom payment method type is available to the global entity and all the sub entities in the tenant.\n"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/OpenPaymentMethodTypeResponseFields"},"description":"An array containing field metadata of the custom payment method type.\n"},"internalName":{"type":"string","description":"A string to identify the custom payment method type in the API name of the payment method type.\n\nThis field is used along with the `tenantId` field by the system to construct and generate the API name of the custom payment method type in the following way:\n\n`<internalName>__c_<tenantId>`\n\nFor example, if `internalName` is `AmazonPay`, and `tenantId` is `12368`, the API name of the custom payment method type will be `AmazonPay__c_12368`.\n"},"label":{"type":"string","description":"The label that is used to refer to this type in the Zuora UI.\n"},"methodReferenceIdField":{"type":"string","description":"The identification reference of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"revision":{"type":"integer","description":"The revision number of the custom payment method type, which starts from 1 and increases by 1 when you update a published revision for the first time.\n"},"status":{"type":"string","description":"The status of the custom payment method type.\n"},"subTypeField":{"type":"string","description":"The identification reference indicating the subtype of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"tenantId":{"type":"string","description":"Zuora tenant ID. If multi-entity is enabled in your tenant, this is the ID of the parent tenant of all the sub entities.\n"},"userReferenceIdField":{"type":"string","description":"The identification reference of the user or customer account.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"version":{"type":"string","description":"The time when the custom payment method type was first published.\n"}},"title":"GETOpenPaymentMethodTypeRevisionResponse"},"GetPaymentMethodUpdaterInstancesResponseUpdaters":{"type":"object","properties":{"daysToUpdateBeforeBcd":{"type":"integer","description":"The days prior to the Bill Cycle Day to start PMU service.\n"},"id":{"type":"string","description":"The ID of the PMU instance.\n"},"isActive":{"type":"boolean","description":"`true` indicates that this PMU instance is active.\n"},"isDefault":{"type":"boolean","description":"`true` indicates that it is the default PMU instance.\n"},"isTest":{"type":"string","description":"`true` indicates that this PMU instance is for testing.\n"},"processAssociatedGwOnly":{"type":"boolean","description":"`true` indicates that only the payment methods for customer accounts that meet either of the following conditions are included in the updates:\n  - The default payment gateway of the customer account is set to an instance of the same type as `updaterGatewayType`.\n  - The default payment gateway of the customer account is not configured, but the default payment gateway of the tenant is set to an instance of the same type as `updaterGatewayType`.\n\n`false` indicates that information of all payment methods is submitted.\n"},"processAutopayDefaultPmOnly":{"type":"boolean","description":"`true` indicates that only the default payment methods for customer accounts with the AutoPay setting enabled are included in the updates. \n\n`false` indicates that data of all payment methods for all customer accounts is submitted, regardless of whether AutoPay is enabled for the customer account or not.\n"},"processMastercard":{"type":"boolean","description":"`true` indicates that Mastercard data processing is supported.\n"},"processVisa":{"type":"boolean","description":"`true` indicates that Visa data processing is supported.\n"},"updaterGatewayType":{"type":"string","description":"The payment gateway type of the PMU instance.\n"},"updaterName":{"type":"string","description":"The name of the PMU instance.\n"}},"description":"Container for PMU instances available on your tenant.\n","title":"GetPaymentMethodUpdaterInstancesResponseUpdaters"},"GETPaymentMethodUpdaterInstancesResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the call is successful."},"updaters":{"$ref":"#/components/schemas/GetPaymentMethodUpdaterInstancesResponseUpdaters","description":"Container for PMU instances available on your tenant.\n"}},"title":"GETPaymentMethodUpdaterInstancesResponse"},"POSTPaymentMethodUpdaterBatchRequest":{"type":"object","properties":{"billingCycleDay":{"type":"integer","description":"The billing cycle day. The allowed value is an integer in the range of 1 - 31.\n\nThe payment methods from accounts where the billing cycle day is the specified value in this field will be included in the updates.\n"},"updaterAccountId":{"type":"string","description":"The ID (UUID) of the PMU account. This field must be a string of 32 characters consisting of digits and letters a - f.\n"}},"required":["billingCycleDay","updaterAccountId"],"title":"POSTPaymentMethodUpdaterBatchRequest"},"POSTPaymentMethodUpdaterResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request to create a PMU batch is sent successfully.\n"}},"title":"POSTPaymentMethodUpdaterResponse"},"ProxyGetPaymentMethodSnapshotAchAccountType":{"type":"string","enum":["BusinessChecking","Checking","Saving"],"description":"The type of bank account associated with the ACH payment.","title":"ProxyGetPaymentMethodSnapshotAchAccountType"},"ProxyGetPaymentMethodSnapshotBankTransferType":{"type":"string","enum":["AutomatischIncasso","LastschriftDE","LastschriftAT","DemandeDePrelevement","DirectDebitUK","Domicil","LastschriftCH","RID","OrdenDeDomiciliacion","Autogiro","Betalingsservice"],"description":"Specifies the type of direct debit transfer. The value of this field is dependent on the country of the user.\n\nPossible Values: \n\n\n* `AutomatischIncasso` (NL)\n\n* `LastschriftDE` (Germany)\n\n* `LastschriftAT` (Austria)\n\n* `DemandeDePrelevement` (FR)\n\n* `DirectDebitUK` (UK)\n\n* `Domicil` (Belgium)\n\n* `LastschriftCH` (CH)\n\n* `RID` (Italy)\n\n* `OrdenDeDomiciliacion` (Spain)\n* `Autogiro` (Sweden)\n* `Betalingsservice` (Denmark)\n","title":"ProxyGetPaymentMethodSnapshotBankTransferType"},"ProxyGetPaymentMethodSnapshotCreditCardType":{"type":"string","enum":["AmericanExpress","Discover","MasterCard","Visa"],"description":"The type of credit card or debit card.","title":"ProxyGetPaymentMethodSnapshotCreditCardType"},"ProxyGetPaymentMethodSnapshotExistingMandate":{"type":"string","enum":["Yes","No"],"description":"Indicates if the customer has an existing mandate or a new mandate. Only applicable to direct debit payment methods.","title":"ProxyGetPaymentMethodSnapshotExistingMandate"},"ProxyGetPaymentMethodSnapshotPaymentMethodStatus":{"type":"string","enum":["Active","Closed"],"description":"Specifies the status of the payment method.","title":"ProxyGetPaymentMethodSnapshotPaymentMethodStatus"},"ProxyGetPaymentMethodSnapshotPaypalType":{"type":"string","enum":["ExpressCheckout","AdaptivePayments"],"description":"Specifies the PayPal gateway: PayFlow Pro (Express Checkout) or Adaptive Payments.","title":"ProxyGetPaymentMethodSnapshotPaypalType"},"ProxyGetPaymentMethodSnapshotType":{"type":"string","enum":["ACH","ApplePay","BankTransfer","Cash","Check","CreditCard","CreditCardReferenceTransaction","DebitCard","Other","PayPal","WireTransfer"],"description":"The type of payment method.","title":"ProxyGetPaymentMethodSnapshotType"},"ProxyGetPaymentMethodSnapshot":{"type":"object","properties":{"AccountId":{"type":"string","description":"The ID of the customer account associated with this payment method."},"AchAbaCode":{"type":"string","description":"The nine-digit routing number or ABA number used by banks. Applicable to ACH payment methods."},"AchAccountName":{"type":"string","description":"The name of the account holder, which can be either a person or a company. Applicable to ACH payment methods."},"AchAccountNumberMask":{"type":"string","description":"This is a masked displayable version of the ACH account number, used for security purposes. For example: `XXXXXXXXX54321`."},"AchAccountType":{"$ref":"#/components/schemas/ProxyGetPaymentMethodSnapshotAchAccountType","description":"The type of bank account associated with the ACH payment."},"AchBankName":{"type":"string","description":"The name of the bank where the ACH payment account is held."},"BankBranchCode":{"type":"string","description":"The branch code of the bank used for direct debit."},"BankCheckDigit":{"type":"string","description":"The check digit in the international bank account number, which confirms the validity of the account. Applicable to direct debit payment methods."},"BankCity":{"type":"string","description":"The city of the direct debit bank."},"BankCode":{"type":"string","description":"The sort code or number that identifies the bank. This is also known as the sort code."},"BankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the payment method's number, such as the credit card number or account number. Banks use this number to identify a payment method."},"BankName":{"type":"string","description":"The name of the direct debit bank."},"BankPostalCode":{"type":"string","description":"The zip code or postal code of the direct debit bank."},"BankStreetName":{"type":"string","description":"The name of the street of the direct debit bank."},"BankStreetNumber":{"type":"string","description":"The number of the direct debit bank."},"BankTransferAccountName":{"type":"string","description":"The name on the direct debit bank account."},"BankTransferAccountNumberMask":{"type":"string","description":"This is a masked displayable version of the bank account number, used for security purposes. For example: `XXXXXXXXX54321`."},"BankTransferAccountType":{"type":"string","description":"The type of the customer's bank account. Applicable to direct debit payment methods."},"BankTransferType":{"$ref":"#/components/schemas/ProxyGetPaymentMethodSnapshotBankTransferType","description":"Specifies the type of direct debit transfer. The value of this field is dependent on the country of the user.\n\nPossible Values: \n\n\n* `AutomatischIncasso` (NL)\n\n* `LastschriftDE` (Germany)\n\n* `LastschriftAT` (Austria)\n\n* `DemandeDePrelevement` (FR)\n\n* `DirectDebitUK` (UK)\n\n* `Domicil` (Belgium)\n\n* `LastschriftCH` (CH)\n\n* `RID` (Italy)\n\n* `OrdenDeDomiciliacion` (Spain)\n* `Autogiro` (Sweden)\n* `Betalingsservice` (Denmark)\n"},"BusinessIdentificationCode":{"type":"string","description":"The business identification code for Swiss direct payment methods that use the Global Collect payment gateway. Only applicable to direct debit payments in Switzerland with Global Collect."},"City":{"type":"string","description":"The city of the customer's address. Applicable to debit payment methods."},"CompanyName":{"type":"string","description":"The name of the company.\n"},"Country":{"type":"string","description":"The two-letter country code of the customer's address. Applicable to direct debit payment methods."},"CreditCardAddress1":{"type":"string","description":"The first line of the card holder's address, which is often a street address or business name. Applicable to credit card and direct debit payment methods."},"CreditCardAddress2":{"type":"string","description":"The second line of the card holder's address. Applicable to credit card and direct debit payment methods."},"CreditCardCity":{"type":"string","description":"The city of the card holder's address. Applicable to credit card and direct debit payment methods."},"CreditCardCountry":{"type":"string","description":"The country of the card holder's address."},"CreditCardExpirationMonth":{"type":"integer","description":"The expiration month of the credit card or debit card. Applicable to credit card and direct debit payment methods."},"CreditCardExpirationYear":{"type":"integer","description":"The expiration month of the credit card or debit card. Applicable to credit card and direct debit payment methods."},"CreditCardHolderName":{"type":"string","description":"The full name of the card holder. Applicable to credit card and direct debit payment methods."},"CreditCardMaskNumber":{"type":"string","description":"A masked version of the credit or debit card number."},"CreditCardPostalCode":{"type":"string","description":"The billing address's zip code."},"CreditCardState":{"type":"string","description":"The billing address's state. Applicable if `CreditCardCountry` is either Canada or the US."},"CreditCardType":{"$ref":"#/components/schemas/ProxyGetPaymentMethodSnapshotCreditCardType","description":"The type of credit card or debit card."},"DeviceSessionId":{"type":"string","description":"The session ID of the user when the `PaymentMethod` was created or updated."},"Email":{"type":"string","description":"An email address for the payment method in addition to the bill to contact email address."},"ExistingMandate":{"$ref":"#/components/schemas/ProxyGetPaymentMethodSnapshotExistingMandate","description":"Indicates if the customer has an existing mandate or a new mandate. Only applicable to direct debit payment methods."},"FirstName":{"type":"string","description":"The customer's first name. Only applicable to direct debit payment methods."},"IBAN":{"type":"string","description":"The International Bank Account Number. Only applicable to direct debit payment methods."},"IPAddress":{"type":"string","description":"The IP address of the user when the payment method was created or updated."},"Id":{"type":"string","description":"Object identifier."},"IdentityNumber":{"type":"string","description":"The unique identity number of the customer account. \n"},"IsCompany":{"type":"boolean","description":"Whether the customer account is a company.\n"},"LastFailedSaleTransactionDate":{"type":"string","format":"date-time","description":"The date of the last failed attempt to collect payment with this payment method."},"LastName":{"type":"string","description":"The customer's last name. Only applicable to direct debit payment methods."},"LastTransactionDateTime":{"type":"string","format":"date-time","description":"The date of the most recent transaction."},"LastTransactionStatus":{"type":"string","description":"The status of the most recent transaction."},"MandateCreationDate":{"type":"string","format":"date","description":"The date when the mandate was created, in `yyyy-mm-dd` format. A mandate is a signed authorization for UK and NL customers. Only applicable to direct debit payment methods."},"MandateID":{"type":"string","description":"The ID of the mandate. A mandate is a signed authorization for UK and NL customers. Only applicable to direct debit payment methods."},"MandateReceived":{"type":"string","description":"Indicates if  the mandate was received. A mandate is a signed authorization for UK and NL customers. Only applicable to direct debit payment methods."},"MandateUpdateDate":{"type":"string","format":"date","description":"The date when the mandate was last updated, in `yyyy-mm-dd` format. A mandate is a signed authorization for UK and NL customers. Only applicable to direct debit payment methods."},"MaxConsecutivePaymentFailures":{"type":"integer","description":"The number of allowable consecutive failures Zuora attempts with the payment method before stopping."},"Name":{"type":"string","description":"The name of the payment method."},"NumConsecutiveFailures":{"type":"integer","description":"The number of consecutive failed payment for the payment method."},"PaymentMethodId":{"type":"string","description":"Object identifier of the payment method."},"PaymentMethodStatus":{"$ref":"#/components/schemas/ProxyGetPaymentMethodSnapshotPaymentMethodStatus","description":"Specifies the status of the payment method."},"PaymentRetryWindow":{"type":"integer","description":"The retry interval setting, which prevents making a payment attempt if the last failed attempt was within the last specified number of hours."},"PaypalBaid":{"type":"string","description":"The PayPal billing agreement ID, which is a contract between two PayPal accounts."},"PaypalEmail":{"type":"string","description":"The email address associated with the account holder's PayPal account or of the PayPal account of the person paying for the service."},"PaypalPreapprovalKey":{"type":"string","description":"PayPal's Adaptive Payments API key."},"PaypalType":{"$ref":"#/components/schemas/ProxyGetPaymentMethodSnapshotPaypalType","description":"Specifies the PayPal gateway: PayFlow Pro (Express Checkout) or Adaptive Payments."},"Phone":{"type":"string","description":"The phone number that the account holder registered with the bank. This field is used for credit card validation when passing to a gateway."},"PostalCode":{"type":"string","description":"The zip code of the customer's address. Only applicable to direct debit payment methods."},"SecondTokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data. Applicable to CC Reference Transaction payment methods."},"State":{"type":"string","description":"The state of the customer's address. Only applicable to direct debit payment methods."},"StreetName":{"type":"string","description":"The street name of the customer's address. Only applicable to direct debit payment methods."},"StreetNumber":{"type":"string","description":"The street number of the customer's address. Only applicable to direct debit payment methods."},"TokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data or represents a gateway's unique customer profile. Applicable to CC Reference Transaction payment methods."},"TotalNumberOfErrorPayments":{"type":"integer","description":"The number of error payments that used this payment method."},"TotalNumberOfProcessedPayments":{"type":"integer","description":"The number of successful payments that used this payment method."},"Type":{"$ref":"#/components/schemas/ProxyGetPaymentMethodSnapshotType","description":"The type of payment method."},"UseDefaultRetryRule":{"type":"boolean","description":"Determines whether to use the default retry rules configured in the Zuora Payments settings."}},"title":"ProxyGetPaymentMethodSnapshot"},"ProxyGetPaymentMethodTransactionLog":{"type":"object","properties":{"Gateway":{"type":"string"},"GatewayReasonCode":{"type":"string"},"GatewayReasonCodeDescription":{"type":"string"},"GatewayTransactionType":{"type":"string"},"Id":{"type":"string","description":"Object identifier."},"PaymentMethodId":{"type":"string"},"PaymentMethodType":{"type":"string"},"RequestString":{"type":"string"},"ResponseString":{"type":"string"},"TransactionDate":{"type":"string","format":"date-time"},"TransactionId":{"type":"string"}},"title":"ProxyGetPaymentMethodTransactionLog"},"GetHostedPageType":{"type":"object","properties":{"pageId":{"type":"string","description":"Page ID of the Payment Page that Zuora assigns when it is created.\n"},"pageName":{"type":"string","description":"Name of the Payment Page that specified during the page configuration.\n"},"pageType":{"type":"string","description":"Payment method type of this Payment Page, e.g. 'Credit Card', 'ACH', or 'Bank Transfer'.\n"},"pageVersion":{"type":"string","description":"Version of the Payment Page. 2 for Payment Pages 2.0.\n"}},"title":"GetHostedPageType"},"GetHostedPagesType":{"type":"object","properties":{"hostedpages":{"type":"array","items":{"$ref":"#/components/schemas/GetHostedPageType"},"description":"Container for the hosted page information.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GetHostedPagesType"},"POSTRSASignatureType":{"type":"object","properties":{"accountId":{"type":"string","description":"An optional client parameter that can be used for validating client-side HPM parameters. \nSee [Client parameters for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0) \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters) \nfor details.\n"},"authorizationAmount":{"type":"number","format":"double","description":"An optional client parameter that can be used for validating client-side HPM parameters. \nSee [Client parameters for Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/J_Client_Parameters_for_Payment_Pages_2.0) \nand [Validate client-side HPM parameters](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Validate_Client-side_HPM_Parameters) \nfor details.\n"},"method":{"type":"string","description":"The type of the request. Set it to POST.\n"},"pageId":{"type":"string","description":"The page id of your Payment Pages 2.0 form. Click **Show Page Id** next to the Payment Page name in the Hosted Page List to retrieve the page id.\n"},"uri":{"type":"string","description":"The URL that the Payment Page will be served from.\n* For US Cloud 1 Production environment: Use https://na.zuora.com/apps/PublicHostedPageLite.do\n* For US Cloud 1 Sandbox environment: Use https://sandbox.na.zuora.com/apps/PublicHostedPageLite.do\n* For US Cloud 2 Production environment: Use https://www.zuora.com/apps/PublicHostedPageLite.do\n* For US Cloud 2 API Sandbox environment: Use https://apisandbox.zuora.com/apps/PublicHostedPageLite.do\n* For US Central Sandbox environment: Use https://test.zuora.com/apps/PublicHostedPageLite.do\n* For EU Cloud Production environment: Use https://eu.zuora.com/apps/PublicHostedPageLite.do\n* For EU Cloud Sandbox environment: Use https://sandbox.eu.zuora.com/apps/PublicHostedPageLite.do\n* For EU Central Sandbox environment: Use https://test.eu.zuora.com/apps/PublicHostedPageLite.do\n"}},"required":["method","pageId","uri"],"title":"POSTRSASignatureType"},"POSTRSASignatureResponseType":{"type":"object","properties":{"key":{"type":"string","description":"Public key generated for this Payment Page.\n"},"signature":{"type":"string","description":"Digital signature generated for this Payment Page.\n\nIf `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.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"tenantId":{"type":"string","description":"ID of the Zuora tenant.\n"},"token":{"type":"string","description":"Token generated for this Payment Page.\n"}},"title":"POSTRSASignatureResponseType"},"POSTDecryptionType":{"type":"object","properties":{"method":{"type":"string","description":"The type of the request. Set it to POST.\n"},"publicKey":{"type":"string","description":"The public key generated by Zuora.\n"},"signature":{"type":"string","description":"The signature generated by Zuora.\n"}},"required":["method","publicKey","signature"],"title":"POSTDecryptionType"},"POSTDecryptResponseType":{"type":"object","properties":{"decryptedSignature":{"type":"string","description":"The string of a list of the following items: Payment Pages 2.0 URL, tenant ID, timestamp,the Payment Page ID\n\nThe items are separated by '#', e.g., \"/apps/publichostedpagelite.do#12271#rvBp1AxBJwk6FrT7aqFuABIINiRbwJCc\n#1418848373103#2c92c0f948f899\"\n"},"publicKey":{"type":"string","description":"The public key passed in as a request parameter.\n"},"signature":{"type":"string","description":"The signature passed in as a request parameter.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"POSTDecryptResponseType"},"PostDelayAuthorizeCaptureGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"PostDelayAuthorizeCaptureGatewayOptions"},"PostDelayAuthorizeCaptureMitTransactionSource":{"type":"string","enum":["C_Unscheduled","M_Recurring","M_Unscheduled","M_MOTO"],"description":"Payment transaction source used to differentiate the transaction source in Stored Credential Transaction framework.\n  - `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.\n  - `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_MOTO`: Mail Order Telephone Order (MOTO) payment transaction. This option is only available for credit card payments on Stripe v2. See [Overview of Stripe payment gateway integration](https://knowledgecenter.zuora.com/Zuora_Collect/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration) for more information.\n","title":"PostDelayAuthorizeCaptureMitTransactionSource"},"POSTDelayAuthorizeCapture":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account. Either `accountId` or `accountNumber` is required."},"accountNumber":{"type":"string","description":"The number of the customer account. Either `accountNumber` or `accountId` is required."},"amount":{"type":"number","format":"double","description":"The amount of the transaction."},"gatewayOptions":{"$ref":"#/components/schemas/PostDelayAuthorizeCaptureGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"gatewayOrderId":{"type":"string","description":"The order ID for the specific gateway.\n\nThe specified order ID will be used in transaction authorization. If you specify an empty value for this field, Zuora will generate an ID and you will have to associate this ID with your order ID by yourself if needed. It is recommended to specify an ID for this field.\n"},"mitTransactionSource":{"$ref":"#/components/schemas/PostDelayAuthorizeCaptureMitTransactionSource","description":"Payment transaction source used to differentiate the transaction source in Stored Credential Transaction framework.\n  - `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.\n  - `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_MOTO`: Mail Order Telephone Order (MOTO) payment transaction. This option is only available for credit card payments on Stripe v2. See [Overview of Stripe payment gateway integration](https://knowledgecenter.zuora.com/Zuora_Collect/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration) for more information.\n"},"paymentGatewayId":{"type":"string","description":"The ID of the payment gateway instance.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to authorize the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to authorize the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant. \n   - If this field is specified, the specified gateway will be used to authorize the payment.\n  \n"},"softDescriptor":{"type":"string","description":"A text, rendered on a cardholder’s statement, describing a particular product or service purchased by the cardholder."},"softDescriptorPhone":{"type":"string","description":"The phone number that relates to the soft descriptor, usually the phone number of customer service."}},"required":["amount","gatewayOrderId"],"title":"POSTDelayAuthorizeCapture"},"PostAuthorizeResponsePaymentGatewayResponseAdditionalInfo":{"type":"object","properties":{},"description":"The additional information returned from the gateway. The returned fields vary for gateways. Here is an example.\n\n```\n\"additionalInfo\": {\n  \"ProcessorName\": \"MasterCard Saferpay Test\",\n  \"ProcessorResult\": \"51\",\n  \"ProcessorMessage\": \"Insufficient funds\",\n  \"ErrorName\": \"TRANSACTION_DECLINED\"\n}\n```\n","title":"PostAuthorizeResponsePaymentGatewayResponseAdditionalInfo"},"PostAuthorizeResponsePaymentGatewayResponse":{"type":"object","properties":{"additionalInfo":{"$ref":"#/components/schemas/PostAuthorizeResponsePaymentGatewayResponseAdditionalInfo","description":"The additional information returned from the gateway. The returned fields vary for gateways. Here is an example.\n\n```\n\"additionalInfo\": {\n  \"ProcessorName\": \"MasterCard Saferpay Test\",\n  \"ProcessorResult\": \"51\",\n  \"ProcessorMessage\": \"Insufficient funds\",\n  \"ErrorName\": \"TRANSACTION_DECLINED\"\n}\n```\n"},"gatewayResponseCode":{"type":"string","description":"The HTTP response code.\n"},"gatewayResponseMessage":{"type":"string","description":"The error message returned from the gateway.\n"},"gatewayType":{"type":"string","description":"The gateway type.\n"},"gatewayVersion":{"type":"string","description":"The gateway version.\n"}},"description":"The response data returned from the gateway. This field is available only if the `success` field is `false` and the support for returning additional error information from the gateway is enabled.\n","title":"PostAuthorizeResponsePaymentGatewayResponse"},"PostAuthorizeResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"Error code.\n"},"message":{"type":"string","description":"Error message. It usually contains a combination of gateway response code and response message.\n"}},"title":"PostAuthorizeResponseReasonsItems"},"POSTAuthorizeResponse":{"type":"object","properties":{"gatewayOrderId":{"type":"string","description":"The order ID for the specific gateway.\n\nThe specified order ID will be used in transaction authorization. If you specify an empty value for this field, Zuora will generate an ID and you will have to associate this ID with your order ID by yourself if needed. It is recommended to specify an ID for this field.\n"},"paymentGatewayResponse":{"$ref":"#/components/schemas/PostAuthorizeResponsePaymentGatewayResponse","description":"The response data returned from the gateway. This field is available only if the `success` field is `false` and the support for returning additional error information from the gateway is enabled.\n"},"processId":{"type":"string","description":"The ID of the running process when the exception occurs. This field is available only if the `success` field is `false`.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PostAuthorizeResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","description":"The ID of the request. This field is available only if the `success` field is `false`\n"},"resultCode":{"type":"string","description":"The result code of the request. \n\n0 indicates that the request succeeded, and the following values indicate that the request failed:\n  - 1: The request is declined.\n  - 7: The field format is not correct.\n  - 10: Client connection has timed out.\n  - 11: Host connection has timed out.\n  - 12: Processor connection has timed out.\n  - 13: Gateway server is busy.\n  - 20: The card type is not supported.\n  - 21: The merchant account information is invalid.\n  - 22: A generic error occurred on the processor.\n  - 40: The card type has not been set up yet.\n  - 41: The limit for a single transaction is exceeded.\n  - 42: Address checking failed.\n  - 43: Card security code checking failed.\n  - 44: Failed due to the gateway security setting.\n  - 45: Fraud protection is declined.\n  - 46: Address checking or card security code checking failed (for Authorize.net gateway only).\n  - 47: The maximum amount is exceeded (for Authorize.net gateway only).\n  - 48: The IP address is blocked by the gateway (for Authorize.net gateway only).\n  - 49: Card security code checking failed (for Authorize.net gateway only).\n  - 60: User authentication failed.\n  - 61: The currency code is invalid.\n  - 62: The transaction ID is invalid.\n  - 63: The credit card number is invalid.\n  - 64: The card expiration date is invalid.\n  - 65: The transaction is duplicated.\n  - 66: Credit transaction error.\n  - 67: Void transaction error.\n  - 90: A valid amount is required.\n  - 91: The BA code is invalid.\n  - 92: The account number is invalid.\n  - 93: The ACH transaction is not accepted by the merchant.\n  - 94: An error occurred for the ACH transaction.\n  - 95: The version parameter is invalid.\n  - 96: The transaction type is invalid.\n  - 97: The transaction method is invalid.\n  - 98: The bank account type is invalid.\n  - 99: The authorization code is invalid.\n  - 200: General transaction error.\n  - 500: The transaction is queued for submission.\n  - 999: Unknown error.\n  - -1: An error occurred in gateway communication.\n  - -2: Idempotency is not supported.\n  - -3: Inquiry call is not supported.\n"},"resultMessage":{"type":"string","description":"The corresponding request ID."},"success":{"type":"boolean","description":"Indicates whether the call succeeded."},"transactionId":{"type":"string","description":"The ID of the transaction."}},"title":"POSTAuthorizeResponse"},"PostVoidAuthorizeGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"PostVoidAuthorizeGatewayOptions"},"POSTVoidAuthorize":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account."},"accountNumber":{"type":"string","description":"The number of the customer account."},"gatewayOptions":{"$ref":"#/components/schemas/PostVoidAuthorizeGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"gatewayOrderId":{"type":"string","description":"The order ID for the specific gateway.\n\nThe specified order ID will be used in transaction authorization. If you specify an empty value for this field, Zuora will generate an ID and you will have to associate this ID with your order ID by yourself if needed. It is recommended to specify an ID for this field.\n"},"paymentGatewayId":{"type":["string","null"],"description":"The ID of the payment gateway instance. \n  - If this field is specified and it is a Worldline Global Collect gateway, the specified gateway is used.\n  - If this field is not specified or is not a Worldline Global Collect gateway, the cancellation operation uses the payment gateway originally used for the authorization.\n"},"transactionId":{"type":"string","description":"The ID of the transaction."}},"required":["gatewayOrderId","transactionId"],"title":"POSTVoidAuthorize"},"POSTVoidAuthorizeResponse":{"type":"object","properties":{"gatewayOrderId":{"type":"string","description":"The order ID for the specific gateway.\n\nThe specified order ID will be used in transaction authorization. If you specify an empty value for this field, Zuora will generate an ID and you will have to associate this ID with your order ID by yourself if needed. It is recommended to specify an ID for this field.\n"},"resultCode":{"type":"string","description":"The result code of the request. \n\n0 indicates that the request succeeded, and the following values indicate that the request failed:\n  - 1: The request is declined.\n  - 7: The field format is not correct.\n  - 10: Client connection has timed out.\n  - 11: Host connection has timed out.\n  - 12: Processor connection has timed out.\n  - 13: Gateway server is busy.\n  - 20: The card type is not supported.\n  - 21: The merchant account information is invalid.\n  - 22: A generic error occurred on the processor.\n  - 40: The card type has not been set up yet.\n  - 41: The limit for a single transaction is exceeded.\n  - 42: Address checking failed.\n  - 43: Card security code checking failed.\n  - 44: Failed due to the gateway security setting.\n  - 45: Fraud protection is declined.\n  - 46: Address checking or card security code checking failed (for Authorize.net gateway only).\n  - 47: The maximum amount is exceeded (for Authorize.net gateway only).\n  - 48: The IP address is blocked by the gateway (for Authorize.net gateway only).\n  - 49: Card security code checking failed (for Authorize.net gateway only).\n  - 60: User authentication failed.\n  - 61: The currency code is invalid.\n  - 62: The transaction ID is invalid.\n  - 63: The credit card number is invalid.\n  - 64: The card expiration date is invalid.\n  - 65: The transaction is duplicated.\n  - 66: Credit transaction error.\n  - 67: Void transaction error.\n  - 90: A valid amount is required.\n  - 91: The BA code is invalid.\n  - 92: The account number is invalid.\n  - 93: The ACH transaction is not accepted by the merchant.\n  - 94: An error occurred for the ACH transaction.\n  - 95: The version parameter is invalid.\n  - 96: The transaction type is invalid.\n  - 97: The transaction method is invalid.\n  - 98: The bank account type is invalid.\n  - 99: The authorization code is invalid.\n  - 200: General transaction error.\n  - 500: The transaction is queued for submission.\n  - 999: Unknown error.\n  - -1: An error occurred in gateway communication.\n  - -2: Idempotency is not supported.\n  - -3: Inquiry call is not supported.\n"},"resultMessage":{"type":"string","description":"The corresponding request ID."},"success":{"type":"boolean","description":"Indicates whether the call succeeded."},"transactionId":{"type":"string","description":"The ID of the transaction."}},"title":"POSTVoidAuthorizeResponse"},"GETAPaymentGatwayResponse":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the payment gateway."},"isActive":{"type":"boolean","description":"Specifies if this payment gateway is in active status."},"isDefault":{"type":"boolean","description":"Specifies if this is the default payment gateway to process payments for your customer accounts."},"name":{"type":"string","description":"The name of the payment gateway."},"type":{"type":"string","description":"The type of the payment gateway"}},"title":"GETAPaymentGatwayResponse"},"GETPaymentGatwaysResponse":{"type":"object","properties":{"paymentgateways":{"type":"array","items":{"$ref":"#/components/schemas/GETAPaymentGatwayResponse"}},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETPaymentGatwaysResponse"},"PostTriggerPreDebitNotificationRequest":{"type":"object","properties":{"invoiceKey":{"type":"string","description":"The unique identifier for an invoice. It can be either a UUID  \nsuch as `2c92c8955bd63cc1015bd7c151af0000`, or an invoice number  \nsuch as `INV-0000001`.\n"},"paymentGatewayId":{"type":"string","description":"The ID of the payment gateway used to process the payment, such as `8ad08aef83d0c3000183d4b5a2d51933`.\n\nIf it is not provided, the ID of the default payment gateway is used.\n"},"paymentMethodId":{"type":"string","description":"The ID of the payment method used for the payment, such as `4ad08aef83d0c30102183d4b5a2d51733`.\n\nIf it is not provided, the ID of the default payment method is used.\n"}},"required":["invoiceKey"],"title":"PostTriggerPreDebitNotificationRequest"},"PostTriggerPreDebitNotificationResponse":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice, for which the pre-debit notification is triggered.\n"},"paymentMethodId":{"type":"string","description":"The ID of the associated payment method.\n"},"gatewayId":{"type":"string","description":"The ID of the associated payment gateway.\n"},"gatewayType":{"type":"string","description":"The gateway type used in this operation.\n"},"gatewayVersion":{"type":"string","description":"The version number of the gateway used.\n"},"notificationReferenceId":{"type":"string","description":"The value of the `shopperNotificationReference` field returned from the gateway.\n"},"secondNotificationReferenceId":{"type":["string","null"],"description":"The additional second reference ID returned from the gateway.\n"},"thirdNotificationReferenceId":{"type":["string","null"],"description":"The additional third reference ID returned from the gateway.\n"},"extraParameters":{"type":["string","null"],"description":"The extra optional parameter returned from the gateway.\n"}},"title":"PostTriggerPreDebitNotificationResponse"},"POSTReversePaymentRequest":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount that needs to be reversed (chargeback). It cannot be greater than the total Payment amount. \n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The transaction response returned by the gateway for this transaction. If the transaction was declined, this reason is provided in the message.\n"},"gatewayResponseCode":{"type":"string","description":"Response message Code returned by the gateway about the transaction status.\n"},"payoutId":{"type":"string","description":"The payout ID from the gateway side.\n"},"referenceId":{"type":"string","maxLength":100,"description":"Unique Id generated by the gateway for each transaction. Use this ID to find the respective Zuora Payment ID. \n"},"secondReferenceId":{"type":"string","maxLength":100,"description":"The second reference Id. Some gateways use two unique transaction IDs.\n"},"settledOn":{"type":"string","description":"The date and time of the transaction settlement. The format is `yyyy-mm-dd hh:mm:ss`.\n"}},"required":["amount"],"title":"POSTReversePaymentRequest"},"PostReversePaymentResponseFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PostReversePaymentResponseFinanceInformationTransferredToAccounting"},"PostReversePaymentResponseFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":"string","description":"The type of the accounting code that maps to a bank account in your accounting system.\n  \n"},"transferredToAccounting":{"$ref":"#/components/schemas/PostReversePaymentResponseFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":"string","description":"The type of the accounting code for the unapplied payment.\n  \n"}},"description":"Container for the finance information related to the refund.\n","title":"PostReversePaymentResponseFinanceInformation"},"PostReversePaymentResponseGatewayState":{"type":"string","enum":["Submitted","NotSubmitted","Settled","FailedToSettle"],"description":"The status of the payment in the gateway; specifically used for reconciliation.\n","title":"PostReversePaymentResponseGatewayState"},"PostReversePaymentResponseMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer. \n","title":"PostReversePaymentResponseMethodType"},"PostReversePaymentResponseType":{"type":"string","enum":["External","Electronic"],"description":"The type of the payment.\n","title":"PostReversePaymentResponseType"},"POSTReversePaymentResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account that the payment is for.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment.\n"},"cancelledOn":{"type":"string","description":"The date and time when the payment was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the payment.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund.\n"},"createdDate":{"type":"string","description":"The date and time when the chargeback is created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2019-03-01 15:31:10.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo that is refunded.\n"},"financeInformation":{"$ref":"#/components/schemas/PostReversePaymentResponseFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the payment.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the payment. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the payment. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/PostReversePaymentResponseGatewayState","description":"The status of the payment in the gateway; specifically used for reconciliation.\n"},"id":{"type":"string","description":"The ID of the payment chargeback.\n"},"markedForSubmissionOn":{"type":"string","description":"The date and time when a charge was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"methodType":{"$ref":"#/components/schemas/PostReversePaymentResponseMethodType","description":"How an external refund was issued to a customer. \n"},"number":{"type":"string","description":"The unique identification number of the payment. For example, P-00000001.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentId":{"type":"string","description":"The ID of the payment that is refunded.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot which is a copy of the particular Payment Method used in a transaction.\n"},"payoutId":{"type":"string","description":"The payout ID from the gateway side.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction.   \n"},"referenceId":{"type":"string","description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format. For example, 2017-03-01.\n"},"refundTransactionTime":{"type":"string","description":"The date and time when the refund was issued, in `yyyy-mm-dd hh:mm:ss` format.\n"},"secondRefundReferenceId":{"type":"string","description":"The transaction ID returned by the payment gateway if there is an additional refund. \n"},"settledOn":{"type":"string","description":"The date and time when the transaction is settled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.          \n"},"status":{"type":"string","description":"The status of the payment.\n"},"submittedOn":{"type":"string","description":"The date and time when the payment was submitted, in yyyy-mm-dd hh:mm:ss format.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"type":{"$ref":"#/components/schemas/PostReversePaymentResponseType","description":"The type of the payment.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2019-03-02 15:36:10.\n"}},"title":"POSTReversePaymentResponse"},"POSTRejectPaymentRequest":{"type":"object","properties":{"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The transaction response returned by the gateway for this transaction. If the transaction was declined, this reason is provided in the message.\n"},"gatewayResponseCode":{"type":"string","description":"Response message Code returned by the gateway about the transaction status.\n"},"referenceId":{"type":"string","maxLength":100,"description":"Unique Id generated by the gateway for each transaction. Use this ID to find the respective Zuora Payment ID. \n"},"secondReferenceId":{"type":"string","maxLength":100,"description":"The second reference Id. Some gateway uses two unique transaction IDs.\n"},"settledOn":{"type":"string","description":"The date and time of the transaction settlement. The format is `yyyy-mm-dd hh:mm:ss`.\n"}},"title":"POSTRejectPaymentRequest"},"PostRejectPaymentResponseFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PostRejectPaymentResponseFinanceInformationTransferredToAccounting"},"PostRejectPaymentResponseFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":"string","description":"The type of the accounting code that maps to a bank account in your accounting system.\n  \n"},"transferredToAccounting":{"$ref":"#/components/schemas/PostRejectPaymentResponseFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":"string","description":"The type of the accounting code for the unapplied payment.\n  \n"}},"description":"Container for the finance information related to the refund.\n","title":"PostRejectPaymentResponseFinanceInformation"},"PostRejectPaymentResponseGatewayState":{"type":"string","enum":["Submitted","NotSubmitted","Settled","FailedToSettle"],"description":"The status of the payment in the gateway; specifically used for reconciliation.\n","title":"PostRejectPaymentResponseGatewayState"},"PostRejectPaymentResponseMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer. \n","title":"PostRejectPaymentResponseMethodType"},"PostRejectPaymentResponseType":{"type":"string","enum":["External","Electronic"],"description":"The type of the payment.\n","title":"PostRejectPaymentResponseType"},"POSTRejectPaymentResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account that the payment is for.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment.\n"},"cancelledOn":{"type":"string","description":"The date and time when the payment was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the payment.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund.\n"},"createdDate":{"type":"string","description":"The date and time when the chargeback is created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2019-03-01 15:31:10.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo that is refunded.\n"},"financeInformation":{"$ref":"#/components/schemas/PostRejectPaymentResponseFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the payment.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the payment. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the payment. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/PostRejectPaymentResponseGatewayState","description":"The status of the payment in the gateway; specifically used for reconciliation.\n"},"id":{"type":"string","description":"The ID of the payment chargeback.\n"},"markedForSubmissionOn":{"type":"string","description":"The date and time when a charge was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"methodType":{"$ref":"#/components/schemas/PostRejectPaymentResponseMethodType","description":"How an external refund was issued to a customer. \n"},"number":{"type":"string","description":"The unique identification number of the payment. For example, P-00000001.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentId":{"type":"string","description":"The ID of the payment that is refunded.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot which is a copy of the particular Payment Method used in a transaction.\n"},"payoutId":{"type":"string","description":"The payout ID from the gateway side.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction.      \n"},"referenceId":{"type":"string","description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format. For example, 2017-03-01.       \n"},"refundTransactionTime":{"type":"string","description":"The date and time when the refund was issued, in `yyyy-mm-dd hh:mm:ss` format.\n"},"secondRefundReferenceId":{"type":"string","description":"The transaction ID returned by the payment gateway if there is an additional refund. \n"},"settledOn":{"type":"string","description":"The date and time when the transaction is settled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.          \n"},"status":{"type":"string","description":"The status of the payment.\n"},"submittedOn":{"type":"string","description":"The date and time when the payment was submitted, in yyyy-mm-dd hh:mm:ss format.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"type":{"$ref":"#/components/schemas/PostRejectPaymentResponseType","description":"The type of the payment.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2019-03-02 15:36:10.\n"}},"title":"POSTRejectPaymentResponse"},"POSTSettlePaymentRequest":{"type":"object","properties":{"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"payoutId":{"type":"string","description":"The payout ID from the gateway side.\n"},"settledOn":{"type":"string","description":"The date and time of the transaction settlement. The format is `yyyy-mm-dd hh:mm:ss`.\n"}},"title":"POSTSettlePaymentRequest"},"PostSettlePaymentResponseFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PostSettlePaymentResponseFinanceInformationTransferredToAccounting"},"PostSettlePaymentResponseFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":["string","null"],"minLength":0,"maxLength":100,"description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code that maps to a bank account in your accounting system.\n  \n"},"transferredToAccounting":{"$ref":"#/components/schemas/PostSettlePaymentResponseFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":"string","description":"The type of the accounting code for the unapplied payment.\n  \n"}},"description":"Container for the finance information related to the refund.\n","title":"PostSettlePaymentResponseFinanceInformation"},"PostSettlePaymentResponseGatewayState":{"type":"string","enum":["Submitted","NotSubmitted","Settled","FailedToSettle"],"description":"The status of the payment in the gateway; specifically used for reconciliation.\n","title":"PostSettlePaymentResponseGatewayState"},"PostSettlePaymentResponseType":{"type":"string","enum":["External","Electronic"],"description":"The type of the payment.\n","title":"PostSettlePaymentResponseType"},"POSTSettlePaymentResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account that the payment is for.\n"},"accountNumber":{"type":"string","description":"The number of the customer account that the payment is for.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the payment.\n"},"authTransactionId":{"type":"string","description":"The authorization transaction ID from the payment gateway.\n"},"bankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the credit card or debit card used for the payment, when applicable.\n"},"cancelledOn":{"type":"string","description":"The date and time when the payment was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the payment.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund.\n"},"createdDate":{"type":"string","description":"The date and time when the chargeback is created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2019-03-01 15:31:10.\n"},"creditBalanceAmount":{"type":"number","format":"double","description":"The amount that the payment transfers to the credit balance. The value is not `0` only for those payments that come from legacy payment operations performed without the Invoice Settlement feature.\n"},"currency":{"type":"string","description":"A currency defined in the web-based UI administrative settings.\n"},"effectiveDate":{"type":"string","description":"The date and time when the payment takes effect, in `yyyy-mm-dd hh:mm:ss` format.\n"},"paymentGatewayNumber":{"type":["string","null"],"description":"The number of the payment gateway instance.\n"},"financeInformation":{"$ref":"#/components/schemas/PostSettlePaymentResponseFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the payment.\n"},"gatewayOrderId":{"type":"string","description":"A merchant-specified natural key value that can be passed to the electronic payment gateway when a payment is created. If not specified, the payment number will be passed in instead.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":["string","null"],"description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the payment. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the payment. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/PostSettlePaymentResponseGatewayState","description":"The status of the payment in the gateway; specifically used for reconciliation.\n"},"id":{"type":"string","description":"The ID of the payment chargeback.\n"},"markedForSubmissionOn":{"type":"string","description":"The date and time when a charge was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"number":{"type":"string","description":"The unique identification number of the payment. For example, P-00000001.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot which is a copy of the particular Payment Method used in a transaction.\n"},"payoutId":{"type":["string","null"],"description":"The payout ID from the gateway side.\n"},"referenceId":{"type":"string","description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the payment that is refunded.\n"},"secondPaymentReferenceId":{"type":["string","null"],"description":"The transaction ID returned by the payment gateway if there is an additional transaction for the payment. \n"},"settledOn":{"type":"string","description":"The date and time when the transaction is settled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"status":{"type":"string","description":"The status of the payment.\n"},"submittedOn":{"type":"string","description":"The date and time when the payment was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"success":{"type":"boolean","description":"Indicates if the request is processed successfully.\n"},"type":{"$ref":"#/components/schemas/PostSettlePaymentResponseType","description":"The type of the payment.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the payment.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2019-03-02 15:36:10.\n"}},"title":"POSTSettlePaymentResponse"},"PostReconcileRefundRequestAction":{"type":"string","enum":["settle","reject"],"description":"The action of the refund reconciliation.\n  - `settle`: Sets Gateway State to \"Settled\" and returns the refund object as response.\n  - `reject`: Sets Gateway State to \"FailedToSettle\" and handle the event according to the settings configured in the Gateway Reconciliation Configuration in Payments Settings through Zuora UI. See [Configure how to handle refund rejected events](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/M_Payment_Gateways/Gateway_Reconciliation#Configure_how_to_handle_refund_rejected_events) for details.\n","title":"PostReconcileRefundRequestAction"},"POSTReconcileRefundRequest":{"type":"object","properties":{"action":{"$ref":"#/components/schemas/PostReconcileRefundRequestAction","description":"The action of the refund reconciliation.\n  - `settle`: Sets Gateway State to \"Settled\" and returns the refund object as response.\n  - `reject`: Sets Gateway State to \"FailedToSettle\" and handle the event according to the settings configured in the Gateway Reconciliation Configuration in Payments Settings through Zuora UI. See [Configure how to handle refund rejected events](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/M_Payment_Gateways/Gateway_Reconciliation#Configure_how_to_handle_refund_rejected_events) for details.\n"},"actionDate":{"type":"string","format":"datetime","description":"The date and time of the refund reconciliation action, in `yyyy-mm-dd hh:mm:ss` format.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"payoutId":{"type":"string","description":"The payout ID of the refund from the gateway side.\n"}},"title":"POSTReconcileRefundRequest"},"PostReconcileRefundResponseFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PostReconcileRefundResponseFinanceInformationTransferredToAccounting"},"PostReconcileRefundResponseFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":"string","description":"The type of the accounting code that maps to a bank account in your accounting system.\n  \n"},"transferredToAccounting":{"$ref":"#/components/schemas/PostReconcileRefundResponseFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":"string","description":"The type of the accounting code for the unapplied payment.\n  \n"}},"description":"Container for the finance information related to the refund.\n","title":"PostReconcileRefundResponseFinanceInformation"},"PostReconcileRefundResponseGatewayState":{"type":"string","enum":["Settled","FailedToSettle"],"description":"The status of the refund in the gateway; specifically used for reconciliation.\n","title":"PostReconcileRefundResponseGatewayState"},"PostReconcileRefundResponseMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer. \n","title":"PostReconcileRefundResponseMethodType"},"PostReconcileRefundResponseType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund.\n","title":"PostReconcileRefundResponseType"},"POSTReconcileRefundResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account that the refund is for.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the refund.\n"},"cancelledOn":{"type":"string","description":"The date and time when the transaction was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":"string","description":"Comments about the refund.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund.\n"},"createdDate":{"type":"string","description":"The date and time when the refund is created, in `yyyy-mm-dd hh:mm:ss` format.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo that is refunded.\n"},"financeInformation":{"$ref":"#/components/schemas/PostReconcileRefundResponseFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the refund.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the refund. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the refund. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/PostReconcileRefundResponseGatewayState","description":"The status of the refund in the gateway; specifically used for reconciliation.\n"},"id":{"type":"string","description":"The ID of the refund.\n"},"markedForSubmissionOn":{"type":"string","description":"The date and time when a refund was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"methodType":{"$ref":"#/components/schemas/PostReconcileRefundResponseMethodType","description":"How an external refund was issued to a customer. \n"},"number":{"type":"string","description":"The unique identification number of the refund. For example, R-00000001.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentId":{"type":"string","description":"The ID of the payment that is refunded.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the refund.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot which is a copy of the particular Payment Method used in a transaction.\n"},"payoutId":{"type":"string","description":"The payout ID of the refund from the gateway side.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction.      \n"},"referenceId":{"type":"string","description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format. For example, 2020-03-01.       \n"},"refundTransactionTime":{"type":"string","description":"The date and time when the refund was issued, in `yyyy-mm-dd hh:mm:ss` format.\n"},"secondRefundReferenceId":{"type":"string","description":"The transaction ID returned by the payment gateway if there is an additional refund. \n"},"settledOn":{"type":"string","description":"The date and time when the transaction is settled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.          \n"},"status":{"type":"string","description":"The status of the refund.\n"},"submittedOn":{"type":"string","description":"The date and time when the refund was submitted, in yyyy-mm-dd hh:mm:ss format.\n"},"success":{"type":"boolean","description":"Indicates if the request is processed successfully.\n"},"type":{"$ref":"#/components/schemas/PostReconcileRefundResponseType","description":"The type of the refund.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the refund.\n"},"updatedDate":{"type":"string","description":"The date and time when the refund was last updated, in `yyyy-mm-dd hh:mm:ss` format.\n"}},"title":"POSTReconcileRefundResponse"},"V1PaymentsGetParametersStatus":{"type":"string","enum":["Draft","Processing","Processed","Error","Canceled","Posted"],"title":"V1PaymentsGetParametersStatus"},"V1PaymentsGetParametersType":{"type":"string","enum":["External","Electronic"],"title":"V1PaymentsGetParametersType"},"GetarPaymentTypewithSuccessFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"GetarPaymentTypewithSuccessFinanceInformationTransferredToAccounting"},"GetarPaymentTypewithSuccessFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":["string","null"],"description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"oneOf":[{"$ref":"#/components/schemas/GetarPaymentTypewithSuccessFinanceInformationTransferredToAccounting"},{"type":"null"}],"description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":["string","null"],"description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the payment.\n","title":"GetarPaymentTypewithSuccessFinanceInformation"},"GetarPaymentTypewithSuccessGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the payment in the gateway; use for reconciliation. \n","title":"GetarPaymentTypewithSuccessGatewayState"},"PaymentSchedulePaymentOptionFieldsDetail":{"type":"object","properties":{"key":{"type":"string","description":"The name of the field.\n"},"value":{"type":"string","description":"The value of the field.\n"}},"description":"The field used to pass the transactional payment data to the gateway side in the key-value format.\n","title":"PaymentSchedulePaymentOptionFieldsDetail"},"PaymentSchedulePaymentOptionFields":{"type":"object","properties":{"detail":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFieldsDetail","description":"The field used to pass the transactional payment data to the gateway side in the key-value format.\n"},"type":{"type":"string","description":"The type of the payment option. Currently, only `GatewayOptions` is supported for specifying Gateway Options fields supported by a payment gateway.\n"}},"title":"PaymentSchedulePaymentOptionFields"},"GetarPaymentTypewithSuccessStatus":{"type":"string","enum":["Draft","Processing","Processed","Error","Canceled","Posted"],"description":"The status of the payment.\n","title":"GetarPaymentTypewithSuccessStatus"},"GetarPaymentTypewithSuccessType":{"type":"string","enum":["External","Electronic"],"description":"The type of the payment.\n","title":"GetarPaymentTypewithSuccessType"},"GETARPaymentTypewithSuccess":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account that the payment is for.\n"},"accountNumber":{"type":"string","description":"The number of the customer account that the payment is for.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the payment.\n"},"authTransactionId":{"type":["string","null"],"description":"The authorization transaction ID from the payment gateway.\n"},"bankIdentificationNumber":{"type":["string","null"],"description":"The first six or eight digits of the credit card or debit card used for the payment, when applicable.\n"},"cancelledOn":{"type":["string","null"],"description":"The date and time when the payment was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":"string","description":"Comments about the payment.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the payment part.\n"},"createdDate":{"type":"string","description":"The date and time when the payment was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditBalanceAmount":{"type":"number","format":"double","description":"The amount that the payment transfers to the credit balance. The value is not `0` only for those payments that come from legacy payment operations performed without the Invoice Settlement feature.\n"},"currency":{"type":"string","description":"When Standalone Payment is not enabled, the `currency` of the payment must be the same as the payment currency defined in the customer account settings through Zuora UI.\n\nWhen Standalone Payment is enabled and `standalone` is `true`, the `currency` of the standalone payment can be different from the payment currency defined in the customer account settings. The amount will not be summed up to the account balance or key metrics regardless of currency.\n"},"effectiveDate":{"type":"string","description":"The date and time when the payment takes effect, in `yyyy-mm-dd hh:mm:ss` format.\n"},"financeInformation":{"$ref":"#/components/schemas/GetarPaymentTypewithSuccessFinanceInformation","description":"Container for the finance information related to the payment.\n"},"gatewayId":{"type":["string","null"],"description":"The ID of the gateway instance that processes the payment.\n"},"gatewayOrderId":{"type":["string","null"],"description":"A merchant-specified natural key value that can be passed to the electronic payment gateway when a payment is created.\n"},"gatewayReconciliationReason":{"type":["string","null"],"description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":["string","null"],"description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":["string","null"],"description":"The message returned from the payment gateway for the payment. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":["string","null"],"description":"The code returned from the payment gateway for the payment. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/GetarPaymentTypewithSuccessGatewayState","description":"The status of the payment in the gateway; use for reconciliation. \n"},"id":{"type":"string","description":"The unique ID of the payment. For example, 4028905f5a87c0ff015a87eb6b75007f.\n"},"markedForSubmissionOn":{"type":["string","null"],"description":"The date and time when a payment was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"number":{"type":"string","description":"The unique identification number of the payment. For example, P-00000001.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentGatewayNumber":{"type":"string","description":"The natural key for the payment gateway.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment.\n"},"paymentMethodSnapshotId":{"type":["string","null"],"description":"The unique ID of the payment method snapshot which is a copy of the particular Payment Method used in a transaction.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"paymentScheduleKey":{"type":"string","description":"The unique ID or the number of the payment schedule that is linked to the payment. See [Link payments to payment schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/Link_payments_with_payment_schedules) for more information."},"payoutId":{"type":["string","null"],"description":"The payout ID of the payment from the gateway side.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the payment is used as a reserved payment. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information.\n"},"referenceId":{"type":["string","null"],"description":"The transaction ID returned by the payment gateway. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the payment that is refunded.\n"},"secondPaymentReferenceId":{"type":["string","null"],"description":"The transaction ID returned by the payment gateway if there is an additional transaction for the payment. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":["string","null"],"description":"The date and time when the payment was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":["string","null"],"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"softDescriptorPhone":{"type":["string","null"],"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"standalone":{"type":"boolean","default":false,"description":"This field is only available if the support for standalone payment is enabled.\n\nThe value `true` indicates this is a standalone payment that is created and processed in Zuora through Zuora gateway integration but will be settled outside of Zuora. No settlement data will be created. The standalone payment cannot be applied, unapplied, or transferred.\n\nThe value `false` indicates this is an ordinary payment that is created, processed, and settled in Zuora.\n"},"status":{"$ref":"#/components/schemas/GetarPaymentTypewithSuccessStatus","description":"The status of the payment.\n"},"submittedOn":{"type":["string","null"],"description":"The date and time when the payment was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"type":{"$ref":"#/components/schemas/GetarPaymentTypewithSuccessType","description":"The type of the payment.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the payment.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the payment's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the payment was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Payment object.\n","title":"GETARPaymentTypewithSuccess"},"PaymentCollectionResponseType":{"type":"object","properties":{"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/GETARPaymentTypewithSuccess"},"description":"Container for payments.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"PaymentCollectionResponseType"},"PaymentWithCustomRatesType":{"type":"object","properties":{"currency":{"type":"string","description":"The currency code for either Reporting or Home currency.\n\n**Note**: This field is only available if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"customFxRate":{"type":"number","format":"double","description":"The Custom FX conversion rate between Home/Reporting and Transactional currency items.\n\n**Note**: This field is only available if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"rateDate":{"type":"string","format":"date","description":"The date on which a particular currency rate is fixed or obtained on.\n\n**Note**: This field is only available if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"}},"required":["currency","customFxRate"],"title":"PaymentWithCustomRatesType"},"PaymentDebitMemoApplicationItemCreateRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment associated with the specific debit memo or taxation item.\n"},"debitMemoItemId":{"type":"string","description":"The ID of the specific debit memo item.\n"},"taxItemId":{"type":"string","description":"The ID of the specific taxation item.\n"}},"required":["amount"],"title":"PaymentDebitMemoApplicationItemCreateRequestType"},"PaymentDebitMemoApplicationCreateRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment associated with the debit memo.\n"},"debitMemoId":{"type":"string","description":"The unique ID of the debit memo that the payment is created on.\n\n**Note:**\n  - The Payment Cross Account (PCA) feature is in the Early Adopter stage. To gain access to this capability, please create a Zuora support ticket. \n  - When PCA is enabled for the tenant, you can specify a debit memo / invoice that is different from the account that is specified in the request body.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentDebitMemoApplicationItemCreateRequestType"},"description":"Container for debit memo items. The maximum number of items is 1,000.\n\n**Note:** This field 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"}},"title":"PaymentDebitMemoApplicationCreateRequestType"},"CreatePaymentTypeFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"CreatePaymentTypeFinanceInformationTransferredToAccounting"},"CreatePaymentTypeFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/CreatePaymentTypeFinanceInformationTransferredToAccounting","description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the payment.\n","title":"CreatePaymentTypeFinanceInformation"},"CreatePaymentTypeGatewayOptions":{"type":"object","properties":{"key":{"type":"string","maxLength":255,"description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","maxLength":255,"description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"CreatePaymentTypeGatewayOptions"},"PaymentInvoiceApplicationItemCreateRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment associated with the specific invoice or taxation item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the specific invoice item.\n"},"taxItemId":{"type":"string","description":"The ID of the specific taxation item.\n"}},"required":["amount"],"title":"PaymentInvoiceApplicationItemCreateRequestType"},"PaymentInvoiceApplicationCreateRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment associated with the invoice. This amount must be equal to or lesser than the balance of the invoice.\n"},"invoiceId":{"type":"string","description":"The unique ID of the invoice that the payment is created on. The balance of the invoice specified must not be `0`.\n\n **Note:**\n  - The Payment Cross Account (PCA) feature is in the Early Adopter stage. To gain access to this capability, please create a Zuora support ticket. \n  - When PCA is enabled for the tenant, you can specify a debit memo / invoice that is different from the account that is specified in the request body.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentInvoiceApplicationItemCreateRequestType"},"description":"Container for invoice items. The maximum number of items is 1,000.\n\n**Note:** This field 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"}},"title":"PaymentInvoiceApplicationCreateRequestType"},"CreatePaymentTypeMitTransactionSource":{"type":"string","enum":["C_Unscheduled","M_Recurring","M_Unscheduled","M_MOTO"],"description":"Payment transaction source used to differentiate the transaction source in Stored Credential Transaction framework.\n  - `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.\n  - `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_MOTO`: Mail Order Telephone Order (MOTO) payment transaction. This option is only available for credit card payments on Stripe v2. See [Overview of Stripe payment gateway integration](https://knowledgecenter.zuora.com/Zuora_Collect/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration) for more information.\n","title":"CreatePaymentTypeMitTransactionSource"},"CreatePaymentTypeType":{"type":"string","enum":["External","Electronic"],"description":"The type of the payment.\n\n**Note**:  If you specify the type as `Electronic`, you must specify the value for `accountId` or `accountNumber`.\n","title":"CreatePaymentTypeType"},"CreatePaymentType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account that the payment is created for.\n"},"accountNumber":{"type":"string","description":"The number of the customer account that the payment is created for, such as `A00000001`.\n\nYou can specify either `accountNumber` or `accountId` for a customer account. If both of them are specified, they must refer to the same customer account.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment.\n"},"authTransactionId":{"type":"string","maxLength":50,"description":"The authorization transaction ID from the payment gateway. Use this field for electronic payments, such as credit cards.\n\nWhen you create a payment for capturing the authorized funds, it is highly recommended to pass in the gatewayOrderId that you used when authorizing the funds by using the [Create authorization](https://www.zuora.com/developer/api-references/api/operation/POST_CreateAuthorization) operation, together with the `authTransactionId` field.\n\nThe following payment gateways support this field:\n  - Adyen Integration v2.0\n  - CyberSource 1.28\n  - CyberSource 1.97\n  - CyberSource 2.0\n  - Chase Paymentech Orbital\n  - Ingenico ePayments\n  - SlimPay\n  - Stripe v2\n  - Verifi Global Payment Gateway\n  - WePay Payment Gateway Integration\n"},"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Additional information related to the payment.\n"},"currency":{"type":"string","description":"When Standalone Payment is not enabled, the `currency` of the payment must be the same as the payment currency defined in the customer account settings through Zuora UI. But if you have the [Multiple Currencies](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies) feature enabled, you can have a different payment currency.\n\nWhen Standalone Payment is enabled and `standalone` is `true`, the `currency` of the standalone payment can be different from the payment currency defined in the customer account settings. The amount will not be summed up to the account balance or key metrics regardless of currency.\n"},"customRates":{"type":"array","items":{"$ref":"#/components/schemas/PaymentWithCustomRatesType"},"description":"It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item or Reporting currency item or both).\n\n**Note**:\n  \n- This field is only available if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n- You cannot set the custom rates, if both the **Automatically include additional Currency Conversion information in data source exports** option and **Fx data** feature are enabled.\n- Payment, PaymentApplication, and PaymentApplicationItem will utilize the provided custom Fx rate to convert amounts from the transactional currency to the home currency.\n"},"debitMemos":{"type":"array","items":{"$ref":"#/components/schemas/PaymentDebitMemoApplicationCreateRequestType"},"description":"Container for debit memos. The maximum number of debit memos is 1,000.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the payment takes effect, in `yyyy-mm-dd` format.\n\n**Note:**\n  - This field is required for only electronic payments. It's an optional field for external payments.\n  - When specified, this field must be set to the date of today.\n  - When applying or transferring payments, this field must be later than or equal to the maximum effective date of the payment.\n"},"financeInformation":{"$ref":"#/components/schemas/CreatePaymentTypeFinanceInformation","description":"Container for the finance information related to the payment.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the payment. The ID must be a valid gateway instance ID and this gateway must support the specific payment method.\n\n- If <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled, when creating electronic payments, this field is optional. \n    - If this field is not specified, gateway routing rules will be invoked.\n    - If this field is specified, the specified gateway will be used to process the payment.\n\n- If Payment Gateway Routing is disabled, when creating electronic payments, this field is required.\n\n- When creating external payments, this field is optional.\n\nUse the same gateway instance if both `paymentGatewayNumber` and\n`gatewayId` are sent in the request.\n"},"gatewayOptions":{"$ref":"#/components/schemas/CreatePaymentTypeGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"gatewayOrderId":{"type":"string","maxLength":50,"description":"A merchant-specified natural key value that can be passed to the electronic payment gateway when a payment is created. If not specified, the payment number will be passed in instead.\n\nGateways check duplicates on the gateway order ID to ensure that the merchant do not accidentally enter the same transaction twice. This ID can also be used to do reconciliation and tie the payment to a natural key in external systems. The source of this ID varies by merchant. Some merchants use their shopping cart order IDs, and others use something different. Merchants use this ID to track transactions in their eCommerce systems.\n\nWhen you create a payment for capturing the authorized funds, it is highly recommended to pass in the gatewayOrderId that you used when authorizing the funds by using the [Create authorization](https://www.zuora.com/developer/api-references/api/operation/POST_CreateAuthorization) operation, together with the `authTransactionId` field.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/PaymentInvoiceApplicationCreateRequestType"},"description":"Container for invoices. The maximum number of invoices is 1,000.\n"},"mitTransactionSource":{"$ref":"#/components/schemas/CreatePaymentTypeMitTransactionSource","description":"Payment transaction source used to differentiate the transaction source in Stored Credential Transaction framework.\n  - `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.\n  - `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_MOTO`: Mail Order Telephone Order (MOTO) payment transaction. This option is only available for credit card payments on Stripe v2. See [Overview of Stripe payment gateway integration](https://knowledgecenter.zuora.com/Zuora_Collect/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration) for more information.\n"},"paymentGatewayNumber":{"type":"string","description":"The natural key for the payment gateway. \n\nUse the same gateway instance if both `paymentGatewayNumber` and `gatewayId` are sent in the request.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment. \n\nIf no payment method ID is specified in the request body, the default payment method for the customer account is used automatically. If the default payment method is different from the type of payments that you want to create, an error occurs.\n"},"paymentMethodType":{"type":"string","default":null,"description":"The type of the payment method that the customer used to make the payment. \n\nSpecify this value when you are creating an external payment method. If both `paymentMethodType` and `paymentMethodId` are specified, only the `paymentMethodId` value is used to create the payment.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\nHere is an example:\n```\n\"paymentOption\": [\n  {\n    \"type\": \"GatewayOptions\",\n    \"detail\": {\n      \"SecCode\":\"WEB\"\n    }\n  }\n]\n```\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n\nYou can use this field or the `gatewayOptions` field to pass the Gateway Options fields supported by a payment gateway. However, the Gateway Options fields passed through the `paymentOption` field will be stored in the Payment Option object and can be easily retrieved.\n"},"paymentScheduleKey":{"type":"string","description":"The unique ID or the number of the payment schedule to be linked with the payment. See [Link payments to payment schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/Link_payments_with_payment_schedules) for more information."},"prepayment":{"type":"boolean","description":"Indicates whether the payment will be used as a reserved payment. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information.\n"},"referenceId":{"type":"string","minLength":0,"maxLength":100,"description":"The transaction ID returned by the payment gateway. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"softDescriptor":{"type":"string","maxLength":35,"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi."},"softDescriptorPhone":{"type":"string","maxLength":20,"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi."},"standalone":{"type":"boolean","default":false,"description":"This field is only available if support for standalone payments is enabled.\n\nSpecify `true` to create a standalone payment that will be processed in Zuora through Zuora gateway integration but will be settled outside of Zuora.\n\nWhen `standalone` is set to `true`:\n  - `accountId`, `amount`, `currency`, and `type` are required. \n  - `type` must be `Electronic`.\n  - `currency` of the payment can be different from the payment currency in the customer account settings.\n  - The amount will not be summed up into the account balance and key metrics regardless of the payment currency.\n  - No settlement data will be created.\n  - Either the applied amount or the unapplied amount of the payment is zero.\n  - The standalone payment cannot be applied, unapplied, or transferred.\n\nSpecify `false` to create an ordinary payment that will be created, processed, and settled in Zuora. The `currency` of an ordinary payment must be the same as the currency in the customer account settings.\n"},"type":{"$ref":"#/components/schemas/CreatePaymentTypeType","description":"The type of the payment.\n\n**Note**:  If you specify the type as `Electronic`, you must specify the value for `accountId` or `accountNumber`.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the payment's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the payment was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["amount","currency","type"],"description":"Container for custom fields of a Payment object.\n","title":"CreatePaymentType"},"GetarPaymentTypeWithPaymentOptionFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"GetarPaymentTypeWithPaymentOptionFinanceInformationTransferredToAccounting"},"GetarPaymentTypeWithPaymentOptionFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":["string","null"],"description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"oneOf":[{"$ref":"#/components/schemas/GetarPaymentTypeWithPaymentOptionFinanceInformationTransferredToAccounting"},{"type":"null"}],"description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":["string","null"],"description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the payment.\n","title":"GetarPaymentTypeWithPaymentOptionFinanceInformation"},"GetarPaymentTypeWithPaymentOptionGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the payment in the gateway; use for reconciliation.\n","title":"GetarPaymentTypeWithPaymentOptionGatewayState"},"GetarPaymentTypeWithPaymentOptionStatus":{"type":"string","enum":["Draft","Processing","Processed","Error","Canceled","Posted","Pending"],"description":"The status of the payment.\n\nIf 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, possible values are `Draft`, `Processing`, `Processed`, `Error`, `Canceled`, and `Posted`.\n\nIf the Asynchronous Payment Statuses feature is enabled, when the ACH or Bank Transfer payment is created, it is in a `Pending` status upon successful network communication with the gateway. To transition from a `Pending` status to another status, use one of our Gateway Reconciliation options or cancel the payment.\n","title":"GetarPaymentTypeWithPaymentOptionStatus"},"GetarPaymentTypeWithPaymentOptionType":{"type":"string","enum":["External","Electronic"],"description":"The type of the payment.\n","title":"GetarPaymentTypeWithPaymentOptionType"},"GETARPaymentTypeWithPaymentOption":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account that the payment is for.\n"},"accountNumber":{"type":"string","description":"The number of the customer account that the payment is for.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the payment.\n"},"authTransactionId":{"type":"string","description":"The authorization transaction ID from the payment gateway.\n"},"bankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the credit card or debit card used for the payment, when applicable.\n"},"cancelledOn":{"type":["string","null"],"description":"The date and time when the payment was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the payment.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the payment.\n"},"createdDate":{"type":"string","description":"The date and time when the payment was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditBalanceAmount":{"type":"number","format":"double","description":"The amount that the payment transfers to the credit balance. The value is not `0` only for those payments that come from legacy payment operations performed without the Invoice Settlement feature.\n"},"currency":{"type":"string","description":"When Standalone Payment is not enabled, the `currency` of the payment must be the same as the payment currency defined in the customer account settings through Zuora UI.\n\nWhen Standalone Payment is enabled and `standalone` is `true`, the `currency` of the standalone payment can be different from the payment currency defined in the customer account settings. The amount will not be summed up to the account balance or key metrics regardless of currency.\n"},"effectiveDate":{"type":"string","description":"The date and time when the payment takes effect, in `yyyy-mm-dd hh:mm:ss` format.\n"},"financeInformation":{"$ref":"#/components/schemas/GetarPaymentTypeWithPaymentOptionFinanceInformation","description":"Container for the finance information related to the payment.\n"},"gatewayId":{"type":["string","null"],"description":"The ID of the gateway instance that processes the payment.\n"},"gatewayOrderId":{"type":"string","description":"A merchant-specified natural key value that can be passed to the electronic payment gateway when a payment is created.  If not specified, the payment number will be passed in instead.\n"},"gatewayReconciliationReason":{"type":["string","null"],"description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":["string","null"],"description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":["string","null"],"description":"The message returned from the payment gateway for the payment. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the payment. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/GetarPaymentTypeWithPaymentOptionGatewayState","description":"The status of the payment in the gateway; use for reconciliation.\n"},"id":{"type":"string","description":"The unique ID of the created payment. For example, 4028905f5a87c0ff015a87eb6b75007f.\n"},"markedForSubmissionOn":{"type":"string","description":"The date and time when a payment was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"number":{"type":"string","description":"The unique identification number of the payment. For example, P-00000001.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentGatewayNumber":{"type":["string","null"],"description":"The natural key for the payment gateway.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment.\n"},"paymentMethodSnapshotId":{"type":["string","null"],"description":"The unique ID of the payment method snapshot which is a copy of the particular Payment Method used in a transaction.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"paymentScheduleKey":{"type":"string","description":"The unique ID or the number of the payment schedule that is linked to the payment. See [Link payments to payment schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/Link_payments_with_payment_schedules) for more information."},"payoutId":{"type":["string","null"],"description":"The payout ID of the payment from the gateway side.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the payment is used as a reserved payment. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information.\n"},"referenceId":{"type":["string","null"],"description":"The transaction ID returned by the payment gateway. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the payment that is refunded.\n"},"secondPaymentReferenceId":{"type":["string","null"],"description":"The transaction ID returned by the payment gateway if there is an additional transaction for the payment. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":["string","null"],"description":"The date and time when the payment was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":["string","null"],"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"softDescriptorPhone":{"type":["string","null"],"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"standalone":{"type":"boolean","default":false,"description":"This field is only available if the support for standalone payment is enabled. This field is not available for transferring, applying, or unapplying a payment.\n\nThe value `true` indicates this is a standalone payment that is created and processed in Zuora through Zuora gateway integration but will be settled outside of Zuora. No settlement data will be created. The standalone payment cannot be applied, unapplied, or transferred.\n\nThe value `false` indicates this is an ordinary payment that is created, processed, and settled in Zuora.\n"},"status":{"$ref":"#/components/schemas/GetarPaymentTypeWithPaymentOptionStatus","description":"The status of the payment.\n\nIf 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, possible values are `Draft`, `Processing`, `Processed`, `Error`, `Canceled`, and `Posted`.\n\nIf the Asynchronous Payment Statuses feature is enabled, when the ACH or Bank Transfer payment is created, it is in a `Pending` status upon successful network communication with the gateway. To transition from a `Pending` status to another status, use one of our Gateway Reconciliation options or cancel the payment.\n"},"submittedOn":{"type":"string","description":"The date and time when the payment was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"type":{"$ref":"#/components/schemas/GetarPaymentTypeWithPaymentOptionType","description":"The type of the payment.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the payment.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the payment's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the payment was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Payment object.\n","title":"GETARPaymentTypeWithPaymentOption"},"GetarPaymentTypeFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"GetarPaymentTypeFinanceInformationTransferredToAccounting"},"GetarPaymentTypeFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":"string","description":"The type of the accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetarPaymentTypeFinanceInformationTransferredToAccounting","description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":"string","description":"The type of the accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the payment.\n","title":"GetarPaymentTypeFinanceInformation"},"GetarPaymentTypeGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the payment in the gateway; use for reconciliation.\n","title":"GetarPaymentTypeGatewayState"},"GetarPaymentTypeStatus":{"type":"string","enum":["Draft","Processing","Processed","Error","Canceled","Posted"],"description":"The status of the payment.\n","title":"GetarPaymentTypeStatus"},"GetarPaymentTypeType":{"type":"string","enum":["External","Electronic"],"description":"The type of the payment.\n","title":"GetarPaymentTypeType"},"GETARPaymentType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account that the payment is for.\n"},"accountNumber":{"type":"string","description":"The number of the customer account that the payment is for.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the payment.\n"},"authTransactionId":{"type":"string","description":"The authorization transaction ID from the payment gateway.\n"},"bankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the credit card or debit card used for the payment, when applicable.\n"},"cancelledOn":{"type":"string","description":"The date and time when the payment was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the payment.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the payment.\n"},"createdDate":{"type":"string","description":"The date and time when the payment was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditBalanceAmount":{"type":"number","format":"double","description":"The amount that the payment transfers to the credit balance. The value is not `0` only for those payments that come from legacy payment operations performed without the Invoice Settlement feature.\n"},"currency":{"type":"string","description":"When Standalone Payment is not enabled, the `currency` of the payment must be the same as the payment currency defined in the customer account settings through Zuora UI.\n\nWhen Standalone Payment is enabled and `standalone` is `true`, the `currency` of the standalone payment can be different from the payment currency defined in the customer account settings. The amount will not be summed up to the account balance or key metrics regardless of currency.\n"},"effectiveDate":{"type":"string","description":"The date and time when the payment takes effect, in `yyyy-mm-dd hh:mm:ss` format.\n"},"financeInformation":{"$ref":"#/components/schemas/GetarPaymentTypeFinanceInformation","description":"Container for the finance information related to the payment.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the payment.\n"},"gatewayOrderId":{"type":"string","description":"A merchant-specified natural key value that can be passed to the electronic payment gateway when a payment is created.  If not specified, the payment number will be passed in instead.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the payment. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the payment. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/GetarPaymentTypeGatewayState","description":"The status of the payment in the gateway; use for reconciliation.\n"},"id":{"type":"string","description":"The unique ID of the created payment. For example, 4028905f5a87c0ff015a87eb6b75007f.\n"},"markedForSubmissionOn":{"type":"string","description":"The date and time when a payment was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"number":{"type":"string","description":"The unique identification number of the payment. For example, P-00000001.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentGatewayNumber":{"type":"string","description":"The natural key for the payment gateway.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot which is a copy of the particular Payment Method used in a transaction.\n"},"paymentScheduleKey":{"type":"string","description":"The unique ID or the number of the payment schedule that is linked to the payment. See [Link payments to payment schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/Link_payments_with_payment_schedules) for more information."},"payoutId":{"type":"string","description":"The payout ID of the payment from the gateway side.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the payment is used as a reserved payment. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information.\n"},"referenceId":{"type":"string","description":"The transaction ID returned by the payment gateway. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the payment that is refunded.\n"},"secondPaymentReferenceId":{"type":"string","description":"The transaction ID returned by the payment gateway if there is an additional transaction for the payment. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":"string","description":"The date and time when the payment was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"standalone":{"type":"boolean","default":false,"description":"This field is only available if the support for standalone payment is enabled. This field is not available for transferring, applying, or unapplying a payment.\n\nThe value `true` indicates this is a standalone payment that is created and processed in Zuora through Zuora gateway integration but will be settled outside of Zuora. No settlement data will be created. The standalone payment cannot be applied, unapplied, or transferred.\n\nThe value `false` indicates this is an ordinary payment that is created, processed, and settled in Zuora.\n"},"status":{"$ref":"#/components/schemas/GetarPaymentTypeStatus","description":"The status of the payment.\n"},"submittedOn":{"type":"string","description":"The date and time when the payment was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"type":{"$ref":"#/components/schemas/GetarPaymentTypeType","description":"The type of the payment.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the payment.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the payment's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the payment was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Payment object.\n","title":"GETARPaymentType"},"UpdatePaymentTypeFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"UpdatePaymentTypeFinanceInformationTransferredToAccounting"},"UpdatePaymentTypeFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/UpdatePaymentTypeFinanceInformationTransferredToAccounting","description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the payment.\n\nFor a standalone payment, the finance information cannot be updated.\n","title":"UpdatePaymentTypeFinanceInformation"},"UpdatePaymentTypeGatewayState":{"type":"string","enum":["NotSubmitted","Submitted","Settled","FailedToSettle"],"description":"This field is mainly used for gateway reconciliation. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DA_Electronic_Payment_Processing#Gateway_Reconciliation_Consideration\" target=\"_blank\">Electronic payment processing</a> for details.\n\nYou must have the **Edit Payment Gateway Status** <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Tenant_Management/A_Administrator_Settings/User_Roles/e_Payments_Roles\" target=\"_blank\">user permission</a> to update this field.\n","title":"UpdatePaymentTypeGatewayState"},"UpdatePaymentType":{"type":"object","properties":{"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the payment.\n"},"financeInformation":{"$ref":"#/components/schemas/UpdatePaymentTypeFinanceInformation","description":"Container for the finance information related to the payment.\n\nFor a standalone payment, the finance information cannot be updated.\n"},"gatewayState":{"$ref":"#/components/schemas/UpdatePaymentTypeGatewayState","description":"This field is mainly used for gateway reconciliation. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DA_Electronic_Payment_Processing#Gateway_Reconciliation_Consideration\" target=\"_blank\">Electronic payment processing</a> for details.\n\nYou must have the **Edit Payment Gateway Status** <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Tenant_Management/A_Administrator_Settings/User_Roles/e_Payments_Roles\" target=\"_blank\">user permission</a> to update this field.\n"},"paymentScheduleKey":{"type":"string","description":"The unique ID or the number of the payment schedule to be linked with the payment. See [Link payments to payment schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/Link_payments_with_payment_schedules) for more information."},"referenceId":{"type":"string","minLength":0,"maxLength":100,"description":"The transaction ID returned by the payment gateway. Use this field to reconcile payments between your gateway and Zuora Payments.\n\nYou can only update the reference ID for external payments.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the payment's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the payment was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Transaction__NS":{"type":"string","maxLength":255,"description":"Related transaction in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Payment object.\n","title":"UpdatePaymentType"},"PaymentDebitMemoApplicationItemApplyRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment that is applied to the specific debit memo or taxation item.\n"},"debitMemoItemId":{"type":"string","description":"The ID of the specific debit memo item.\n"},"taxItemId":{"type":"string","description":"The ID of the specific taxation item.\n"}},"required":["amount"],"title":"PaymentDebitMemoApplicationItemApplyRequestType"},"PaymentDebitMemoApplicationApplyRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount that is applied from the payment to the debit memo.\n"},"debitMemoId":{"type":"string","description":"The unique ID of the debit memo that the payment is applied to.\n\nIf `debitMemoId` or `debitMemoNumber` is specified, the `writeOff` value can be set to true. This enables writing off a debit memo at the time of refund.\n\n**Note:**\n  - The Payment Cross Account (PCA) feature is in the Early Adopter phase.\n  - When PCA is enabled for the tenant, you can specify a debit memo / invoice that is different from the account that is specified in the request body.\n"},"debitMemoNumber":{"type":"string","description":"The number of the debit memo that the payment is applied to.\n\n**Note:**\n  - The Payment Cross Account (PCA) feature is in the Early Adopter phase. \n  - When PCA is enabled for the tenant, you can specify a debit memo / invoice that is different from the account that is specified in the request body.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentDebitMemoApplicationItemApplyRequestType"},"description":"Container for debit memo items. The maximum number of items is 1,000.\n\n**Note:** This field 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"}},"required":["amount"],"title":"PaymentDebitMemoApplicationApplyRequestType"},"PaymentInvoiceApplicationItemApplyRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment that is applied to the specific invoice or taxation item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the specific invoice item.\n"},"taxItemId":{"type":"string","description":"The ID of the specific taxation item.\n"}},"required":["amount"],"title":"PaymentInvoiceApplicationItemApplyRequestType"},"PaymentInvoiceApplicationApplyRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount that is applied from the payment to the invoice.\n"},"invoiceId":{"type":"string","description":"The unique ID of the invoice that the payment is applied to.\n\nIf `invoiceId` or `invoiceNumber` is specified, the `writeOff` value can be set to true. This enables writing off a debit memo at the time of refund.\n\n**Note:**\n  - The Payment Cross Account (PCA) feature is in the Early Adopter phase.\n  - When PCA is enabled for the tenant, you can specify a debit memo / invoice that is different from the account that is specified in the request body.\n"},"invoiceNumber":{"type":"string","description":"The number of the invoice that the payment is applied to. For example, `INV00000001`. \n\n**Note:** When both the `invoiceNumber` and `invoiceId` fields are specified, the two fields must match with each other.\n\n  - The Payment Cross Account (PCA) feature is in the Early Adopter phase.\n  - When PCA is enabled for the tenant, you can specify a debit memo / invoice that is different from the account that is specified in the request body.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentInvoiceApplicationItemApplyRequestType"},"description":"Container for invoice items. The maximum number of items is 1,000.\n\n**Note:** This field 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"}},"required":["amount"],"title":"PaymentInvoiceApplicationApplyRequestType"},"ApplyPaymentType":{"type":"object","properties":{"debitMemos":{"type":"array","items":{"$ref":"#/components/schemas/PaymentDebitMemoApplicationApplyRequestType"},"description":"Container for debit memos. The maximum number of debit memos is 1,000.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the payment application takes effect, in `yyyy-mm-dd` format. The effective date must be later than or equal to the maximum effective date of the payment.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/PaymentInvoiceApplicationApplyRequestType"},"description":"Container for invoices. The maximum number of invoices is 1,000.\n"}},"title":"ApplyPaymentType"},"GETPaymentPartTypewithSuccess":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment part.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the payment part.\n"},"createdDate":{"type":"string","description":"The date and time when the payment part was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"debitMemoId":{"type":"string","description":"The ID of the debit memo associated with the payment part.\n"},"id":{"type":"string","description":"The ID of the payment part.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice associated with the payment part.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment part.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment part was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"title":"GETPaymentPartTypewithSuccess"},"GETPaymentPartsCollectionType":{"type":"object","properties":{"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/GETPaymentPartTypewithSuccess"},"description":"Container for payment parts.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETPaymentPartsCollectionType"},"GETPaymentPartType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment part.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the payment part.\n"},"createdDate":{"type":"string","description":"The date and time when the payment part was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"debitMemoId":{"type":"string","description":"The ID of the debit memo associated with the payment part.\n"},"id":{"type":"string","description":"The ID of the payment part.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice associated with the payment part.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment part.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment part was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"title":"GETPaymentPartType"},"GETPaymentItemPartTypewithSuccess":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment part item.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the payment part item.\n"},"createdDate":{"type":"string","description":"The date and time when the payment part item was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"debitMemoItemId":{"type":"string","description":"The ID of the debit memo item associated with the payment part item.\n"},"id":{"type":"string","description":"The ID of the payment part item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item associated with the payment part item.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"taxItemId":{"type":"string","description":"The ID of the taxation item associated with the payment part item.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment part item.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment part item was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"title":"GETPaymentItemPartTypewithSuccess"},"GETPaymentItemPartCollectionType":{"type":"object","properties":{"itemParts":{"type":"array","items":{"$ref":"#/components/schemas/GETPaymentItemPartTypewithSuccess"},"description":"Container for payment part items.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETPaymentItemPartCollectionType"},"GETPaymentItemPartType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment part item.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the payment part item.\n"},"createdDate":{"type":"string","description":"The date and time when the payment part item was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"debitMemoItemId":{"type":"string","description":"The ID of the debit memo item associated with the payment part item.\n"},"id":{"type":"string","description":"The ID of the payment part item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item associated with the payment part item.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"taxItemId":{"type":"string","description":"The ID of the taxation item associated with the payment part item.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment part item.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment part item was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"title":"GETPaymentItemPartType"},"PostRefundTypeFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PostRefundTypeFinanceInformationTransferredToAccounting"},"PostRefundTypeFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PostRefundTypeFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the refund.\n","title":"PostRefundTypeFinanceInformation"},"PostRefundTypeGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"PostRefundTypeGatewayOptions"},"PostRefundTypeMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer. This field is required for an external refund and must be left empty for an electronic refund. You can issue an external refund on an electronic payment.\n","title":"PostRefundTypeMethodType"},"PostRefundTypeType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund.\n","title":"PostRefundTypeType"},"PostRefundTypeRefundTransactionType":{"type":"string","enum":["Chargeback","PaymentReversal"],"description":"The transaction type of the refund.\n","title":"PostRefundTypeRefundTransactionType"},"PostRefundType":{"type":"object","properties":{"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the refund.\n"},"customRates":{"type":"array","items":{"$ref":"#/components/schemas/PaymentWithCustomRatesType"},"description":"It contains Home currency and Reporting currency custom rates currencies. The maximum number of items is 2 (you can pass the Home currency item, Reporting currency item, or both).\n\n**Note**:\n  \n- This field is only available if you are on the latest Zuora API minor version, or you set the `Zuora-Version` request header to `224.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n- You cannot set the custom rates, if both the **Automatically include additional Currency Conversion information in data source exports** option and **Fx data** feature are enabled.\n"},"financeInformation":{"$ref":"#/components/schemas/PostRefundTypeFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayOptions":{"$ref":"#/components/schemas/PostRefundTypeGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"methodType":{"$ref":"#/components/schemas/PostRefundTypeMethodType","description":"How an external refund was issued to a customer. This field is required for an external refund and must be left empty for an electronic refund. You can issue an external refund on an electronic payment.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code.\n"},"referenceId":{"type":"string","minLength":0,"maxLength":100,"description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format. The date of the refund cannot be before the payment date. Specify this field only for external refunds. Zuora automatically generates this field for electronic refunds.\n"},"secondRefundReferenceId":{"type":"string","minLength":0,"maxLength":100,"description":"The transaction ID returned by the payment gateway if there is an additional transaction for the refund. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"softDescriptor":{"type":"string","maxLength":35,"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi."},"softDescriptorPhone":{"type":"string","maxLength":20,"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi."},"totalAmount":{"type":"number","format":"double","description":"The total amount of the refund. The amount cannot exceed the unapplied amount of the associated payment. If the original payment was applied to one or more invoices or debit memos, you have to unapply a full or partial payment from the invoices or debit memos, and then refund the full or partial unapplied payment to your customers. \n"},"type":{"$ref":"#/components/schemas/PostRefundTypeType","description":"The type of the refund.\n"},"refundTransactionType":{"$ref":"#/components/schemas/PostRefundTypeRefundTransactionType","description":"The transaction type of the refund.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the refund's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the refund was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"type":"string","maxLength":255,"description":"Specifies whether the refund should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["totalAmount","type"],"description":"Container for custom fields of a Refund object.\n","title":"PostRefundType"},"GetRefundPaymentTypeFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"GetRefundPaymentTypeFinanceInformationTransferredToAccounting"},"GetRefundPaymentTypeFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":["string","null"],"description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetRefundPaymentTypeFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":["string","null"],"description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the refund.\n","title":"GetRefundPaymentTypeFinanceInformation"},"GetRefundPaymentTypeGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the refund in the gateway.\n","title":"GetRefundPaymentTypeGatewayState"},"GetRefundPaymentTypeMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer.\n","title":"GetRefundPaymentTypeMethodType"},"GetRefundPaymentTypeStatus":{"type":"string","enum":["Processed","Canceled","Error","Processing"],"description":"The status of the refund.\n","title":"GetRefundPaymentTypeStatus"},"GetRefundPaymentTypeType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund.\n","title":"GetRefundPaymentTypeType"},"GETRefundPaymentType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with this refund. Zuora associates the refund automatically with the account from the associated payment.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the refund.\n"},"cancelledOn":{"type":["string","null"],"description":"The date and time when the refund was cancelled, in `yyyy-mm-dd hh:mm:ss` format. \n"},"comment":{"type":"string","description":"Comments about the refund.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund.\n"},"createdDate":{"type":"string","description":"The date and time when the refund was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10. \n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo associated with the refund.\n"},"financeInformation":{"$ref":"#/components/schemas/GetRefundPaymentTypeFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the refund.\n"},"gatewayReconciliationReason":{"type":["string","null"],"description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":["string","null"],"description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the refund. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the refund. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/GetRefundPaymentTypeGatewayState","description":"The status of the refund in the gateway.\n"},"id":{"type":"string","description":"The ID of the created refund.\n"},"markedForSubmissionOn":{"type":["string","null"],"description":"The date and time when a refund was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"methodType":{"$ref":"#/components/schemas/GetRefundPaymentTypeMethodType","description":"How an external refund was issued to a customer.\n"},"number":{"type":"string","description":"The unique identification number of the refund.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentGatewayNumber":{"type":"string","description":"The natural key for the payment gateway.\n"},"paymentId":{"type":"string","description":"The ID of the payment that is refunded.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the refund. \n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot, which is a copy of the particular payment method used in a transaction.\n"},"payoutId":{"type":["string","null"],"description":"The payout ID of the refund from the gateway side.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. \n"},"referenceId":{"type":["string","null"],"description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format.\n"},"refundTransactionTime":{"type":"string","description":"The date and time when the refund was issued, in `yyyy-mm-dd hh:mm:ss` format.\n"},"secondRefundReferenceId":{"type":["string","null"],"description":"The transaction ID returned by the payment gateway if there is an additional transaction for the refund. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":["string","null"],"description":"The date and time when the refund was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":["string","null"],"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"softDescriptorPhone":{"type":["string","null"],"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"status":{"$ref":"#/components/schemas/GetRefundPaymentTypeStatus","description":"The status of the refund.\n"},"submittedOn":{"type":"string","description":"The date and time when the refund was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"type":{"$ref":"#/components/schemas/GetRefundPaymentTypeType","description":"The type of the refund.\n"},"updatedById":{"type":"string","description":"The ID of the the Zuora user who last updated the refund.\n"},"updatedDate":{"type":"string","description":"The date and time when the refund was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the refund's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the refund was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"type":"string","maxLength":255,"description":"Specifies whether the refund should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Refund object.\n","title":"GETRefundPaymentType"},"PostRefundwithAutoUnapplyTypeFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PostRefundwithAutoUnapplyTypeFinanceInformationTransferredToAccounting"},"PostRefundwithAutoUnapplyTypeFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PostRefundwithAutoUnapplyTypeFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the refund.\n","title":"PostRefundwithAutoUnapplyTypeFinanceInformation"},"PostRefundwithAutoUnapplyTypeGatewayOptions":{"type":"object","properties":{"key":{"type":"string","description":"The name of a gateway-specific parameter.\n"},"value":{"type":"string","description":"The value of the gateway-specific parameter.\n"}},"description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n","title":"PostRefundwithAutoUnapplyTypeGatewayOptions"},"PostRefundwithAutoUnapplyTypeMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer. This field is required for an external refund and must be left empty for an electronic refund. You can issue an external refund on an electronic payment.\n","title":"PostRefundwithAutoUnapplyTypeMethodType"},"PostRefundwithAutoUnapplyTypeType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund.\n","title":"PostRefundwithAutoUnapplyTypeType"},"PostRefundwithAutoUnapplyTypeRefundTransactionType":{"type":"string","enum":["Chargeback","PaymentReversal"],"description":"The transaction type of the refund.\n","title":"PostRefundwithAutoUnapplyTypeRefundTransactionType"},"PostRefundwithAutoUnapplyTypeWriteOffOptions":{"type":"object","properties":{"comment":{"type":"string","maxLength":100,"description":"Comments about the credit memo which is created as a result of the write off.\n"},"memoDate":{"type":"string","format":"date","description":"The date when the credit memo takes effect.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the credit memo.\n"},"taxAutoCalculation":{"type":"boolean","description":"Specifies whether taxes are automatically recalculated for the credit memo generated during the write-off process.\n\nWhen set to `true`, the system fetches the latest tax rates from the tax vendor instead of copying the tax amounts from the original invoice.\n\nThe default value is `false`.\n\n**Note**: This feature is in the **Early Availability** phase. Contact Zuora Global Support to enable this feature before using it.\n"}},"description":"Container for the write-off information to create credit memo.\n","title":"PostRefundwithAutoUnapplyTypeWriteOffOptions"},"PostRefundwithAutoUnapplyType":{"type":"object","properties":{"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the refund.\n"},"debitMemos":{"type":"array","items":{"$ref":"#/components/schemas/PaymentDebitMemoApplicationApplyRequestType"},"description":"Container for debit memos. The maximum number of debit memos is 1,000.\n"},"financeInformation":{"$ref":"#/components/schemas/PostRefundwithAutoUnapplyTypeFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayOptions":{"$ref":"#/components/schemas/PostRefundwithAutoUnapplyTypeGatewayOptions","description":"The field used to pass gateway-specific parameters and parameter values. The fields supported by gateways vary. For more information, see the Overview topic of each gateway integration in [Zuora Knowledge Center](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways).\n\nZuora sends all the information that you specified to the gateway. If you specify any unsupported gateway option parameters, they will be ignored without error prompts.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/PaymentInvoiceApplicationApplyRequestType"},"description":"Container for invoices. The maximum number of invoices is 1,000.\n"},"methodType":{"$ref":"#/components/schemas/PostRefundwithAutoUnapplyTypeMethodType","description":"How an external refund was issued to a customer. This field is required for an external refund and must be left empty for an electronic refund. You can issue an external refund on an electronic payment.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code.\n"},"referenceId":{"type":"string","minLength":0,"maxLength":100,"description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format. The date of the refund cannot be before the payment date. Specify this field only for external refunds. Zuora automatically generates this field for electronic refunds.\n"},"secondRefundReferenceId":{"type":"string","minLength":0,"maxLength":100,"description":"The transaction ID returned by the payment gateway if there is an additional transaction for the refund. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"softDescriptor":{"type":"string","maxLength":35,"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi."},"softDescriptorPhone":{"type":"string","maxLength":20,"description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi."},"totalAmount":{"type":"number","format":"double","description":"The total amount of the refund. If you do not specify a value, Zuora initiates a full refund of the payment amount, which is the sum of the applied and unapplied payment amounts.\n\n  - `Full Refund`: If the refund amount and debit memo/ invoice are not specified, then the payment will be unapplied completely, followed by processing a full refund.\n  - `Partial Refund`:\n       - If the total amount is specified, and the debit memo/invoice is not specified, you can unapply the refund amount from the available debit memo/invoice and refund the unapplied payment to the customer.\n       - If the total amount is specified, along with the debit memo and the invoice, you can unapply the applied payments from the mentioned invoices and debit memos, and refund the unapplied payments to customers.  \n"},"type":{"$ref":"#/components/schemas/PostRefundwithAutoUnapplyTypeType","description":"The type of the refund.\n"},"refundTransactionType":{"$ref":"#/components/schemas/PostRefundwithAutoUnapplyTypeRefundTransactionType","description":"The transaction type of the refund.\n"},"writeOff":{"type":"boolean","default":false,"description":"Indicates whether to write off a document.\n"},"writeOffOptions":{"$ref":"#/components/schemas/PostRefundwithAutoUnapplyTypeWriteOffOptions","description":"Container for the write-off information to create credit memo.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the refund's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the refund was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"type":"string","maxLength":255,"description":"Specifies whether the refund should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["type"],"description":"Container for custom fields of a Refund object.\n","title":"PostRefundwithAutoUnapplyType"},"GetRefundPaymentTypeAutoUnapplyFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"GetRefundPaymentTypeAutoUnapplyFinanceInformationTransferredToAccounting"},"GetRefundPaymentTypeAutoUnapplyFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":"string","description":"The type of the accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetRefundPaymentTypeAutoUnapplyFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":"string","description":"The type of the accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the refund.\n","title":"GetRefundPaymentTypeAutoUnapplyFinanceInformation"},"GetRefundPaymentTypeAutoUnapplyGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the refund in the gateway.\n","title":"GetRefundPaymentTypeAutoUnapplyGatewayState"},"GetRefundPaymentTypeAutoUnapplyMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer.\n","title":"GetRefundPaymentTypeAutoUnapplyMethodType"},"GetRefundPaymentTypeAutoUnapplyStatus":{"type":"string","enum":["Processed","Canceled","Error","Processing"],"description":"The status of the refund.\n","title":"GetRefundPaymentTypeAutoUnapplyStatus"},"GetRefundPaymentTypeAutoUnapplyType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund.\n","title":"GetRefundPaymentTypeAutoUnapplyType"},"GetRefundPaymentTypeAutoUnapplyWriteOffResultsTransactionsCreditMemoStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"description":"The status of the credit memo. \n","title":"GetRefundPaymentTypeAutoUnapplyWriteOffResultsTransactionsCreditMemoStatus"},"GetRefundPaymentTypeAutoUnapplyWriteOffResultsTransactions":{"type":"object","properties":{"appliedAmount":{"type":"number","format":"double","description":"The credit memo applied amopunt.\n"},"creditMemoAmount":{"type":"string","description":"The credit memo amount.\n"},"creditMemoNumber":{"type":"string","description":"The unique identification number of the credit memo.\n"},"creditMemoStatus":{"$ref":"#/components/schemas/GetRefundPaymentTypeAutoUnapplyWriteOffResultsTransactionsCreditMemoStatus","description":"The status of the credit memo. \n"},"invoiceNumber":{"type":"string","description":"The unique identification number of the invoice.\n"}},"description":"The credit memo apply information.\n","title":"GetRefundPaymentTypeAutoUnapplyWriteOffResultsTransactions"},"GetRefundPaymentTypeAutoUnapplyWriteOffResults":{"type":"object","properties":{"errorMessage":{"type":"string","description":"The error message about write off failed.\n"},"transactions":{"$ref":"#/components/schemas/GetRefundPaymentTypeAutoUnapplyWriteOffResultsTransactions","description":"The credit memo apply information.\n"}},"description":"Container for the write-off information of credit memo and apply information.\n","title":"GetRefundPaymentTypeAutoUnapplyWriteOffResults"},"GETRefundPaymentTypeAutoUnapply":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with this refund. Zuora associates the refund automatically with the account from the associated payment.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the refund.\n"},"cancelledOn":{"type":"string","description":"The date and time when the refund was cancelled, in `yyyy-mm-dd hh:mm:ss` format. \n"},"comment":{"type":"string","description":"Comments about the refund.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund.\n"},"createdDate":{"type":"string","description":"The date and time when the refund was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10. \n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo associated with the refund.\n"},"financeInformation":{"$ref":"#/components/schemas/GetRefundPaymentTypeAutoUnapplyFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the refund.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the refund. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the refund. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/GetRefundPaymentTypeAutoUnapplyGatewayState","description":"The status of the refund in the gateway.\n"},"id":{"type":"string","description":"The ID of the created refund.\n"},"markedForSubmissionOn":{"type":"string","description":"The date and time when a refund was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"methodType":{"$ref":"#/components/schemas/GetRefundPaymentTypeAutoUnapplyMethodType","description":"How an external refund was issued to a customer.\n"},"number":{"type":"string","description":"The unique identification number of the refund.\n"},"paymentGatewayNumber":{"type":"string","description":"The natural key for the payment gateway.\n"},"paymentId":{"type":"string","description":"The ID of the payment that is refunded.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the refund. \n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot, which is a copy of the particular payment method used in a transaction.\n"},"payoutId":{"type":"string","description":"The payout ID of the refund from the gateway side.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. \n"},"referenceId":{"type":"string","description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format.\n"},"refundTransactionTime":{"type":"string","description":"The date and time when the refund was issued, in `yyyy-mm-dd hh:mm:ss` format.\n"},"secondRefundReferenceId":{"type":"string","description":"The transaction ID returned by the payment gateway if there is an additional transaction for the refund. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":"string","description":"The date and time when the refund was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"status":{"$ref":"#/components/schemas/GetRefundPaymentTypeAutoUnapplyStatus","description":"The status of the refund.\n"},"submittedOn":{"type":"string","description":"The date and time when the refund was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"type":{"$ref":"#/components/schemas/GetRefundPaymentTypeAutoUnapplyType","description":"The type of the refund.\n"},"updatedById":{"type":"string","description":"The ID of the the Zuora user who last updated the refund.\n"},"updatedDate":{"type":"string","description":"The date and time when the refund was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"writeOffResults":{"$ref":"#/components/schemas/GetRefundPaymentTypeAutoUnapplyWriteOffResults","description":"Container for the write-off information of credit memo and apply information.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the refund's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the refund was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"type":"string","maxLength":255,"description":"Specifies whether the refund should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Refund object.\n","title":"GETRefundPaymentTypeAutoUnapply"},"TransferPaymentType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account that the payment is transferred to.\nUnassign a payment by setting this field to an empty string. This will automatically transfer the payment to a null account.\n"},"effectiveDate":{"type":"string","description":"The date and time when the payment takes effect, in `yyyy-mm-dd` format.\n"}},"title":"TransferPaymentType"},"PaymentDebitMemoApplicationItemUnapplyRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment that is unapplied from the specific debit mem or taxation item.\n"},"debitMemoItemId":{"type":"string","description":"The ID of the specific debit memo item.\n"},"taxItemId":{"type":"string","description":"The ID of the specific taxation item.\n"}},"required":["amount"],"title":"PaymentDebitMemoApplicationItemUnapplyRequestType"},"PaymentDebitMemoApplicationUnapplyRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment that is unapplied from the debit memo.\n"},"debitMemoId":{"type":"string","description":"The unique ID of the debit memo that the payment is unapplied from.\n\n**Note:**\n  - The Payment Cross Account (PCA) feature is in the Early Adopter phase.\n  - When PCA is enabled for the tenant, you can specify a debit memo / invoice that is different from the account that is specified in the request body.\n"},"debitMemoNumber":{"type":"string","description":"The number of the debit memo that the payment is unapplied from.\n\n**Note:**\n  - The Payment Cross Account (PCA) feature is in the Early Adopter phase.\n  - When PCA is enabled for the tenant, you can specify a debit memo / invoice that is different from the account that is specified in the request body.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentDebitMemoApplicationItemUnapplyRequestType"},"description":"Container for debit memo items. The maximum number of items is 1,000.\n\n**Note:** This field 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"}},"required":["amount"],"title":"PaymentDebitMemoApplicationUnapplyRequestType"},"PaymentInvoiceApplicationItemUnapplyRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment that is unapplied from the specific invoice or taxation item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the specific invoice item.\n"},"taxItemId":{"type":"string","description":"The ID of the specific taxation item.\n"}},"required":["amount"],"title":"PaymentInvoiceApplicationItemUnapplyRequestType"},"PaymentInvoiceApplicationUnapplyRequestType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment that is unapplied from the invoice.\n"},"invoiceId":{"type":"string","description":"The unique ID of the invoice that the payment is unapplied from.\n\n**Note:**\n  - The Payment Cross Account (PCA) feature is in the Early Adopter phase.\n  - When PCA is enabled for the tenant, you can specify a debit memo / invoice that is different from the account that is specified in the request body.\n"},"invoiceNumber":{"type":"string","description":"The number of the invoice that the payment is unapplied from. For example, `INV00000001`. \n\n**Note:** When both the `invoiceNumber` and `invoiceId` fields are specified, the two fields must match with each other.\n\n  - The Payment Cross Account (PCA) feature is in the Early Adopter phase.\n  - When PCA is enabled for the tenant, you can specify a debit memo / invoice that is different from the account that is specified in the request body.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentInvoiceApplicationItemUnapplyRequestType"},"description":"Container for invoice items. The maximum number of items is 1,000.\n\n**Note:** This field 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"}},"required":["amount"],"title":"PaymentInvoiceApplicationUnapplyRequestType"},"UnapplyPaymentType":{"type":"object","properties":{"debitMemos":{"type":"array","items":{"$ref":"#/components/schemas/PaymentDebitMemoApplicationUnapplyRequestType"},"description":"Container for debit memos. The maximum number of debit memos is 1,000.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the payment is unapplied, in `yyyy-mm-dd` format. The effective date must be later than or equal to the maximum effective date of the payment.\n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/PaymentInvoiceApplicationUnapplyRequestType"},"description":"Container for invoices. The maximum number of invoice is 1,000.\n"}},"title":"UnapplyPaymentType"},"ProxyGetPaymentTransactionLogGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The state of the transaction at the payment gateway.\n","title":"ProxyGetPaymentTransactionLogGatewayState"},"ProxyGetPaymentTransactionLogGatewayTransactionType":{"type":"string","enum":["Authorization","Sale","Void","Inquiry","VoidAuth"],"description":"The type of the transaction, either making a payment, or canceling a payment. \n","title":"ProxyGetPaymentTransactionLogGatewayTransactionType"},"ProxyGetPaymentTransactionLog":{"type":"object","properties":{"AVSResponseCode":{"type":"string","description":"The response code returned by the payment gateway referring to the AVS international response of the payment transaction.\n"},"BatchId":{"type":"string","description":"The ID of the batch used to send the transaction if the request was sent in a batch.\n"},"CVVResponseCode":{"type":"string","description":"The response code returned by the payment gateway referring to the CVV international response of the payment transaction.\n"},"Gateway":{"type":"string","description":"The name of the payment gateway used to transact the current payment transaction log.\n"},"GatewayReasonCode":{"type":"string","description":"The code returned by the payment gateway for the payment. This code is gateway-dependent.\n"},"GatewayReasonCodeDescription":{"type":"string","description":"The message returned by the payment gateway for the payment. This message is gateway-dependent. \n"},"GatewayState":{"$ref":"#/components/schemas/ProxyGetPaymentTransactionLogGatewayState","description":"The state of the transaction at the payment gateway.\n"},"GatewayTransactionType":{"$ref":"#/components/schemas/ProxyGetPaymentTransactionLogGatewayTransactionType","description":"The type of the transaction, either making a payment, or canceling a payment. \n"},"Id":{"type":"string","description":"The ID of the payment transaction log.\n"},"PaymentId":{"type":"string","description":"The ID of the payment wherein the payment transaction log was recorded. \n"},"RequestString":{"type":"string","description":"The payment transaction request string sent to the payment gateway. \n"},"ResponseString":{"type":"string","description":"The payment transaction response string returned by the payment gateway. \n"},"TransactionDate":{"type":"string","format":"date-time","description":"The transaction date when the payment was performed. \n"},"TransactionId":{"type":"string","description":"The transaction ID returned by the payment gateway. This field is used to reconcile payment transactions between the payment gateway and records in Zuora.\n"}},"title":"ProxyGetPaymentTransactionLog"},"V1PaymentRunsGetParametersStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","Canceled"],"title":"V1PaymentRunsGetParametersStatus"},"GetPaymentRunTypeOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"GetPaymentRunTypeOrganizationLabelsItems"},"GetPaymentRunTypeStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","Canceled"],"description":"The status of the created payment run.\n","title":"GetPaymentRunTypeStatus"},"GETPaymentRunType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the customer account associated with the payment run.\n"},"applyCreditBalance":{"type":"boolean","description":"**Note:** This field is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.\n\nWhether to apply credit balances in the payment run. This field is only available when you have Invoice Settlement feature disabled.\n"},"autoApplyCreditMemo":{"type":"boolean","description":"**Note:** This field 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\nWhether to automatically apply a posted credit memo to one or more receivables in the payment run.\n"},"autoApplyUnappliedPayment":{"type":"boolean","description":"**Note:** This field 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\nWhether to automatically apply unapplied payments to  one or more receivables in the payment run.\n"},"batch":{"type":"string","description":"The alias name given to a batch.\n"},"billCycleDay":{"type":"string","description":"The billing cycle day (BCD), the day of the month when a bill run generates invoices for the account. \n"},"billingRunId":{"type":"string","format":"uuid","description":"The ID of the bill run.\n"},"collectPayment":{"type":"boolean","description":"Whether to process electronic payments during the execution of payment runs. \n"},"completedOn":{"type":["string","null"],"description":"The date and time when the payment run is completed, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 11:39:58.\n"},"consolidatedPayment":{"type":"boolean","description":"**Note:** The **Process Electronic Payment** permission also needs to be allowed for a Manage Payment Runs role to work. See [Payments Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles) for more information. \n\nWhether to process a single payment for all receivables that are due on an account.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the payment run.\n"},"createdDate":{"type":"string","description":"The date and time when the payment run was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"currency":{"type":"string","description":"A currency defined in the web-based UI administrative settings.\n"},"executedOn":{"type":["string","null"],"description":"The date and time when the payment run is executed, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 11:30:37.\n"},"id":{"type":"string","description":"The ID of the payment run.\n"},"number":{"type":"string","description":"The identification number of the payment run.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetPaymentRunTypeOrganizationLabelsItems"},"description":"The organization(s) that the object belongs to. \n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentGatewayId":{"type":["string","null"],"format":"uuid","description":"The ID of the gateway instance that processes the payment.\n"},"processPaymentWithClosedPM":{"type":"boolean","description":"**Note:** The **Process Electronic Payment** permission also needs to be allowed for a Manage Payment Runs role to work. See [Payments Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles) for more information. \n\nWhether to process payments even if the default payment method is closed.\n"},"runDate":{"type":"string","description":"The date and time when the scheduled payment run is to be executed for collecting payments.\n"},"status":{"$ref":"#/components/schemas/GetPaymentRunTypeStatus","description":"The status of the created payment run.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"targetDate":{"type":"string","format":"date","description":"The target date used to determine which receivables to be collected in the payment run. \n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the payment run.\n"},"updatedDate":{"type":"string","description":"The date and time when the payment run was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"useCustomPaymentMethods":{"type":"boolean","description":"Whether to enable payment profiles for a payment run.\n"}},"title":"GETPaymentRunType"},"GETPaymentRunCollectionType":{"type":"object","properties":{"nextPage":{"type":"string","description":"The URL for requesting the next page of the response, if it exists; otherwise absent.\n"},"paymentRuns":{"type":"array","items":{"$ref":"#/components/schemas/GETPaymentRunType"},"description":"Container for payment runs.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETPaymentRunCollectionType"},"PostPaymentRunDataElementRequestDataItems":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The total amount to be collected for the specified invoice/debit memo item. The sum of the item amount should be equal to document amount.\n"},"documentItemId":{"type":"string","description":"The ID of a billing document of the invoice item or debit memo item.\n"},"taxItemId":{"type":"string","description":"The tax ID of the invoice item or debit memo item.\n"}},"description":"The array of data for each Invoice if you want to collect payment for particular items through one payment method. The grouped items are sent as one data record.  This field is available if the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Invoice_Item_Settlement/Overview_of_Invoice_Item_Settlement) permission is enabled.\n\nHere is another example for a data item:\n  ```\n  {\n    \"accountId\": \"60c81b5bc51649e8a7d1b48303194790\",\n    \"documentId\": \"2c9081a03c63c94c013c6894af5602dd\",\n    \"documentType\": \"Invoice\",\n    \"dataItems\": [\n      {\n          \"documentItemId\": \"8a92ab0e8ab14c53018ac746961c10d1\",\n          \"amount\": 40\n      },\n      {\n          \"taxItemId\": \"8a92ab0e8ab14c53018ac746961c10d2\",\n          \"amount\": 40\n      }\n  ],\n    \"amount\": 80,\n    \"paymentMethodId\": \"2c9081a03c6d7b51013c6d7e4ada0a1c\",\n    \"paymentGatewayId\": \"d2abe8342e1811ea80e774b9452e17ea\",\n    \"comment\": \"Payment Comments\",\n    \"customField1__c\": \"cf_value1\",\n    \"customField2__c\": \"cf_value2\"\n  },\n  ```\n","title":"PostPaymentRunDataElementRequestDataItems"},"PostPaymentRunDataElementRequestDocumentType":{"type":"string","enum":["Invoice","DebitMemo"],"description":"The type of a billing document associated with the payment run. The value can be `Invoice` or `DebitMemo`, but `DebitMemo` is only supported if the Invoice Settlement feature is enabled.\n\nYou must either specify both `documentType` and `documentId`, or specify neither of them.\n\nIf neither of `documentType` and `documentId` is specified, all invoices/debit memos with open balance of the account are collected.\n","title":"PostPaymentRunDataElementRequestDocumentType"},"POSTPaymentRunDataElementRequest":{"type":"object","properties":{"accountId":{"type":"string","description":"A valid account ID associated with the payment run.\n\nIf `consolidatedPayment` is set to `true`, this field is used in processing a single payment for invoices/debit memos due on an account.\n"},"accountNumber":{"type":"string","description":"The number of the customer account associated with the payment run, such as `A00000001`.\n\nYou can specify either `accountNumber` or `accountId` for a customer account, but not both of them.\n\nIf `consolidatedPayment` is set to `true`, this field is used in processing a single payment for invoices, debit memos, and standalone payments due on an account.\n"},"amount":{"type":"number","format":"double","description":"The amount to be collected for the specified invoice/debit memo. `amount` must be a positive numeric value no more than the balance of the specified invoice/debit memo.\n\nThis field is only available when `documentId` is specified. If `amount` is not specified, whole balance of the invoice/debit memo is collected.\n"},"comment":{"type":"string","description":"Additional comments.\n"},"currency":{"type":"string","description":"Note: This field is only available if support for standalone payments is enabled.\n\nThe currency of the standalone payment. Specify this field only if the `standalone` field is `true`. The currency of the standalone payment can be different from the payment currency defined in the customer account settings.\n"},"dataItems":{"$ref":"#/components/schemas/PostPaymentRunDataElementRequestDataItems","description":"The array of data for each Invoice if you want to collect payment for particular items through one payment method. The grouped items are sent as one data record.  This field is available if the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Invoice_Item_Settlement/Overview_of_Invoice_Item_Settlement) permission is enabled.\n\nHere is another example for a data item:\n  ```\n  {\n    \"accountId\": \"60c81b5bc51649e8a7d1b48303194790\",\n    \"documentId\": \"2c9081a03c63c94c013c6894af5602dd\",\n    \"documentType\": \"Invoice\",\n    \"dataItems\": [\n      {\n          \"documentItemId\": \"8a92ab0e8ab14c53018ac746961c10d1\",\n          \"amount\": 40\n      },\n      {\n          \"taxItemId\": \"8a92ab0e8ab14c53018ac746961c10d2\",\n          \"amount\": 40\n      }\n  ],\n    \"amount\": 80,\n    \"paymentMethodId\": \"2c9081a03c6d7b51013c6d7e4ada0a1c\",\n    \"paymentGatewayId\": \"d2abe8342e1811ea80e774b9452e17ea\",\n    \"comment\": \"Payment Comments\",\n    \"customField1__c\": \"cf_value1\",\n    \"customField2__c\": \"cf_value2\"\n  },\n  ```\n"},"documentId":{"type":"string","description":"The ID of a billing document associated with the payment run. `documentId` must be valid and match with `documentType`.\n\nYou must either specify both `documentId` and `documentType`, or specify neither of them.\n\nIf neither of `documentType` and `documentId` is specified, all invoices/debit memos with open balance of the account are collected.\n"},"documentNumber":{"type":"string","description":"The number of a billing document associated with the payment run. `documentNumber` must be valid and match with `documentType`.\n\nYou must either specify both `documentNumber` and `documentType`, or specify neither of them.\n\nIf neither of `documentType` and `documentNumber` is specified, all invoices/debit memos with open balance of the account are collected.\n"},"documentType":{"$ref":"#/components/schemas/PostPaymentRunDataElementRequestDocumentType","description":"The type of a billing document associated with the payment run. The value can be `Invoice` or `DebitMemo`, but `DebitMemo` is only supported if the Invoice Settlement feature is enabled.\n\nYou must either specify both `documentType` and `documentId`, or specify neither of them.\n\nIf neither of `documentType` and `documentId` is specified, all invoices/debit memos with open balance of the account are collected.\n"},"paymentGatewayId":{"type":"string","description":"The ID of the payment gateway for collecting invoices/debit memos. The specified payment gateway must be valid and active.\n\nIf <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Payment_Gateway_Routing\" target=\"_blank\">Payment Gateway Routing</a> is enabled: \n  - If this field is not specified, gateway routing rules will be invoked.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf Payment Gateway Routing is disabled:\n  - If this field is not specified, the default payment gateway will be used to process the payment. The default gateway of the customer account takes precedence over the default gateway of the tenant.\n  - If this field is specified, the specified gateway will be used to process the payment.\n\nIf `consolidatedPayment` is set to `true`, this field is used in processing a single payment for invoices/debit memos due on an account.\n"},"paymentMethodId":{"type":"string","description":"The ID of the payment method for collecting invoices/debit memos. The specified payment method must be a valid non-system payment method. If it is not specified, the default payment method of the account is used regardless of the `autoPay` value of the account.\n\nIf `processPaymentWithClosedPM` is set to `false`, the payment method cannot be closed.\n\nIf the payment retry rules are enabled, the payment method must meet the rules.\n\nIf `consolidatedPayment` is set to `true`, this field is used in processing a single payment for invoices/debit memos due on an account.\n"},"standalone":{"type":"boolean","default":false,"description":"Note: This field is only available if support for standalone payments is enabled.\n\nSpecify `true` to indicate that this is a standalone payment that will be created and processed in Zuora through Zuora gateway integration but will be settled outside of Zuora. When `standalone` is set to `true`:\n  - `accountId` or `accountNumber` is required.\n  - `amount` is required. \n  - The amount will not be summed up into the account balance and key metrics regardless of the payment currency.\n  - No settlement data will be created.\n  - Either the applied amount or the unapplied amount of the payment is zero.\n  - The standalone payment cannot be applied, unapplied, or transferred.\n"}},"description":"Container for custom fields of a Payment object.\n","title":"POSTPaymentRunDataElementRequest"},"PostPaymentRunRequestOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"PostPaymentRunRequestOrganizationLabelsItems"},"POSTPaymentRunRequest":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","description":"The ID of the customer account associated with the payment run.\n\nThis field conflicts with each of the `batch`, `billCycleDay`, `currency`, `paymentGatewayId`, and `billingRunId` fields. If there are such conflicts, an error occurs and an error message is returned.\n"},"applyCreditBalance":{"type":"boolean","description":"If `applyCreditBalance` is true, the credit memo or unapplied payment on the order account will be automatically applied to the invoices generated by this order. The credit memo generated by this order will not be automatically applied to any invoices.\n"},"autoApplyCreditMemo":{"type":"boolean","description":"**Note:** This field 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\nWhether to automatically apply a posted credit memo to one or more receivables in the payment run.\n"},"autoApplyUnappliedPayment":{"type":"boolean","description":"**Note:** This field 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\nWhether to automatically apply unapplied payments to  one or more receivables in the payment run.\n"},"batch":{"type":"string","description":"The alias name given to a batch. The batch name is a string of 50 characters or less.\n\nThis field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned. \n\n**Note**: By default, you have 50 configurable account batches. To increase the limit to 200 batches, you must have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Performance_Booster_Elite\" target=\"_blank\">Performance Booster Elite</a> package.\n"},"billCycleDay":{"type":"string","description":"The billing cycle day (BCD), the day of the month when a bill run generates invoices for the account. The value must be equal to or less then 31, and 31 is mean the EOM.\n\nThis field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.\n"},"billingRunId":{"type":"string","format":"uuid","description":"The ID of a bill run.\n\nThis field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.\n"},"collectPayment":{"type":"boolean","description":"Whether to process electronic payments during the execution of payment runs. \n\nIf the Payment user permission \"Process Electronic Payment\" is disabled, this field will be ignored.\n"},"consolidatedPayment":{"type":"boolean","description":"**Note:** The **Process Electronic Payment** permission also needs to be allowed for a Manage Payment Runs role to work. See [Payments Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles) for more information. \n\nWhether to process a single payment for all receivables that are due on an account.\n"},"currency":{"type":"string","description":"A currency defined in the web-based UI administrative settings.\n\nThis field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/POSTPaymentRunDataElementRequest"},"description":"\nThe array of data for specifying records of accounts and invoices/debit memos that will be collected and processed by a payment run.\n\nWhen you specify the data array, ensure that at least one record is passed in. If an empty array is specified, `accountId`, `batch`, `billCycleDay`, `currency`, `paymentGatewayId`, and `billingRunId` fields will be used to define the billing documents to be collected. If the [Multiple Currencies](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies) feature is enabled, you can filter the accounts by `currency` based on the customer's billing document.\n\nA maximum of 50K records are allowed to be passed into the `data` array.\n\nHere is an example:\n```\n  {\n    \"accountId\": \"60c81b5bc51649e8a7d1b48303194790\",\n    \"documentId\": \"2c9081a03c63c94c013c6894af5602dd\",\n    \"documentType\": \"Invoice\",\n    \"amount\": 80,\n    \"paymentMethodId\": \"2c9081a03c6d7b51013c6d7e4ada0a1c\",\n    \"paymentGatewayId\": \"d2abe8342e1811ea80e774b9452e17ea\",\n    \"comment\": \"Payment Comments\",\n    \"customField1__c\": \"cf_value1\",\n    \"customField2__c\": \"cf_value2\"\n  }\n```\n\nHere is another example for a standalone payment:\n```\n  {\n    \"accountId\": \"account2\",\n    \"amount\": 100,\n    \"currency\": \"GBP\",\n    \"standalone\": true\n  }\n```\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/PostPaymentRunRequestOrganizationLabelsItems"},"description":"The organizations that the run is created for. \n\nFor each item in the array, either the `organizationId` or the `organizationName` field is required.\n\nThis field is only required when you have already turned on Multi-Org feature.\n"},"paymentGatewayId":{"type":"string","format":"uuid","description":"The ID of the gateway instance that processes the payment.\n\nThis field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.\n"},"processPaymentWithClosedPM":{"type":"boolean","description":"**Note:** The **Process Electronic Payment** permission also needs to be allowed for a Manage Payment Runs role to work. See [Payments Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles) for more information. \n\nWhether to process payments even if the default payment method is closed.\n"},"runDate":{"type":"string","description":"The date and time when the scheduled payment run is to be executed, in `yyyy-mm-dd hh:mm:ss` format. The backend will ignore mintues and seconds in the field value. For example, if you specify `2017-03-01 11:30:37` for this value, this payment run will be run at 2017-03-01 11:00:00.\n\nYou must specify either the `runDate` field or the `targetDate` field in the request body. If you specify the `runDate` field, the scheduced payment run is to be executed on the run date. If you specify the `targetDate` field, the payment run is executed immediately after it is created. \n"},"targetDate":{"type":"string","format":"date","description":"The target date used to determine which receivables to be paid in the payment run. The payments are collected for all receivables with the due date no later than the target date.\n\nYou must specify either the `runDate` field or the `targetDate` field in the request body. If you specify the `runDate` field, the scheduced payment run is to be executed on the run date. If you specify the `targetDate` field, the payment run is executed immediately after it is created. \n"},"useCustomPaymentMethods":{"type":"boolean","description":"Whether to enable payment profiles for a payment run.\n"}},"title":"POSTPaymentRunRequest"},"PutPaymentRunRequestOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"PutPaymentRunRequestOrganizationLabelsItems"},"PUTPaymentRunRequest":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","description":"The ID of the customer account associated with the payment run.\n\nThis field conflicts with each of the `batch`, `billCycleDay`, `currency`, `paymentGatewayId`, and `billingRunId` fields. If there are such conflicts, an error occurs and an error message is returned.\n"},"applyCreditBalance":{"type":"boolean","description":"**Note:** This field is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.\n\nWhether to apply credit balances in the payment run. This field is only available when you have Invoice Settlement feature disabled.\n"},"autoApplyCreditMemo":{"type":"boolean","description":"**Note:** This field 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\nWhether to automatically apply a posted credit memo to one or more receivables in the payment run.\n"},"autoApplyUnappliedPayment":{"type":"boolean","description":"**Note:** This field 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\nWhether to automatically apply unapplied payments to  one or more receivables in the payment run.\n"},"batch":{"type":"string","description":"The alias name given to a batch. The batch name is a string of 50 characters or less.\n\nThis field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned. \n\n**Note**: By default, you have 50 configurable account batches. To increase the limit to 200 batches, you must have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Performance_Booster_Elite\" target=\"_blank\">Performance Booster Elite</a> package.\n"},"billCycleDay":{"type":"string","description":"The billing cycle day (BCD), the day of the month when a bill run generates invoices for the account. The value must be equal to or less then 31, and 31 is mean the EOM.\n\nThis field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.\n"},"billingRunId":{"type":"string","format":"uuid","description":"The ID of a bill run.\n\nThis field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.\n"},"collectPayment":{"type":"boolean","description":"Whether to process electronic payments during the execution of payment runs. \n\nIf the Payment user permission \"Process Electronic Payment\" is disabled, this field will be ignored.\n"},"consolidatedPayment":{"type":"boolean","description":"**Note:** The **Process Electronic Payment** permission also needs to be allowed for a Manage Payment Runs role to work. See [Payments Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles) for more information. \n\nWhether to process a single payment for all receivables that are due on an account.\n"},"currency":{"type":"string","description":"A currency defined in the web-based UI administrative settings.\n\nThis field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/PutPaymentRunRequestOrganizationLabelsItems"},"description":"The organizations that the run is created for. \n\nFor each item in the array, either the `organizationId` or the `organizationName` field is required.\n\nThis field is only required when you have already turned on Multi-Org feature.\n"},"paymentGatewayId":{"type":["string","null"],"format":"uuid","description":"The ID of the gateway instance that processes the payment.\n\nThis field conflicts with the `accountId` field. If they are both specified in the request body, an error occurs and an error message is returned.\n"},"processPaymentWithClosedPM":{"type":"boolean","description":"**Note:** The **Process Electronic Payment** permission also needs to be allowed for a Manage Payment Runs role to work. See [Payments Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles) for more information. \n\nWhether to process payments even if the default payment method is closed.\n"},"runDate":{"type":"string","description":"The date and time when the scheduled payment run is to be executed, in `yyyy-mm-dd hh:mm:ss` format. The backend will ignore mintues and seconds in the field value. For example, if you specify `2017-03-01 11:30:37` for this value, this payment run will be run at 2017-03-01 11:00:00.\n"},"targetDate":{"type":"string","format":"date","description":"The target date used to determine which receivables to be paid in the payment run. The payments are collected for all receivables with the due date no later than the target date.\n"}},"title":"PUTPaymentRunRequest"},"GetPaymentRunDataElementResponseDocumentType":{"type":"string","enum":["Invoice","DebitMemo"],"description":"The billing document type specified in the `data` field when creating the payment run. `null` is returned if it was not specified.\n","title":"GetPaymentRunDataElementResponseDocumentType"},"GetPaymentRunDataElementResponseResult":{"type":"string","enum":["Processed","Error"],"description":"Indicates whether the data is processed successfully or not.\n","title":"GetPaymentRunDataElementResponseResult"},"GetPaymentRunDataTransactionElementResponseStatus":{"type":"string","enum":["Processed","Processing","Error"],"description":"The status of the newly generated payment.\n\n**Note:** This field is only available if `type` is `Payment`.\n","title":"GetPaymentRunDataTransactionElementResponseStatus"},"GetPaymentRunDataTransactionElementResponseType":{"type":"string","enum":["Payment","CreditMemo","UnappliedPayment","CreditBalanceAdjustment"],"description":"The type of the current transaction.\n","title":"GetPaymentRunDataTransactionElementResponseType"},"GETPaymentRunDataTransactionElementResponse":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The total amount of the newly generated payment.\n\n**Note:** This field is only available if `type` is `Payment`.\n"},"appliedAmount":{"type":"number","format":"double","description":"The amount allocated to this data record.\n"},"errorCode":{"type":"string","description":"The error code of the response.\n\n**Note:** This field is only available if `type` is `Payment`.\n"},"errorMessage":{"type":"string","description":"The detailed information of the error response.\n\n**Note:** This field is only available if `type` is `Payment`.\n"},"id":{"type":"string","description":"The ID of the current transaction.\n"},"status":{"$ref":"#/components/schemas/GetPaymentRunDataTransactionElementResponseStatus","description":"The status of the newly generated payment.\n\n**Note:** This field is only available if `type` is `Payment`.\n"},"type":{"$ref":"#/components/schemas/GetPaymentRunDataTransactionElementResponseType","description":"The type of the current transaction.\n"}},"title":"GETPaymentRunDataTransactionElementResponse"},"GETPaymentRunDataElementResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"The customer account ID specified in the `data` field when creating the payment run.\n"},"accountNumber":{"type":"string","description":"The customer account number specified in the `data` field when creating the payment run.\n"},"amount":{"type":"number","format":"double","description":"The amount specified in the `data` field when creating the payment run. `null` is returned if it was not specified.\n"},"amountCollected":{"type":"number","format":"double","description":"The amount that is collected.\n"},"amountToCollect":{"type":"number","format":"double","description":"The amount to be collected.\n"},"comment":{"type":["string","null"],"description":"The comment specified in the `data` field when creating the payment run. `null` is returned if it was not specified.\n"},"currency":{"type":"string","description":"This field is only available if support for standalone payments is enabled.\n\nThe currency of the standalone payment. The currency of the standalone payment can be different from the payment currency defined in the customer account settings.\n"},"documentId":{"type":"string","description":"The billing document ID specified in the `data` field when creating the payment run. `null` is returned if it was not specified.\n"},"documentNumber":{"type":"string","description":"The billing document number specified in the `data` field when creating the payment run. `null` is returned if it was not specified.\n"},"documentType":{"$ref":"#/components/schemas/GetPaymentRunDataElementResponseDocumentType","description":"The billing document type specified in the `data` field when creating the payment run. `null` is returned if it was not specified.\n"},"errorCode":{"type":"string","description":"The error code of the response.\n"},"errorMessage":{"type":"string","description":"The detailed information of the error response.\n"},"paymentGatewayId":{"type":["string","null"],"description":"The payment gateway ID specified in the `data` field when creating the payment run. `null` is returned if it was not specified.\n"},"paymentMethodId":{"type":"string","description":"The payment method ID specified in the `data` field when creating the payment run. `null` is returned if it was not specified.\n"},"result":{"$ref":"#/components/schemas/GetPaymentRunDataElementResponseResult","description":"Indicates whether the data is processed successfully or not.\n"},"standalone":{"type":"boolean","description":"This field is only available if the support for standalone payment is enabled.\n\nThe value `true` indicates this is a standalone payment that is created and processed in Zuora through Zuora gateway integration but will be settled outside of Zuora. No settlement data will be created. The standalone payment cannot be applied, unapplied, or transferred.\n"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/GETPaymentRunDataTransactionElementResponse"},"description":"Container for transactions that apply to the current request. Each element contains an array of the settlement/payment applied to the record.\n"}},"description":"Container for custom fields of a Payment object.\n","title":"GETPaymentRunDataElementResponse"},"GETPaymentRunDataArrayResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETPaymentRunDataElementResponse"},"description":"Container for payment run data. Each element in the array is a record processed by the payment run.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETPaymentRunDataArrayResponse"},"GETPaymentRunSummaryTotalValues":{"type":"object","properties":{"totalValueOfCreditBalance":{"type":"string","description":"**Note:** This field is only available if you have the Credit Balance feature enabled.\n\nThe total amount of credit balance after the payment run is completed.\n"},"totalValueOfCreditMemos":{"type":"string","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe total amount of credit memos that are successfully processed in the payment run.\n"},"totalValueOfDebitMemos":{"type":"string","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe total amount of debit memos that are picked up for processing in the payment run.\n"},"totalValueOfErrors":{"type":"string","description":"The total amount of receivables associated with the payments with the status of `Error` and `Processing`.\n"},"totalValueOfInvoices":{"type":"string","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe total amount of invoices that are picked up for processing in the payment run.\n"},"totalValueOfPayments":{"type":"string","description":"The total amount of payments that are successfully processed in the payment run.\n"},"totalValueOfReceivables":{"type":"string","description":"The total amount of receivables associated with the payment run.\n\nThe value of this field is the sum of the value of the `totalValueOfInvoices` field and that of the `totalValueOfDebitMemos` field.\n"},"totalValueOfUnappliedPayments":{"type":"integer","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe total amount of unapplied payments that are successfully processed in the payment run.\n"},"totalValueOfUnprocessedDebitMemos":{"type":"string","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe total amount of debit memos with remaining positive balances after the payment run is completed.\n"},"totalValueOfUnprocessedInvoices":{"type":"string","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe total amount of invoices with remaining positive balances after the payment run is completed.\n"},"totalValueOfUnprocessedReceivables":{"type":"string","description":"The total amount of receivables with remaining positive balances after the payment run is completed.\n"}},"title":"GETPaymentRunSummaryTotalValues"},"GETPaymentRunSummaryResponse":{"type":"object","properties":{"numberOfCreditBalanceAdjustments":{"type":"integer","description":"**Note:** This field is only available if you have the Credit Balance feature enabled.\n\nThe number of credit balance adjustments that are successfully processed in the payment run.\n"},"numberOfCreditMemos":{"type":"integer","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe total number of credit memos that are successfully processed in the payment run.\n"},"numberOfDebitMemos":{"type":"integer","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe total number of debit memos that are picked up for processing in the payment run.\n"},"numberOfErrorInputData":{"type":"integer","description":"The number of input data that are processed with errors.\n"},"numberOfErrors":{"type":"integer","description":"The number of payments with the status of `Error` and `Processing`.\n"},"numberOfInputData":{"type":"integer","description":"The total number of input data.\n"},"numberOfInvoices":{"type":"integer","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe total number of invoices that are picked up for processing in the payment run.\n"},"numberOfPayments":{"type":"integer","description":"The number of payments that are successfully processed in the payment run.\n"},"numberOfProcessedInputData":{"type":"integer","description":"The number of input data that are successfully processed.\n"},"numberOfReceivables":{"type":"integer","description":"The total number of receivables that are picked up for processing in the payment run.\n\nThe value of this field is the sum of the value of the `numberOfInvoices` field and that of the `numberOfDebitMemos` field.\n"},"numberOfUnappliedPayments":{"type":"integer","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe number of unapplied payments that are successfully processed in the payment run.\n"},"numberOfUnprocessedDebitMemos":{"type":"integer","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe number of debit memos with remaining positive balances after the payment run is completed.\n"},"numberOfUnprocessedInvoices":{"type":"integer","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe number of invoices with remaining positive balances after the payment run is completed.\n"},"numberOfUnprocessedReceivables":{"type":"integer","description":"The number of receivables with remaining positive balances after the payment run is completed.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"totalValues":{"type":"array","items":{"$ref":"#/components/schemas/GETPaymentRunSummaryTotalValues"},"description":"Container for total values.\n"}},"title":"GETPaymentRunSummaryResponse"},"POSTRetryPaymentScheduleItemInfo":{"type":"object","properties":{"id":{"type":"string","description":"Specifies the ID of the payment schedule item to be retried.\n"},"paymentGatewayId":{"type":"string","description":"Specifies the ID of a payment gateway that will be used in the retry.\n"},"paymentMethodId":{"type":"string","description":"Specifies the ID of a payment method that will be used in the retry.\n"}},"description":"Information of the payment schedule items to be retried.\n","title":"POSTRetryPaymentScheduleItemInfo"},"POSTRetryPaymentScheduleItemRequest":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/POSTRetryPaymentScheduleItemInfo"},"description":"The maximum number of items allowable to pass is 10.\n"}},"title":"POSTRetryPaymentScheduleItemRequest"},"PaymentScheduleItemCommonResponseBillingDocument":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.\n"},"number":{"type":"string","description":"Number of the billing docuemnt, for example, `INV00002345`.\n"},"type":{"type":"string","description":"Indicates whether the associated billing document is a debit memo or a invoice.\n"}},"title":"PaymentScheduleItemCommonResponseBillingDocument"},"LinkedPaymentID":{"type":"object","properties":{"paymentId":{"type":"string","description":"ID of the payment.\n"}},"title":"LinkedPaymentID"},"PaymentScheduleItemCommonResponseStatus":{"type":"string","enum":["Pending","Processed","Error","Canceled"],"description":"ID of the payment method of the payment schedule item.\n\n- `Pending`: Payment schedule item is waiting for processing.\n- `Processed`: The payment has been collected.\n- `Error`: Failed to collect the payment.\n- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.\n","title":"PaymentScheduleItemCommonResponseStatus"},"PaymentScheduleItemCommonResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"ID of the customer account that owns the payment schedule item, for example `402880e741112b310149b7343ef81234`.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment schedule.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of payment schedule item.\n"},"billingDocument":{"$ref":"#/components/schemas/PaymentScheduleItemCommonResponseBillingDocument"},"createdById":{"type":"string","description":"The ID of the user who created the payment schedule item.\n"},"createdDate":{"type":"string","format":"date","description":"The date and time when the payment schedule item was created.\n"},"currency":{"type":"string","description":"The currency of the payment.\n"},"description":{"type":"string","description":"The description of the payment schedule item.\n"},"errorMessage":{"type":"string","description":"The error message indicating if the error is related to configuration or payment collection.\n"},"id":{"type":"string","description":"ID of the payment schedule item. For example, `412880e749b72b310149b7343ef81346`.\n"},"number":{"type":"string","description":"Number of the payment schedule item.\n"},"paymentGatewayId":{"type":["string","null"],"description":"ID of the payment gateway of the payment schedule item.\n"},"paymentMethodId":{"type":["string","null"],"description":"ID of the payment method of the payment schedule item.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"paymentScheduleId":{"type":"string","description":"ID of the payment schedule that contains the payment schedule item, for example, `ID402880e749b72b310149b7343ef80005`.\n"},"paymentScheduleNumber":{"type":"string","description":"Number of the payment schedule that contains the payment schedule item, for example, `ID402880e749b72b310149b7343ef80005`.\n"},"psiPayments":{"type":"array","items":{"$ref":"#/components/schemas/LinkedPaymentID"},"description":"Container for payments linked to the payment schedule item. \n"},"runHour":{"type":"integer","description":"At which hour in the day in the tenant’s timezone this payment will be collected.\n"},"scheduledDate":{"type":"string","format":"date","description":"The scheduled date when the payment is processed.\n"},"standalone":{"type":"boolean","description":"Indicates if the payment created by the payment schedule item is a standalone payment or not.\n"},"status":{"$ref":"#/components/schemas/PaymentScheduleItemCommonResponseStatus","description":"ID of the payment method of the payment schedule item.\n\n- `Pending`: Payment schedule item is waiting for processing.\n- `Processed`: The payment has been collected.\n- `Error`: Failed to collect the payment.\n- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.\n"},"updatedById":{"type":"string","description":"The ID of the user who updated the payment schedule item.\n"},"updatedDate":{"type":"string","format":"date","description":"The date and time when the payment schedule item was last updated.\n"}},"description":"Container for custom fields of a Payment Schedule Item object.\n","title":"PaymentScheduleItemCommonResponse"},"POSTRetryPaymentScheduleItemResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentScheduleItemCommonResponse"}},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully. \n"}},"title":"POSTRetryPaymentScheduleItemResponse"},"PutPaymentScheduleItemResponseBillingDocument":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.\n"},"number":{"type":"string","description":"The number of the billing docuemnt, for example, `INV00002345`.\n"},"type":{"type":"string","description":"Indicates whether the associated billing document is a debit memo or a invoice.\n"}},"title":"PutPaymentScheduleItemResponseBillingDocument"},"PutPaymentScheduleItemResponseStatus":{"type":"string","enum":["Pending","Processed","Error","Canceled"],"description":"ID of the payment method of the payment schedule item.\n\n- `Pending`: Waiting for processing.\n- `Processed`: The payment has been collected.\n- `Error`: Failed to collect the payment.\n- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.\n","title":"PutPaymentScheduleItemResponseStatus"},"PUTPaymentScheduleItemResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"ID of the customer account that owns the payment schedule item, for example `402880e741112b310149b7343ef81234`.\n"},"amount":{"type":"number","format":"double","description":"The amount of the payment schedule item.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of payment schedule item.         \n"},"billingDocument":{"$ref":"#/components/schemas/PutPaymentScheduleItemResponseBillingDocument"},"cancellationReason":{"type":"string","description":"The reason for the cancellation of payment schedule item.  \n"},"createdById":{"type":"string","description":"The ID of the user who created the payment schedule item.\n"},"createdDate":{"type":"string","format":"date","description":"The date and time when the payment schedule item was created.\n"},"currency":{"type":"string","description":"The currency of the payment.\n"},"description":{"type":["string","null"],"description":"The description of the payment schedule item.\n"},"errorMessage":{"type":"string","description":"The error message indicating if the error is related to the configuration or the payment collection.\n"},"id":{"type":"string","description":"ID of the payment schedule item. For example, `412880e749b72b310149b7343ef81346`.\n"},"number":{"type":"string","description":"Number of the payment schedule item.\n"},"paymentGatewayId":{"type":["string","null"],"description":"ID of the payment gateway of the payment schedule item.\n"},"paymentMethodId":{"type":"string","description":"ID of the payment method of the payment schedule item.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"paymentScheduleId":{"type":"string","description":"ID of the payment schedule that contains the payment schedule item, for example, `ID402880e749b72b310149b7343ef80005`,\n"},"paymentScheduleNumber":{"type":"string","description":"Number of the payment schedule that contains the payment schedule item, for example, `ID402880e749b72b310149b7343ef80005`,\n"},"psiPayments":{"type":"array","items":{"$ref":"#/components/schemas/LinkedPaymentID"},"description":"Container for payments linked to the payment schedule item.\n"},"runHour":{"type":"integer","description":"At which hour in the day in the tenant’s timezone this payment will be collected.\n"},"scheduledDate":{"type":"string","format":"date","description":"The scheduled date when the payment is processed.\n"},"standalone":{"type":"boolean","description":"Indicates if the payment created by the payment schedule item is a standalone payment.\n"},"status":{"$ref":"#/components/schemas/PutPaymentScheduleItemResponseStatus","description":"ID of the payment method of the payment schedule item.\n\n- `Pending`: Waiting for processing.\n- `Processed`: The payment has been collected.\n- `Error`: Failed to collect the payment.\n- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully. \n"},"updatedById":{"type":"string","description":"The ID of the user who updated the payment schedule item.\n"},"updatedDate":{"type":"string","format":"date","description":"The date and time when the payment schedule item was last updated.\n"}},"description":"Container for custom fields of a Payment Schedule Item object.\n","title":"PUTPaymentScheduleItemResponse"},"PutSkipPaymentScheduleItemResponseBillingDocument":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.\n"},"number":{"type":"string","description":"The number of the billing docuemnt, for example, `INV00002345`.\n"},"type":{"type":"string","description":"Indicates whether the associated billing document is a debit memo or a invoice.\n"}},"title":"PutSkipPaymentScheduleItemResponseBillingDocument"},"PutSkipPaymentScheduleItemResponseStatus":{"type":"string","enum":["Pending","Processed","Error","Canceled"],"description":"ID of the payment method of the payment schedule item.\n\n- `Pending`: Waiting for processing.\n- `Processed`: The payment has been collected.\n- `Error`: Failed to collect the payment.\n- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.\n","title":"PutSkipPaymentScheduleItemResponseStatus"},"PUTSkipPaymentScheduleItemResponse":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment.\n"},"billingDocument":{"$ref":"#/components/schemas/PutSkipPaymentScheduleItemResponseBillingDocument"},"cancellationReason":{"type":"string","description":"The reason for the cancellation of payment schedule item.            \n"},"createdById":{"type":"string","description":"The ID of the user who created the payment schedule item.\n"},"createdDate":{"type":"string","format":"date","description":"The date and time when the payment schedule item was created.\n"},"currency":{"type":"string","description":"The currency of the payment.\n"},"description":{"type":"string","description":"The description of the payment schedule item.\n"},"errorMessage":{"type":"string","description":"The error message indicating if the error is related to the configuration or the payment collection.\n"},"id":{"type":"string","description":"ID of the newly-created payment schedule item. For example, `412880e749b72b310149b7343ef81346`.\n"},"number":{"type":"string","description":"Number of the newly-created payment schedule item.\n"},"paymentGatewayId":{"type":["string","null"],"description":"ID of the payment gateway of the payment schedule item.\n"},"paymentMethodId":{"type":"string","description":"ID of the payment method of the payment schedule item.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"paymentScheduleId":{"type":"string","description":"ID of the payment schedule that contains the payment schedule item, for example, `ID402880e749b72b310149b7343ef80005`,\n"},"paymentScheduleNumber":{"type":"string","description":"Number of the payment schedule that contains the payment schedule item, for example, `ID402880e749b72b310149b7343ef80005`,\n     \n"},"psiPayments":{"type":"array","items":{"$ref":"#/components/schemas/LinkedPaymentID"},"description":"Container for payments linked to the payment schedule item. \n"},"runHour":{"type":"integer","description":"At which hour in the day in the tenant’s timezone this payment will be collected.\n"},"scheduledDate":{"type":"string","format":"date","description":"The scheduled date when the payment is processed.\n"},"standalone":{"type":"boolean","description":"Indicates if the payment created by the payment schedule item is a standalone payment.\n"},"status":{"$ref":"#/components/schemas/PutSkipPaymentScheduleItemResponseStatus","description":"ID of the payment method of the payment schedule item.\n\n- `Pending`: Waiting for processing.\n- `Processed`: The payment has been collected.\n- `Error`: Failed to collect the payment.\n- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully. \n"},"updatedById":{"type":"string","description":"The ID of the user who updated the payment schedule item.\n"},"updatedDate":{"type":"string","format":"date","description":"The date and time when the payment schedule item was last updated.\n"}},"description":"Container for custom fields of a Payment Schedule Item object.\n","title":"PUTSkipPaymentScheduleItemResponse"},"GetPaymentScheduleItemResponseBillingDocument":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.\n"},"number":{"type":"string","description":"The number of the billing docuemnt, for example, `INV00002345`.\n"},"type":{"type":"string","description":"Indicates whether the associated billing document is a debit memo or a invoice.\n"}},"title":"GetPaymentScheduleItemResponseBillingDocument"},"GetPaymentScheduleItemResponseStatus":{"type":"string","enum":["Pending","Processed","Error","Canceled"],"description":"ID of the payment method of the payment schedule item.\n\n- `Pending`: Waiting for processing.\n- `Processed`: The payment has been collected.\n- `Error`: Failed to collect the payment.\n- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.\n","title":"GetPaymentScheduleItemResponseStatus"},"GETPaymentScheduleItemResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"ID of the customer account that owns the payment schedule item, for example `402880e741112b310149b7343ef81234`.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment schedule item.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of payment schedule item.\n"},"billingDocument":{"$ref":"#/components/schemas/GetPaymentScheduleItemResponseBillingDocument"},"cancellationReason":{"type":["string","null"],"description":"The reason for the cancellation of payment schedule item.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the user who canceled this payment schedule item.\n"},"cancelledOn":{"type":["string","null"],"description":"The date when the payment schedule item was canceled.\n"},"createdById":{"type":"string","description":"The ID of the user who created the payment schedule item.\n"},"createdDate":{"type":"string","format":"date","description":"The date and time when the payment schedule item was created.\n"},"currency":{"type":"string","description":"The currency of the payment.\n"},"description":{"type":"string","description":"The description of the payment schedule item.\n"},"errorMessage":{"type":"string","description":"The error message indicating if the error is related to the configuration or the payment collection.\n"},"id":{"type":"string","description":"ID of the payment schedule item. For example, `412880e749b72b310149b7343ef81346`.\n"},"number":{"type":"string","description":"Number of the payment schedule item.\n"},"paymentGatewayId":{"type":["string","null"],"description":"ID of the payment gateway of the payment schedule item.\n"},"paymentMethodId":{"type":"string","description":"ID of the payment method of the payment schedule item.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"paymentScheduleId":{"type":"string","description":"ID of the payment schedule that contains the payment schedule item, for example, `ID402880e749b72b310149b7343ef80005`,\n"},"paymentScheduleNumber":{"type":"string","description":"Number of the payment schedule that contains the payment schedule item, for example, `ID402880e749b72b310149b7343ef80005`,\n"},"psiPayments":{"type":"array","items":{"$ref":"#/components/schemas/LinkedPaymentID"},"description":"Container for payments linked to the payment schedule item. \n"},"runHour":{"type":"integer","description":"At which hour in the day in the tenant’s timezone this payment will be collected. If the payment `runHour` and `scheduledDate` are backdated, the system will collect the payment when the next runHour occurs.\n"},"scheduledDate":{"type":"string","format":"date","description":"The scheduled date when the payment is processed.\n"},"standalone":{"type":"boolean","description":"Indicates if the payment created by the payment schedule item is a standalone payment.\n"},"status":{"$ref":"#/components/schemas/GetPaymentScheduleItemResponseStatus","description":"ID of the payment method of the payment schedule item.\n\n- `Pending`: Waiting for processing.\n- `Processed`: The payment has been collected.\n- `Error`: Failed to collect the payment.\n- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully. \n"},"updatedById":{"type":"string","description":"The ID of the user who updated the payment schedule item.\n"},"updatedDate":{"type":"string","format":"date","description":"The date and time when the payment schedule item was last updated.\n"}},"description":"Container for custom fields of a Payment Schedule Item object.\n","title":"GETPaymentScheduleItemResponse"},"PUTPaymentScheduleItemRequest":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the payment.\n"},"currency":{"type":"string","description":"The currency of the payment.   \n\n**Note:**\n\n- For custom payments, if Multi-currency is enabled, the payment currency can be different from the account currency for custom payment.\n\n- For recurring payments, if Multi-currency is enabled, the payment currency can be different from the account currency but should be the same as billing currency for a recurring payment.\n  \n"},"description":{"type":"string","description":"The description of the payment schedule item.\n"},"linkPayments":{"type":"array","items":{"type":"string"},"description":"Container for payments linked to the payment schedule item.\n"},"paymentGatewayId":{"type":["string","null"],"description":"ID of the payment gateway of the payment schedule item.\n"},"paymentMethodId":{"type":"string","description":"ID of the payment method of the payment schedule item.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\nHere is an example:\n```\n\"paymentOption\": [\n  {\n    \"type\": \"GatewayOptions\",\n    \"detail\": {\n      \"SecCode\":\"WEB\"\n    }\n  }\n]\n```\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"runHour":{"type":"integer","description":"At which hour of the day in the tenant’s timezone this payment will be collected. If the payment `runHour` and `scheduledDate` are backdated, the system will collect the payment when the next runHour occurs.\n"},"scheduledDate":{"type":"string","format":"date","description":"The scheduled date when the payment is processed.\n"},"unlinkPayments":{"type":"array","items":{"type":"string"},"description":"Container for payments to be unlinked from the payment schedule item.\n"}},"description":"Container for custom fields of a Payment Schedule Item object.\n","title":"PUTPaymentScheduleItemRequest"},"PaymentScheduleCommonResponseBillingDocument":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.\n"},"number":{"type":"string","description":"The number of the billing docuemnt, for example, `INV00002345`.\n"},"type":{"type":"string","description":"Indicates whether the associated billing document is a debit memo or a invoice.\n"}},"title":"PaymentScheduleCommonResponseBillingDocument"},"PaymentScheduleCommonResponseBillingDocumentsItemsType":{"type":"string","enum":["Invoice","DebitMemo"],"description":"Denotes if the billing document is of the type invoice or debit memo.\n","title":"PaymentScheduleCommonResponseBillingDocumentsItemsType"},"PaymentScheduleCommonResponseBillingDocumentsItems":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document.\n"},"number":{"type":"string","description":"Number of the billing document. If the billing document is a debit memo, it contains the debit memo number. If the billing document is an invoice, it contains the invoice number.\n"},"type":{"$ref":"#/components/schemas/PaymentScheduleCommonResponseBillingDocumentsItemsType","description":"Denotes if the billing document is of the type invoice or debit memo.\n"}},"title":"PaymentScheduleCommonResponseBillingDocumentsItems"},"PaymentScheduleCommonResponseStatus":{"type":"string","enum":["Active","Canceled","Completed"],"description":"The status of the payment schedule.\n\n- Active: There is still payment schedule item to process.\n- Canceled: After a payment schedule is canceled by the user, the schedule is marked as `canceled`.\n- Completed: After all payment schedule items are processed, the schedule is marked as `Completed`.\n","title":"PaymentScheduleCommonResponseStatus"},"PaymentScheduleCommonResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"ID of the account that owns the payment schedule.\n"},"accountNumber":{"type":"string","description":"Number of the account that owns the payment schedule.\n"},"billingDocument":{"$ref":"#/components/schemas/PaymentScheduleCommonResponseBillingDocument"},"billingDocuments":{"type":"array","items":{"$ref":"#/components/schemas/PaymentScheduleCommonResponseBillingDocumentsItems"},"description":"Container array of the multiple billing documents associated with the payment schedule.\n"},"createdById":{"type":"string","description":"The ID of the user who created this payment schedule.\n"},"createdDate":{"type":"string","format":"date","description":"The date and time the payment schedule is created.\n"},"description":{"type":"string","description":"The description of the payment schedule.\n"},"id":{"type":"string","description":"ID of the payment schedule.\n"},"isCustom":{"type":"boolean","description":"Indicates if the payment schedule is a custom payment schedule.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentScheduleItemCommonResponse"},"description":"Container for payment schedule items.\n"},"nextPaymentDate":{"type":"string","format":"date","description":"The date the next payment will be processed.\n"},"occurrences":{"type":"integer","description":"The number of payment schedule items that are created by this payment schedule.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"paymentScheduleNumber":{"type":"string","description":"Number of the payment schedule.\n"},"period":{"type":"string","description":"For recurring payment schedule only. The period of payment generation. Available values include: `Monthly`, `Weekly`, `BiWeekly`.\nReturns `null` for custom payment schedules.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the payments created by the payment schedule are used as a reserved payment. This field is available only if the prepaid cash drawdown permission is enabled. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information.\n"},"recentPaymentDate":{"type":"string","format":"date","description":"The date the last payment was processed.\n"},"runHour":{"type":"integer","description":"[0,1,2,~,22,23]\n\nAt which hour in the day in the tenant’s timezone the recurring payment schedule items will be collected.\nReturn `0` for custom payment schedules.\n"},"standalone":{"type":"boolean","description":"Indicates if the payments that the payment schedule created are standalone payments or not.\n"},"startDate":{"type":"string","format":"date","description":"The date when the first payment of this payment schedule is proccessed.\n"},"status":{"$ref":"#/components/schemas/PaymentScheduleCommonResponseStatus","description":"The status of the payment schedule.\n\n- Active: There is still payment schedule item to process.\n- Canceled: After a payment schedule is canceled by the user, the schedule is marked as `canceled`.\n- Completed: After all payment schedule items are processed, the schedule is marked as `Completed`.\n"},"totalAmount":{"type":"number","format":"double","description":"The total amount that will be collected by the payment schedule.            \n"},"totalPaymentsErrored":{"type":"integer","description":"The number of errored payments.\n"},"totalPaymentsProcessed":{"type":"integer","description":"The number of processed payments.\n"},"updatedById":{"type":"string","description":"The ID of the user who last updated this payment schedule.\n"},"updatedDate":{"type":"string","format":"date","description":"The date and time the payment schedule is last updated.\n"}},"description":"Container for custom fields of a Payment Schedule object.\n","title":"PaymentScheduleCommonResponse"},"GETPaymentSchedulesResponse":{"type":"array","items":{"$ref":"#/components/schemas/PaymentScheduleCommonResponse"},"description":"Container for payment schedules.\n","title":"GETPaymentSchedulesResponse"},"PostPaymentScheduleRequestBillingDocumentType":{"type":"string","enum":["Invoice","DebitMemo"],"default":"Invoice","description":"The type of the billing document. \n","title":"PostPaymentScheduleRequestBillingDocumentType"},"PostPaymentScheduleRequestBillingDocument":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document.\n\n**Note:**\n If a billing document is specified, either `id` or `number` of the billing document must be specified. You cannot specify both of them or skip both.\n"},"number":{"type":"string","description":"Number of the billing document.\n\n**Note:**\n If a billing document is specified, either `id` or `number` of the billing document must be specified. You cannot specify both of them or skip both.\n"},"type":{"$ref":"#/components/schemas/PostPaymentScheduleRequestBillingDocumentType","description":"The type of the billing document. \n"}},"required":["type"],"description":"Object of the billing document with which the payment schedule is associated.\n\n**Note:**\n- This field is optional. If you have the Standalone Payment feature enabled, you can leave this field blank and set `standalone` to `true` to create standalone payments. You can also choose to create unapplied payments by leaving this object blank and setting `standalone` to `false`.\n- If Standalone Payment is not enabled, leaving this object unspecified will create unapplied payments.\n- This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `330.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n","title":"PostPaymentScheduleRequestBillingDocument"},"PostPaymentScheduleRequestBillingDocumentsItemsType":{"type":"string","enum":["Invoice","DebitMemo"],"description":"Denotes if the billing document is of the type invoice or debit memo.\n","title":"PostPaymentScheduleRequestBillingDocumentsItemsType"},"PostPaymentScheduleRequestBillingDocumentsItems":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document.\n\n**Note:** If a billing document is specified, either `id` or `number` of the billing document must be specified. You cannot specify both of them or skip both.\n"},"number":{"type":"string","description":"Number of the billing document. If the billing document is a debit memo, it contains the debit memo number. If the billing document is an invoice, it contains the invoice number.\n\n**Note:** If a billing document is specified, either `id` or `number` of the billing document must be specified. You cannot specify both of them or skip both.\n"},"type":{"$ref":"#/components/schemas/PostPaymentScheduleRequestBillingDocumentsItemsType","description":"Denotes if the billing document is of the type invoice or debit memo.\n"}},"required":["type"],"title":"PostPaymentScheduleRequestBillingDocumentsItems"},"PostPaymentScheduleRequestItemsItemsBillingDocumentType":{"type":"string","enum":["Invoice","DebitMemo"],"description":"The type of the billing document. The default value is `Invoice`.\n","title":"PostPaymentScheduleRequestItemsItemsBillingDocumentType"},"PostPaymentScheduleRequestItemsItemsBillingDocument":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the billing document.\n\n**Note:**\nIf a billing document is specified, one of `id` or `number` must be specified. You cannot specify both of them or or skip both.\n"},"number":{"type":"string","description":"The number of the billing document.\n\n**Note:**\nIf a billing document is specified, one of `id` or `number` must be specified. You cannot specify both of them or skip both.\n"},"type":{"$ref":"#/components/schemas/PostPaymentScheduleRequestItemsItemsBillingDocumentType","description":"The type of the billing document. The default value is `Invoice`.\n"}},"required":["type"],"description":"Object for the billing document with which the payment schedule item is associated. \n**Note:** You must specify the same billing document for all the payment schedule items in one payment schedule.\n","title":"PostPaymentScheduleRequestItemsItemsBillingDocument"},"PostPaymentScheduleRequestItemsItems":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount that needs to be collected by this payment schedule item.\n"},"billingDocument":{"$ref":"#/components/schemas/PostPaymentScheduleRequestItemsItemsBillingDocument","description":"Object for the billing document with which the payment schedule item is associated. \n**Note:** You must specify the same billing document for all the payment schedule items in one payment schedule.\n"},"currency":{"type":"string","description":"The currency of the payment.\n\n**Note**:\n- This field is optional. If not specified, the default value is the currency set for the account.\n- For custom payments, if Multi-currency is enabled, the payment currency can be different from the account currency for custom payment.\n- For recurring payments, if Multi-currency is enabled, the payment currency can be different from the account currency but should be the same as billing currency for a recurring payment.\n"},"description":{"type":"string","description":"Description of the payment schedule item.\n"},"paymentGatewayId":{"type":"string","description":"The ID of the payment gateway.\n\n**Note**:\n- This field is optional. If not specified, the default value is the payment gateway id set for the account.\n"},"paymentMethodId":{"type":"string","description":"The ID of the payment method.\n\n**Note**:\n- This field is optional. If not specified, the default value is the payment method id set for the account.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\nHere is an example:\n```\n\"paymentOption\": [\n  {\n    \"type\": \"GatewayOptions\",\n    \"detail\": {\n      \"SecCode\":\"WEB\"\n    }\n  }\n]\n```\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n\nTo enable this field, submit a request at [Zuora Global Support](https://support.zuora.com/). This field is only available if `Zuora-Version` is set to `337.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"},"runHour":{"type":"string","description":"At which hour in the day in the tenant’s timezone this payment will be collected. Available values:`[0,1,2,~,22,23]`. If the time difference between your tenant’s timezone and the timezone where Zuora servers are is not in full hours, for example, 2.5 hours, the payment schedule items will be triggered half hour later than your scheduled time.\nThe default value is `0`.\nIf the payment `runHour` and `scheduledDate` are backdated, the system will collect the payment when the next runHour occurs.\n"},"scheduledDate":{"type":"string","format":"date","description":"The date to collect the payment.\n"}},"description":"Container for custom fields of a Payment Schedule Item object.\n","title":"PostPaymentScheduleRequestItemsItems"},"PostPaymentScheduleRequestPeriod":{"type":"string","enum":["Monthly","Weekly","BiWeekly"],"description":"The frequency for the payment collection since the `startDate`.\n\n**Note:**\n- Thie field is required when `items` is not specified.\n- This field will be ignored when `items` is specified.\n- If `startDate` is `30` or `31` and `period` is `Monthly`, when in February, payment schedule will use the last day of February for payment collection. \n","title":"PostPaymentScheduleRequestPeriod"},"POSTPaymentScheduleRequest":{"type":"object","properties":{"accountId":{"type":"string","description":"ID of the customer account the payment schedule belongs to.\n\n**Note:**\n`accountId` and `accountNumber` cannot both be `null`. When both fields are specified, the two values must match each other.          \n"},"accountNumber":{"type":"string","description":"Account number of the customer account the payment schedule belongs to.\n\n**Note:**\n`accountId` and `accountNumber` cannot both be `null`. When both fields are specified, the two values must match each other.          \n"},"amount":{"type":"number","format":"double","description":"The amount of each payment schedule item in the payment schedule.\n\n**Note:**\n- This field is required when `items` is not specified.\n- This field will be ignored when `items` is specified.\n- When creating recurring payment schedules, there are 2 options to specify amounts:  \n  - Specify `totalAmount` and `occurrences`, `amount` will be calculated.\n  - Specify `amount` and `occurrences`, `totalAmount` will be calculated.\n  You must specify either `totalAmount` or `amount`. Specifying both fields at the same time is not allowed.\n"},"billingDocument":{"$ref":"#/components/schemas/PostPaymentScheduleRequestBillingDocument","description":"Object of the billing document with which the payment schedule is associated.\n\n**Note:**\n- This field is optional. If you have the Standalone Payment feature enabled, you can leave this field blank and set `standalone` to `true` to create standalone payments. You can also choose to create unapplied payments by leaving this object blank and setting `standalone` to `false`.\n- If Standalone Payment is not enabled, leaving this object unspecified will create unapplied payments.\n- This field is available only if you are on the latest Zuora API version, or you set the `Zuora-Version` request header to `330.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n"},"billingDocuments":{"type":"array","items":{"$ref":"#/components/schemas/PostPaymentScheduleRequestBillingDocumentsItems"},"description":"Container array of the multiple billing documents associated with the payment schedule.\n\nIf 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"},"currency":{"type":"string","description":"Currency of the payment schedule.\n\n**Note:**\n- This field is optional. The default value is the account's default currency.\n- This field will be ignored when `items` is specified.\n- For custom payments, if Multi-currency is enabled, the payment currency can be different from the account currency for custom payment.\n- For recurring payments, if Multi-currency is enabled, the payment currency can be different from the account currency but should be the same as billing currency for a recurring payment.\n"},"description":{"type":"string","description":"Description of the payment schedule. Max length is 255.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PostPaymentScheduleRequestItemsItems"},"description":"Container array for payment schedule items.\n"},"occurrences":{"type":"integer","description":"The number of payment schedule item to be created. Maximum value is 1000.\n\n**Note:**\n- This field is required when `items` is not specified.\n- This field will be ignored when `items` is specified. \n"},"paymentGatewayId":{"type":"string","description":"ID of the payment gateway.\n\n**Note:**\n- This field is optional. The default value is the account's default payment gateway ID. If no payment gateway ID is found on the cusotmer account level, the default value will be the tenant's default payment gateway ID.\n- This field will be ignored when `items` is specified.\n"},"paymentMethodId":{"type":"string","description":"ID of the payment method.\n\n**Note:**\n- This field is optional. The default value is the account's default payment method ID.\n- This field will be ignored when `items` is specified.  \n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\n\nHere is an example:\n```\n\"paymentOption\": [\n  {\n    \"type\": \"GatewayOptions\",\n    \"detail\": {\n      \"SecCode\":\"WEB\"\n    }\n  }\n]\n```\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"paymentScheduleNumber":{"type":"string","description":"You can use this field to specify the number of the payment schedule.\nOnly characters from the following sets are allowed: A-Z, a-z, 0-9, and `-`. \nPayment numbers must start with a letter. In addition,`-` can only be used at most once and cannot be placed at the beginning or the end of the payment numbers.         \n"},"period":{"$ref":"#/components/schemas/PostPaymentScheduleRequestPeriod","description":"The frequency for the payment collection since the `startDate`.\n\n**Note:**\n- Thie field is required when `items` is not specified.\n- This field will be ignored when `items` is specified.\n- If `startDate` is `30` or `31` and `period` is `Monthly`, when in February, payment schedule will use the last day of February for payment collection. \n"},"prepayment":{"type":"boolean","description":"Indicates whether the payments created by the payment schedule will be used as reserved payments. This field will only be available if the prepaid cash drawdown permission is enabled. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information.\n"},"runHour":{"type":"integer","description":"Specifies at which hour in the day in the tenant’s time zone when this payment will be collected. Available values: `[0,1,2,~,22,23]`.\n\n**Note:**\n- If the time difference between your tenant’s timezone and the timezone where Zuora servers are is not in full hours, for example, 2.5 hours, the payment schedule items will be triggered half hour later than your scheduled time.\n- If the payment `runHour` and `scheduledDate` are backdated, the system will collect the payment when the next runHour occurs.\n- This field is optional. The default value is `0`.\n- This field will be ignored when `items` is specified.             \n"},"standalone":{"type":"boolean","description":"Indicate whether the payments created by the payment schedule are standalone payments or not. When setting to `true`, standalone payments will be created. When setting to `false`, you can either specify a billing document, or not specifying any billing documents. In the later case, unapplied payments will be created. If set to `null`, standalone payment will be created.\n\n**Note**: \n- This field is only available if the Standalone Payment is enabled. Do not include this field if Standalone Payment is not enabled.\n- If Standalone Payment is enabled, default value is `true`.\n"},"startDate":{"type":"string","format":"date","description":"The date for the first payment collection.\n\n**Note:**\n- This field is required when `items` is not specified.\n- This field will be ignored when `items` is specified.              \n"},"totalAmount":{"type":"number","format":"double","description":"The total amount of that the payment schedule will collect. This field is only available for recurring payment schedules. \n\n**Note**:\n- When creating recurring payment schedules, there are 2 options to specify amounts:\n  \n  - Specify `totalAmount` and `occurrences`, `amount` will be calculated.\n  - Specify `amount` and `occurrences`, `totalAmount` will be calculated.\n  \n  You must specify either `totalAmount` or `amount`. Specifying both fields at the same time is not allowed.\n- If the Standalone Payments feature is enabled and `standalone` is set to `true` for the payment schedule, `totalAmount` will be ignored.\n"}},"description":"Container for custom fields of a Payment Schedule object.\n","title":"POSTPaymentScheduleRequest"},"PostPaymentScheduleResponseBillingDocument":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.\n"},"number":{"type":"string","description":"Number of the billing docuemnt, for example, `INV00002345`.\n"},"type":{"type":"string","description":"Indicates whether the associated billing document is a debit memo or a invoice.\n"}},"title":"PostPaymentScheduleResponseBillingDocument"},"PostPaymentScheduleResponseBillingDocumentsItemsType":{"type":"string","enum":["Invoice","DebitMemo"],"description":"Denotes if the billing document is of the type invoice or debit memo.\n","title":"PostPaymentScheduleResponseBillingDocumentsItemsType"},"PostPaymentScheduleResponseBillingDocumentsItems":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document.\n"},"number":{"type":"string","description":"Number of the billing document. If the billing document is a debit memo, it contains the debit memo number. If the billing document is an invoice, it contains the invoice number.\n"},"type":{"$ref":"#/components/schemas/PostPaymentScheduleResponseBillingDocumentsItemsType","description":"Denotes if the billing document is of the type invoice or debit memo.\n"}},"title":"PostPaymentScheduleResponseBillingDocumentsItems"},"PostPaymentScheduleResponseStatus":{"type":"string","enum":["Active","Canceled","Completed"],"description":"The status of the payment schedule.\n\n- `Active`: There are still pament schedule items to process.\n- `Canceled`: After a payment schedule is canceled by the user, the schedule is marked as `Canceled`.\n- `Completed`: After all payment schedule items are processed, the schedule is marked as `Completed`.\n","title":"PostPaymentScheduleResponseStatus"},"POSTPaymentScheduleResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"ID of the account that owns the payment schedule.\n"},"accountNumber":{"type":"string","description":"Number of the account that owns the payment schedule.\n"},"billingDocument":{"$ref":"#/components/schemas/PostPaymentScheduleResponseBillingDocument"},"billingDocuments":{"type":"array","items":{"$ref":"#/components/schemas/PostPaymentScheduleResponseBillingDocumentsItems"},"description":"Container array of the multiple billing documents associated with the payment schedule.\n"},"createdById":{"type":"string","description":"ID of the user who created this payment schedule.\n"},"createdDate":{"type":"string","format":"date","description":"The date and time the payment schedule is created.\n"},"description":{"type":"string","description":"The description of the payment schedule.\n"},"id":{"type":"string","description":"ID of the payment schedule.\n"},"isCustom":{"type":"boolean","description":"Indicates if the payment schedule is a custom payment schedule.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentScheduleItemCommonResponse"},"description":"Container for payment schedule items.\n"},"nextPaymentDate":{"type":"string","format":"date","description":"The date the next payment will be processed.\n"},"occurrences":{"type":"integer","description":"The number of payment schedule items that are created by this payment schedule.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"paymentScheduleNumber":{"type":"string","description":"Number of the payment schedule.\n"},"period":{"type":["string","null"],"description":"For recurring payment schedule only. The period of payment generation. Available values include: `Monthly`, `Weekly`, `BiWeekly`.\nReturn `null` for custom payment schedules.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the payments created by the payment schedule are used as a reserved payment. This field will only be available if the prepaid cash drawdown permission is enabled. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information.\n"},"recentPaymentDate":{"type":["string","null"],"format":"date","description":"The date the last payment was processed.\n"},"runHour":{"type":"integer","description":"[0,1,2,~,22,23]\n\nAt which hour in the day in the tenant’s timezone this payment will be collected. If the payment `runHour` and `scheduledDate` are backdated, the system will collect the payment when the next runHour occurs.\nReturn `0` for custom payment schedules.\n"},"standalone":{"type":"boolean","description":"Indicates if the payments that the payment schedule created are standalone payments or not.\n"},"startDate":{"type":"string","format":"date","description":"The date when the first payment of this payment schedule is proccessed.\n"},"status":{"$ref":"#/components/schemas/PostPaymentScheduleResponseStatus","description":"The status of the payment schedule.\n\n- `Active`: There are still pament schedule items to process.\n- `Canceled`: After a payment schedule is canceled by the user, the schedule is marked as `Canceled`.\n- `Completed`: After all payment schedule items are processed, the schedule is marked as `Completed`.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.        \n"},"totalAmount":{"type":"number","format":"double","description":"The total amount that will be collected by this payment schedule. This field will contain a null value if the `standalone` value is `true`.\n"},"totalPaymentsErrored":{"type":"integer","description":"The number of errored payments.\n"},"totalPaymentsProcessed":{"type":"integer","description":"The number of processed payments.\n"},"updatedById":{"type":"string","description":"ID of the user who last updated this payment schedule.\n"},"updatedDate":{"type":"string","format":"date","description":"The date and time the payment schedule is last updated.\n"}},"description":"Container for custom fields of a Payment Schedule object.\n","title":"POSTPaymentScheduleResponse"},"POSTPaymentSchedulesRequest":{"type":"object","properties":{"paymentSchedules":{"type":"array","items":{"$ref":"#/components/schemas/POSTPaymentScheduleRequest"},"description":"Container of the payment schedules to be created.\n"}},"title":"POSTPaymentSchedulesRequest"},"POSTPaymentSchedulesEach":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the created payment schedule.\n"},"paymentScheduleNumber":{"type":"string","description":"The number of the created payment schedule.\n"}},"title":"POSTPaymentSchedulesEach"},"POSTPaymentSchedulesResponse":{"type":"object","properties":{"paymentSchedules":{"type":"array","items":{"$ref":"#/components/schemas/POSTPaymentSchedulesEach"},"description":"Container for payment parts.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"description":"Container of the payment schedules that are created.\n","title":"POSTPaymentSchedulesResponse"},"PaymentRunStatistic":{"type":"object","properties":{"completedOn":{"type":"string","format":"date-time","description":"The date and time the payment run is completed.\n"},"executedOn":{"type":["string","null"],"format":"date-time","description":"The date and time the payment run is executed.\n"},"number":{"type":"string","description":"Payment run number.\n"},"numberOfErrors":{"type":"integer","description":"Number of errored payments\n"},"numberOfPayments":{"type":"integer","description":"Number of processed payments.\n"},"status":{"type":"string","description":"Payment run status.\n"}},"description":"Payment run statistic.","title":"PaymentRunStatistic"},"GetPaymentScheduleStatisticResponsePaymentScheduleItems":{"type":"object","properties":{"error":{"type":"integer","description":"The number of errored payment schedule items.              \n"},"pending":{"type":"integer","description":"The number of pending payment schedule items.\n"},"processed":{"type":"integer","description":"The number of processed payment schedule items. \n"}},"title":"GetPaymentScheduleStatisticResponsePaymentScheduleItems"},"GETPaymentScheduleStatisticResponse":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"The specified date.\n"},"paymentRuns":{"type":"array","items":{"$ref":"#/components/schemas/PaymentRunStatistic"}},"paymentScheduleItems":{"$ref":"#/components/schemas/GetPaymentScheduleStatisticResponsePaymentScheduleItems"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"description":"The object that contains the payment schedule statistic of the specified date.\n","title":"GETPaymentScheduleStatisticResponse"},"GetPaymentScheduleResponseBillingDocument":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document. for example, `2c9890306fb2121e016fb21a6b550041`.\n"},"number":{"type":"string","description":"The number of the billing docuemnt, for example, `INV00002345`.\n"},"type":{"type":"string","description":"Indicates whether the associated billing document is a debit memo or a invoice.\n"}},"title":"GetPaymentScheduleResponseBillingDocument"},"GetPaymentScheduleResponseBillingDocumentsItemsType":{"type":"string","enum":["Invoice","DebitMemo"],"description":"Denotes if the billing document is of the type invoice or debit memo.\n","title":"GetPaymentScheduleResponseBillingDocumentsItemsType"},"GetPaymentScheduleResponseBillingDocumentsItems":{"type":"object","properties":{"id":{"type":"string","description":"ID of the billing document.\n"},"number":{"type":"string","description":"Number of the billing document. If the billing document is a debit memo, it contains the debit memo number. If the billing document is an invoice, it contains the invoice number.\n"},"type":{"$ref":"#/components/schemas/GetPaymentScheduleResponseBillingDocumentsItemsType","description":"Denotes if the billing document is of the type invoice or debit memo.\n"}},"title":"GetPaymentScheduleResponseBillingDocumentsItems"},"GetPaymentScheduleResponseStatus":{"type":"string","enum":["Active","Canceled","Completed"],"description":"The status of the payment schedule.\n\n- Active: There is still payment schedule item to process.\n- Canceled: After a payment schedule is canceled by the user, the schedule is marked as `Canceled`.\n- Completed: After all payment schedule items are processed, the schedule is marked as `Completed`.\n","title":"GetPaymentScheduleResponseStatus"},"GETPaymentScheduleResponse":{"type":"object","properties":{"accountId":{"type":"string","description":"ID of the account that owns the payment schedule.\n"},"accountNumber":{"type":"string","description":"Number of the account that owns the payment schedule.\n"},"billingDocument":{"$ref":"#/components/schemas/GetPaymentScheduleResponseBillingDocument"},"billingDocuments":{"type":"array","items":{"$ref":"#/components/schemas/GetPaymentScheduleResponseBillingDocumentsItems"},"description":"Container array of the multiple billing documents associated with the payment schedule.\n"},"createdById":{"type":"string","description":"The ID of the user who created this payment schedule.\n"},"createdDate":{"type":"string","format":"date","description":"The date and time the payment schedule is created.\n"},"cancellationReason":{"type":["string","null"],"description":"The reason for the cancellation of the payment schedule item.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the user who canceled this payment schedule.\n"},"cancelledOn":{"type":["string","null"],"description":"The date when the payment schedule was canceled.\n"},"cancelDate":{"type":"string","format":"date","description":"Specifies the effective date by when the payment schedule will be canceled.\n"},"description":{"type":"string","description":"The description of the payment schedule.\n"},"id":{"type":"string","description":"ID of the payment schedule.\n"},"isCustom":{"type":"boolean","description":"Indicates if the payment schedule is a custom payment schedule.\n"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentScheduleItemCommonResponse"},"description":"Container for payment schedule items.\n"},"nextPaymentDate":{"type":"string","format":"date","description":"The date the next payment will be processed.\n"},"occurrences":{"type":"integer","description":"The number of payment schedule items that are created by this payment schedule.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"paymentScheduleNumber":{"type":"string","description":"Number of the payment schedule.\n"},"period":{"type":"string","description":"For recurring payment schedule only. The period of payment generation. Available values include: `Monthly`, `Weekly`, `BiWeekly`.\n\nReturn `null` for custom payment schedules.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the payments created by the payment schedule are used as a reserved payment. This field is available only if the prepaid cash drawdown permission is enabled. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information.\n"},"recentPaymentDate":{"type":"string","format":"date","description":"The date the last payment was processed.\n"},"runHour":{"type":"integer","description":"[0,1,2,~,22,23]\n\nAt which hour in the day in the tenant’s timezone this payment will be collected.\n\nReturn `0` for custom payment schedules.\n"},"standalone":{"type":"boolean","description":"Indicates if the payments that the payment schedule created are standalone payments.\n"},"startDate":{"type":"string","format":"date","description":"The date when the first payment of this payment schedule is proccessed.\n"},"status":{"$ref":"#/components/schemas/GetPaymentScheduleResponseStatus","description":"The status of the payment schedule.\n\n- Active: There is still payment schedule item to process.\n- Canceled: After a payment schedule is canceled by the user, the schedule is marked as `Canceled`.\n- Completed: After all payment schedule items are processed, the schedule is marked as `Completed`.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.        \n"},"totalAmount":{"type":"number","format":"double","description":"The total amount that will be collected by the payment schedule.\n"},"totalPaymentsErrored":{"type":"integer","description":"The number of errored payments.\n"},"totalPaymentsProcessed":{"type":"integer","description":"The number of processed payments.\n"},"updatedById":{"type":"string","description":"The ID of the user who last updated this payment schedule.\n"},"updatedDate":{"type":"string","format":"date","description":"The date and time the payment schedule is last updated.\n"}},"description":"Container for custom fields of a Payment Schedule object.\n","title":"GETPaymentScheduleResponse"},"PutPaymentScheduleRequestPeriod":{"type":"string","enum":["Monthly","Weekly","BiWeekly"],"description":"Indicates the updated period of the pending payment schedule items.\n","title":"PutPaymentScheduleRequestPeriod"},"PUTPaymentScheduleRequest":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"Indicates the updated amount of the pending payment schedule items.\n"},"currency":{"type":"string","description":"Indicates the updated currency of the pending payment schedule items.   \n**Note:**\n- For custom payments, if Multi-currency is enabled, the payment currency can be different from the account currency for custom payment.\n- For recurring payments, if Multi-currency is enabled, the payment currency can be different from the account currency but should be the same as billing currency for a recurring payment.\n  \n"},"description":{"type":"string","maxLength":255,"description":"Description of the payment schedule.\n"},"occurrences":{"type":"integer","description":"Indicates the updated number of payment schedule items that are created by the payment schedule.\n\n**Note:**\n  - If \"updated `occurrences` > existing `occurrences`\", the following number of pending payment schedule item will be added to the payment schedule: “updated `occurrences` - existing `occurrences`”.\n  - If \"existing `occurrences` > updated `occurrences` >= the number of `processed`/`errored`/`canceled` payment schedule items\", the following number of pending items will be removed by descending order of the schedule dates: \"existing `occurrences` - updated `occurrences`\".\n  - If \"updated `occurrences` < the number of `processed`/`erroed`/`canceled` payment schedule items\", a validation error will be returned.\n"},"paymentGatewayId":{"type":"string","description":"Indicates the updated payment gateway ID of the pending payment schedule items.\n"},"paymentMethodId":{"type":"string","description":"Indicates the updated payment method ID of the pending payment schedule items. \n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\nHere is an example:\n```\n\"paymentOption\": [\n  {\n    \"type\": \"GatewayOptions\",\n    \"detail\": {\n      \"SecCode\":\"WEB\"\n    }\n  }\n]\n```\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n\n **Note:** To enable this field, submit a request at [Zuora Global Support](https://support.zuora.com/).\n"},"period":{"$ref":"#/components/schemas/PutPaymentScheduleRequestPeriod","description":"Indicates the updated period of the pending payment schedule items.\n"},"periodStartDate":{"type":"string","format":"date","description":"Indicates the updated collection date for the next pending payment schedule item.\n"},"runHour":{"type":"integer","description":"Specifies at which hour of the day in the tenant’s time zone this payment will be collected. Available values: `[0,1,2,~,22,23]`.\n  \nIf the time difference between your tenant’s timezone and the timezone where Zuora servers are is not in full hours, for example, 2.5 hours, the payment schedule items will be triggered half hour later than your scheduled time. If the payment `runHour` and `scheduledDate` are backdated, the system will collect the payment when the next runHour occurs.\n"}},"description":"Container for custom fields of a Payment Schedule object.\n","title":"PUTPaymentScheduleRequest"},"PUTCancelPaymentScheduleRequest":{"type":"object","properties":{"cancelDate":{"type":"string","format":"date","description":"Specifies when the payment schedule will be canceled.\n\n**Note**: If there is no legitimate payment schedule item to cancel, the payment schedule cancel operation will be rejected.\n"}},"required":["cancelDate"],"title":"PUTCancelPaymentScheduleRequest"},"PaymentScheduleItemCommon":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount that needs to be collected by this payment schedule item.\n"},"currency":{"type":"string","description":"The currency of the payment.\n\n**Note**:\n- This field is optional. If not specified, the default value is the currency set for the account.\n- For custom payments, if Multi-currency is enabled, the payment currency can be different from the account currency for custom payment.\n- For recurring payments, if Multi-currency is enabled, the payment currency can be different from the account currency but should be the same as billing currency for a recurring payment.\n"},"description":{"type":"string","description":"Description of the payment schedule item.\n"},"paymentGatewayId":{"type":"string","description":"The ID of the payment gateway.\n\n**Note**:\n- This field is optional. If not specified, the default value is the payment gateway id set for the account.\n"},"paymentMethodId":{"type":"string","description":"The ID of the payment method.\n\n**Note**:\n- This field is optional. If not specified, the default value is the payment method id set for the account.\n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\nHere is an example:\n```\n\"paymentOption\": [\n  {\n    \"type\": \"GatewayOptions\",\n    \"detail\": {\n      \"SecCode\":\"WEB\"\n    }\n  }\n]\n```\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"runHour":{"type":"string","description":"At which hour of the day in the tenant’s timezone this payment will be collected. Available values:`[0,1,2,~,22,23]`.\nIf the payment `runHour` and `scheduledDate` are backdated, the system will collect the payment when the next runHour occurs.\nThe default value is `0`.\n"},"scheduledDate":{"type":"string","format":"date","description":"The date to collect the payment.\n"}},"required":["amount","scheduledDate"],"description":"Container for custom fields of a Payment Schedule Item object.\n","title":"PaymentScheduleItemCommon"},"POSTAddItemsToPaymentScheduleRequest":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PaymentScheduleItemCommon"}}},"description":"Container for the payment schedule items to be added to the payment schedule.\n","title":"POSTAddItemsToPaymentScheduleRequest"},"PutPreviewPaymentScheduleRequestPeriod":{"type":"string","enum":["Monthly","Weekly","BiWeekly"],"description":"Indicates the updated period of the pending payment schedule items.\n","title":"PutPreviewPaymentScheduleRequestPeriod"},"PUTPreviewPaymentScheduleRequest":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"Indicates the updated amount of the pending payment schedule items.\n"},"currency":{"type":"string","description":"Indicates the updated currency of the pending payment schedule items.      \n"},"occurrences":{"type":"integer","description":"Indicates the updated number of payment schedule items that are created by the payment schedule.\n"},"paymentGatewayId":{"type":"string","description":"Indicates the updated payment gateway ID of the pending payment schedule items.\n"},"paymentMethodId":{"type":"string","description":"Indicates the updated payment method ID of the pending payment schedule items. \n"},"paymentOption":{"type":"array","items":{"$ref":"#/components/schemas/PaymentSchedulePaymentOptionFields"},"description":"Container for the paymentOption items, which describe the transactional level rules for processing payments. Currently, only the Gateway Options type is supported.\n\nHere is an example:\n```\n\"paymentOption\": [\n  {\n    \"type\": \"GatewayOptions\",\n    \"detail\": {\n      \"SecCode\":\"WEB\"\n    }\n  }\n]\n```\n\n`paymentOption` of the payment schedule takes precedence over `paymentOption` of the payment schedule item.\n"},"period":{"$ref":"#/components/schemas/PutPreviewPaymentScheduleRequestPeriod","description":"Indicates the updated period of the pending payment schedule items.\n"},"periodStartDate":{"type":"string","format":"date","description":"Indicates the updated collection date for the next pending payment schedule item.\n"},"runHour":{"type":"integer","description":"Specifies at which hour of the day in the tenant’s time zone this payment will be collected. Available values: `[0,1,2,~,22,23]`.\n  \nIf the time difference between your tenant’s timezone and the timezone where Zuora servers are is not in full hours, for example, 2.5 hours, the payment schedule items will be triggered half hour later than your scheduled time. If the payment `runHour` and `scheduledDate` are backdated, the system will collect the payment when the next runHour occurs.\n"}},"description":"Container for custom fields of a Payment Schedule object.\n","title":"PUTPreviewPaymentScheduleRequest"},"V1RefundsGetParametersMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"title":"V1RefundsGetParametersMethodType"},"V1RefundsGetParametersStatus":{"type":"string","enum":["Processed","Canceled","Error","Processing"],"title":"V1RefundsGetParametersStatus"},"V1RefundsGetParametersType":{"type":"string","enum":["External","Electronic"],"title":"V1RefundsGetParametersType"},"GetRefundTypewithSuccessFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"GetRefundTypewithSuccessFinanceInformationTransferredToAccounting"},"GetRefundTypewithSuccessFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":["string","null"],"description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetRefundTypewithSuccessFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":["string","null"],"description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the refund.\n","title":"GetRefundTypewithSuccessFinanceInformation"},"GetRefundTypewithSuccessGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the refund in the gateway. \n","title":"GetRefundTypewithSuccessGatewayState"},"GetRefundTypewithSuccessMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer. \n","title":"GetRefundTypewithSuccessMethodType"},"GetRefundTypewithSuccessStatus":{"type":"string","enum":["Processed","Canceled","Error","Processing"],"description":"The status of the refund. \n","title":"GetRefundTypewithSuccessStatus"},"GetRefundTypewithSuccessType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund. \n","title":"GetRefundTypewithSuccessType"},"GETRefundTypewithSuccess":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with this refund. Zuora associates the refund automatically with the account from the associated payment or credit memo.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the refund.\n"},"cancelledOn":{"type":["string","null"],"description":"The date and time when the refund was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":"string","description":"Comments about the refund.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund.\n"},"createdDate":{"type":"string","description":"The date and time when the refund was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditMemoId":{"type":["string","null"],"description":"The ID of the credit memo that is refunded.\n"},"financeInformation":{"$ref":"#/components/schemas/GetRefundTypewithSuccessFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayId":{"type":["string","null"],"description":"The ID of the gateway instance that processes the refund.\n"},"gatewayReconciliationReason":{"type":["string","null"],"description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":["string","null"],"description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":["string","null"],"description":"The message returned from the payment gateway for the refund. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":["string","null"],"description":"The code returned from the payment gateway for the refund. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/GetRefundTypewithSuccessGatewayState","description":"The status of the refund in the gateway. \n"},"id":{"type":"string","description":"The ID of the refund.\n"},"markedForSubmissionOn":{"type":["string","null"],"description":"The date and time when a refund was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"methodType":{"$ref":"#/components/schemas/GetRefundTypewithSuccessMethodType","description":"How an external refund was issued to a customer. \n"},"number":{"type":"string","description":"The unique identification number of the refund.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentId":{"type":"string","description":"The ID of the payment that is refunded.\n"},"paymentMethodId":{"type":["string","null"],"description":"The unique ID of the payment method that the customer used to make the refund.\n"},"paymentMethodSnapshotId":{"type":["string","null"],"description":"The unique ID of the payment method snapshot, which is a copy of the particular payment method used in a transaction.\n"},"payoutId":{"type":["string","null"],"description":"The payout ID of the refund from the gateway side.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction.\n"},"referenceId":{"type":["string","null"],"description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format. For example, 2017-03-01.\n"},"refundTransactionTime":{"type":["string","null"],"description":"The date and time when the refund was issued, in `yyyy-mm-dd hh:mm:ss` format.\n"},"secondRefundReferenceId":{"type":["string","null"],"description":"The transaction ID returned by the payment gateway if there is an additional transaction for the refund. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":["string","null"],"description":"The date and time when the refund was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":["string","null"],"description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"softDescriptorPhone":{"type":["string","null"],"description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"status":{"$ref":"#/components/schemas/GetRefundTypewithSuccessStatus","description":"The status of the refund. \n"},"submittedOn":{"type":["string","null"],"description":"The date and time when the refund was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"type":{"$ref":"#/components/schemas/GetRefundTypewithSuccessType","description":"The type of the refund. \n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the refund.\n"},"updatedDate":{"type":"string","description":"The date and time when the refund was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the refund's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the refund was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"type":"string","maxLength":255,"description":"Specifies whether the refund should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Refund object.\n","title":"GETRefundTypewithSuccess"},"GETRefundCollectionType":{"type":"object","properties":{"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"refunds":{"type":"array","items":{"$ref":"#/components/schemas/GETRefundTypewithSuccess"},"description":"Container for refunds.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETRefundCollectionType"},"GetRefundTypeFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"GetRefundTypeFinanceInformationTransferredToAccounting"},"GetRefundTypeFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","description":"The accounting code that maps to a bank account in your accounting system.\n"},"bankAccountAccountingCodeType":{"type":"string","description":"The type of the accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetRefundTypeFinanceInformationTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","description":"The accounting code for the unapplied payment.\n"},"unappliedPaymentAccountingCodeType":{"type":"string","description":"The type of the accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the refund.\n","title":"GetRefundTypeFinanceInformation"},"GetRefundTypeGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the refund in the gateway.\n","title":"GetRefundTypeGatewayState"},"GetRefundTypeMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer. \n","title":"GetRefundTypeMethodType"},"GetRefundTypeStatus":{"type":"string","enum":["Processed","Canceled","Error","Processing"],"description":"The status of the refund. \n","title":"GetRefundTypeStatus"},"GetRefundTypeType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund. \n","title":"GetRefundTypeType"},"GETRefundType":{"type":"object","properties":{"accountId":{"type":"string","description":"The ID of the account associated with this refund. Zuora associates the refund automatically with the account from the associated payment or credit memo.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the refund.\n"},"cancelledOn":{"type":"string","description":"The date and time when the refund was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the refund.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund.\n"},"createdDate":{"type":"string","description":"The date and time when the refund was created, in `yyyy-mm-dd hh:mm:ss` format. For example, `2017-03-01 15:31:10`.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo that is refunded.\n"},"financeInformation":{"$ref":"#/components/schemas/GetRefundTypeFinanceInformation","description":"Container for the finance information related to the refund.\n"},"gatewayId":{"type":"string","description":"The ID of the gateway instance that processes the refund.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the refund. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the refund. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/GetRefundTypeGatewayState","description":"The status of the refund in the gateway.\n"},"id":{"type":"string","description":"The ID of the refund.\n"},"markedForSubmissionOn":{"type":"string","description":"The date and time when a refund was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format. \n"},"methodType":{"$ref":"#/components/schemas/GetRefundTypeMethodType","description":"How an external refund was issued to a customer. \n"},"number":{"type":"string","description":"The unique identification number of the refund.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentId":{"type":"string","description":"The ID of the payment that is refunded.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the refund.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot, which is a copy of the particular payment method used in a transaction.\n"},"payoutId":{"type":"string","description":"The payout ID of the refund from the gateway side.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction.\n"},"referenceId":{"type":"string","description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format. For example, `2017-03-01`.\n"},"refundTransactionTime":{"type":"string","description":"The date and time when the refund was issued, in `yyyy-mm-dd hh:mm:ss` format.\n"},"secondRefundReferenceId":{"type":"string","description":"The transaction ID returned by the payment gateway if there is an additional transaction for the refund. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":"string","description":"The date and time when the refund was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"status":{"$ref":"#/components/schemas/GetRefundTypeStatus","description":"The status of the refund. \n"},"submittedOn":{"type":"string","description":"The date and time when the refund was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"type":{"$ref":"#/components/schemas/GetRefundTypeType","description":"The type of the refund. \n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the refund.\n"},"updatedDate":{"type":"string","description":"The date and time when the refund was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the refund's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the refund was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"type":"string","maxLength":255,"description":"Specifies whether the refund should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Refund object.\n","title":"GETRefundType"},"PutRefundTypeFinanceInformationTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"PutRefundTypeFinanceInformationTransferredToAccounting"},"PutRefundTypeFinanceInformation":{"type":"object","properties":{"bankAccountAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code that maps to a bank account in your accounting system.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PutRefundTypeFinanceInformationTransferredToAccounting","description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"unappliedPaymentAccountingCode":{"type":"string","minLength":0,"maxLength":100,"description":"The accounting code for the unapplied payment.\n"}},"description":"Container for the finance information related to the refund.\n","title":"PutRefundTypeFinanceInformation"},"PUTRefundType":{"type":"object","properties":{"comment":{"type":"string","minLength":0,"maxLength":255,"description":"Comments about the refund.\n"},"financeInformation":{"$ref":"#/components/schemas/PutRefundTypeFinanceInformation","description":"Container for the finance information related to the refund.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value must be an existing reason code or empty. If you do not specify a value, Zuora uses the default reason code.\n"},"referenceId":{"type":"string","minLength":0,"maxLength":100,"description":"The transaction ID returned by the payment gateway. Use this field to reconcile refunds between your gateway and Zuora Payments.\n\nYou can only update the reference ID for external refunds.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the refund's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Origin__NS":{"type":"string","maxLength":255,"description":"Origin of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the refund was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SynctoNetSuite__NS":{"type":"string","maxLength":255,"description":"Specifies whether the refund should be synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Refund object.\n","title":"PUTRefundType"},"RefundPartResponseTypewithSuccess":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the refund part.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund part.\n"},"createdDate":{"type":"string","description":"The date and time when the refund part was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo associated with the refund part.\n"},"id":{"type":"string","description":"The ID of the refund part.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentId":{"type":"string","description":"The ID of the payment associated with the refund part.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the refund part.\n"},"updatedDate":{"type":"string","description":"The date and time when the refund part was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"title":"RefundPartResponseTypewithSuccess"},"GETRefundPartCollectionType":{"type":"object","properties":{"parts":{"type":"array","items":{"$ref":"#/components/schemas/RefundPartResponseTypewithSuccess"},"description":"Container for refund parts.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETRefundPartCollectionType"},"RefundPartResponseType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the refund part.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund part.\n"},"createdDate":{"type":"string","description":"The date and time when the refund part was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo associated with the refund part.\n"},"id":{"type":"string","description":"The ID of the refund part.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"paymentId":{"type":"string","description":"The ID of the payment associated with the refund part.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the refund part.\n"},"updatedDate":{"type":"string","description":"The date and time when the refund part was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"title":"RefundPartResponseType"},"GETRefundItemPartTypewithSuccess":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the refund part item.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund part item.\n"},"createdDate":{"type":"string","description":"The date and time when the refund part item was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditMemoItemId":{"type":"string","description":"The ID of the credit memo item associated with the refund part item.\n"},"creditTaxItemId":{"type":"string","description":"The ID of the credit memo taxation item associated with the refund part item.\n"},"id":{"type":"string","description":"The ID of the refund part item.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the refund part item.\n"},"updatedDate":{"type":"string","description":"The date and time when the refund part item was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"title":"GETRefundItemPartTypewithSuccess"},"GETRefundItemPartCollectionType":{"type":"object","properties":{"itemParts":{"type":"array","items":{"$ref":"#/components/schemas/GETRefundItemPartTypewithSuccess"},"description":"Container for refund part items.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."}},"title":"GETRefundItemPartCollectionType"},"GETRefundItemPartType":{"type":"object","properties":{"amount":{"type":"number","format":"double","description":"The amount of the refund part item.\n"},"createdById":{"type":"string","description":"The ID of the Zuora user who created the refund part item.\n"},"createdDate":{"type":"string","description":"The date and time when the refund part item was created, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-01 15:31:10.\n"},"creditMemoItemId":{"type":"string","description":"The ID of the credit memo item associated with the refund part item.\n"},"creditTaxItemId":{"type":"string","description":"The ID of the credit memo taxation item associated with the refund part item.\n"},"id":{"type":"string","description":"The ID of the refund part item.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully."},"updatedById":{"type":"string","description":"The ID of the Zuora user who last updated the refund part item.\n"},"updatedDate":{"type":"string","description":"The date and time when the refund part item was last updated, in `yyyy-mm-dd hh:mm:ss` format. For example, 2017-03-02 15:36:10.\n"}},"title":"GETRefundItemPartType"},"V1PaymentProfilePutRequestBodyContentApplicationJsonSchemaBulkPaymentOptionItemsItems":{"type":"object","properties":{"subscriptionId":{"type":"string","format":"uuid","description":"The ID of the subscription associated with the payment profile fields.\n"},"paymentMethodId":{"type":"string","format":"uuid","description":"The ID of the payment method that processes the payment.\n"},"paymentGatewayId":{"type":"string","format":"uuid","description":"The ID of the gateway instance that processes the payment.\n"}},"title":"V1PaymentProfilePutRequestBodyContentApplicationJsonSchemaBulkPaymentOptionItemsItems"},"Payment_Profiles_UpsertPaymentProfiles_Response_200":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation is successful."}},"title":"Payment Profiles_UpsertPaymentProfiles_Response_200"},"GetCycleElementAttemptResponseActionInfo":{"type":"object","properties":{"action":{"type":"string","description":"The action taken in the retry attempt.\n"}},"description":"Information about the action of the retry attempt.\n","title":"GetCycleElementAttemptResponseActionInfo"},"GetCycleElementAttemptResponseRetryInfo":{"type":"object","properties":{"next":{"type":"string","format":"date-time","description":"The date and time of the next retry attempt as determined by `criteria`, in `yyyy-mm-dd hh:mm:ss` format.\n"},"criteria":{"type":"string","description":"The criteria defined in the retry configuration in the CPR UI, to specify whether the next retry will occur in an incremental time or at a specific time or day.\n"}},"description":"Information about the next retry attempt.\n","title":"GetCycleElementAttemptResponseRetryInfo"},"GetCycleElementAttemptResponseMappingInfo":{"type":"object","properties":{"label":{"type":"string","description":"The response code label, can be `Hard Decline`, `Soft Decline`, `System Error`, or custom labels.\n"},"level":{"type":"string","description":"The response code level for the payment gateway, can be `Code` or `Description`.\n"},"customer_group_id":{"type":"number","format":"double","description":"The ID of the customer group.\n"}},"description":"Information about the response code mapping for the retry attempt.\n","title":"GetCycleElementAttemptResponseMappingInfo"},"GetCycleElementAttemptResponseGatewayInfo":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the payment gateway.\n"},"code":{"type":"string","description":"The response code from the gateway.\n"},"response":{"type":"string","description":"The response message from the gateway.\n"}},"description":"Information about the payment gateway.\n","title":"GetCycleElementAttemptResponseGatewayInfo"},"GETCycleElementAttemptResponse":{"type":"object","properties":{"attempt_number":{"type":"number","format":"double","description":"The number of the retry attempt.\n"},"zuora_payment_id":{"type":"string","description":"The ID of the payment in Zuora Payments.\n"},"time_of_execution":{"type":"string","format":"date-time","description":"The date and time when the retry attempt was made, in `yyyy-mm-dd hh:mm:ss` format.\n"},"source":{"type":"string","description":"The number of the failed payment run.\n"},"cpr_generated":{"type":"boolean","description":"Indicates whether the first retry attempt was generated by Configurable Payment Retry. \n\n`true` for the cases of the first retry attempt generated by CPR and the second or later attempt.\n\n`false` for the cases that the retry attempt was made by the payment run or an external source during retry cycles.\n"},"success":{"type":"boolean","description":"Indicates whether the retry attempt is successful.\n"},"amount_collected":{"type":"number","format":"double","description":"The amount collected in this retry attempt.\n"},"action_info":{"$ref":"#/components/schemas/GetCycleElementAttemptResponseActionInfo","description":"Information about the action of the retry attempt.\n"},"retry_info":{"$ref":"#/components/schemas/GetCycleElementAttemptResponseRetryInfo","description":"Information about the next retry attempt.\n"},"mapping_info":{"$ref":"#/components/schemas/GetCycleElementAttemptResponseMappingInfo","description":"Information about the response code mapping for the retry attempt.\n"},"gateway_info":{"$ref":"#/components/schemas/GetCycleElementAttemptResponseGatewayInfo","description":"Information about the payment gateway.\n"}},"title":"GETCycleElementAttemptResponse"},"GETInvoiceCycleElementResponse":{"type":"object","properties":{"account_id":{"type":"string","description":"The ID of the customer account.\n"},"invoice_id":{"type":"string","description":"The ID of the invoice.\n"},"payment_method_id":{"type":"string","description":"The ID of the payment method.\n"},"currency":{"type":"string","description":"The type of the currency used.\n"},"status":{"type":"string","description":"The status of the retry cycle.\n"},"current_attempt_number":{"type":"number","format":"double","description":"The number of the current retry attempt.\n"},"next_attempt":{"type":"string","format":"date-time","description":"The date and time of the next retry attempt, in `yyyy-mm-dd hh:mm:ss` format.\n"},"customer_group":{"type":"string","description":"The name of the customer group.\n"},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/GETCycleElementAttemptResponse"},"description":"An array containing information of the retry attempts that have been made. See the schema and example for details.\n"}},"title":"GETInvoiceCycleElementResponse"},"GETActiveInvoiceCycleResponse":{"type":"object","properties":{"cycles":{"type":"array","items":{"$ref":"#/components/schemas/GETInvoiceCycleElementResponse"},"description":"An array containing information of all active retry cycles for an invoice. See the schema and example for details.\n"}},"title":"GETActiveInvoiceCycleResponse"},"GETDebitMemoCycleElementResponse":{"type":"object","properties":{"account_id":{"type":"string","description":"The ID of the customer account.\n"},"debit_memo_id":{"type":"string","description":"The ID of the debit memo.\n"},"payment_method_id":{"type":"string","description":"The ID of the payment method.\n"},"currency":{"type":"string","description":"The type of the currency used.\n"},"status":{"type":"string","description":"The status of the retry cycle.\n"},"current_attempt_number":{"type":"number","format":"double","description":"The number of the current retry attempt.\n"},"next_attempt":{"type":"string","format":"date-time","description":"The date and time of the next retry attempt, in `yyyy-mm-dd hh:mm:ss` format.\n"},"customer_group":{"type":"string","description":"The name of the customer group.\n"},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/GETCycleElementAttemptResponse"},"description":"An array containing information of the retry attempts that have been made. See the schema and example for details.\n"}},"title":"GETDebitMemoCycleElementResponse"},"GETActiveDebitMemoCycleResponse":{"type":"object","properties":{"cycles":{"type":"array","items":{"$ref":"#/components/schemas/GETDebitMemoCycleElementResponse"},"description":"An array containing information of all active retry cycles for a debit memo. See the schema and example for details.\n"}},"title":"GETActiveDebitMemoCycleResponse"},"GETAccountCycleElementResponse":{"type":"object","properties":{"account_id":{"type":"string","description":"The ID of the customer account.\n"},"invoice_id":{"type":"string","description":"The ID of the invoice.\n"},"debit_memo_id":{"type":"string","description":"The ID of the debit memo.\n"},"payment_method_id":{"type":"string","description":"The ID of the payment method.\n"},"currency":{"type":"string","description":"The type of the currency used.\n"},"status":{"type":"string","description":"The status of the retry cycle.\n"},"current_attempt_number":{"type":"number","format":"double","description":"The number of the current retry attempt.\n"},"next_attempt":{"type":"string","format":"date-time","description":"The date and time of the next retry attempt, in `yyyy-mm-dd hh:mm:ss` format.\n"},"customer_group":{"type":"string","description":"The name of the customer group.\n"},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/GETCycleElementAttemptResponse"},"description":"An array containing information of the retry attempts that have been made. See the schema and example for details.\n"}},"title":"GETAccountCycleElementResponse"},"GETActiveAccountCycleResponse":{"type":"object","properties":{"cycles":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountCycleElementResponse"},"description":"An array containing information of all active retry cycles for an account. See the schema and example for details.\n"}},"title":"GETActiveAccountCycleResponse"},"GETInvoiceCycleHistoryResponse":{"type":"object","properties":{"cycles":{"type":"array","items":{"$ref":"#/components/schemas/GETInvoiceCycleElementResponse"},"description":"An array containing information of all completed retry cycles for an invoice. See the example for details.\n"}},"title":"GETInvoiceCycleHistoryResponse"},"GETDebitMemoCycleHistoryResponse":{"type":"object","properties":{"cycles":{"type":"array","items":{"$ref":"#/components/schemas/GETDebitMemoCycleElementResponse"},"description":"An array containing information of all completed retry cycles for a debit memo. See the example for details.\n"}},"title":"GETDebitMemoCycleHistoryResponse"},"GETAccountCycleHistoryResponse":{"type":"object","properties":{"cycles":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountCycleElementResponse"},"description":"An array containing information of all completed retry cycles for an account. See the example for details.\n"}},"title":"GETAccountCycleHistoryResponse"},"Configurable_Payment_Retry_putExecuteInvoicePayment_Response_200":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation is successful."},"message":{"type":"string","description":"The response message."}},"title":"Configurable Payment Retry_putExecuteInvoicePayment_Response_200"},"Configurable_Payment_Retry_putExecuteDebitMemoPayment_Response_200":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation is successful."},"message":{"type":"string","description":"The response message."}},"title":"Configurable Payment Retry_putExecuteDebitMemoPayment_Response_200"},"Configurable_Payment_Retry_putExecuteAccountPayments_Response_200":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation is successful."},"message":{"type":"string","description":"The response message."}},"title":"Configurable Payment Retry_putExecuteAccountPayments_Response_200"},"Configurable_Payment_Retry_postExecutePayments_Response_200":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation is successful."},"message":{"type":"string","description":"The response message."}},"title":"Configurable Payment Retry_postExecutePayments_Response_200"},"Configurable_Payment_Retry_putRemoveInoviceFromCycle_Response_200":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation is successful."},"message":{"type":"string","description":"The response message."}},"title":"Configurable Payment Retry_putRemoveInoviceFromCycle_Response_200"},"Configurable_Payment_Retry_putRemoveDebitMemoFromCycle_Response_200":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation is successful."},"message":{"type":"string","description":"The response message."}},"title":"Configurable Payment Retry_putRemoveDebitMemoFromCycle_Response_200"},"Configurable_Payment_Retry_putRemoveAccountFromCycle_Response_200":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation is successful."},"message":{"type":"string","description":"The response message."}},"title":"Configurable Payment Retry_putRemoveAccountFromCycle_Response_200"},"Configurable_Payment_Retry_postSubmitPaymentToCycle_Response_200":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation is successful."},"message":{"type":"string","description":"The response message."}},"title":"Configurable Payment Retry_postSubmitPaymentToCycle_Response_200"},"GETBaselineMetricsResponse":{"type":"object","properties":{"retry_success_rate":{"type":"number","format":"double","description":"The percentage of successful payment attempts for all customer groups on this Configurable Payment Retry instance so far.\n\nRetry Success Rate = Number of successful retry payment attempts / Total number of retry payments attempted\n\nPayment attempts here are any payment attempts executed by Configurable Payment Retry, excluding the initial payment run.\n"},"retry_success_rate_trend":{"type":"string","description":"The trend of change in Retry Success Rate over the last 30 days.\n"},"document_success_rate":{"type":"number","format":"double","description":"The percentage of billing documents that are successfully collected, for all customer groups on this Configurable Payment Retry instance so far.\n\nDocument Success Rate = Number of billing documents collected / Total number of billing documents attempted\n\nBilling documents collected are any invoices and debit memos that were paid through the payment attempt initiated by Configurable Payment Retry.\n"},"document_success_rate_trend":{"type":"string","description":"The trend of change in Document Success Rate over the last 30 days.\n"},"average_days_outstanding":{"type":"number","format":"double","description":"The average number of days invoices and debit memos are unpaid before collection, for all customer groups on this Configurable Payment Retry instance so far.\n"},"average_days_outstanding_trend":{"type":"string","description":"The trend of change in Average Days Outstanding over the last 30 days.\n"},"success":{"type":"boolean","description":"Indicates whether the metrics are retrieved successfully.\n\nIf no data is loaded yet, a 200 response code will be returned with the success field set to `true`. All expected fields will be present but the value will be `null`.\n"}},"title":"GETBaselineMetricsResponse"},"GetAmountRecoveredResponseCurrencyItems":{"type":"object","properties":{},"title":"GetAmountRecoveredResponseCurrencyItems"},"GETAmountRecoveredResponse":{"type":"object","properties":{"currency":{"type":"array","items":{"$ref":"#/components/schemas/GetAmountRecoveredResponseCurrencyItems"},"description":"An array containing the following information for each available currency.\nIf no payment of a given currency has been processed over the last 30 days, the currency will not appear in the array.\n  - The total amount recovered to date\n  - The amount recovered over the last 30 days\n"},"success":{"type":"boolean","description":"Indicates whether the metrics are retrieved successfully.\n\nIf no data is loaded yet, a 200 response code will be returned with the success field set to `true`. All expected fields will be present but the value will be `null`.\n"}},"title":"GETAmountRecoveredResponse"},"GetDocumentSuccessRateByCustomerGroupResponseCustomerGroupsItems":{"type":"object","properties":{},"title":"GetDocumentSuccessRateByCustomerGroupResponseCustomerGroupsItems"},"GETDocumentSuccessRateByCustomerGroupResponse":{"type":"object","properties":{"customer_groups":{"type":"array","items":{"$ref":"#/components/schemas/GetDocumentSuccessRateByCustomerGroupResponseCustomerGroupsItems"},"description":"An array containing the Document Success Rate timeseries for each customer group represented by the customer group ID.\nA timeseries over the past 6 months is present in the format of `<month_year>: <document_success_rate>`. The data of the current month is not 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"},"success":{"type":"boolean","description":"Indicates whether the metrics are retrieved successfully.\n\nIf no data is loaded yet, a 200 response code will be returned with the success field set to `true`. All expected fields will be present but the value will be `null`.\n"}},"title":"GETDocumentSuccessRateByCustomerGroupResponse"},"GetCustomerGroupMetricsResponseCustomerGroupsItems":{"type":"object","properties":{},"title":"GetCustomerGroupMetricsResponseCustomerGroupsItems"},"GETCustomerGroupMetricsResponse":{"type":"object","properties":{"customer_groups":{"type":"array","items":{"$ref":"#/components/schemas/GetCustomerGroupMetricsResponseCustomerGroupsItems"},"description":"An array containing the following information for each customer group.\n  - Customer group ID\n  - Customer group name\n  - Whether Smart Retry is enabled for this customer group\n  - Document Success Rate indicating the percentage of billing documents that are successfully collected\n  - The trend of change in Document Success Rate over the last 30 days\n  - Retry Success Rate indicating the percentage of the successful payment attempts\n  - Average Attempts indicating the average number of attempts required to recover funds\n"},"success":{"type":"boolean","description":"Indicates whether the metrics are retrieved successfully.\n\nIf no data is loaded yet, a 200 response code will be returned with the success field set to `true`. All expected fields will be present but the value will be `null`.\n"}},"title":"GETCustomerGroupMetricsResponse"},"ObjectQueryAccountsGetParametersExpandSchemaItems":{"type":"string","enum":["billto","soldto","shipto","defaultpaymentmethod","subscriptions","payments","refunds","creditmemos","debitmemos","invoices","usages","paymentmethods","subscriptions.rateplans","subscriptions.rateplans.rateplancharges"],"title":"ObjectQueryAccountsGetParametersExpandSchemaItems"},"ExpandedAccountBcdSettingOption":{"type":"string","enum":["ManualSet","AutoSet"],"description":"Bill cycle day setting option. Indicates whether the account’s bill cycle day is managed manually or automatically.\n  - `ManualSet`: The bill cycle day is explicitly set to a specific day of the month (1–31).\n  - `AutoSet`: The bill cycle day is automatically determined by Zuora. The bill cycle day is assigned when the first subscription is created for the account.\n\nThis field is system-derived and read-only. Its value is automatically determined based on the `billCycleDay` field.\n","title":"ExpandedAccountBcdSettingOption"},"ExpandedAccountStatus":{"type":"string","enum":["Active","Draft","Canceled"],"description":"The account status.\n","title":"ExpandedAccountStatus"},"ExpandedAccountTaxExemptStatus":{"type":"string","enum":["No","Yes","PendingVerification"],"default":"No","description":"Status of the account tax exemption. Applicable if you use Zuora Tax or Connect tax engines. Required if you use Zuora Tax. \n","title":"ExpandedAccountTaxExemptStatus"},"ExpandedContactOtherPhoneType":{"type":"string","enum":["Work","Mobile","Home","Other"],"description":"The type of the additional phone number.\n","title":"ExpandedContactOtherPhoneType"},"ExpandedContact":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the contact.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the contact.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the contact was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the contact.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the contact was last updated.\n"},"accountId":{"type":"string","description":"The ID of the account associated with the contact.\n"},"address1":{"type":"string","maxLength":255,"description":"The first line of the contact's address, which is often a street address or business name.\n"},"address2":{"type":"string","maxLength":255,"description":"The second line of the contact's address.\n"},"asBillTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a bill-to contact.\n"},"asShipTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a ship-to contact.\n"},"asSoldTo":{"type":"boolean","description":"Indicates whether the contact can be specified as a sold-to contact.\n"},"city":{"type":"string","maxLength":40,"description":"The city of the contact's address.\n"},"country":{"type":"string","maxLength":64,"description":"The country of the contact's address.\n"},"county":{"type":"string","maxLength":32,"description":"The county. May optionally be used by Zuora Tax to calculate county tax.\n"},"fax":{"type":"string","maxLength":40,"description":"The contact's fax number. \n"},"description":{"type":"string","maxLength":100,"description":"A description for the contact.\n"},"firstName":{"type":"string","maxLength":100,"description":"The contact's first name.\n"},"homePhone":{"type":"string","maxLength":40,"description":"The contact's home phone number.\n"},"lastName":{"type":"string","maxLength":100,"description":"The contact's last name.\n"},"mobilePhone":{"type":"string","maxLength":100,"description":"The mobile phone number of the contact.\n"},"nickname":{"type":"string","maxLength":100,"description":"A nickname for the contact.\n"},"otherPhone":{"type":"string","maxLength":40,"description":"An additional phone number for the contact.\n"},"otherPhoneType":{"$ref":"#/components/schemas/ExpandedContactOtherPhoneType","description":"The type of the additional phone number.\n"},"personalEmail":{"type":"string","maxLength":80,"description":"The contact's personal email address.\n"},"state":{"type":"string","maxLength":40,"description":"The state or province of the contact's address.\n"},"postalCode":{"type":"string","maxLength":20,"description":"ZIP code or other postal code of the contact's address.\n"},"taxRegion":{"type":"string","maxLength":32,"description":"If using Zuora Tax, a region string as optionally defined in your tax rules. \n"},"workEmail":{"type":"string","maxLength":80,"description":"The contact's business email address.\n"},"workPhone":{"type":"string","maxLength":40,"description":"The contact's business phone number.\n"}},"title":"ExpandedContact"},"NestedPaymentMethodOnExpandAchAccountType":{"type":"string","enum":["BusinessChecking","Checking","Saving"],"description":"The type of bank account associated with the ACH payment method. This field is only required if the `type` field is set to `ACH`.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, `Checking` preferably.\n","title":"NestedPaymentMethodOnExpandAchAccountType"},"NestedPaymentMethodOnExpandBankTransferType":{"type":"string","enum":["AutomatischIncasso","LastschriftDE","LastschriftAT","DemandeDePrelevement","DirectDebitUK","Domicil","LastschriftCH","RID","OrdenDeDomiciliacion","Autogiro","Betalingsservice"],"description":"Specifies the type of direct debit transfer. The value of this field is dependent on the country of the user.\n\nPossible Values: \n\n\n* `AutomatischIncasso` (NL)\n\n* `LastschriftDE` (Germany)\n\n* `LastschriftAT` (Austria)\n\n* `DemandeDePrelevement` (FR)\n\n* `DirectDebitUK` (UK)\n\n* `Domicil` (Belgium)\n\n* `LastschriftCH` (CH)\n\n* `RID` (Italy)\n\n* `OrdenDeDomiciliacion` (Spain)\n* `Autogiro` (Sweden)\n* `Betalingsservice` (Denmark)\n","title":"NestedPaymentMethodOnExpandBankTransferType"},"NestedPaymentMethodOnExpandExistingMandate":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is an existing mandate.\n","title":"NestedPaymentMethodOnExpandExistingMandate"},"NestedPaymentMethodOnExpandMandateReceived":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is received from the gateway.\n","title":"NestedPaymentMethodOnExpandMandateReceived"},"NestedPaymentMethodOnExpandPaymentMethodStatus":{"type":"string","enum":["Active","Closed","Scrubbed"],"description":"The status of the payment method.\n","title":"NestedPaymentMethodOnExpandPaymentMethodStatus"},"NestedPaymentMethodOnExpandCardClass":{"type":"string","enum":["ChargeCard","Credit","Debit","DeferredDebit","Prepaid"],"description":"The type of the card.\n","title":"NestedPaymentMethodOnExpandCardClass"},"NestedPaymentMethodOnExpandCardProductType":{"type":"string","enum":["Commercial_or_Corporate_Card","Consumer_Card"],"description":"The product type of the card.\n","title":"NestedPaymentMethodOnExpandCardProductType"},"NestedPaymentMethodOnExpandAccount":{"type":"object","properties":{},"description":"The account to which the payment method belongs.\n","title":"NestedPaymentMethodOnExpandAccount"},"NestedPaymentMethodOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the payment method.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment method.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the payment method gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment method.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the payment method gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"accountId":{"type":"string","description":"The unique identifier of the account that the payment method is\nassociated with.\n"},"achAbaCode":{"type":"string","description":"The nine-digit routing number or ABA number used by banks. This field is only required if the `type` field is set to `ACH`.\n"},"achAccountName":{"type":"string","description":"The name of the account holder, which can be either a person or a company. This field is only required if the `type` field is set to `ACH`.\n"},"achAccountNumberMask":{"type":"string","description":"The masked bank account number associated with the ACH payment method. This field is only required if the `type` field is set to `ACH`.\n"},"achAccountType":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpandAchAccountType","description":"The type of bank account associated with the ACH payment method. This field is only required if the `type` field is set to `ACH`.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, `Checking` preferably.\n"},"achAddress1":{"type":"string","maxLength":255,"description":"First address line for the ACH payment method.\n"},"achAddress2":{"type":"string","maxLength":255,"description":"Second address line for the ACH payment method.\n"},"achBankName":{"type":"string","maxLength":70,"description":"The name of the bank where the ACH payment account is held.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify a dummy value.\n"},"achCity":{"type":"string","maxLength":40,"description":"City for the ACH payment method.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"achCountry":{"type":"string","description":"Country for the ACH payment method. Must be a valid country name or abbreviation.\n\nSee <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> for the list of supported country names and abbreviations.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"achPostalCode":{"type":"string","maxLength":20,"description":"Zip code or postal code for the ACH payment method.\n"},"achState":{"type":"string","description":"State for the ACH payment method. Must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>.\n"},"active":{"type":"boolean","description":"Indicates whether the payment method type is active. This field is for Zuora internal use and does not impact customer integration or use cases.\n"},"isSystem":{"type":"boolean","description":"Indicates whether the payment method is a system-generated payment method. This field is for Zuora internal use and does not impact customer integration or use cases.\n"},"bankBranchCode":{"type":"string","description":"The branch code of the bank used for Direct Debit.  \n"},"bankCheckDigit":{"type":"string","description":"The check digit in the international bank account number, which confirms the validity of the account. Applicable to direct debit payment methods."},"bankCity":{"type":"string","description":"The city of the direct debit bank."},"bankCode":{"type":"string","description":"The sort code or number that identifies the bank. This is also known as the sort code. \n"},"bankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the payment method's number, such as the credit card number or account number. Banks use this number to identify a payment method."},"bankName":{"type":"string","description":"The name of the direct debit bank."},"bankPostalCode":{"type":"string","description":"The zip code or postal code of the direct debit bank."},"bankStreetName":{"type":"string","description":"The name of the street of the direct debit bank."},"bankStreetNumber":{"type":"string","description":"The number of the direct debit bank."},"bankTransferAccountName":{"type":"string","description":"The name on the direct debit bank account."},"bankTransferAccountNumberMask":{"type":"string","description":"This is a masked displayable version of the bank account number, used for\nsecurity purposes. For example: `XXXXXXXXX54321`.\n"},"bankTransferAccountType":{"type":"string","description":"The type of the customer's bank account. Applicable to direct debit\npayment methods.\n"},"bankTransferType":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpandBankTransferType","description":"Specifies the type of direct debit transfer. The value of this field is dependent on the country of the user.\n\nPossible Values: \n\n\n* `AutomatischIncasso` (NL)\n\n* `LastschriftDE` (Germany)\n\n* `LastschriftAT` (Austria)\n\n* `DemandeDePrelevement` (FR)\n\n* `DirectDebitUK` (UK)\n\n* `Domicil` (Belgium)\n\n* `LastschriftCH` (CH)\n\n* `RID` (Italy)\n\n* `OrdenDeDomiciliacion` (Spain)\n* `Autogiro` (Sweden)\n* `Betalingsservice` (Denmark)\n"},"businessIdentificationCode":{"type":"string","description":"The business identification code for Swiss direct payment methods that use\nthe Global Collect payment gateway. Only applicable to direct debit\npayment methods in Switzerland with Global Collect.\n"},"city":{"type":"string","description":"The city of the customer's address. Applicable to debit payment methods.\n"},"country":{"type":"string","description":"The two-letter country code of the customer's address. Applicable to direct debit payment methods."},"creditCardAddress1":{"type":"string","description":"The first line of the card holder's address, which is often a street\naddress or business name. Applicable to credit card and direct debit\npayment methods.\n"},"creditCardAddress2":{"type":"string","description":"The second line of the card holder's address. Applicable to credit card\nand direct debit payment methods.\n"},"creditCardCity":{"type":"string","description":"The city of the card holder's address. Applicable to credit card and\ndirect debit payment methods.\n"},"creditCardCountry":{"type":"string","description":"The country where the credit card holder stays.\n\nWhen creating a payment method through a translated UI or Payment Page, a country name in a translated language might be selected. \nRegardless of the country texts selected when creating the payment method, only the supported country name returns in this field. \nFor a complete list of supported country names, 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>. \nInternationalization is not supported for the API field value.\n"},"creditCardExpirationMonth":{"type":"integer","minimum":1,"maximum":12,"description":"One or two digits expiration month.\n"},"creditCardExpirationYear":{"type":"integer","description":"Four-digit expiration year.\n"},"creditCardHolderName":{"type":"string","description":"The full name of the credit card holder.\n"},"creditCardMaskNumber":{"type":"string","description":"The masked credit card number, such as `*********1112`.\n"},"creditCardPostalCode":{"type":"string","description":"The postal code for the address of the credit card holder.\n"},"creditCardState":{"type":"string","description":"The state where the credit card holder stays.\n"},"creditCardType":{"type":"string","description":"The type of the credit card or debit card.\n\nPossible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).\n\n**Note:** This field is only returned for the Credit Card and Debit Card payment types.\n"},"deviceSessionId":{"type":"string","description":"The session ID of the user when the `PaymentMethod` was created or updated.\n"},"existingMandate":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpandExistingMandate","description":"Indicates whether the mandate is an existing mandate.\n"},"email":{"type":"string","description":"The email address of the payment method holder.\n"},"firstName":{"type":"string","description":"The customer's first name. Only applicable to direct debit payment methods.\n"},"iBAN":{"type":"string","description":"The International Bank Account Number used to create the SEPA payment method. The value is masked.\n"},"iPAddress":{"type":"string","description":"The IP address of the user when the payment method was created or updated.\n"},"identityNumber":{"type":"string","description":"The identity number of the account holder or the cardholder.\n"},"companyName":{"type":"string","description":"The name of the company.\n"},"isCompany":{"type":"boolean","description":"Whether the customer account is a company.\n"},"lastFailedSaleTransactionDate":{"type":"string","format":"date","description":"The date of the last failed attempt to collect payment with this payment\nmethod.\n"},"lastName":{"type":"string","description":"The customer's last name. Only applicable to direct debit payment methods.\n"},"lastTransactionDateTime":{"type":"string","format":"date-time","description":"The date and time of the most recent transaction.\n"},"lastTransactionStatus":{"type":"string","description":"The status of the most recent transaction."},"mandateCreationDate":{"type":"string","format":"date","description":"The date on which the mandate was created.\n"},"mandateId":{"type":"string","description":"The mandate ID.\n"},"mandateReason":{"type":"string","description":"The reason of the mandate from the gateway side.\n"},"mandateReceived":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpandMandateReceived","description":"Indicates whether the mandate is received from the gateway.\n"},"mandateStatus":{"type":"string","description":"The status of the mandate from the gateway side.\n"},"mandateUpdateDate":{"type":"string","format":"date","description":"The date on which the mandate was updated.\n"},"maxConsecutivePaymentFailures":{"type":"integer","description":"The number of allowable consecutive failures Zuora attempts with the payment method before stopping.\n"},"name":{"type":"string","description":"The name of the payment method.\n"},"numConsecutiveFailures":{"type":"integer","description":"The number of consecutive failed payments for this payment method. It is reset to `0` upon successful payment. \n"},"paymentMethodStatus":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpandPaymentMethodStatus","description":"The status of the payment method.\n"},"paymentRetryWindow":{"type":"integer","description":"The retry interval setting, which prevents making a payment attempt if the last failed attempt was within the last specified number of hours.\n"},"paypalBaid":{"type":"string","description":"ID of a PayPal billing agreement. \n"},"paypalEmail":{"type":"string","description":"Email address associated with the PayPal payment method. \n"},"paypalPreapprovalKey":{"type":"string","description":"The PayPal preapproval key.\n"},"paypalType":{"type":"string","description":"The type of the PayPal payment method.\n"},"phone":{"type":"string","description":"The phone number that the account holder registered with the bank. This\nfield is used for credit card validation when passing to a gateway.\n"},"postalCode":{"type":"string","description":"The zip code of the customer's address. Only applicable to direct debit\npayment methods.\n"},"secondTokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data.\n\n**Note:** This field is only returned for the Credit Card Reference Transaction payment type.\n"},"state":{"type":"string","description":"The state of the customer's address. Only applicable to direct debit\npayment methods.\n"},"streetName":{"type":"string","description":"The street name of the customer's address. Only applicable to direct debit\npayment methods.\n"},"streetNumber":{"type":"string","description":"The street number of the customer's address. Only applicable to direct\ndebit payment methods.\n"},"tokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data or\nrepresents a gateway's unique customer profile. Applicable to CC Reference\nTransaction payment methods.\n"},"totalNumberOfErrorPayments":{"type":"integer","description":"The number of error payments that used this payment method."},"totalNumberOfProcessedPayments":{"type":"integer","description":"The number of successful payments that used this payment method."},"type":{"type":"string","description":"The type of the payment method. For example, `CreditCard`.\n"},"useDefaultRetryRule":{"type":"boolean","description":"Indicates whether this payment method uses the default retry rules configured in the Zuora Payments settings.\n"},"methodReferenceId":{"type":"string","description":"The identification reference of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Payment Method Data Source Exports and Data Query.\n"},"userReferenceId":{"type":"string","description":"The identification reference of the user or customer account.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"subType":{"type":"string","description":"The identification reference indicating the subtype of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"methodSpecificData":{"type":"string","description":"Other method-specific data of the payment method.\n"},"cardBrand":{"type":"string","description":"The card brand, such as `Visa` and `MasterCard`.\n"},"cardClass":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpandCardClass","description":"The type of the card.\n"},"cardIssuingBank":{"type":"string","description":"The issuer bank of the card, such as `JPMORGAN CHASE BANK N.A.`.\n"},"cardIssuingCountry":{"type":"string","description":"The issuing country code of the card, such as `US`.\n"},"cardProductType":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpandCardProductType","description":"The product type of the card.\n"},"account":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpandAccount","description":"The account to which the payment method belongs.\n"}},"title":"NestedPaymentMethodOnExpand"},"NestedSubscriptionOnExpandCurrentTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"default":"Month","description":"The period type for the current subscription term.\n","title":"NestedSubscriptionOnExpandCurrentTermPeriodType"},"NestedSubscriptionOnExpandInitialTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"default":"Month","description":"The period type for the first subscription term.\n","title":"NestedSubscriptionOnExpandInitialTermPeriodType"},"NestedSubscriptionOnExpandRenewalSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"default":"RENEW_WITH_SPECIFIC_TERM","description":"Specifies whether a termed subscription will remain `TERMED` or change to `EVERGREEN` when it is renewed. \n","title":"NestedSubscriptionOnExpandRenewalSetting"},"NestedSubscriptionOnExpandRenewalTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"default":"Month","description":"The period type for the subscription renewal term.\n","title":"NestedSubscriptionOnExpandRenewalTermPeriodType"},"NestedSubscriptionOnExpandStatus":{"type":"string","enum":["Draft","Pending Activation","Pending Acceptance","Active","Cancelled","Suspended"],"description":"Subscription status.\n","title":"NestedSubscriptionOnExpandStatus"},"NestedSubscriptionOnExpandTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"The type of the subscription term.\n","title":"NestedSubscriptionOnExpandTermType"},"NestedSubscriptionOnExpandExternallyManagedBy":{"type":"string","enum":["Amazon","Apple","Google","Roku"],"description":"An enum field on the Subscription object to indicate the name of a\nthird-party store. This field is used to represent subscriptions created\nthrough third-party stores.\n","title":"NestedSubscriptionOnExpandExternallyManagedBy"},"NestedSubscriptionOnExpandAccount":{"type":"object","properties":{},"description":"The subscription owner account associated with the subscription.\n","title":"NestedSubscriptionOnExpandAccount"},"NestedSubscriptionOnExpandInvoiceOwner":{"type":"object","properties":{},"description":"The invoice owner account associated with the subscription.\n","title":"NestedSubscriptionOnExpandInvoiceOwner"},"NestedSubscriptionOnExpandBillToContact":{"type":"object","properties":{},"description":"The bill-to contact who pays the billing documents for this subscription.\n","title":"NestedSubscriptionOnExpandBillToContact"},"NestedSubscriptionOnExpandInvoiceItemsItems":{"type":"object","properties":{},"title":"NestedSubscriptionOnExpandInvoiceItemsItems"},"NestedSubscriptionOnExpandRatePlansItems":{"type":"object","properties":{},"title":"NestedSubscriptionOnExpandRatePlansItems"},"NestedSubscriptionOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the subscription.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the subscription.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the subscription was created in the Zuora\nsystem, in the `yyyy-mm-dd hh:mm:ss` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the subscription.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the subscription was last updated, in the `yyyy-mm-dd hh:mm:ss` format.\n"},"accountId":{"type":"string","description":"The ID of the account associated with this subscription."},"autoRenew":{"type":"boolean","default":false,"description":"If `true`, the subscription automatically renews at the end of the\nterm. \n"},"cancelledDate":{"type":"string","format":"date","description":"The date on which the subscription was canceled.\n"},"contractAcceptanceDate":{"type":"string","format":"date","description":"The date when the customer accepts the contract, in the `yyyy-mm-dd` format.\n\nIf this field is not set:\n\n- If the `serviceActivationDate` field is not set, the value of this\nfield is set to be the contract effective date.\n\n- If the `serviceActivationDate` field is set, the value of this field\nis set to be the service activation date.\n\n\nThe billing trigger dates must follow this rule:\n\ncontractEffectiveDate <= serviceActivationDate <=\ncontractAcceptanceDate\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"The date when the subscription is activated, in the `yyyy-mm-dd` format.\n\n\nYou must specify a Service Activation date if the Customer Acceptance\ndate is set. If the Customer Acceptance date is not set, the value of\nthe `serviceActivationDate` field defaults to be the Contract\nEffective Date.\n\n\nThe billing trigger dates must follow this rule:\n\n\ncontractEffectiveDate <= serviceActivationDate <=\ncontractAcceptanceDate\n"},"creatorAccountId":{"type":"string","description":"The ID of the account that created the subscription. This field is\nautomatically populated with the ID of the account that creates the\nsubscription.\n"},"creatorInvoiceOwnerId":{"type":"string","description":"The account ID that owns the invoices associated with the subscription or the amended subscription.\n"},"currentTerm":{"type":"integer","format":"int64","description":"The length of the period for the current subscription term.\n"},"currentTermPeriodType":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandCurrentTermPeriodType","default":"Month","description":"The period type for the current subscription term.\n"},"initialTerm":{"type":"integer","format":"int64","description":"The length of the period for the initial subscription term.\n"},"initialTermPeriodType":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandInitialTermPeriodType","default":"Month","description":"The period type for the first subscription term.\n"},"invoiceOwnerId":{"type":"string","description":"The account ID that owns the invoices associated with the subscription. \n"},"isInvoiceSeparate":{"type":"boolean","default":false,"description":"Determines if the subscription is invoiced separately. \nIf `true`, then all charges for this subscription are collected into the subscription's own invoice.\n"},"name":{"type":"string","description":"The name of the subscription.\n"},"notes":{"type":"string","maxLength":65535,"description":"Additional information about the subscription.\n"},"originalCreatedDate":{"type":"string","description":"The date when the subscription was originally created. \nThis value is the same as the `createdDate` value until the subscription is amended.\n"},"originalId":{"type":"string","description":"The original rate plan charge ID. Only available for update\nsubscription.\n"},"previousSubscriptionId":{"type":"string","description":"The ID of the previous subscription. This field is only available if\nthe subscription is a renewal subscription.\n"},"renewalSetting":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandRenewalSetting","default":"RENEW_WITH_SPECIFIC_TERM","description":"Specifies whether a termed subscription will remain `TERMED` or change to `EVERGREEN` when it is renewed. \n"},"renewalTerm":{"type":"integer","format":"int64","description":"The length of the period for the subscription renewal term.\n"},"renewalTermPeriodType":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandRenewalTermPeriodType","default":"Month","description":"The period type for the subscription renewal term.\n"},"revision":{"type":"string","description":"An auto-generated decimal value uniquely tagged with a subscription.\nThe value always contains one decimal place, for example, the revision\nof a new subscription is 1.0. If a further version of the subscription\nis created, the revision value will be increased by 1. Also, the\nrevision value is always incremental regardless of deletion of\nsubscription versions.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been activated and access has been provided to the customer, in the `yyyy-mm-dd` format.\n"},"status":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandStatus","description":"Subscription status.\n"},"isLatestVersion":{"type":"boolean","description":"If `true`, the current subscription object is the latest version.\n"},"subscriptionEndDate":{"type":"string","format":"date","description":"The date when the subscription term ends, where the subscription ends\nat midnight the day before.\n\nFor example, if the `subscriptionEndDate` is 12/31/2016, the\nsubscriptions ends at midnight (00:00:00 hours) on 12/30/2016.\n\nThis date is the same as the term end date or the cancelation date, as\nappropriate.\n"},"subscriptionStartDate":{"type":"string","format":"date","description":"Date the subscription becomes effective.\n"},"subscriptionVersionAmendmentId":{"type":"string","description":"The ID of the amendment made to this subscription version.\n"},"termEndDate":{"type":"string","format":"date","description":"Date the subscription term ends. If the subscription is evergreen,\nthis is null or is the cancellation date (if one has been set).\n"},"termStartDate":{"type":"string","format":"date","description":"Date the subscription term begins. If this is a renewal subscription,\nthis date is different from the subscription start date.\n"},"termType":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandTermType","description":"The type of the subscription term.\n"},"version":{"type":"integer","format":"int64","description":"This is the subscription version automatically generated by Zuora Billing. Each order or amendment creates a new version of the subscription, which incorporates the changes made in the order or amendment."},"cMRR":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact for the subscription.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact for the subscription.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact for the subscription.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot.\n"},"externallyManagedBy":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandExternallyManagedBy","description":"An enum field on the Subscription object to indicate the name of a\nthird-party store. This field is used to represent subscriptions created\nthrough third-party stores.\n"},"lastBookingDate":{"type":"string","format":"date","description":"The last booking date of the subscription object. This field is\nwritable only when the subscription is newly created as a first\nversion subscription. You can override the date value when creating a\nsubscription through the Subscribe and Amend API or the subscription\ncreation UI (non-Orders). Otherwise, the default value `today` is set\nper the user's timezone. The value of this field is as follows:\n\n* For a new subscription created by the [Subscribe and Amend\nAPIs](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Migration_Guidance#Subscribe_and_Amend_APIs_to_Migrate),\nthis field has the value of the subscription creation date.\n\n* For a subscription changed by an amendment, this field has the value\nof the amendment booking date.\n\n* For a subscription created or changed by an order, this field has\nthe value of the order date. \n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule associated with the subscription.\n\n\nIf multiple invoice schedules are created for different terms of a\nsubscription, this field stores the latest invoice schedule.\n\n\n**Note**: This field is available only if you have the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\"\ntarget=\"_blank\">Billing Schedule</a> feature enabled.\n"},"cancelReason":{"type":"string","description":"The reason for a subscription cancellation copied from the\n`changeReason` field of a Cancel Subscription order action. \n\nThis field contains valid value only if a subscription is cancelled\nthrough the Orders UI or API. Otherwise, the value for this field will\nalways be `null`.\n"},"prepayment":{"type":"boolean","description":"Whether the subscription is prepaid.\n"},"currency":{"type":"string","description":"The currency of the subscription.\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"orderId":{"type":"string","description":"The ID of the order associated with the subscription.\n\n  \n**Note**: This field is available only for orders that exist after the end of June 2023.\n"},"rampId":{"type":"string","description":"The ID of the ramp object associated with the subscription.\n\n**Note**: This field is available only if you have the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Ramp\"\ntarget=\"_blank\">Ramp</a> feature enabled.\n"},"paymentTerm":{"type":"string","description":"Name of the payment term associated with the account. For example,\n\"Net 30\". The payment term determines the due dates of invoices.\n"},"quoteNumber__QT":{"type":"string","maxLength":32,"description":"The unique identifier of the Quote. This field is used in Zuora data\nsources to report on Subscription metrics. If the subscription originated\nfrom Zuora Quotes, the value is populated with the value from Zuora\nQuotes.\n"},"quoteType__QT":{"type":"string","maxLength":32,"description":"The Quote type that represents the subscription lifecycle stage such as\nNew, Amendment, Renew or Cancel. This field is used in Zuora data sources\nto report on Subscription metrics. If the subscription originated from\nZuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"quoteBusinessType__QT":{"type":"string","maxLength":32,"description":"The specific identifier for the type of business transaction the Quote\nrepresents such as New, Upsell, Downsell, Renewal or Churn. This field is\nused in Zuora data sources to report on Subscription metrics. If the\nsubscription originated from Zuora Quotes, the value is populated with the\nvalue from Zuora Quotes.\n"},"opportunityName__QT":{"type":"string","maxLength":100,"description":"The unique identifier of the Opportunity. This field is used in Zuora data\nsources to report on Subscription metrics. If the subscription originated\nfrom Zuora Quotes, the value is populated with the value from Zuora\nQuotes.\n"},"opportunityCloseDate__QT":{"type":"string","format":"date"},"cpqBundleJsonId__QT":{"type":"string","maxLength":32,"description":"The Bundle product structures from Zuora Quotes if you utilize Bundling in Salesforce. Do not change the value in this field.\n"},"account":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandAccount","description":"The subscription owner account associated with the subscription.\n"},"invoiceOwner":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandInvoiceOwner","description":"The invoice owner account associated with the subscription.\n"},"billToContact":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandBillToContact","description":"The bill-to contact who pays the billing documents for this subscription.\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandInvoiceItemsItems"},"description":"The invoice items associated with the subscription.\n"},"ratePlans":{"type":"array","items":{"$ref":"#/components/schemas/NestedSubscriptionOnExpandRatePlansItems"},"description":"The rate plans associated with the subscription.\n"}},"title":"NestedSubscriptionOnExpand"},"NestedPaymentOnExpandGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the payment in the gateway; use for reconciliation. \n","title":"NestedPaymentOnExpandGatewayState"},"NestedPaymentOnExpandSource":{"type":"string","enum":["PaymentRun","Import","Manually","API"],"description":"Indicates how the payment was created, whether through API, manually, import, or payment run.\n","title":"NestedPaymentOnExpandSource"},"NestedPaymentOnExpandStatus":{"type":"string","enum":["Draft","Processing","Processed","Error","Canceled","Posted"],"description":"The status of the payment.\n","title":"NestedPaymentOnExpandStatus"},"NestedPaymentOnExpandType":{"type":"string","enum":["External","Electronic"],"description":"The type of the payment.\n","title":"NestedPaymentOnExpandType"},"NestedPaymentOnExpandTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"NestedPaymentOnExpandTransferredToAccounting"},"NestedPaymentOnExpandTransactionSource":{"type":"string","enum":["C_Unscheduled","M_Recurring","M_Unscheduled","M_MOTO"],"description":"Payment transaction source used to differentiate the transaction source in Stored Credential Transaction framework.\n  - `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.\n  - `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_MOTO`: Mail Order Telephone Order (MOTO) payment transaction. This option is only available for credit card payments on Stripe v2. See [Overview of Stripe payment gateway integration](https://knowledgecenter.zuora.com/Zuora_Collect/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration) for more information.\n","title":"NestedPaymentOnExpandTransactionSource"},"NestedPaymentOnExpandAccount":{"type":"object","properties":{},"description":"The account associated with the payment.\n","title":"NestedPaymentOnExpandAccount"},"NestedPaymentOnExpandPaymentMethod":{"type":"object","properties":{},"description":"The payment method used for this payment.\n","title":"NestedPaymentOnExpandPaymentMethod"},"NestedPaymentOnExpandPaymentApplicationsItems":{"type":"object","properties":{},"title":"NestedPaymentOnExpandPaymentApplicationsItems"},"NestedPaymentOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the payment.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the payment gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the payment gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"accountId":{"type":"string","description":"The ID of the customer account that the payment is for.\n"},"accountingCode":{"type":"string","description":"The accounting code for the charge. Accounting codes group\ntransactions that contain similar accounting attributes.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the payment.\n"},"authTransactionId":{"type":"string","description":"The authorization transaction ID from the payment gateway.\n"},"appliedCreditBalanceAmount":{"type":"number","format":"double","description":"The amount of the payment to apply to a credit balance. \n"},"bankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the credit card or debit card used for the payment, when applicable. \nUse this field to <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DF_Reconciling_Payments_with_Merchant_Accounts\" target=\"_blank\">reconcile payments between the gateway and merchant banks</a>.\n"},"cancelledOn":{"type":"string","format":"date-time","description":"The date when the payment was canceled.\n"},"comment":{"type":["string","null"],"description":"Comments about the payment.\n"},"currency":{"type":"string","description":"When Standalone Payment is not enabled, the `currency` of the payment must be the same as the payment currency defined in the customer account settings through Zuora UI.\n\nWhen Standalone Payment is enabled and `standalone` is `true`, the `currency` of the standalone payment can be different from the payment currency defined in the customer account settings. The amount will not be summed up to the account balance or key metrics regardless of currency.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date and time when the payment takes effect, in `yyyy-mm-dd hh:mm:ss` format.\n"},"gatewayOrderId":{"type":"string","description":"A merchant-specified natural key value that can be passed to the electronic payment gateway when a payment is created.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the payment. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the payment. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/NestedPaymentOnExpandGatewayState","description":"The status of the payment in the gateway; use for reconciliation. \n"},"gatewayTransactionState":{"type":"string"},"isStandalone":{"type":"boolean","description":"Indicates whether the payment is a standalone payment. A standalone\npayment is a payment that is not associated with any invoice or\nsubscription.\n"},"markedForSubmissionOn":{"type":"string","format":"date-time","description":"The date and time when a charge was marked and waiting for batch\nsubmission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot which is a copy of the particular Payment Method used in a transaction.\n"},"paymentOptionId":{"type":"string","description":"ID of the paymentOption object, which describe the transactional level rules for processing payments. \n"},"paymentNumber":{"type":"string","description":"The unique identification number of a payment. \n"},"payoutId":{"type":"string","description":"The payout ID of the payment from the gateway side.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the payment is used as a reserved payment. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information.\n"},"referencedPaymentID":{"type":"string","description":"The ID of a referenced payment. \n"},"referenceId":{"type":"string","description":"The transaction ID returned by the payment gateway. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the payment that is refunded.\n"},"secondPaymentReferenceId":{"type":"string","description":"The transaction ID returned by the payment gateway if there is an additional transaction for the payment. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":"string","format":"date-time","description":"The date and time when the payment was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"source":{"$ref":"#/components/schemas/NestedPaymentOnExpandSource","description":"Indicates how the payment was created, whether through API, manually, import, or payment run.\n"},"sourceName":{"type":"string","description":"Name of the source. It can be a payment run number or a file name.\n"},"status":{"$ref":"#/components/schemas/NestedPaymentOnExpandStatus","description":"The status of the payment.\n"},"submittedOn":{"type":"string","format":"date-time","description":"The date and time when the payment was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"type":{"$ref":"#/components/schemas/NestedPaymentOnExpandType","description":"The type of the payment.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/NestedPaymentOnExpandTransferredToAccounting","description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"transactionSource":{"$ref":"#/components/schemas/NestedPaymentOnExpandTransactionSource","description":"Payment transaction source used to differentiate the transaction source in Stored Credential Transaction framework.\n  - `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.\n  - `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_MOTO`: Mail Order Telephone Order (MOTO) payment transaction. This option is only available for credit card payments on Stripe v2. See [Overview of Stripe payment gateway integration](https://knowledgecenter.zuora.com/Zuora_Collect/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration) for more information.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the payment.\n"},"lastEmailDateTime":{"type":"string","description":"The date and time when the last email was sent to the customer for the payment.\n"},"gateway":{"type":"string","description":"Name of the gateway instance that processes the payment. \n"},"account":{"$ref":"#/components/schemas/NestedPaymentOnExpandAccount","description":"The account associated with the payment.\n"},"paymentMethod":{"$ref":"#/components/schemas/NestedPaymentOnExpandPaymentMethod","description":"The payment method used for this payment.\n"},"paymentApplications":{"type":"array","items":{"$ref":"#/components/schemas/NestedPaymentOnExpandPaymentApplicationsItems"},"description":"The payment applications associated with the payment.\n"}},"title":"NestedPaymentOnExpand"},"NestedRefundOnExpandGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the refund in the gateway. \n","title":"NestedRefundOnExpandGatewayState"},"NestedRefundOnExpandMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer. \n","title":"NestedRefundOnExpandMethodType"},"NestedRefundOnExpandSourceType":{"type":"string","enum":["Payment","CreditBalance","CreditMemo"],"description":"Specifies whether the refund is a refund payment or a credit balance. \n","title":"NestedRefundOnExpandSourceType"},"NestedRefundOnExpandStatus":{"type":"string","enum":["Processed","Canceled","Error","Processing"],"description":"The status of the refund. \n","title":"NestedRefundOnExpandStatus"},"NestedRefundOnExpandTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"NestedRefundOnExpandTransferredToAccounting"},"NestedRefundOnExpandType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund. \n","title":"NestedRefundOnExpandType"},"NestedRefundOnExpandAccount":{"type":"object","properties":{},"description":"The account associated with the refund.\n","title":"NestedRefundOnExpandAccount"},"NestedRefundOnExpandPaymentMethod":{"type":"object","properties":{},"description":"The payment method to which the refund is returned.\n","title":"NestedRefundOnExpandPaymentMethod"},"NestedRefundOnExpandRefundApplicationsItems":{"type":"object","properties":{},"title":"NestedRefundOnExpandRefundApplicationsItems"},"NestedRefundOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the refund.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the refund.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the refund was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the refund.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the refund was last updated.\n"},"accountId":{"type":"string","description":"The ID of the account associated with this refund. Zuora associates the refund automatically with the account from the associated payment or credit memo.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the refund.\n"},"cancelledOn":{"type":"string","format":"date-time","description":"The date and time when the refund was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the refund.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot which is a copy of the particular payment method used in a transaction.\n"},"accountingCode":{"type":"string","description":"The accounting code that maps to this refund transaction in your accounting\nsystem.\n"},"currency":{"type":"string","description":"The currency of the refund.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the refund. This\nmessage is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the refund. This code\nis gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/NestedRefundOnExpandGatewayState","description":"The status of the refund in the gateway. \n"},"markedForSubmissionOn":{"type":"string","format":"date-time","description":"The date and time when a refund was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"methodType":{"$ref":"#/components/schemas/NestedRefundOnExpandMethodType","description":"How an external refund was issued to a customer. \n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the refund.\n"},"payoutId":{"type":"string","description":"The payout ID of the refund from the gateway side.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction.\n"},"refundNumber":{"type":"string","description":"The number of the refund.\n"},"referenceID":{"type":"string","description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format. For example, 2017-03-01.\n"},"refundTransactionTime":{"type":"string","format":"date-time","description":"The date and time when the refund was issued, in `yyyy-mm-dd hh:mm:ss` format.\n"},"sourceType":{"$ref":"#/components/schemas/NestedRefundOnExpandSourceType","description":"Specifies whether the refund is a refund payment or a credit balance. \n"},"secondRefundReferenceId":{"type":"string","description":"The transaction ID returned by the payment gateway if there is an additional transaction for the refund. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":"string","format":"date-time","description":"The date and time when the refund was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"status":{"$ref":"#/components/schemas/NestedRefundOnExpandStatus","description":"The status of the refund. \n"},"submittedOn":{"type":"string","format":"date-time","description":"The date and time when the refund was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/NestedRefundOnExpandTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"type":{"$ref":"#/components/schemas/NestedRefundOnExpandType","description":"The type of the refund. \n"},"associatedTransactionNumber":{"type":"string","description":"The number of the associated transactions, such as payments.\n"},"gateway":{"type":"string","description":"The gateway that processed the original payment. A gateway is an online service provider that connects an online shopping cart to a payment processor.\nZuora uses this same gateway for the corresponding refund. \nIf this payment gateway is no longer active, then the electronic refund fails. \n"},"account":{"$ref":"#/components/schemas/NestedRefundOnExpandAccount","description":"The account associated with the refund.\n"},"paymentMethod":{"$ref":"#/components/schemas/NestedRefundOnExpandPaymentMethod","description":"The payment method to which the refund is returned.\n"},"refundApplications":{"type":"array","items":{"$ref":"#/components/schemas/NestedRefundOnExpandRefundApplicationsItems"},"description":"The refund applications associated with the refund.\n"}},"title":"NestedRefundOnExpand"},"NestedCreditMemoOnExpandEinvoiceStatus":{"type":"string","enum":["Processing","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are  returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n**Note**: This field 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","title":"NestedCreditMemoOnExpandEinvoiceStatus"},"NestedCreditMemoOnExpandRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice.\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n","title":"NestedCreditMemoOnExpandRevenueImpacting"},"NestedCreditMemoOnExpandSource":{"type":"string","enum":["BillRun","API","ApiSubscribe","ApiAmend","AdhocFromPrpc","AdhocFromInvoice"],"description":"The source of the credit memo.\n\nPossible values:\n- `BillRun`: The credit memo is generated by a bill run.\n- `API`: The credit memo is created by calling the [Invoice and collect](https://developer.zuora.com/api-references/api/operation/POST_TransactionInvoicePayment) operation, or by calling the Orders, Order Line Items, or Fulfillments API operations.\n- `ApiSubscribe`: The credit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.\n- `ApiAmend`: The credit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.\n- `AdhocFromPrpc`: The credit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a credit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc) operation.\n- `AdhocFromInvoice`: The credit memo is created from an invoice or created by reversing an invoice. You can create a credit memo from an invoice through the Zuora UI or by calling the [Create credit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromInvoice) operation. You can create a credit memo by reversing an invoice through the Zuora UI or by calling the [Reverse invoice](https://developer.zuora.com/api-references/api/operation/PUT_ReverseInvoice) operation.\n","title":"NestedCreditMemoOnExpandSource"},"NestedCreditMemoOnExpandSourceType":{"type":"string","enum":["Subscription","Standalone","Invoice","Order","CreditMemo","Consolidation"],"description":"The type of the credit memo source.\n","title":"NestedCreditMemoOnExpandSourceType"},"NestedCreditMemoOnExpandStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"description":"The status of the credit memo.\n","title":"NestedCreditMemoOnExpandStatus"},"NestedCreditMemoOnExpandTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status of tax calculation related to the credit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"NestedCreditMemoOnExpandTaxStatus"},"NestedCreditMemoOnExpandTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the credit memo was transferred to an external\naccounting system. This field is used for integration with\naccounting systems such as NetSuite.\n","title":"NestedCreditMemoOnExpandTransferredToAccounting"},"NestedCreditMemoOnExpandAccount":{"type":"object","properties":{},"description":"The account associated with the credit memo.\n","title":"NestedCreditMemoOnExpandAccount"},"NestedCreditMemoOnExpandBillToContact":{"type":"object","properties":{},"description":"The bill-to contact on the account.\n","title":"NestedCreditMemoOnExpandBillToContact"},"NestedCreditMemoOnExpandCreditMemoItemsItems":{"type":"object","properties":{},"title":"NestedCreditMemoOnExpandCreditMemoItemsItems"},"NestedCreditMemoOnExpandCreditMemoApplicationsItems":{"type":"object","properties":{},"title":"NestedCreditMemoOnExpandCreditMemoApplicationsItems"},"NestedCreditMemoOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the credit memo.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the credit memo.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the credit memo.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo was last updated.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the credit memo.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of credit memo.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the credit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the credit memo.\n\nThe value of this field is `null` if the bill rule [Preserve snapshot of bill-to and sold-to contacts when billing documents are posted](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Billing_Rules#Preserve_snapshot_of_bill-to_and_sold-to_contacts_when_billing_documents_are_posted) is disabled.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the Zuora user who cancelled the credit memo.\n"},"cancelledOn":{"type":["string","null"],"format":"date-time","description":"The date and time when the credit memo was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the credit memo.\n"},"currency":{"type":["string","null"],"description":"The currency of the credit memo.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"discountAmount":{"type":"number","format":"double","description":"The amount of the discount on the credit memo.\n"},"einvoiceErrorCode":{"type":"string","description":"The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceErrorMessage":{"type":"string","description":"The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceFileId":{"type":"string","description":"The ID of the e-invoice file generated for the credit memo.\n\n**Note**: This field 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"},"einvoiceStatus":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandEinvoiceStatus","description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are  returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n**Note**: This field 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"},"excludeFromAutoApplyRules":{"type":"boolean","description":"Whether the credit memo is excluded from the rule of automatically applying credit memos to invoices.\n"},"exchangeRateDate":{"type":"string","format":"date","description":"The date of the exchange rate used. The date is in `yyyy-mm-dd` format.\nCorresponds to the value specified in the Provider Exchange Rate Date column in the Import Foreign Exchange Rates template when you uploaded the rates through the Mass Updater.\n"},"autoApplyUponPosting":{"type":"boolean","description":"Whether the credit memo automatically applies to the invoice upon\nposting.\n"},"memoDate":{"type":"string","format":"date","description":"The date when the credit memo takes effect, in `yyyy-mm-dd` format.\nFor example, `2024-01-01`.\n"},"memoNumber":{"type":"string","description":"The unique identification number of the credit memo.\n"},"postedById":{"type":"string","description":"The ID of the Zuora user who posted the credit memo.\n"},"postedOn":{"type":"string","format":"date-time","description":"The date and time when the credit memo was posted, in\n`yyyy-mm-dd hh:mm:ss` format.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value\nmust be an existing reason code or empty.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the refund on the credit memo.\n"},"revenueImpacting":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice.\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n"},"reversed":{"type":"boolean","description":"Whether the credit memo is reversed.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the credit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"source":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandSource","description":"The source of the credit memo.\n\nPossible values:\n- `BillRun`: The credit memo is generated by a bill run.\n- `API`: The credit memo is created by calling the [Invoice and collect](https://developer.zuora.com/api-references/api/operation/POST_TransactionInvoicePayment) operation, or by calling the Orders, Order Line Items, or Fulfillments API operations.\n- `ApiSubscribe`: The credit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.\n- `ApiAmend`: The credit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.\n- `AdhocFromPrpc`: The credit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a credit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc) operation.\n- `AdhocFromInvoice`: The credit memo is created from an invoice or created by reversing an invoice. You can create a credit memo from an invoice through the Zuora UI or by calling the [Create credit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromInvoice) operation. You can create a credit memo by reversing an invoice through the Zuora UI or by calling the [Reverse invoice](https://developer.zuora.com/api-references/api/operation/PUT_ReverseInvoice) operation.\n"},"sourceId":{"type":"string","description":"The ID of the credit memo source.\n\nIf a credit memo is generated from a bill run, the value is the\nnumber of the corresponding bill run. Otherwise, the value is\n`null`.\n"},"sourceType":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandSourceType","description":"The type of the credit memo source.\n"},"status":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandStatus","description":"The status of the credit memo.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for the credit memo, in `yyyy-mm-dd` format. For example, `2024-01-01`.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxMessage":{"type":["string","null"],"description":"The message about the status of tax calculation related to the credit memo. If tax calculation fails in one credit memo, this field displays the reason for the failure.\n"},"taxStatus":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandTaxStatus","description":"The status of tax calculation related to the credit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the\ncredit memo.\n\n**Note**: If you have the Flexible Billing Attributes feature\ndisabled, the value of this field is `null`.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the\ncredit memo.\n\n**Note**: If you have the Flexible Billing Attributes feature\ndisabled, the value of this field is `null`.\n"},"taxAutoCalculation":{"type":"boolean","default":true,"description":"Whether to automatically calculate taxes in the credit memo.\n"},"totalAmount":{"type":"number","format":"double","description":"The total amount of the credit memo, including taxes.\n"},"totalAmountWithoutTax":{"type":"number","format":"double","description":"The total amount of the credit memo, excluding taxes.\n"},"totalTaxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandTransferredToAccounting","description":"Whether the credit memo was transferred to an external\naccounting system. This field is used for integration with\naccounting systems such as NetSuite.\n"},"invoiceId":{"type":"string","description":"The ID of a referred invoice.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the credit memo.\n"},"account":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandAccount","description":"The account associated with the credit memo.\n"},"billToContact":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandBillToContact","description":"The bill-to contact on the account.\n"},"creditMemoItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandCreditMemoItemsItems"},"description":"The credit memo items on the current credit memo.\n"},"creditMemoApplications":{"type":"array","items":{"$ref":"#/components/schemas/NestedCreditMemoOnExpandCreditMemoApplicationsItems"},"description":"The credit memo applications associated with the current credit memo.\n"}},"title":"NestedCreditMemoOnExpand"},"NestedDebitMemoOnExpandEinvoiceStatus":{"type":"string","enum":["Processing","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are  returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n**Note**: This field 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","title":"NestedDebitMemoOnExpandEinvoiceStatus"},"NestedDebitMemoOnExpandSource":{"type":"string","enum":["BillRun","API","ApiSubscribe","ApiAmend","AdhocFromPrpc","AdhocFromInvoice"],"description":"The source of the debit memo.\nPossible values:\n- `BillRun`: The debit memo is generated by a bill run.\n- `API`\n- `ApiSubscribe`: The debit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.\n- `ApiAmend`: The debit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.\n- `AdhocFromPrpc`: The debit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a debit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromPrpc/) operation.\n- `AdhocFromInvoice`: The debit memo is created from an invoice or created by reversing an invoice. You can create a debit memo from an invoice through the Zuora UI or by calling the [Create a debit memo from an invoice](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromInvoice/) operation.\n","title":"NestedDebitMemoOnExpandSource"},"NestedDebitMemoOnExpandSourceType":{"type":"string","enum":["Subscription","Standalone","Order","Consolidation","Invoice","CreditMemo"],"description":"The type of the debit memo source.\n","title":"NestedDebitMemoOnExpandSourceType"},"NestedDebitMemoOnExpandStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"description":"The status of the debit memo.\n","title":"NestedDebitMemoOnExpandStatus"},"NestedDebitMemoOnExpandTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status of tax calculation related to the debit memo.\n\n\n**Note**: This field is only applicable to tax calculation by\nthird-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. \nIf a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects\nthe issue and voids the tax transaction on the vendor's side.\n","title":"NestedDebitMemoOnExpandTaxStatus"},"NestedDebitMemoOnExpandTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the debit memo was transferred to an external\naccounting system. This field is used for integration with\naccounting systems such as NetSuite.\n","title":"NestedDebitMemoOnExpandTransferredToAccounting"},"NestedDebitMemoOnExpandAccount":{"type":"object","properties":{},"description":"The account associated with the debit memo.\n","title":"NestedDebitMemoOnExpandAccount"},"NestedDebitMemoOnExpandBillToContact":{"type":"object","properties":{},"description":"The bill-to contact associated with the debit memo.\n","title":"NestedDebitMemoOnExpandBillToContact"},"NestedDebitMemoOnExpandDebitMemoItemsItems":{"type":"object","properties":{},"title":"NestedDebitMemoOnExpandDebitMemoItemsItems"},"NestedDebitMemoOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the debit memo.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the debit memo.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the debit memo was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the debit memo.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the debit memo was last updated.\n"},"autoPay":{"type":"boolean","description":"Whether debit memos are automatically picked up for processing in the\ncorresponding payment run.\n\n\nBy default, debit memos are automatically picked up for processing in\nthe corresponding payment run.\n"},"creditMemoId":{"type":["string","null"],"description":"The ID of the credit memo from which the debit memo was created.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of debit memo.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the debit memo.\n\nThe value of this field is `null` if the bill rule [Preserve snapshot of bill-to and sold-to contacts when billing documents are posted](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Billing_Rules#Preserve_snapshot_of_bill-to_and_sold-to_contacts_when_billing_documents_are_posted) is disabled.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the Zuora user who cancelled the debit memo.\n"},"cancelledOn":{"type":["string","null"],"format":"date-time","description":"The date and time when the debit memo was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comments":{"type":"string","description":"Comments about the debit memo.\n"},"currency":{"type":["string","null"],"description":"The currency of the debit memo.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"discountAmount":{"type":"number","format":"double","description":"The amount of the discount on the debit memo.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for the debit memo is due, in\n`yyyy-mm-dd` format.\n"},"einvoiceErrorCode":{"type":"string","description":"The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceErrorMessage":{"type":"string","description":"The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceFileId":{"type":"string","description":"The ID of the e-invoice file generated for the debit memo.\n\n**Note**: This field 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"},"einvoiceStatus":{"$ref":"#/components/schemas/NestedDebitMemoOnExpandEinvoiceStatus","description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are  returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n**Note**: This field 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"},"exchangeRateDate":{"type":"string","format":"date","description":"The date of the exchange rate used. The date is in `yyyy-mm-dd` format.\nCorresponds to the value specified in the Provider Exchange Rate Date column in the Import Foreign Exchange Rates template when you uploaded the rates through the Mass Updater.\n"},"memoDate":{"type":"string","format":"date","description":"The date when the debit memo takes effect, in `yyyy-mm-dd` format.\nFor example, `2024-01-01`.\n"},"memoNumber":{"type":"string","description":"The unique identification number of the debit memo.\n"},"postedById":{"type":"string","description":"The ID of the Zuora user who posted the debit memo.\n"},"postedOn":{"type":"string","format":"date-time","description":"The date and time when the debit memo was posted, in\n`yyyy-mm-dd hh:mm:ss` format.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value\nmust be an existing reason code or empty.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"source":{"$ref":"#/components/schemas/NestedDebitMemoOnExpandSource","description":"The source of the debit memo.\nPossible values:\n- `BillRun`: The debit memo is generated by a bill run.\n- `API`\n- `ApiSubscribe`: The debit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.\n- `ApiAmend`: The debit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.\n- `AdhocFromPrpc`: The debit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a debit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromPrpc/) operation.\n- `AdhocFromInvoice`: The debit memo is created from an invoice or created by reversing an invoice. You can create a debit memo from an invoice through the Zuora UI or by calling the [Create a debit memo from an invoice](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromInvoice/) operation.\n"},"sourceId":{"type":"string","description":"The ID of the debit memo source.\n\nIf a debit memo is generated from a bill run, the value is the\nnumber of the corresponding bill run. Otherwise, the value is\n`null`.\n"},"sourceType":{"$ref":"#/components/schemas/NestedDebitMemoOnExpandSourceType","description":"The type of the debit memo source.\n"},"status":{"$ref":"#/components/schemas/NestedDebitMemoOnExpandStatus","description":"The status of the debit memo.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for the debit memo, in `yyyy-mm-dd` format. For example, `2024-01-01`.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxMessage":{"type":["string","null"],"description":"The message about the status of tax calculation related to the\ndebit memo. If tax calculation fails in one debit memo, this\nfield displays the reason for the failure.\n"},"taxStatus":{"$ref":"#/components/schemas/NestedDebitMemoOnExpandTaxStatus","description":"The status of tax calculation related to the debit memo.\n\n\n**Note**: This field is only applicable to tax calculation by\nthird-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. \nIf a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects\nthe issue and voids the tax transaction on the vendor's side.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the\ndebit memo.\n\n**Note**: If you have the Flexible Billing Attributes feature\ndisabled, the value of this field is `null`.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the\ndebit memo.\n\n**Note**: If you have the Flexible Billing Attributes feature\ndisabled, the value of this field is `null`.\n"},"taxAutoCalculation":{"type":"boolean","default":true,"description":"Whether to automatically calculate taxes in the debit memo.\n"},"totalAmount":{"type":"number","format":"double","description":"The total amount of the debit memo, including taxes.\n"},"totalAmountWithoutTax":{"type":"number","format":"double","description":"The total amount of the debit memo, excluding taxes.\n"},"totalTaxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/NestedDebitMemoOnExpandTransferredToAccounting","description":"Whether the debit memo was transferred to an external\naccounting system. This field is used for integration with\naccounting systems such as NetSuite.\n"},"invoiceId":{"type":"string","description":"The ID of a referred invoice.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the debit memo.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term assoicated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing\nAttributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes)\nfeature disabled.\n"},"account":{"$ref":"#/components/schemas/NestedDebitMemoOnExpandAccount","description":"The account associated with the debit memo.\n"},"billToContact":{"$ref":"#/components/schemas/NestedDebitMemoOnExpandBillToContact","description":"The bill-to contact associated with the debit memo.\n"},"debitMemoItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedDebitMemoOnExpandDebitMemoItemsItems"},"description":"The debit memo items associated with the debit memo.\n"}},"title":"NestedDebitMemoOnExpand"},"NestedInvoiceOnExpandSource":{"type":"string","enum":["BillRun","API","ApiSubscribe","ApiAmend"],"description":"The source of the invoice.\n","title":"NestedInvoiceOnExpandSource"},"NestedInvoiceOnExpandSourceType":{"type":"string","enum":["Subscription","Standalone","Order","Consolidation"],"description":"The type of the invoice source.\n","title":"NestedInvoiceOnExpandSourceType"},"NestedInvoiceOnExpandStatus":{"type":"string","enum":["Draft","Posted","Split"],"description":"The status of the invoice.\n\n**Note:** \n      \n  - The `Split` status is applicable only when you use <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/invoice-management/split-invoices/split-invoices-overview\"\n    target=\"_blank\">Split Invoice feature</a>.\n      \n  - When an invoice is split, its status changes from `Draft` to `Split`, and the newly created invoices retain a reference to the original invoice.\n","title":"NestedInvoiceOnExpandStatus"},"NestedInvoiceOnExpandTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status that the tax engine return after it calculates the taxes of this invoice.\n\n**Note:** The `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"NestedInvoiceOnExpandTaxStatus"},"NestedInvoiceOnExpandTransferredToAccounting":{"type":"string","enum":["Processing","Error","Ignore","Yes","No"],"description":"Whether the invoice was transferred to an external accounting system.\n","title":"NestedInvoiceOnExpandTransferredToAccounting"},"NestedInvoiceOnExpandEInvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"It could be Processing, RetrieveTimeOut, Generated, Success, ConditionalSuccess, ApprovedByAuthority, Failed, or Rejected. If it’s Failed, it will have an error code and message. If it’s Generated or Success, both error code and message are empty, and eInvoiceFileId stores the file id of e-invoice.\n","title":"NestedInvoiceOnExpandEInvoiceStatus"},"NestedInvoiceOnExpandAccount":{"type":"object","properties":{},"description":"The account associated with the invoice.\n","title":"NestedInvoiceOnExpandAccount"},"NestedInvoiceOnExpandBillToContact":{"type":"object","properties":{},"description":"The bill-to contact who pays the invoice.\n","title":"NestedInvoiceOnExpandBillToContact"},"NestedInvoiceOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the invoice.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the invoice.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the invoice gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the invoice.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the invoice gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the invoice.\n"},"adjustmentAmount":{"type":"number","format":"double","description":"The amount of the invoice adjustments associated with the invoice.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the invoice.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The invoice amount excluding tax.\n"},"autoPay":{"type":"boolean","description":"Whether invoices are automatically picked up for processing in the corresponding payment run.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of the invoice after all payments, adjustments, and refunds are applied.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the invoice.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the invoice.\n"},"comments":{"type":"string","description":"Comments about the invoice.\n"},"creditBalanceAdjustmentAmount":{"type":"number","format":"double","description":"The currency amount of the adjustment applied to the customer's credit balance.\n\n  **Note:** This field is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.\n"},"creditMemoAmount":{"type":"number","format":"double","description":"The currency amount of all credit memos applied to this invoice.\n\n**Note:** This field 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"},"currency":{"type":["string","null"],"description":"The currency of the invoice.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for this invoice is due, in `yyyy-mm-dd` format.\n"},"includesOneTime":{"type":"boolean","description":"Specifies whether the invoice includes one-time charges.\n"},"includesRecurring":{"type":"boolean","description":"Specifies whether the invoice includes recurring charges.\n"},"includesUsage":{"type":"boolean","description":"Specifies whether the invoice includes usage charges.\n"},"invoiceDate":{"type":"string","format":"date","description":"The date that appears on the invoice being created.\n"},"invoiceNumber":{"type":"string","description":"The unique identification number of the invoice.\n"},"lastEmailSentDate":{"type":"string","description":"The date when the invoice was last emailed.\n"},"organizationId":{"type":"string","description":"ID of the organization this object belongs to.\n"},"paymentAmount":{"type":"number","format":"double","description":"The amount of payments applied to the invoice.\n"},"postedBy":{"type":"string","description":"The user ID of the person who moved the invoice to Posted status.\n"},"postedDate":{"type":"string","format":"date-time","description":"The date when the invoice was posted.\n"},"refundAmount":{"type":"number","format":"double","description":"Specifies the amount of a refund that was applied against an earlier payment on the invoice.\n"},"sequenceSetId":{"type":"string","description":"The ID of the sequence set associated with the invoice.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the invoice.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the invoice.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the invoice.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the invoice.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the invoice.\n"},"source":{"$ref":"#/components/schemas/NestedInvoiceOnExpandSource","description":"The source of the invoice.\n"},"sourceId":{"type":"string","description":"The ID of the invoice source.\nIf an invoice is generated from a bill run, the value is the number of the corresponding bill run.Otherwise, the value is `null`.\n"},"reversed":{"type":"boolean","description":"Whether the invoice is reversed.\n"},"sourceType":{"$ref":"#/components/schemas/NestedInvoiceOnExpandSourceType","description":"The type of the invoice source.\n"},"status":{"$ref":"#/components/schemas/NestedInvoiceOnExpandStatus","description":"The status of the invoice.\n\n**Note:** \n      \n  - The `Split` status is applicable only when you use <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/invoice-management/split-invoices/split-invoices-overview\"\n    target=\"_blank\">Split Invoice feature</a>.\n      \n  - When an invoice is split, its status changes from `Draft` to `Split`, and the newly created invoices retain a reference to the original invoice.\n"},"targetDate":{"type":"string","format":"date","description":"This date is used to determine which charges are to be billed. All charges that are to be billed on this date or prior will be included in this bill run.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxMessage":{"type":["string","null"],"description":"The message that the tax engine return if it calculates the taxes of this invoice fails.\n"},"taxStatus":{"$ref":"#/components/schemas/NestedInvoiceOnExpandTaxStatus","description":"The status that the tax engine return after it calculates the taxes of this invoice.\n\n**Note:** The `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"templateId":{"type":"string","description":"The ID of the invoice template.\n\n- If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature enabled, the value of this field depends on the configuration of the invoice template. \n  - If you specify an invoice template at the subscription level, the value of this field is automatically populated from the corresponding subscription.\n  - If you do not specify any invoice template at the subscription level, the value of this field is automatically populated from the corresponding account.\n- If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/NestedInvoiceOnExpandTransferredToAccounting","description":"Whether the invoice was transferred to an external accounting system.\n"},"eInvoiceStatus":{"$ref":"#/components/schemas/NestedInvoiceOnExpandEInvoiceStatus","description":"It could be Processing, RetrieveTimeOut, Generated, Success, ConditionalSuccess, ApprovedByAuthority, Failed, or Rejected. If it’s Failed, it will have an error code and message. If it’s Generated or Success, both error code and message are empty, and eInvoiceFileId stores the file id of e-invoice.\n"},"eInvoiceFileId":{"type":"string","description":"The ID of the e-invoice file.\n"},"eInvoiceErrorCode":{"type":"string","description":"The error code when status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoice vendor.\n"},"eInvoiceErrorMessage":{"type":"string","description":"The error message when status is \"Failed\". This message can either be a Zuora-generated error code or one returned by a third-party e-invoice vendor.\n"},"paymentLink":{"type":"string","description":"A link to the Payment Link page where the customer can pay the invoice.\n\nThe link is generated only if the invoice is posted after enabling the Payment Link feature on your tenant.\n\n**Note**: The Payment Link feature is in the Early Adopter phase. \nYou can enable the Payment Link feature through a self-service configuration in the **Manage Features** setting for Zuora Payments.\n"},"paymentTerm":{"type":"string","description":"The payment term associated with the invoice. For\nexample, `Net 30`. The payment term determines the due dates of\ninvoices.\n"},"account":{"$ref":"#/components/schemas/NestedInvoiceOnExpandAccount","description":"The account associated with the invoice.\n"},"billToContact":{"$ref":"#/components/schemas/NestedInvoiceOnExpandBillToContact","description":"The bill-to contact who pays the invoice.\n"}},"title":"NestedInvoiceOnExpand"},"NestedUsageOnExpandRbeStatus":{"type":"string","enum":["Importing","Pending","Processed"],"description":"Indicates if the rating and billing engine (RBE) processed usage data for an invoice.\n","title":"NestedUsageOnExpandRbeStatus"},"NestedUsageOnExpandSourceType":{"type":"string","enum":["API","Import"],"description":"Indicates if the usage records were imported from the web-based UI or the API.\n","title":"NestedUsageOnExpandSourceType"},"NestedUsageOnExpandAccount":{"type":"object","properties":{},"description":"The account associated with the usage.\n","title":"NestedUsageOnExpandAccount"},"NestedUsageOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the usage.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the usage.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the usage was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the usage.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the usage was last updated.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the usage.\n"},"accountNumber":{"type":"string","description":"The number of the customer account associated with the usage.\n"},"ratePlanChargeId":{"type":"string","description":"ID of the rate plan charge that pays for this usage.\n"},"endDateTime":{"type":"string","format":"date-time","description":"End date of the time period in which usage is tracked. Zuora uses\nthis field value to determine the usage date.\n"},"productRatePlanChargeId":{"type":"string","description":"The product rate plan charge number that you use for a dynamic usage charge.\n"},"quantity":{"type":"number","format":"double","description":"Number of units used.\n"},"rbeStatus":{"$ref":"#/components/schemas/NestedUsageOnExpandRbeStatus","description":"Indicates if the rating and billing engine (RBE) processed usage data for an invoice.\n"},"sourceType":{"$ref":"#/components/schemas/NestedUsageOnExpandSourceType","description":"Indicates if the usage records were imported from the web-based UI or the API.\n"},"startDateTime":{"type":"string","format":"date-time","description":"Start date of the time period in which usage is tracked. Zuora uses\nthis field value to determine the usage date.\n"},"subscriptionId":{"type":"string","description":"The original ID of the subscription that contains the fees related to the usage data.\n"},"submissionDateTime":{"type":"string","format":"date-time","description":"The date and time when the usage was submitted.\n"},"uOM":{"type":"string","description":"The units to measure usage. Units of measure are configured in the web-based UI. Your values depend on your configuration in **Billing Settings**.\n"},"description":{"type":"string","description":"A description of the usage record.\n"},"importId":{"type":"string","description":"The unique identifier of the import.\n"},"uniqueKey":{"type":"string","description":"a customer-defined specific identifier of a usage record.\n\n**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature or the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled. See [Upload usage record with unique\nkey](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Prepaid_balance_transactions#Upload_usage_record_with_unique_key)\nfor more information.\n"},"fileId":{"type":"string","description":"File ID of the uploaded usage records file. You can use this file ID with [Get files](https://developer.zuora.com/api-references/api/operation/GET_Files) to download the file.\n"},"fileName":{"type":"string","description":"The name of the import file when the usage record is imported from the file.\n"},"account":{"$ref":"#/components/schemas/NestedUsageOnExpandAccount","description":"The account associated with the usage.\n"}},"title":"NestedUsageOnExpand"},"ExpandedAccount":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the account.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the account.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the account was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the account.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the account was last updated.\n"},"accountNumber":{"type":"string","description":"The account number that identifies the account.\n"},"additionalEmailAddresses":{"type":"string","description":"An additional email addresse to receive email notifications.\n"},"allowInvoiceEdit":{"type":"boolean","default":false,"description":"Indicates whether associated invoices can be edited.\n"},"autoPay":{"type":"boolean","description":"Indicates whether future payments are automatically collected when they are due\nduring a payment run.\n"},"balance":{"type":"number","format":"double","description":"The customer's total invoice balance minus credit balance.\n"},"batch":{"type":"string","description":"The alias name given to a batch. A string of 50 characters or less.\n"},"bcdSettingOption":{"$ref":"#/components/schemas/ExpandedAccountBcdSettingOption","description":"Bill cycle day setting option. Indicates whether the account’s bill cycle day is managed manually or automatically.\n  - `ManualSet`: The bill cycle day is explicitly set to a specific day of the month (1–31).\n  - `AutoSet`: The bill cycle day is automatically determined by Zuora. The bill cycle day is assigned when the first subscription is created for the account.\n\nThis field is system-derived and read-only. Its value is automatically determined based on the `billCycleDay` field.\n"},"billCycleDay":{"type":"integer","format":"int64","description":"Billing cycle day (BCD), the day of the month when a bill run\ngenerates invoices for the account.\n"},"billToId":{"type":"string","description":"The unique identifier of the bill-to contact associated with the account.\n"},"communicationProfileId":{"type":"string","description":"The unique identifier of the communication profile that Zuora uses when sending notifications to the account's contacts.\n"},"creditBalance":{"type":"number","format":"double","description":"The current credit balance on the account.\n"},"crmId":{"type":"string","maxLength":100,"description":"External identifier of the account in a CRM system.\n"},"currency":{"type":"string","description":"A currency defined in the web-based UI administrative settings.\n"},"customerServiceRepName":{"type":"string","maxLength":50,"description":"Name of the account's customer service representative, if applicable.\n"},"defaultPaymentMethodId":{"type":"string","description":"ID of the default payment method for the account.\n"},"eInvoiceProfileId":{"type":"string","description":"ID of the e-invoice profile for this account.\n\n**Note**: This field 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"},"invoiceDeliveryPrefsEmail":{"type":"boolean","description":"Indicates whether the customer wants to receive invoices through email. \n"},"invoiceDeliveryPrefsPrint":{"type":"boolean","description":"Whether the customer wants to receive printed invoices, such as through postal mail.\n"},"invoiceTemplateId":{"type":"string","description":"Invoice template ID, configured in Billing Settings in the Zuora UI.\n"},"lastInvoiceDate":{"type":"string","format":"date","description":"Date of the most recent invoice for the account; null if no invoice has ever been generated.\n"},"lastMetricsUpdate":{"type":"string","format":"date-time","description":"The date and time when account metrics are last updated, if the account is a partner account.\n\n**Note**: \n- This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\" target=\"_blank\">Reseller Account</a> feature enabled.\n- If you ever set the `partnerAccount` field to `true` for an account, the value of `lastMetricsUpdate` field is the time when the account metrics are last updated.\n"},"name":{"type":"string","description":"The name of the account.\n"},"notes":{"type":"string","description":"A string of up to 65,535 characters.\n"},"organizationId":{"type":"string","description":"The unique identifier of the organization to which the account belongs.\n"},"parentId":{"type":"string","description":"Identifier of the parent customer account for this Account object. The\nlength is 32 characters. Use this field if you have <a\nhref=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\"\ntarget=\"_blank\">Customer Hierarchy</a> enabled.\n"},"partnerAccount":{"type":"boolean","description":"Whether the customer account is a partner, distributor, or reseller. \n\n**Note**: This field is available only if you have the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\"\ntarget=\"_blank\">Reseller Account</a> feature enabled.\n"},"paymentMethodCascadingConsent":{"type":"boolean","description":"`true` indicates the consent from your customer to use the Cascading Payment Method feature was collected. \n`false` indicates the consent was not collected and the Cascading Payment Method feature is not enabled.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number provided by your customer for services,\nproducts, or both purchased.\n"},"salesRepName":{"type":"string","description":"Name of the account's sales representative, if applicable.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the billing document sequence set to assign to the customer account. \nThe billing documents to generate for this account will adopt the prefix and starting document number configured in the sequence set.\nIf a customer account has no assigned billing document sequence set, billing documents generated for this account adopt the prefix and starting document number from the default sequence set.\n"},"shipToId":{"type":"string","description":"The unique identifier of the ship-to contact associated with the account.\n"},"soldToId":{"type":"string","description":"The unique identifier of the sold-to contact associated with the account.\n"},"status":{"$ref":"#/components/schemas/ExpandedAccountStatus","description":"The account status.\n"},"taxCompanyCode":{"type":"string","maxLength":50,"description":"Unique code that identifies a company account in Avalara. \n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).\n"},"taxExemptCertificateID":{"type":"string","maxLength":32,"description":"ID of the customer tax exemption certificate. Applicable if you use Zuora Tax or Connect tax engines.\n"},"taxExemptCertificateType":{"type":"string","maxLength":32,"description":"Type of tax exemption certificate that the customer holds. Applicable if you use Zuora Tax or Connect tax engines.\n"},"taxExemptDescription":{"type":"string","maxLength":500,"description":"Description of the tax exemption certificate that the customer holds.\nApplicable if you use Zuora Tax or Connect tax engines.\n"},"taxExemptEffectiveDate":{"type":"string","format":"date","description":"Date when the customer tax exemption starts, in `YYYY-MM-DD` format. Applicable if you use Zuora Tax or Connect tax engines.\n"},"taxExemptEntityUseCode":{"type":"string","maxLength":64,"description":"A unique entity use code to apply exemptions in Avalara AvaTax. See <a href=\"https://developer.avalara.com/avatax/handling-tax-exempt-customers/\" target=\"_blank\">Exempt Transactions</a> for more details.\n"},"taxExemptExpirationDate":{"type":"string","format":"date","description":"Date when the customer tax exemption expires, in `YYYY-MM-DD` format. Applicable if you use Zuora Tax or Connect tax engines.\n"},"taxExemptIssuingJurisdiction":{"type":"string","maxLength":32,"description":"Jurisdiction in which the customer tax exemption certificate was issued.\n"},"taxExemptStatus":{"$ref":"#/components/schemas/ExpandedAccountTaxExemptStatus","default":"No","description":"Status of the account tax exemption. Applicable if you use Zuora Tax or Connect tax engines. Required if you use Zuora Tax. \n"},"totalInvoiceBalance":{"type":"number","format":"double","description":"Total balance of all posted invoices.\n"},"unappliedBalance":{"type":"number","format":"double","description":"Total unapplied balance in this currency.\n"},"vATId":{"type":"string","description":"EU Value Added Tax ID."},"mrr":{"type":"number","format":"double","description":"Monthly recurring revenue for the account.\n"},"totalDebitMemoBalance":{"type":"number","format":"double","description":"Total balance of all posted debit memos.\n"},"unappliedCreditMemoAmount":{"type":"number","format":"double","description":"The total unapplied amount of all posted credit memos in this currency.\n"},"creditMemoTemplateId":{"type":"string","description":"ID of the credit memo template that is used to generate credit memos for the account.\n"},"debitMemoTemplateId":{"type":"string","description":"ID of the debit memo template that is used to generate debit memos for the account.\n"},"paymentGateway":{"type":"string","description":"The name of the payment gateway instance. If null or left unassigned,\nthe account will use the default gateway.\n"},"paymentTerm":{"type":"string","description":"A payment-terms indicator defined in the web-based UI administrative\nsettings, for example, `Net 30`.\n"},"billTo":{"$ref":"#/components/schemas/ExpandedContact"},"shipTo":{"$ref":"#/components/schemas/ExpandedContact"},"soldTo":{"$ref":"#/components/schemas/ExpandedContact"},"defaultPaymentMethod":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpand"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/NestedSubscriptionOnExpand"}},"payments":{"type":"array","items":{"$ref":"#/components/schemas/NestedPaymentOnExpand"}},"refunds":{"type":"array","items":{"$ref":"#/components/schemas/NestedRefundOnExpand"}},"creditMemos":{"type":"array","items":{"$ref":"#/components/schemas/NestedCreditMemoOnExpand"}},"debitMemos":{"type":"array","items":{"$ref":"#/components/schemas/NestedDebitMemoOnExpand"}},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/NestedInvoiceOnExpand"}},"usages":{"type":"array","items":{"$ref":"#/components/schemas/NestedUsageOnExpand"}},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpand"}}},"title":"ExpandedAccount"},"Object_Queries_queryAccounts_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedAccount"}}},"title":"Object Queries_queryAccounts_Response_200"},"CommonOqErrorResponseReasonsItems":{"type":"object","properties":{"code":{"type":"integer","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"CommonOqErrorResponseReasonsItems"},"CommonOQErrorResponse":{"type":"object","properties":{"reasons":{"type":"array","items":{"$ref":"#/components/schemas/CommonOqErrorResponseReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"description":"The unique identifier of the request.\n"}},"title":"CommonOQErrorResponse"},"ObjectQueryAccountsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["billto","soldto","shipto","defaultpaymentmethod","subscriptions","payments","refunds","creditmemos","debitmemos","invoices","usages","paymentmethods","subscriptions.rateplans","subscriptions.rateplans.rateplancharges"],"title":"ObjectQueryAccountsKeyGetParametersExpandSchemaItems"},"ExpandedAmendmentCurrentTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"The period type for the current subscription term.\n","title":"ExpandedAmendmentCurrentTermPeriodType"},"ExpandedAmendmentEffectivePolicy":{"type":"string","enum":["EffectiveImmediately","EffectiveEndOfBillingPeriod","SpecificDate"],"description":"Effective Policy for the subscription. \n\nThe value depends on the following conditions:\n* If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n* If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n* Otherwise, the effective policy is `SpecificDate` by default.\n\n**Note:** This 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. If you want to join this early adopter program, submit a request at [Zuora Global Support](http://support.zuora.com/).\n","title":"ExpandedAmendmentEffectivePolicy"},"ExpandedAmendmentRenewalSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"description":"Specifies whether a termed subscription will remain termed or change to evergreen when it is renewed.\n","title":"ExpandedAmendmentRenewalSetting"},"ExpandedAmendmentRenewalTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"The period type for the subscription renewal term.\n","title":"ExpandedAmendmentRenewalTermPeriodType"},"ExpandedAmendmentStatus":{"type":"string","enum":["Draft","Pending Activation","Pending Acceptance","Completed"],"description":"The status of the amendment.\n","title":"ExpandedAmendmentStatus"},"ExpandedAmendmentTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"Indicates if the subscription is termed or evergreen.\n","title":"ExpandedAmendmentTermType"},"ExpandedAmendmentType":{"type":"string","enum":["Cancellation","NewProduct","OwnerTransfer","RemoveProduct","Renewal","UpdateProduct","TermsAndConditions","ChangePlan","Composite"],"description":"Type of the amendment.\n","title":"ExpandedAmendmentType"},"ExpandedAmendmentSubType":{"type":"string","enum":["Upgrade","Downgrade","Crossgrade","PlanChanged"],"description":"The sub type for the change plan order action.\n\nIf this field was not set by user, the field is automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n","title":"ExpandedAmendmentSubType"},"ExpandedAmendment":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the amendment.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the amendment.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the amendment gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the amendment.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the amendment gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"autoRenew":{"type":"boolean","description":"Indicates whether the amendment is automatically renewed.\n"},"code":{"type":"string","description":"The amendment code.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"The date when the amendment becomes effective for billing purposes,\nas `yyyy-mm-dd`.\n"},"currentTerm":{"type":"integer","format":"int64","description":"The length of the period for the current subscription term.\n"},"currentTermPeriodType":{"$ref":"#/components/schemas/ExpandedAmendmentCurrentTermPeriodType","description":"The period type for the current subscription term.\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date when the customer accepts the amendment changes to\nthe subscription, as `yyyy-mm-dd`.\n"},"description":{"type":"string","description":"Description of the amendment.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the amendment changes take effective.\n"},"effectivePolicy":{"$ref":"#/components/schemas/ExpandedAmendmentEffectivePolicy","description":"Effective Policy for the subscription. \n\nThe value depends on the following conditions:\n* If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n* If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n* Otherwise, the effective policy is `SpecificDate` by default.\n\n**Note:** This 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. If you want to join this early adopter program, submit a request at [Zuora Global Support](http://support.zuora.com/).\n"},"name":{"type":"string","description":"The name of the amendment.\n"},"newRatePlanId":{"type":"string","description":"The ID of the rate plan charge on which amendment is made. Only\nthe Add or Update amendment returns a new rate plan ID.\n"},"removedRatePlanId":{"type":"string","description":"The ID of the rate plan charge that is removed from the subscription. Only\nthe Remove Product amendment returns a removed rate plan ID.\n"},"renewalSetting":{"$ref":"#/components/schemas/ExpandedAmendmentRenewalSetting","description":"Specifies whether a termed subscription will remain termed or change to evergreen when it is renewed.\n"},"renewalTerm":{"type":"integer","format":"int64","description":"The term of renewal for the amended subscription.\n"},"renewalTermPeriodType":{"$ref":"#/components/schemas/ExpandedAmendmentRenewalTermPeriodType","description":"The period type for the subscription renewal term.\n"},"resumeDate":{"type":"string","format":"date","description":"The date when the subscription resumption takes effect, as `yyyy-mm-dd`.\n\n**Note:** This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date when service is activated, as `yyyy-mm-dd`.\n"},"specificUpdateDate":{"type":"string","format":"date","description":"The date when the Update Product amendment takes effect.\n\nOnly for the Update Product amendments if there is already \na future-dated Update Product amendment on the subscription.\n"},"status":{"$ref":"#/components/schemas/ExpandedAmendmentStatus","description":"The status of the amendment.\n"},"subscriptionId":{"type":"string","description":"The ID of the subscription based on which the amendment is created.\n"},"suspendDate":{"type":"string","format":"date","description":"The date when the subscription suspension takes effect, as `yyyy-mm-dd`.\n\n**Note:** This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n"},"termStartDate":{"type":"string","format":"date","description":"The date when the new terms and conditions take effect.\n"},"termType":{"$ref":"#/components/schemas/ExpandedAmendmentTermType","description":"Indicates if the subscription is termed or evergreen.\n"},"type":{"$ref":"#/components/schemas/ExpandedAmendmentType","description":"Type of the amendment.\n"},"subType":{"$ref":"#/components/schemas/ExpandedAmendmentSubType","description":"The sub type for the change plan order action.\n\nIf this field was not set by user, the field is automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n"},"bookingDate":{"type":"string","format":"date"}},"title":"ExpandedAmendment"},"Object_Queries_queryAmendments_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedAmendment"}}},"title":"Object Queries_queryAmendments_Response_200"},"ExpandedBillingRunBillingRunType":{"type":"string","enum":["Regular","CatchUp"],"default":"Regular","description":"The type of the bill run. \n\n- You can use this field only if the Catch-Up Bill Run feature is\nenabled. \n\n- You must specify this field to create a catch up bill run.\n","title":"ExpandedBillingRunBillingRunType"},"ExpandedBillingRunStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","Canceled","Posted","PostInProgress","CancelInProgress","RemoveInProgress","Paused"],"description":"The status of the bill run.\n","title":"ExpandedBillingRunStatus"},"ExpandedBillingRunTargetType":{"type":"string","enum":["SingleAccount","AllAccount"],"description":"The target type for this bill run.\n","title":"ExpandedBillingRunTargetType"},"ExpandedBillingRunBillCycleDay":{"type":"string","enum":["AllBillCycleDays","AsRunDay"],"description":"The day of the bill cycle. This field is only valid when `batches` is\nspecified.\n\n**Values:** \n\n- `AllBillCycleDays` or one of numbers 1 - 31 for an ad-hoc bill run\n\n- `AllBillCycleDays`, one of numbers 1 - 31, or `AsRunDay` for a scheduled bill run\n","title":"ExpandedBillingRunBillCycleDay"},"ExpandedBillingRunChargeTypeToExclude":{"type":"string","enum":["OneTime","Recurring","Usage"],"description":"The types of the charges to be excluded from the generation of billing\ndocuments.\n","title":"ExpandedBillingRunChargeTypeToExclude"},"ExpandedBillingRunRepeatType":{"type":"string","enum":["None","Daily","Weekly","Monthly"],"description":"The repeat type of the bill run.\n","title":"ExpandedBillingRunRepeatType"},"ExpandedBillingRunWeeklyOnDay":{"type":"string","enum":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"description":"The repeat day in a week.\n","title":"ExpandedBillingRunWeeklyOnDay"},"ExpandedBillingRun":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the bill run.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the bill run.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the bill run was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the bill run.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the bill run was last updated.\n"},"billingRunNumber":{"type":"string","description":"The number of the bill run.\n"},"billingRunType":{"$ref":"#/components/schemas/ExpandedBillingRunBillingRunType","default":"Regular","description":"The type of the bill run. \n\n- You can use this field only if the Catch-Up Bill Run feature is\nenabled. \n\n- You must specify this field to create a catch up bill run.\n"},"endDate":{"type":"string","format":"date-time","description":"The end date and time when the bill run completes.\n"},"errorMessage":{"type":"string","description":"The error message generated by a failed billing run.\n"},"executedDate":{"type":"string","format":"date-time","description":"The date and time when the bill run was executed.\n"},"invoiceDate":{"type":"string","format":"date","description":"The date that appears on the invoice being created, in the `yyyy-mm-dd` format. \nThe value cannot fall in a closed accounting period.\n"},"name":{"type":"string","description":"The name of the bill run.\n"},"numberOfAccounts":{"type":"integer","format":"int64","description":"The number of accounts included in this bill run processing.\n"},"numberOfInvoices":{"type":"integer","format":"int64","description":"The number of invoices generated from this bill run.\n"},"numberOfCreditMemos":{"type":"integer","format":"int64","description":"The number of credit memos generated from this bill run.\n"},"postedDate":{"type":"string","format":"date-time","description":"The date when the bill run was posted.\n"},"startDate":{"type":"string","format":"date-time","description":"The start date and time of the bill run.\n"},"status":{"$ref":"#/components/schemas/ExpandedBillingRunStatus","description":"The status of the bill run.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for this bill run, only valid for ad-hoc bill runs.\n"},"targetType":{"$ref":"#/components/schemas/ExpandedBillingRunTargetType","description":"The target type for this bill run.\n"},"totalTime":{"type":"integer","format":"int64","description":"The total time in milliseconds for the bill run to complete.\n"},"accountId":{"type":"string","description":"The unique identifier of the account included in the bill run.\n"},"batches":{"type":"array","items":{"type":"string"},"description":"The batch of accounts for this bill run, this field can not exist with\n`billRunFilters` together.\n\n**Values:** `AllBatches` or an array of `Batch`*n* where *n* is a\nnumber between 1 and 50, for example, `Batch7`.\n"},"billCycleDay":{"$ref":"#/components/schemas/ExpandedBillingRunBillCycleDay","description":"The day of the bill cycle. This field is only valid when `batches` is\nspecified.\n\n**Values:** \n\n- `AllBillCycleDays` or one of numbers 1 - 31 for an ad-hoc bill run\n\n- `AllBillCycleDays`, one of numbers 1 - 31, or `AsRunDay` for a scheduled bill run\n"},"noEmailForZeroAmountInvoice":{"type":"boolean","description":"Whether to suppress emails for invoices with zero total amount\ngenerated in this bill run after the bill run is complete. \n"},"autoEmail":{"type":"boolean","description":"Whether to automatically send emails after Auto-Post is complete.\n"},"autoPost":{"type":"boolean","description":"Whether to automatically post the bill run after the bill run is created.\n"},"autoRenewal":{"type":"boolean","description":"Whether to automatically renew auto-renew subscriptions that are up for renewal.\n"},"invoicesEmailed":{"type":"boolean","description":"Whether the invoices have been emailed after the bill run is complete.\n"},"lastEmailSentTime":{"type":"string","format":"date-time","description":"The date and time when the last email was sent.\n"},"targetDateOffSet":{"type":"integer","description":"The offset compared to bill run execution date, only valid for scheduled bill runs.\n"},"invoiceDateOffSet":{"type":"integer","description":"The offset compared to bill run execution date, only valid for scheduled bill runs.\n"},"chargeTypeToExclude":{"$ref":"#/components/schemas/ExpandedBillingRunChargeTypeToExclude","description":"The types of the charges to be excluded from the generation of billing\ndocuments.\n"},"scheduledExecutionTime":{"type":"string","format":"date-time","description":"The scheduled execution time for a bill run.\n"},"repeatType":{"$ref":"#/components/schemas/ExpandedBillingRunRepeatType","description":"The repeat type of the bill run.\n"},"repeatFrom":{"type":"string","format":"date","description":"The start date of the scheduled bill run.\n"},"repeatTo":{"type":"string","format":"date","description":"The end date of of the scheduled bill run.\n"},"runTime":{"type":"integer","minimum":0,"maximum":23,"description":"The scheduled run time (hour) of day.\n"},"timeZone":{"type":"string","description":"Timezone of the scheduled bill run.\n"},"monthlyOnDay":{"type":"string","description":"The repeat day in a month.\n"},"weeklyOnDay":{"$ref":"#/components/schemas/ExpandedBillingRunWeeklyOnDay","description":"The repeat day in a week.\n"},"includeSubscriptions":{"type":"boolean","default":true,"description":"Indicates whether to bill subscriptions in the bill run.\n"},"includeOrderLineItems":{"type":"boolean","default":true,"description":"Indicates whether to bill order line items in the bill run.\n"}},"title":"ExpandedBillingRun"},"Object_Queries_queryBillingRuns_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedBillingRun"}}},"title":"Object Queries_queryBillingRuns_Response_200"},"Object_Queries_queryContacts_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedContact"}}},"title":"Object Queries_queryContacts_Response_200"},"ObjectQueryCreditMemosGetParametersExpandSchemaItems":{"type":"string","enum":["account","billtocontact","billtocontactsnapshot","soldtocontactsnapshot","shiptocontactsnapshot","creditmemoitems","creditmemoitems.subscription","creditmemoitems.subscription.account","creditmemoapplications"],"title":"ObjectQueryCreditMemosGetParametersExpandSchemaItems"},"ExpandedCreditMemoEinvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are  returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n**Note**: This field 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","title":"ExpandedCreditMemoEinvoiceStatus"},"ExpandedCreditMemoRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n","title":"ExpandedCreditMemoRevenueImpacting"},"ExpandedCreditMemoSource":{"type":"string","enum":["BillRun","API","ApiSubscribe","ApiAmend","AdhocFromPrpc","AdhocFromInvoice"],"description":"The source of the credit memo.\n\nPossible values:\n- `BillRun`: The credit memo is generated by a bill run.\n- `API`: The credit memo is created by calling the [Invoice and collect](https://developer.zuora.com/api-references/api/operation/POST_TransactionInvoicePayment) operation, or by calling the Orders, Order Line Items, or Fulfillments API operations.\n- `ApiSubscribe`: The credit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.\n- `ApiAmend`: The credit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.\n- `AdhocFromPrpc`: The credit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a credit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc) operation.\n- `AdhocFromInvoice`: The credit memo is created from an invoice or created by reversing an invoice. You can create a credit memo from an invoice through the Zuora UI or by calling the [Create credit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromInvoice) operation. You can create a credit memo by reversing an invoice through the Zuora UI or by calling the [Reverse invoice](https://developer.zuora.com/api-references/api/operation/PUT_ReverseInvoice) operation.\n","title":"ExpandedCreditMemoSource"},"ExpandedCreditMemoSourceType":{"type":"string","enum":["Subscription","Standalone","Invoice","Order","CreditMemo","Consolidation"],"description":"The type of the credit memo source.\n","title":"ExpandedCreditMemoSourceType"},"ExpandedCreditMemoStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"description":"The status of the credit memo.\n","title":"ExpandedCreditMemoStatus"},"ExpandedCreditMemoTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status of tax calculation related to the credit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"ExpandedCreditMemoTaxStatus"},"ExpandedCreditMemoTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the credit memo was transferred to an external\naccounting system. This field is used for integration with\naccounting systems such as NetSuite.\n","title":"ExpandedCreditMemoTransferredToAccounting"},"NestedAccountOnExpandBcdSettingOption":{"type":"string","enum":["ManualSet","AutoSet"],"description":"The billing cycle day setting option for the account.\n","title":"NestedAccountOnExpandBcdSettingOption"},"NestedAccountOnExpandStatus":{"type":"string","enum":["Active","Draft","Canceled"],"description":"The account status.\n","title":"NestedAccountOnExpandStatus"},"NestedAccountOnExpandTaxExemptStatus":{"type":"string","enum":["No","Yes","PendingVerification"],"default":"No","description":"Status of the account tax exemption. Applicable if you use Zuora Tax or Connect tax engines. Required if you use Zuora Tax. \n","title":"NestedAccountOnExpandTaxExemptStatus"},"NestedAccountOnExpandBillTo":{"type":"object","properties":{},"description":"The bill-to contact on this account.\n","title":"NestedAccountOnExpandBillTo"},"NestedAccountOnExpandShipTo":{"type":"object","properties":{},"description":"The ship-to contact on the account.\n","title":"NestedAccountOnExpandShipTo"},"NestedAccountOnExpandSoldTo":{"type":"object","properties":{},"description":"The sold-to contact on the account.\n","title":"NestedAccountOnExpandSoldTo"},"NestedAccountOnExpandDefaultPaymentMethod":{"type":"object","properties":{},"description":"The default payment method associated with the account.\n","title":"NestedAccountOnExpandDefaultPaymentMethod"},"NestedAccountOnExpandSubscriptionsItems":{"type":"object","properties":{},"title":"NestedAccountOnExpandSubscriptionsItems"},"NestedAccountOnExpandPaymentsItems":{"type":"object","properties":{},"title":"NestedAccountOnExpandPaymentsItems"},"NestedAccountOnExpandRefundsItems":{"type":"object","properties":{},"title":"NestedAccountOnExpandRefundsItems"},"NestedAccountOnExpandCreditMemosItems":{"type":"object","properties":{},"title":"NestedAccountOnExpandCreditMemosItems"},"NestedAccountOnExpandDebitMemosItems":{"type":"object","properties":{},"title":"NestedAccountOnExpandDebitMemosItems"},"NestedAccountOnExpandInvoicesItems":{"type":"object","properties":{},"title":"NestedAccountOnExpandInvoicesItems"},"NestedAccountOnExpandUsagesItems":{"type":"object","properties":{},"title":"NestedAccountOnExpandUsagesItems"},"NestedAccountOnExpandPaymentMethodsItems":{"type":"object","properties":{},"title":"NestedAccountOnExpandPaymentMethodsItems"},"NestedAccountOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the account.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the account.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the account was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the account.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the account was last updated.\n"},"accountNumber":{"type":"string","description":"The account number that identifies the account.\n"},"additionalEmailAddresses":{"type":"string","description":"An additional email address to receive email notifications.\n"},"allowInvoiceEdit":{"type":"boolean","default":false,"description":"Indicates whether associated invoices can be edited.\n"},"autoPay":{"type":"boolean","description":"Indicates whether future payments are automatically collected when they are due\nduring a payment run.\n"},"balance":{"type":"number","format":"double","description":"The customer's total invoice balance minus credit balance.\n"},"batch":{"type":"string","description":"The alias name given to a batch. A string of 50 characters or less.\n"},"bcdSettingOption":{"$ref":"#/components/schemas/NestedAccountOnExpandBcdSettingOption","description":"The billing cycle day setting option for the account.\n"},"billCycleDay":{"type":"integer","format":"int64","description":"Billing cycle day (BCD), the day of the month when a bill run\ngenerates invoices for the account.\n"},"billToId":{"type":"string","description":"The unique identifier of the bill-to contact associated with the account.\n"},"communicationProfileId":{"type":"string","description":"The unique identifier of the communication profile that Zuora uses when sending notifications to the account's contacts.\n"},"creditBalance":{"type":"number","format":"double","description":"The current credit balance on the account.\n"},"crmId":{"type":"string","maxLength":100,"description":"External identifier of the account in a CRM system.\n"},"currency":{"type":"string","description":"A currency defined in the web-based UI administrative settings.\n"},"customerServiceRepName":{"type":"string","maxLength":50,"description":"Name of the account's customer service representative, if applicable.\n"},"defaultPaymentMethodId":{"type":"string","description":"ID of the default payment method for the account.\n"},"eInvoiceProfileId":{"type":"string","description":"ID of the e-invoice profile for this account.\n\n**Note**: This field 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"},"invoiceDeliveryPrefsEmail":{"type":"boolean","description":"Indicates whether the customer wants to receive invoices through email. \n"},"invoiceDeliveryPrefsPrint":{"type":"boolean","description":"Whether the customer wants to receive printed invoices, such as through postal mail.\n"},"invoiceTemplateId":{"type":"string","description":"Invoice template ID, configured in Billing Settings in the Zuora UI.\n"},"lastInvoiceDate":{"type":"string","format":"date","description":"Date of the most recent invoice for the account; null if no invoice has ever been generated.\n"},"lastMetricsUpdate":{"type":"string","format":"date-time","description":"The date and time when account metrics are last updated, if the account is a partner account.\n\n**Note**: \n- This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\" target=\"_blank\">Reseller Account</a> feature enabled.\n- If you ever set the `partnerAccount` field to `true` for an account, the value of `lastMetricsUpdate` field is the time when the account metrics are last updated.\n"},"name":{"type":"string","description":"The name of the account.\n"},"notes":{"type":"string","description":"A string of up to 65,535 characters.\n"},"organizationId":{"type":"string","description":"The unique identifier of the organization to which the account belongs.\n"},"parentId":{"type":"string","description":"Identifier of the parent customer account for this Account object. The\nlength is 32 characters. Use this field if you have <a\nhref=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\"\ntarget=\"_blank\">Customer Hierarchy</a> enabled.\n"},"partnerAccount":{"type":"boolean","description":"Whether the customer account is a partner, distributor, or reseller. \n\n**Note**: This field is available only if you have the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_customer_accounts/AAA_Overview_of_customer_accounts/Reseller_Account\"\ntarget=\"_blank\">Reseller Account</a> feature enabled.\n"},"paymentMethodCascadingConsent":{"type":"boolean","description":"`true` indicates the consent from your customer to use the Cascading Payment Method feature was collected. \n`false` indicates the consent was not collected and the Cascading Payment Method feature is not enabled.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number provided by your customer for services,\nproducts, or both purchased.\n"},"salesRepName":{"type":"string","description":"Name of the account's sales representative, if applicable.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the billing document sequence set to assign to the customer account. \nThe billing documents to generate for this account will adopt the prefix and starting document number configured in the sequence set.\nIf a customer account has no assigned billing document sequence set, billing documents generated for this account adopt the prefix and starting document number from the default sequence set.\n"},"shipToId":{"type":"string","description":"The unique identifier of the ship-to contact associated with the account.\n"},"soldToId":{"type":"string","description":"The unique identifier of the sold-to contact associated with the account.\n"},"status":{"$ref":"#/components/schemas/NestedAccountOnExpandStatus","description":"The account status.\n"},"taxCompanyCode":{"type":"string","maxLength":50,"description":"Unique code that identifies a company account in Avalara. \n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com).\n"},"taxExemptCertificateID":{"type":"string","maxLength":32,"description":"ID of the customer tax exemption certificate. Applicable if you use Zuora Tax or Connect tax engines.\n"},"taxExemptCertificateType":{"type":"string","maxLength":32,"description":"Type of tax exemption certificate that the customer holds. Applicable if you use Zuora Tax or Connect tax engines.\n"},"taxExemptDescription":{"type":"string","maxLength":500,"description":"Description of the tax exemption certificate that the customer holds.\nApplicable if you use Zuora Tax or Connect tax engines.\n"},"taxExemptEffectiveDate":{"type":"string","format":"date","description":"Date when the customer tax exemption starts, in `YYYY-MM-DD` format. Applicable if you use Zuora Tax or Connect tax engines.\n"},"taxExemptEntityUseCode":{"type":"string","maxLength":64,"description":"A unique entity use code to apply exemptions in Avalara AvaTax. See <a href=\"https://developer.avalara.com/avatax/handling-tax-exempt-customers/\" target=\"_blank\">Exempt Transactions</a> for more details.\n"},"taxExemptExpirationDate":{"type":"string","format":"date","description":"Date when the customer tax exemption expires, in `YYYY-MM-DD` format. Applicable if you use Zuora Tax or Connect tax engines.\n"},"taxExemptIssuingJurisdiction":{"type":"string","maxLength":32,"description":"Jurisdiction in which the customer tax exemption certificate was issued.\n"},"taxExemptStatus":{"$ref":"#/components/schemas/NestedAccountOnExpandTaxExemptStatus","default":"No","description":"Status of the account tax exemption. Applicable if you use Zuora Tax or Connect tax engines. Required if you use Zuora Tax. \n"},"totalInvoiceBalance":{"type":"number","format":"double","description":"Total balance of all posted invoices.\n"},"unappliedBalance":{"type":"number","format":"double","description":"Total unapplied balance in this currency.\n"},"vATId":{"type":"string","description":"EU Value Added Tax ID."},"mrr":{"type":"number","format":"double","description":"Monthly recurring revenue for the account.\n"},"totalDebitMemoBalance":{"type":"number","format":"double","description":"Total balance of all posted debit memos.\n"},"unappliedCreditMemoAmount":{"type":"number","format":"double","description":"The total unapplied amount of all posted credit memos in this currency.\n"},"creditMemoTemplateId":{"type":"string","description":"ID of the credit memo template that is used to generate credit memos for the account.\n"},"debitMemoTemplateId":{"type":"string","description":"ID of the debit memo template that is used to generate debit memos for the account.\n"},"paymentGateway":{"type":"string","description":"The name of the payment gateway instance. If null or left unassigned,\nthe account will use the default gateway.\n"},"paymentTerm":{"type":"string","description":"A payment-terms indicator defined in the web-based UI administrative\nsettings, for example, `Net 30`.\n"},"billTo":{"$ref":"#/components/schemas/NestedAccountOnExpandBillTo","description":"The bill-to contact on this account.\n"},"shipTo":{"$ref":"#/components/schemas/NestedAccountOnExpandShipTo","description":"The ship-to contact on the account.\n"},"soldTo":{"$ref":"#/components/schemas/NestedAccountOnExpandSoldTo","description":"The sold-to contact on the account.\n"},"defaultPaymentMethod":{"$ref":"#/components/schemas/NestedAccountOnExpandDefaultPaymentMethod","description":"The default payment method associated with the account.\n"},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/NestedAccountOnExpandSubscriptionsItems"},"description":"The subscriptions associated with the account.\n"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/NestedAccountOnExpandPaymentsItems"},"description":"The payments associated with the account.  \n"},"refunds":{"type":"array","items":{"$ref":"#/components/schemas/NestedAccountOnExpandRefundsItems"},"description":"The refunds associated with the account.  \n"},"creditMemos":{"type":"array","items":{"$ref":"#/components/schemas/NestedAccountOnExpandCreditMemosItems"},"description":"The credit memos associated with the account.  \n"},"debitMemos":{"type":"array","items":{"$ref":"#/components/schemas/NestedAccountOnExpandDebitMemosItems"},"description":"The debit memos associated with the account.  \n"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/NestedAccountOnExpandInvoicesItems"},"description":"The invoices associated with the account.  \n"},"usages":{"type":"array","items":{"$ref":"#/components/schemas/NestedAccountOnExpandUsagesItems"},"description":"The usage records associated with the account.        \n"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/NestedAccountOnExpandPaymentMethodsItems"},"description":"The payment methods associated with the account.\n"}},"title":"NestedAccountOnExpand"},"NestedCreditMemoItemOnExpandProcessingType":{"type":"string","enum":["0","1"],"description":"The type of the charge for the credit memo item. \n- `0`: Charge - `1`: Discount\n","title":"NestedCreditMemoItemOnExpandProcessingType"},"NestedCreditMemoItemOnExpandCreditFromItemSource":{"type":"string","enum":["InvoiceItem","CreditMemoItem"],"description":"The type of the credit from item.\n","title":"NestedCreditMemoItemOnExpandCreditFromItemSource"},"NestedCreditMemoItemOnExpandSourceItemType":{"type":"string","enum":["SubscriptionComponent","InvoiceDetail","ProductRatePlanCharge","OrderLineItem"],"description":"The type of the source item.\n\n- If a credit memo is not created from an invoice or a product rate plan charge or a return order line item, the value of this field is `SubscriptionComponent`. \n- If a credit memo is created from an invoice, the value of this field is `InvoiceDetail`.\n- If a credit memo is created from a product rate plan charge, the value of this field is `ProductRatePlanCharge`.\n- If a credit memo is created from a return order line item, the value of this field is `OrderLineItem`.\n              \n","title":"NestedCreditMemoItemOnExpandSourceItemType"},"NestedCreditMemoItemOnExpandTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.\n","title":"NestedCreditMemoItemOnExpandTaxMode"},"NestedCreditMemoItemOnExpandRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice.\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n","title":"NestedCreditMemoItemOnExpandRevenueImpacting"},"NestedCreditMemoItemOnExpandSubscription":{"type":"object","properties":{},"description":"The subscription associated with the credit memo item.\n","title":"NestedCreditMemoItemOnExpandSubscription"},"NestedCreditMemoItemOnExpandRatePlanCharge":{"type":"object","properties":{},"description":"The rate plan charge associated with the credit memo item.\n","title":"NestedCreditMemoItemOnExpandRatePlanCharge"},"NestedCreditMemoItemOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the credit memo item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the credit memo item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo item was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the credit memo item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo item was last updated.\n"},"amount":{"type":"number","format":"double","description":"The amount of the credit memo item. For tax-inclusive credit memo\nitems, the amount indicates the credit memo item amount including tax.\nFor tax-exclusive credit memo items, the amount indicates the credit\nmemo item amount excluding tax.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The credit memo item amount excluding tax.\n"},"appliedToItemId":{"type":"string","description":"The unique ID of the credit memo item that the discount charge is applied to.\n"},"appliedToOthersAmount":{"type":"number","format":"double","description":"The amount of the credit memo that is applied to other credit memo\nitems.\n"},"beAppliedByOthersAmount":{"type":"number","format":"double"},"chargeDate":{"type":"string","format":"date-time","description":"The date when the credit memo item is charged, in `yyyy-mm-dd hh:mm:ss` format.\n"},"description":{"type":"string","description":"The description of the credit memo item.\n\n**Note**: This field is only available if you set the `Zuora-Version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the credit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"fulfillmentId":{"type":"string","description":"The reference ID of the fulfillment associated with the credit memo item.\n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule associated with the credit memo item. \n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"invoiceScheduleItemId":{"type":"string","description":"The ID of the invoice schedule item associated with the credit memo item. The credit memo item is generated during the processing of the invoice schedule item.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"itemShipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemType":{"type":"string","description":"The type of the credit memo item.\n"},"orderLineItemId":{"type":"string","description":"The ID of the order line item associated with the credit memo item, if applicable.\n"},"processingType":{"$ref":"#/components/schemas/NestedCreditMemoItemOnExpandProcessingType","description":"The type of the charge for the credit memo item. \n- `0`: Charge - `1`: Discount\n"},"quantity":{"type":"number","format":"double","description":"The number of units for the credit memo item.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number associated the credit memo item.\n"},"creditFromItemSource":{"$ref":"#/components/schemas/NestedCreditMemoItemOnExpandCreditFromItemSource","description":"The type of the credit from item.\n"},"creditFromItemId":{"type":"string","description":"The ID of the credit from item.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set the `excludeItemBillingFromRevenueAccounting` field to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.  \n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the credit memo item. \n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the credit memo item.\n"},"sku":{"type":"string","description":"The SKU for the product associated with the credit memo item.\n"},"sourceItemType":{"$ref":"#/components/schemas/NestedCreditMemoItemOnExpandSourceItemType","description":"The type of the source item.\n\n- If a credit memo is not created from an invoice or a product rate plan charge or a return order line item, the value of this field is `SubscriptionComponent`. \n- If a credit memo is created from an invoice, the value of this field is `InvoiceDetail`.\n- If a credit memo is created from a product rate plan charge, the value of this field is `ProductRatePlanCharge`.\n- If a credit memo is created from a return order line item, the value of this field is `OrderLineItem`.\n              \n"},"subscriptionId":{"type":"string","description":"The ID of the subscription associated with the credit memo item.\n"},"taxMode":{"$ref":"#/components/schemas/NestedCreditMemoItemOnExpandTaxMode","description":"The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.\n"},"chargeName":{"type":"string","description":"The name of the charge associated with the credit memo item. \n"},"chargeNumber":{"type":"string","description":"The number of the product rate plan charge that the credit memo is created from.\n"},"commitmentChargeSegmentNumber":{"type":"string"},"commitmentChargeNumber":{"type":"string"},"taxAmount":{"type":"number","format":"double","description":"The amount of the tax applied to the credit memo item.\n"},"taxCodeName":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific credit memo item.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the credit memo item.\n"},"unitOfMeasure":{"type":"string","description":"The units to measure usage.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the credit memo item.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription associated with the credit memo item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item associated with the credit memo item.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the credit memo is created\nfrom.\n"},"ratePlanChargeId":{"type":"string","description":"The ID of the rate plan charge associated with the credit memo item.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n"},"revenueImpacting":{"$ref":"#/components/schemas/NestedCreditMemoItemOnExpandRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice.\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo to which this credit memo item belongs.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"The number of deliveries dedicated to the Delivery Pricing charges. The value might be different, as follows:\n- For the credit memo generated by a bill run, this field has a value. \n- For the credit memo generated from an invoice, this field is blank.\n**Note**: This field is available only if you have the Delivery Pricing feature enabled.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"The Recognized Revenue accounting code for the credit memo item.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The Account Receivable accounting code for the credit memo item.\n"},"onAccountAccountingCodeId":{"type":"string","description":"The On Account accounting code for the credit memo item.\n"},"deferredRevenueAccountingCodeId":{"type":"string","description":"The Deferred Revenue accounting code for the credit memo item.\n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this transaction.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the credit memo.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the credit memo.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the credit memo.\n"},"subscription":{"$ref":"#/components/schemas/NestedCreditMemoItemOnExpandSubscription","description":"The subscription associated with the credit memo item.\n"},"ratePlanCharge":{"$ref":"#/components/schemas/NestedCreditMemoItemOnExpandRatePlanCharge","description":"The rate plan charge associated with the credit memo item.\n"}},"title":"NestedCreditMemoItemOnExpand"},"NestedCreditMemoApplicationOnExpandCreditMemo":{"type":"object","properties":{},"description":"The credit memo associated with the credit memo application.\n","title":"NestedCreditMemoApplicationOnExpandCreditMemo"},"NestedCreditMemoApplicationOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the credit memo application.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the credit memo application.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo application was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the credit memo application.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo application was last updated.\n"},"amount":{"type":"number","format":"double","description":"The application amount of the credit memo.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the credit memo application becomes effective.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo associated with the credit memo application.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the credit memo.\n"},"applicationGroupId":{"type":"string","description":"The ID of the application group to which this credit memo application belongs.\n"},"debitMemoId":{"type":"string","description":"The ID of the debit memo to which the credit memo is applied.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice to which the credit memo is applied.\n"},"creditMemo":{"$ref":"#/components/schemas/NestedCreditMemoApplicationOnExpandCreditMemo","description":"The credit memo associated with the credit memo application.\n"}},"title":"NestedCreditMemoApplicationOnExpand"},"NestedContactSnapshotOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the contact snapshot.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the snapshot.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the contact snapshot was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the snapshot.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the contact snapshot was last updated.\n"},"accountId":{"type":"string","description":"The unique identifier of the associated billing account.\n"},"contactId":{"type":"string","description":"The unique identifier of the original contact.\n"},"firstName":{"type":"string","description":"The first name of the contact.\n"},"lastName":{"type":"string","description":"The last name of the contact.\n"},"nickName":{"type":"string","description":"The nickname of the contact.\n"},"address1":{"type":"string","description":"The first line of the address.\n"},"address2":{"type":"string","description":"The second line of the address.\n"},"city":{"type":"string","description":"The city of the contact's address.\n"},"state":{"type":"string","description":"The state or province of the contact's address.\n"},"postalCode":{"type":"string","description":"The postal or ZIP code.\n"},"county":{"type":"string","description":"The county or region of the contact.\n"},"country":{"type":"string","description":"The county or region of the contact.\n"},"taxRegion":{"type":"string","description":"The tax region applicable to the contact.\n"},"description":{"type":"string","description":"The free-form description of the contact snapshot.\n"},"homePhone":{"type":"string","description":"The home phone number.\n"},"otherPhone":{"type":"string","description":"Any other phone number.\n"},"otherPhoneType":{"type":"string","description":"The type of the other phone number.\n"},"fax":{"type":"string","description":"The fax number.\n"},"personalEmail":{"type":"string","description":"The personal email address.\n"},"workEmail":{"type":"string","description":"The personal email address.\n"},"deleted":{"type":"boolean","description":"Indicates whether the contact snapshot is marked as deleted.\n"}},"title":"NestedContactSnapshotOnExpand"},"ExpandedCreditMemo":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the credit memo.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the credit memo.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the credit memo.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo was last updated.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the credit memo.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of credit memo.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the credit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the credit memo.\n\nThe value of this field is `null` if the bill rule [Preserve snapshot of bill-to and sold-to contacts when billing documents are posted](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Billing_Rules#Preserve_snapshot_of_bill-to_and_sold-to_contacts_when_billing_documents_are_posted) is disabled.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the Zuora user who cancelled the credit memo.\n"},"cancelledOn":{"type":["string","null"],"format":"date-time","description":"The date and time when the credit memo was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the credit memo.\n"},"currency":{"type":["string","null"],"description":"The currency of the credit memo.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"discountAmount":{"type":"number","format":"double","description":"The amount of the discount on the credit memo.\n"},"einvoiceErrorCode":{"type":"string","description":"The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceErrorMessage":{"type":"string","description":"The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceFileId":{"type":"string","description":"The ID of the e-invoice file generated for the credit memo.\n\n**Note**: This field 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"},"einvoiceStatus":{"$ref":"#/components/schemas/ExpandedCreditMemoEinvoiceStatus","description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is `ConditionalSuccess` and an error code and an error message are  returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n- If the e-invoice file has been approved by the tax authority, this field is `ApprovedByAuthority`. The next status will be either `Success` or `Rejected`.\n- If the e-invoice file has been rejected by the government, this field is `Rejected`. You cannot resend this e-invoice; you must create a new invoice instead.\n\n**Note**: This field 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"},"excludeFromAutoApplyRules":{"type":"boolean","description":"Whether the credit memo is excluded from the rule of automatically applying credit memos to invoices.\n"},"exchangeRateDate":{"type":"string","format":"date","description":"The date of the exchange rate used. The date is in `yyyy-mm-dd` format.\nCorresponds to the value specified in the Provider Exchange Rate Date column in the Import Foreign Exchange Rates template when you uploaded the rates through the Mass Updater.\n"},"autoApplyUponPosting":{"type":"boolean","description":"Whether the credit memo automatically applies to the invoice upon\nposting.\n"},"memoDate":{"type":"string","format":"date","description":"The date when the credit memo takes effect, in `yyyy-mm-dd` format.\nFor example, `2024-01-01`.\n"},"memoNumber":{"type":"string","description":"The unique identification number of the credit memo.\n"},"postedById":{"type":"string","description":"The ID of the Zuora user who posted the credit memo.\n"},"postedOn":{"type":"string","format":"date-time","description":"The date and time when the credit memo was posted, in\n`yyyy-mm-dd hh:mm:ss` format.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value\nmust be an existing reason code or empty.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the refund on the credit memo.\n"},"reversed":{"type":"boolean","description":"Whether the credit memo is reversed.\n"},"revenueImpacting":{"$ref":"#/components/schemas/ExpandedCreditMemoRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the credit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"source":{"$ref":"#/components/schemas/ExpandedCreditMemoSource","description":"The source of the credit memo.\n\nPossible values:\n- `BillRun`: The credit memo is generated by a bill run.\n- `API`: The credit memo is created by calling the [Invoice and collect](https://developer.zuora.com/api-references/api/operation/POST_TransactionInvoicePayment) operation, or by calling the Orders, Order Line Items, or Fulfillments API operations.\n- `ApiSubscribe`: The credit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.\n- `ApiAmend`: The credit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.\n- `AdhocFromPrpc`: The credit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a credit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromPrpc) operation.\n- `AdhocFromInvoice`: The credit memo is created from an invoice or created by reversing an invoice. You can create a credit memo from an invoice through the Zuora UI or by calling the [Create credit memo from invoice](https://developer.zuora.com/api-references/api/operation/POST_CreditMemoFromInvoice) operation. You can create a credit memo by reversing an invoice through the Zuora UI or by calling the [Reverse invoice](https://developer.zuora.com/api-references/api/operation/PUT_ReverseInvoice) operation.\n"},"sourceId":{"type":"string","description":"The ID of the credit memo source.\n\nIf a credit memo is generated from a bill run, the value is the\nnumber of the corresponding bill run. Otherwise, the value is\n`null`.\n"},"sourceType":{"$ref":"#/components/schemas/ExpandedCreditMemoSourceType","description":"The type of the credit memo source.\n"},"status":{"$ref":"#/components/schemas/ExpandedCreditMemoStatus","description":"The status of the credit memo.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for the credit memo, in `yyyy-mm-dd` format. For example, `2024-01-01`.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxMessage":{"type":["string","null"],"description":"The message about the status of tax calculation related to the credit memo. If tax calculation fails in one credit memo, this field displays the reason for the failure.\n"},"taxStatus":{"$ref":"#/components/schemas/ExpandedCreditMemoTaxStatus","description":"The status of tax calculation related to the credit memo.\n\n**Note**: This field is only applicable to tax calculation by third-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the\ncredit memo.\n\n**Note**: If you have the Flexible Billing Attributes feature\ndisabled, the value of this field is `null`.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the\ncredit memo.\n\n**Note**: If you have the Flexible Billing Attributes feature\ndisabled, the value of this field is `null`.\n"},"taxAutoCalculation":{"type":"boolean","default":true,"description":"Whether to automatically calculate taxes in the credit memo.\n"},"totalAmount":{"type":"number","format":"double","description":"The total amount of the credit memo, including taxes.\n"},"totalAmountWithoutTax":{"type":"number","format":"double","description":"The total amount of the credit memo, excluding taxes.\n"},"totalTaxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/ExpandedCreditMemoTransferredToAccounting","description":"Whether the credit memo was transferred to an external\naccounting system. This field is used for integration with\naccounting systems such as NetSuite.\n"},"invoiceId":{"type":"string","description":"The ID of a referred invoice.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the credit memo.\n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"billToContact":{"$ref":"#/components/schemas/ExpandedContact"},"creditMemoItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedCreditMemoItemOnExpand"}},"creditMemoApplications":{"type":"array","items":{"$ref":"#/components/schemas/NestedCreditMemoApplicationOnExpand"}},"billToContactSnapshot":{"$ref":"#/components/schemas/NestedContactSnapshotOnExpand"},"soldToContactSnapshot":{"$ref":"#/components/schemas/NestedContactSnapshotOnExpand"},"shipToContactSnapshot":{"$ref":"#/components/schemas/NestedContactSnapshotOnExpand"}},"title":"ExpandedCreditMemo"},"Object_Queries_queryCreditMemos_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedCreditMemo"}}},"title":"Object Queries_queryCreditMemos_Response_200"},"ObjectQueryCreditMemosKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","billtocontact","billtocontactsnapshot","soldtocontactsnapshot","shiptocontactsnapshot","creditmemoitems","creditmemoitems.subscription","creditmemoitems.subscription.account","creditmemoapplications"],"title":"ObjectQueryCreditMemosKeyGetParametersExpandSchemaItems"},"ObjectQueryCreditMemoApplicationsGetParametersExpandSchemaItems":{"type":"string","enum":["creditmemo"],"title":"ObjectQueryCreditMemoApplicationsGetParametersExpandSchemaItems"},"ExpandedCreditMemoApplication":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the credit memo application.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the credit memo application.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo application was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the credit memo application.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo application was last updated.\n"},"amount":{"type":"number","format":"double","description":"The application amount of the credit memo.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the credit memo application becomes effective.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo associated with the credit memo application.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the credit memo.\n"},"applicationGroupId":{"type":"string","description":"The ID of the application group to which this credit memo application belongs.\n"},"debitMemoId":{"type":"string","description":"The ID of the debit memo to which the credit memo is applied.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice to which the credit memo is applied.\n"},"creditMemo":{"$ref":"#/components/schemas/NestedCreditMemoOnExpand"}},"title":"ExpandedCreditMemoApplication"},"Object_Queries_queryCreditMemoApplications_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedCreditMemoApplication"}}},"title":"Object Queries_queryCreditMemoApplications_Response_200"},"ObjectQueryCreditMemoApplicationsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["creditmemo"],"title":"ObjectQueryCreditMemoApplicationsKeyGetParametersExpandSchemaItems"},"ObjectQueryCreditMemoItemsGetParametersExpandSchemaItems":{"type":"string","enum":["subscription","rateplancharge","subscriptionowner","credittaxationitems"],"title":"ObjectQueryCreditMemoItemsGetParametersExpandSchemaItems"},"ExpandedCreditMemoItemProcessingType":{"type":"string","enum":["0","1"],"description":"The type of the charge for the credit memo item. \n- `0`: Charge - `1`: Discount\n","title":"ExpandedCreditMemoItemProcessingType"},"ExpandedCreditMemoItemRevenueImpacting":{"type":"string","enum":["Yes","No"],"default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice.\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n","title":"ExpandedCreditMemoItemRevenueImpacting"},"ExpandedCreditMemoItemCreditFromItemSource":{"type":"string","enum":["InvoiceItem","CreditMemoItem"],"description":"The type of the credit from item.\n","title":"ExpandedCreditMemoItemCreditFromItemSource"},"ExpandedCreditMemoItemSourceItemType":{"type":"string","enum":["SubscriptionComponent","InvoiceDetail","ProductRatePlanCharge","OrderLineItem"],"description":"The type of the source item.\n\n- If a credit memo is not created from an invoice or a product rate plan charge or a return order line item, the value of this field is `SubscriptionComponent`. \n- If a credit memo is created from an invoice, the value of this field is `InvoiceDetail`.\n- If a credit memo is created from a product rate plan charge, the value of this field is `ProductRatePlanCharge`.\n- If a credit memo is created from a return order line item, the value of this field is `OrderLineItem`.\n              \n","title":"ExpandedCreditMemoItemSourceItemType"},"ExpandedCreditMemoItemTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.\n","title":"ExpandedCreditMemoItemTaxMode"},"NestedRatePlanChargeOnExpandBillingTiming":{"type":"string","enum":["In Advance","In Arrears"],"description":"The billing timing for the charge. You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.\n\n**Note:** You can override the value inherited from the Product Rate Plan Charge when a subscription has a recurring charge type.\n","title":"NestedRatePlanChargeOnExpandBillingTiming"},"NestedRatePlanChargeOnExpandDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"NestedRatePlanChargeOnExpandDiscountLevel"},"NestedRatePlanChargeOnExpandEndDateCondition":{"type":"string","enum":["SubscriptionEnd","FixedPeriod","SpecificEndDate","OneTime"],"description":"Condition for the charge to become inactive.\n\n- If the value of this field is `FixedPeriod`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n- If the value of this field is `SpecificEndDate`, use the `specificEndDate` field to specify the date when the charge becomes inactive.\n","title":"NestedRatePlanChargeOnExpandEndDateCondition"},"NestedRatePlanChargeOnExpandRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"NestedRatePlanChargeOnExpandRolloverApply"},"NestedRatePlanChargeOnExpandListPriceBase":{"type":"string","enum":["Per Billing Period","Per Month","Per Week","Per Year","Per Specific Months"],"description":"The list price base for the product rate plan charge.\n","title":"NestedRatePlanChargeOnExpandListPriceBase"},"NestedRatePlanChargeOnExpandCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"NestedRatePlanChargeOnExpandCommitmentType"},"NestedRatePlanChargeOnExpandPrepaidOperationType":{"type":"string","enum":["topup","drawdown"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n","title":"NestedRatePlanChargeOnExpandPrepaidOperationType"},"NestedRatePlanChargeOnExpandRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload","ByGroupId"],"description":"A rating group based on which usage records are rated. Only applicable to Usage charges.\n\nPossible values:\n\n- `ByBillingPeriod`: The rating is based on all the usages in a billing period.\n- `ByUsageStartDate`: The rating is based on all the usages on the same usage start date.\n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in a custom group.\n\nFor more information, see [Usage rating by group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group).\n","title":"NestedRatePlanChargeOnExpandRatingGroup"},"NestedRatePlanChargeOnExpandRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"NestedRatePlanChargeOnExpandRevenueRecognitionTiming"},"NestedRatePlanChargeOnExpandRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"NestedRatePlanChargeOnExpandRevenueAmortizationMethod"},"NestedRatePlanChargeOnExpandUpToPeriodsType":{"type":"string","enum":["Billing Periods","Days","Weeks","Months","Years"],"default":"Billing Periods","description":"The period type used to define when the charge ends. This field can be updated when **Status** is `Draft`. \n\n**Note**:\n\n- You must use this field together with the `UpToPeriods` field to specify the time period.\n- This field is only applicable only when the `EndDateCondition` field is set to `FixedPeriod`.\n","title":"NestedRatePlanChargeOnExpandUpToPeriodsType"},"NestedRatePlanChargeOnExpandWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Specifies which day of the week as the bill cycle day (BCD) for the charge.\n","title":"NestedRatePlanChargeOnExpandWeeklyBillCycleDay"},"NestedRatePlanChargeOnExpandValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n","title":"NestedRatePlanChargeOnExpandValidityPeriodType"},"NestedRatePlanChargeOnExpandCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled. \n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n","title":"NestedRatePlanChargeOnExpandCreditOption"},"NestedRatePlanChargeOnExpandRatePlan":{"type":"object","properties":{},"description":"The rate plan to which this charge belongs.\n","title":"NestedRatePlanChargeOnExpandRatePlan"},"NestedRatePlanChargeOnExpandProductRatePlanCharge":{"type":"object","properties":{},"description":"The product rate plan charge associated with this rate plan charge.\n","title":"NestedRatePlanChargeOnExpandProductRatePlanCharge"},"NestedRatePlanChargeOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the rate plan charge.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the rate plan charge.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the rate plan charge was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the rate plan charge.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the rate plan charge was last updated.\n"},"ratePlanId":{"type":"string","description":"The unique identifier of the rate plan to which this rate plan charge belongs.\n"},"productRatePlanChargeId":{"type":"string","description":"The unique identifier of the product rate plan charge associated with this product rate plan charge.\n"},"accountingCode":{"type":"string","description":"The accounting code for the charge. Accounting codes group transactions that contain similar accounting attributes.\n\n**Values**: inherited from `ProductRatePlanCharge.AccountingCode`\n\n**Note**: This value changes if `ProductRatePlanCharge.AccountingCode` is updated. The values of `UpdatedById` and `UpdatedDate` for the `RatePlanCharge` do not change when `ProductRatePlanCharge.AccountingCode` is updated. \n"},"applyDiscountTo":{"type":"string","description":"Specifies the type of charges a specific discount applies to. \n**Values**: inherited from `ProductRatePlanCharge.ApplyDiscountTo` \n"},"billCycleDay":{"type":"integer","format":"int64","description":"Indicates the charge's billing cycle day (BCD), which is when bill runs generate invoices for charges associated with the product rate plan charge or the account. \n\n**Values**: inherited from `ProductRatePlanCharge.BillCycleDay` \n"},"billCycleType":{"type":"string","description":"Specifies how to determine the billing day for the charge.\\n\\\n\n**Values**: inherited from `ProductRatePlanCharge.BillCycleType`\n\n**Note:** You can override the value inherited from the Product Rate Plan Charge, but only when creating a new subscription or a New Product amendment. \n"},"billingPeriod":{"type":"string","description":"Allows billing period to be overridden on rate plan charge.\n\n**Values**: **inherited from `ProductRatePlanCharge.BillingPeriod`\n\n**Note:** You can override the value inherited from the Product Rate Plan Charge, but only when creating a new subscription or a New Product amendment. \n"},"billingPeriodAlignment":{"type":"string","description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n\n**Values**: inherited from `ProductRatePlanCharge.BillingPeriodAlignment` \n"},"billingTiming":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandBillingTiming","description":"The billing timing for the charge. You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.\n\n**Note:** You can override the value inherited from the Product Rate Plan Charge when a subscription has a recurring charge type.\n"},"chargedThroughDate":{"type":"string","format":"date","description":"The date through which a customer has been billed for the charge.\n"},"chargeModel":{"type":"string","description":"Determines how to evaluate charges. Charge models must be individually activated in the web-based UI.\n\n**Values**: inherited from `ProductRatePlanCharge.ChargeModel` \n"},"chargeNumber":{"type":"string","description":"A unique number that identifies the charge. This number is returned as a string.\n\n**Values**: one of the following:\n- automatically generated if left `null`\n- a unique number of 50 characters or fewer\n"},"chargeType":{"type":"string","description":"Specifies the type of charge.\n\n**Values**: inherited from `ProductRatePlanCharge.ChargeType`\n"},"description":{"type":"string","description":"A description of the rate plan charge. \n"},"discountLevel":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandDiscountLevel","description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"dMRC":{"type":"number","format":"double","description":"A delta monthly recurring charge is the change in monthly\nrecurring revenue caused by an amendment or a new subscription. \n\n**Values**: automatically generated\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"dTCV":{"type":"number","format":"double","description":"After an Amendment, the change in the total contract value (TCV) amount for this charge, compared with its previous value.\n\n**Values**: automatically generated \n"},"effectiveEndDate":{"type":"string","format":"date","description":"Start date when the rate plan charge becomes active, as `yyyy-mm-dd`.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"Final date the rate plan is active, as `yyyy-mm-dd`.\n"},"endDateCondition":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandEndDateCondition","description":"Condition for the charge to become inactive.\n\n- If the value of this field is `FixedPeriod`, the charge is active for a predefined duration based on the value of the `upToPeriodsType` and `upToPeriods` fields.\n- If the value of this field is `SpecificEndDate`, use the `specificEndDate` field to specify the date when the charge becomes inactive.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\nIf both the following features are enabled in your tenant, you must ensure the `excludeItemBillingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge. In addition, if the `excludeItemBookingFromRevenueAccounting` field in an Create Subscription or Add Product order action is set to `false`, you must also set the `excludeItemBillingFromRevenueAccounting` field in this order action to `false`.\n  * Prepaid with Drawdown\n  * Unbilled Usage\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charges from revenue accounting.\n\nIf both the following features are enabled in your tenant, you must ensure the `excludeItemBookingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge.\n  * Prepaid with Drawdown\n  * Unbilled Usage\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"invoiceScheduleId":{"type":"string","description":"The unique identifier of the invoice schedule associated with the subscription.\n"},"isLastSegment":{"type":"boolean","description":"Indicates if the segment of the rate plan charge is the most recent segment. **Values**: automatically generated.\n"},"isPrepaid":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nIndicates whether this charge is a prepayment (topup) charge or a\ndrawdown charge. \n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a> feature enabled.\n\nIt determines whether the rollover fields are needed.\n"},"rolloverPeriods":{"type":"integer","format":"int64","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"rolloverPeriodLength":{"type":["integer","null"],"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"rolloverApply":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"isProcessed":{"type":"boolean","description":"Indicates whether the rate plan charge has been processed.\n"},"listPriceBase":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandListPriceBase","description":"The list price base for the product rate plan charge.\n"},"specificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `ListPriceBase` field to `Per Specific Months`.\n\n**Notes**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - The value of this field is `null` if you do not set the value of the `ListPriceBase` field to `Per Specific Months`.\n"},"priceUpsellQuantityStacked":{"type":"boolean"},"commitmentType":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandCommitmentType","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"isCommitted":{"type":"boolean","description":"Indicates whether the rate plan charge is commited.\n"},"mRR":{"type":"number","format":"double","description":"Monthly recurring revenue (MRR) is the amount of recurring\ncharges in a given month. The MRR calculation doesn't include one-time\ncharges nor usage charges. **Values**: automatically\ngenerated \n"},"name":{"type":"string","maxLength":100,"description":"The name of the rate plan charge. **Values**: automatically generated \n"},"numberOfPeriods":{"type":"integer","format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model. **Values**: inherited from `ProductRatePlanCharge.NumberOfPeriod`.\n"},"originalId":{"type":"string","maxLength":32,"description":"The original ID of the rate plan charge. **Values**: automatically generated.\n"},"overageCalculationOption":{"type":"string","maxLength":20,"description":"Determines when to calculate overage charges. If the value of the SmoothingMode field is null (not specified and not inherited from ProductRatePlanCharge.SmoothingMode), the value of this field is ignored.\n**Values**: inherited from `ProductRatePlanCharge.OverageCalculationOption`.\n"},"overageUnusedUnitsCreditOption":{"type":"string","maxLength":20,"description":"Determines whether to credit the customer with unused units of usage. **Values**: inherited from `ProductRatePlanCharge.OverageUnusedUnitsCreditOption`.\n"},"prepaidOperationType":{"oneOf":[{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandPrepaidOperationType"},{"type":"null"}],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n"},"prepaidQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaidTotalQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe total amount of units that end customers can use during a validity period when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"priceChangeOption":{"type":"string","description":"Applies an automatic price change when a termed subscription is renewed.\n\n**Values**: one of the following:\n\n- `NoChange` (default)\n- `SpecificPercentageValue`\n- `UseLatestProductCatalogPricing`\n"},"priceIncreasePercentage":{"type":"number","format":"double","description":"Specifies the percentage to increase or decrease the price of renewed subscriptions. **Values**: a decimal value between -100 and 100.\n"},"processedThroughDate":{"type":"string","format":"date","description":"The date until when charges have been processed. When billing in arrears, such as usage, this field value is the the same as the `ChargedThroughDate` value. This date is the earliest date when a charge can be amended.\n**Values**: automatically generated.\n"},"prorationOption":{"type":"string","description":"Determines how to prorate charges when a subscription is created or amended.\n"},"quantity":{"type":"number","format":"double","description":"The default quantity of units, such as the number of authors in a hosted wiki service. Valid for all charge models except for Flat Fee pricing. **Values**: a valid quantity value.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"Number of deliveries in the billing period for the charge segment.\n\nThe `numberOfDeliveries` is used for the Delivery Pricing charge model only. \n\n**Note**: The Delivery Pricing charge model 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. You can check **Delivery Pricing** in **Billing Settings** > **Enable Charge Types / Models**.\n"},"ratingGroup":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandRatingGroup","description":"A rating group based on which usage records are rated. Only applicable to Usage charges.\n\nPossible values:\n\n- `ByBillingPeriod`: The rating is based on all the usages in a billing period.\n- `ByUsageStartDate`: The rating is based on all the usages on the same usage start date.\n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in a custom group.\n\nFor more information, see [Usage rating by group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group).\n"},"revenueRecognitionRuleName":{"type":"string","description":"Specifies the Revenue Recognition Rule that you want the Rate Plan Charge to use. This field can be updated when **Status** is `Draft`.\nBy default, the Revenue Recognition Rule is inherited from the Product Rate Plan Charge. For Amend calls, you can use this field only for NewProduct amendments.\nFor Update calls, you can use this field only to update subscriptions in draft status. Note that if you use this field to specify a Revenue Recognition Rule for the Rate Plan Charge, \nthe rule will remain as specified even if you later change the rule used by the corresponding Product Rate Plan Charge.\n\n**Values**: inherited from `ProductRatePlanCharge.RevenueRecognitionRuleName` or the name of an active Revenue Recognition Rule\n\n**Note**: Unless overridden, this value changes if `ProductRatePlanCharge.RevenueRecognitionRuleName` is updated. \nThe values of `UpdatedById` and `UpdatedDate` for the `RatePlanCharge` do not change when `ProductRatePlanCharge.RevenueRecognitionRuleName` is updated.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revRecCode":{"type":"string","maxLength":70,"description":"Associates this product rate plan charge with a specific revenue recognition code.\n\n**Values**: inherited from `ProductRatePlanCharge.RevRecCode` or a valid revenue recognition code\n\n**Note**: Unless overridden, this value changes if `ProductRatePlanCharge.RevRecCode` is updated. The values of `UpdatedById` and `UpdatedDate` for the `RatePlanCharge` do not change when `ProductRatePlanCharge.RevRecCode` is updated.\n"},"revRecTriggerCondition":{"type":"string","maxLength":22,"description":"Specifies when revenue recognition begins.\n\n**Values**: inherited from `ProductRatePlanCharge.RevRecTriggerCondition` or one of the following:\n- `ContractEffectiveDate`\n- `ServiceActivationDate`\n- `CustomerAcceptanceDate`\n\nNote: Unless overridden, this value changes if `ProductRatePlanCharge.RevRecTriggerCondition` is updated. The values of `UpdatedById` and `UpdatedDate` for the `RatePlanCharge` do not change when `ProductRatePlanCharge.RevRecTriggerCondition` is updated.\n"},"segment":{"type":"integer","description":"The identifying number of the subscription rate plan segment. Segments are numbered sequentially, starting with 1.\n\n**Values**: automatically generated\n"},"specificBillingPeriod":{"type":"integer","format":"int64","description":"Customizes the number of months or weeks for the charges billing period. This field is required if you set the value of the BillingPeriod field to `Specific Months` or `Specific Weeks`.\n\n**Values**: inherited from `ProductRatePlanCharge.BillingPeriod`\n\n**Note:** You can override the value inherited from the Product Rate Plan Charge, but only when creating a new subscription or a New Product amendment.\n"},"specificEndDate":{"type":"string","format":"date","description":"The specific date on which the charge ends, in `yyyy-mm-dd` format.\n\n**Note**:\n\n- This field is only applicable when the `EndDateCondition` field is set to `SpecificEndDate`.\n- If the subscription ends before the specific end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the specific end date.\n"},"tCV":{"type":"number","format":"double","description":" The total contract value (TCV) is the value of a single rate plan charge in a subscription over the lifetime of the subscription. This value does not represent all charges on the subscription. The TCV includes recurring charges and one-time charges, but it doesn't include usage charge.\n**Values**: automatically generated "},"triggerDate":{"type":"string","format":"date","description":"The date when the charge becomes effective and billing begins, in `yyyy-mm-dd` format. This field is required if the `TriggerEvent` field value is `SpecificDate`.\n"},"triggerEvent":{"type":"string","maxLength":18,"description":"Specifies when to start billing the customer for the charge.\n**Note: **This field can be passed through the Subscribe and Amend calls and will override the default value set on the Product Rate Plan Charge.\n\n**Values**: inherited from `ProductRatePlanCharge.TriggerEvent` and can be one of the following values:\n\n- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n- `ServiceActivation` is when the services or products for a subscription have been activated and the customers have access.\n- `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n- `SpecificDate` is valid only on the RatePlanCharge.\n"},"uOM":{"type":"string","maxLength":25,"description":"Specifies the units to measure usage. \n\n**Values**: inherited from `ProductRatePlanCharge.UOM`\n"},"upToPeriods":{"type":"integer","format":"int64","description":"Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.\n\n**Values**: inherited from `ProductRatePlanCharge.UpToPeriods` **Note**:\n\n- You must use this field together with the `UpToPeriodsType` field to specify the time period. This field is only applicable only when the `EndDateCondition` field is set to `FixedPeriod`.\n- You can override the value inherited from the Product Rate Plan Charge, but only when creating a new subscription or a New Product amendment.\n- Use this field to override the value in `ProductRatePlanCharge.UpToPeriod`.\n- If you override the value in this field, enter a whole number between 0 and 65535, exclusive.\n- If the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge end date will change accordingly up to the original period end.\n"},"upToPeriodsType":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandUpToPeriodsType","default":"Billing Periods","description":"The period type used to define when the charge ends. This field can be updated when **Status** is `Draft`. \n\n**Note**:\n\n- You must use this field together with the `UpToPeriods` field to specify the time period.\n- This field is only applicable only when the `EndDateCondition` field is set to `FixedPeriod`.\n"},"version":{"type":"integer","format":"int64","description":"The version of the rate plan charge. Each time a charge is amended, Zuora creates a new version of the rate plan charge. **Values**: automatically generated.\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandWeeklyBillCycleDay","description":"Specifies which day of the week as the bill cycle day (BCD) for the charge.\n"},"subscriptionId":{"type":"string","description":"The unique identifier of the subscription to which the rate plan charge belongs.\n"},"subscriptionOwnerId":{"type":"string","description":"ID of the account that owns the subscription.\n"},"invoiceOwnerId":{"type":"string","description":"ID of the account that will pay the billing documents for the subscription.\n"},"originalOrderDate":{"type":"string","format":"date","description":"The date when the rate plan charge is created through an order or amendment. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sales order line in Zuora Revenue.\n"},"amendedByOrderOn":{"type":"string","format":"date","description":"The date when the rate plan charge is amended through an order\nor amendment. This field is to standardize the booking date\ninformation to increase audit ability and traceability of data\nbetween Zuora Billing and Zuora Revenue. It is mapped as the\nbooking date for a sale order line in Zuora Revenue.\n"},"validityPeriodType":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandValidityPeriodType","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"creditOption":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandCreditOption","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled. \n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n"},"applyToBillingPeriodPartially":{"type":"boolean","description":"Allow the discount duration to be aligned with the billing period partially.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"productChargeDefinitionId":{"type":"string","description":"The unique ID of the product charge definition.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"ID of the accountReceivableAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>, <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a>, and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Get_started_with_Invoice_Settlement/AA_Overview_of_Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> features are enabled.\n"},"deferredRevenueAccountingCodeId":{"type":"string","description":"ID of the deferredRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"ID of the recognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"prepaidUOM":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nUnit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"drawdownUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nUnit of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).\n"},"ratePlan":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandRatePlan","description":"The rate plan to which this charge belongs.\n"},"productRatePlanCharge":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpandProductRatePlanCharge","description":"The product rate plan charge associated with this rate plan charge.\n"},"salesPrice":{"type":"number","format":"double","description":"The sales price associated with the rate plan charge expressed as a decimal.\n\n    \n**Notes**:\n\n  - This field is only available to subscriptions that are created through orders and exist after 2023-01-10.\n  \n  - This field applies to the following charge models, and the values vary with the charge models:\n      - Flat fee: the value equals the value of the `price` field.\n      - Per unit: the value equals `price` multiplied by `quantity`.\n      - Fixed amount discount: the value equals the value of the `discountAmount` field.\n      - Volume: The calculation of the tier price is dependent on whether the price format is the flat fee or per unit.\n      - Tiered: The calculation of the tier price is dependent on whether the price format is the flat fee or per unit.\n"},"taxable":{"type":"boolean","description":"Indicates whether the rate plan charge is taxable.\n"},"reverted":{"type":"boolean","description":"Indicates whether the rate plan charge has been reverted.\n"},"reflectDiscountInNetAmount":{"type":"boolean","description":"Indicates whether the discount is reflected in the net amount.\n    \n"}},"title":"NestedRatePlanChargeOnExpand"},"NestedCreditTaxationItemOnExpandTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the credit memo, indicating whether the amount of the credit memo includes tax.\n","title":"NestedCreditTaxationItemOnExpandTaxMode"},"NestedCreditTaxationItemOnExpandTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate.\n","title":"NestedCreditTaxationItemOnExpandTaxRateType"},"NestedCreditTaxationItemOnExpand":{"type":"object","properties":{"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the taxation item.\n"},"axemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city. \n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field. \n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the refund on the taxation item.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific credit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the credit memo, in yyyy-mm-dd format.\n"},"taxMode":{"$ref":"#/components/schemas/NestedCreditTaxationItemOnExpandTaxMode","description":"The tax mode of the credit memo, indicating whether the amount of the credit memo includes tax.\n"},"taxRate":{"type":"string","format":"decimal","description":"The tax rate applied to the credit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/NestedCreditTaxationItemOnExpandTaxRateType","description":"The type of the tax rate.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the taxation item.\n"},"creditMemoItemId":{"type":"string","description":"The ID of the credit memo item.\n"},"taxableItemSnapshotId":{"type":"string","description":"The unique identifier of the taxable item snapshot.\n"},"id":{"type":"string","description":"The unique identifier of the taxation item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the taxation item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the taxation item was created in the Zuora\nsystem, in the `yyyy-mm-dd hh:mm:ss` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the taxation item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the taxation item was last updated, in the `yyyy-mm-dd hh:mm:ss` format. \n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The accounting code for Account Receivable.\n"}},"title":"NestedCreditTaxationItemOnExpand"},"ExpandedCreditMemoItem":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the credit memo item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the credit memo item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo item was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the credit memo item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the credit memo item was last updated.\n"},"amount":{"type":"number","format":"double","description":"The amount of the credit memo item. For tax-inclusive credit memo\nitems, the amount indicates the credit memo item amount including tax.\nFor tax-exclusive credit memo items, the amount indicates the credit\nmemo item amount excluding tax.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The credit memo item amount excluding tax.\n"},"appliedToItemId":{"type":"string","description":"The unique ID of the credit memo item that the discount charge is applied to.\n"},"appliedToOthersAmount":{"type":"number","format":"double","description":"The amount of the credit memo that is applied to other credit memo\nitems.\n"},"beAppliedByOthersAmount":{"type":"number","format":"double"},"chargeDate":{"type":"string","format":"date-time","description":"The date when the credit memo item is charged, in `yyyy-mm-dd hh:mm:ss` format.\n"},"description":{"type":"string","description":"The description of the credit memo item.\n\n**Note**: This field is only available if you set the `Zuora-Version` request header to `257.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the credit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"fulfillmentId":{"type":"string","description":"The reference ID of the fulfillment associated with the credit memo item.\n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule associated with the credit memo item. \n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"invoiceScheduleItemId":{"type":"string","description":"The ID of the invoice schedule item associated with the credit memo item. The credit memo item is generated during the processing of the invoice schedule item.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"itemShipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the credit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemType":{"type":"string","description":"The type of the credit memo item.\n"},"orderLineItemId":{"type":"string","description":"The ID of the order line item associated with the credit memo item, if applicable.\n"},"processingType":{"$ref":"#/components/schemas/ExpandedCreditMemoItemProcessingType","description":"The type of the charge for the credit memo item. \n- `0`: Charge - `1`: Discount\n"},"revenueImpacting":{"$ref":"#/components/schemas/ExpandedCreditMemoItemRevenueImpacting","default":"Yes","description":"Indicates whether this write off operation impacts the revenue. If `revenueImpacting` = `Yes`, the deferred revenue accounting code will be automatically selected from the associated invoice.\n\nIf `revenueImpacting` = `No`, users can select an accounting code such as bad-debt expense accounting code for the write off operation.\n"},"quantity":{"type":"number","format":"double","description":"The number of units for the credit memo item.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number associated the credit memo item.\n"},"creditFromItemSource":{"$ref":"#/components/schemas/ExpandedCreditMemoItemCreditFromItemSource","description":"The type of the credit from item.\n"},"creditFromItemId":{"type":"string","description":"The ID of the credit from item.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set the `excludeItemBillingFromRevenueAccounting` field to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.  \n"},"serviceEndDate":{"type":"string","format":"date","description":"The service end date of the credit memo item. \n"},"serviceStartDate":{"type":"string","format":"date","description":"The service start date of the credit memo item.\n"},"sku":{"type":"string","description":"The SKU for the product associated with the credit memo item.\n"},"sourceItemType":{"$ref":"#/components/schemas/ExpandedCreditMemoItemSourceItemType","description":"The type of the source item.\n\n- If a credit memo is not created from an invoice or a product rate plan charge or a return order line item, the value of this field is `SubscriptionComponent`. \n- If a credit memo is created from an invoice, the value of this field is `InvoiceDetail`.\n- If a credit memo is created from a product rate plan charge, the value of this field is `ProductRatePlanCharge`.\n- If a credit memo is created from a return order line item, the value of this field is `OrderLineItem`.\n              \n"},"subscriptionId":{"type":"string","description":"The ID of the subscription associated with the credit memo item.\n"},"taxMode":{"$ref":"#/components/schemas/ExpandedCreditMemoItemTaxMode","description":"The tax mode of the credit memo item, indicating whether the amount of the credit memo item includes tax.\n"},"chargeName":{"type":"string","description":"The name of the charge associated with the credit memo item. \n"},"chargeNumber":{"type":"string","description":"The number of the product rate plan charge that the credit memo is created from.\n"},"commitmentChargeSegmentNumber":{"type":"string"},"commitmentChargeNumber":{"type":"string"},"taxAmount":{"type":"number","format":"double","description":"The amount of the tax applied to the credit memo item.\n"},"taxCodeName":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific credit memo item.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the credit memo item.\n"},"unitOfMeasure":{"type":"string","description":"The units to measure usage.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the credit memo item.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription associated with the credit memo item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item associated with the credit memo item.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the credit memo is created\nfrom.\n"},"ratePlanChargeId":{"type":"string","description":"The ID of the rate plan charge associated with the credit memo item.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo to which this credit memo item belongs.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"The number of deliveries dedicated to the Delivery Pricing charges. The value might be different, as follows:\n- For the credit memo generated by a bill run, this field has a value. \n- For the credit memo generated from an invoice, this field is blank.\n**Note**: This field is available only if you have the Delivery Pricing feature enabled.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"The Recognized Revenue accounting code for the credit memo item.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The Account Receivable accounting code for the credit memo item.\n"},"onAccountAccountingCodeId":{"type":"string","description":"The On Account accounting code for the credit memo item.\n"},"deferredRevenueAccountingCodeId":{"type":"string","description":"The Deferred Revenue accounting code for the credit memo item.\n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this credit memo item.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the credit memo.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the credit memo.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the credit memo.\n"},"subscription":{"$ref":"#/components/schemas/NestedSubscriptionOnExpand"},"ratePlanCharge":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpand"},"subscriptionOwner":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"creditTaxationItems":{"$ref":"#/components/schemas/NestedCreditTaxationItemOnExpand"}},"title":"ExpandedCreditMemoItem"},"Object_Queries_queryCreditMemoItems_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedCreditMemoItem"}}},"title":"Object Queries_queryCreditMemoItems_Response_200"},"ObjectQueryCreditMemoItemsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["subscription","rateplancharge","subscriptionowner","credittaxationitems"],"title":"ObjectQueryCreditMemoItemsKeyGetParametersExpandSchemaItems"},"ExpandedDailyConsumptionSummary":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the daily consumption summary."},"originChargeId":{"type":"string","description":"The unique identifier of the charge."},"chargeSegmentNumber":{"type":"integer","description":"The charge segment number.\n"},"fundId":{"type":"string","description":"The unique identifier of the fund.\n"},"dailyConsumptionAmount":{"type":"number","format":"double","description":"The daily consumption amount.\n"},"dailyTotalQuantity":{"type":"number","format":"double","description":"The total quantity consumed daily.\n"},"transactionDate":{"type":"string","format":"date","description":"The date of the transaction.\n"},"ratingResultId":{"type":"string","description":"The unique identifier of the rating result.\n"},"dailyGroupSummaryId":{"type":"string","description":"The unique identifier of the daily group summary.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the daily consumption summary.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the daily consumption summary was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the daily consumption summary.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the daily consumption summary was last updated.\n"},"drawdownOriginChargeId":{"type":"string","description":"The unique identifier of the original drawdown charge.\n"},"drawdownChargeSegmentNumber":{"type":"integer","description":"The charge segment number of the drawdown charge.\n"},"drawdownRecognizedRevenueGlAccountNumber":{"type":"string","description":"The GL account number of the recognized revenue for the drawdown charge.\n"},"drawdownAdjustmentRevenueGlAccountNumber":{"type":"string","description":"The GL account number of the adjusted revenue for the drawdown charge.\n"},"usageChargeName":{"type":"string","description":"The name of the usage charge.\n"},"usageChargeNumber":{"type":"string","description":"The number of the usage charge.\n"}},"title":"ExpandedDailyConsumptionSummary"},"Object_Queries_queryDailyConsumptionSummaries_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedDailyConsumptionSummary"}}},"title":"Object Queries_queryDailyConsumptionSummaries_Response_200"},"ObjectQueryDebitMemosGetParametersExpandSchemaItems":{"type":"string","enum":["account","billtocontact","billtocontactsnapshot","soldtocontactsnapshot","shiptocontactsnapshot","debitmemoitems","debitmemoitems.subscription","debitmemoitems.subscription.account"],"title":"ObjectQueryDebitMemosGetParametersExpandSchemaItems"},"ExpandedDebitMemoEinvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is\n `ConditionalSuccess` and an error code and an error message are \n returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n\n- If the e-invoice file has been approved by the tax authority, this\n field is `ApprovedByAuthority`. The next status will be either\n  `Success` or `Rejected`.\n\n- If the e-invoice file has been rejected by the government, this field\n is `Rejected`. You cannot resend this e-invoice; you must create a\n  new invoice instead.\n\n\n**Note**: This field 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","title":"ExpandedDebitMemoEinvoiceStatus"},"ExpandedDebitMemoSource":{"type":"string","enum":["BillRun","API","ApiSubscribe","ApiAmend","AdhocFromPrpc","AdhocFromInvoice"],"description":"The source of the debit memo.\nPossible values:\n- `BillRun`: The debit memo is generated by a bill run.\n- `API`\n- `ApiSubscribe`: The debit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.\n- `ApiAmend`: The debit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.\n- `AdhocFromPrpc`: The debit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a debit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromPrpc/) operation.\n- `AdhocFromInvoice`: The debit memo is created from an invoice or created by reversing an invoice. You can create a debit memo from an invoice through the Zuora UI or by calling the [Create a debit memo from an invoice](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromInvoice/) operation.\n","title":"ExpandedDebitMemoSource"},"ExpandedDebitMemoSourceType":{"type":"string","enum":["Subscription","Standalone","Order","Consolidation","Invoice","CreditMemo"],"description":"The type of the debit memo source.\n","title":"ExpandedDebitMemoSourceType"},"ExpandedDebitMemoStatus":{"type":"string","enum":["Draft","Posted","Canceled","Error","PendingForTax","Generating","CancelInProgress"],"description":"The status of the debit memo.\n","title":"ExpandedDebitMemoStatus"},"ExpandedDebitMemoTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status of tax calculation related to the debit memo.\n\n\n**Note**: This field is only applicable to tax calculation by\nthird-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. \nIf a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects\nthe issue and voids the tax transaction on the vendor's side.\n","title":"ExpandedDebitMemoTaxStatus"},"ExpandedDebitMemoTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the debit memo was transferred to an external\naccounting system. This field is used for integration with\naccounting systems such as NetSuite.\n","title":"ExpandedDebitMemoTransferredToAccounting"},"NestedDebitMemoItemOnExpandProcessingType":{"type":"string","enum":["0","1"],"description":"The type of the charge for the debit memo item. \n- `0`: charge - `1`: discount\n","title":"NestedDebitMemoItemOnExpandProcessingType"},"NestedDebitMemoItemOnExpandSourceItemType":{"type":"string","enum":["CreditMemoItem","SubscriptionComponent","InvoiceDetail","ProductRatePlanCharge"],"description":"The type of the source item.\n","title":"NestedDebitMemoItemOnExpandSourceItemType"},"NestedDebitMemoItemOnExpandTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.\n","title":"NestedDebitMemoItemOnExpandTaxMode"},"NestedDebitMemoItemOnExpandSubscription":{"type":"object","properties":{},"description":"The subscription associated with the debit memo item.\n","title":"NestedDebitMemoItemOnExpandSubscription"},"NestedDebitMemoItemOnExpandRatePlanCharge":{"type":"object","properties":{},"description":"The rate plan charge associated with the debit memo item.\n","title":"NestedDebitMemoItemOnExpandRatePlanCharge"},"NestedDebitMemoItemOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the debit memo item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the debit memo item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the debit memo item was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the debit memo item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the debit memo item was last updated.\n"},"amount":{"type":"number","format":"double","description":"The amount of the debit memo item. For tax-inclusive debit memo items, the amount indicates the debit memo item amount including tax. For tax-exclusive debit memo items, the amount indicates the debit memo item amount excluding tax.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The debit memo item amount excluding tax.\n"},"appliedToItemId":{"type":"string","description":"The parent debit memo item that this debit memo items is applied to if this item is discount.\n"},"appliedToOthersAmount":{"type":"number","format":"double"},"beAppliedByOthersAmount":{"type":"number","format":"double"},"chargeDate":{"type":"string","format":"date-time","description":"The date when the debit memo item is charged, in `yyyy-mm-dd hh:mm:ss`\nformat.\n"},"creditMemoItemId":{"type":"string"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the debit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"description":{"type":"string","description":"The description of the debit memo item.\n"},"itemShipToContactId":{"description":"The ID of the ship-to contact associated with the debit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the debit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the debit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"processingType":{"$ref":"#/components/schemas/NestedDebitMemoItemOnExpandProcessingType","description":"The type of the charge for the debit memo item. \n- `0`: charge - `1`: discount\n"},"quantity":{"type":"number","format":"double","description":"The number of units for the debit memo item.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set the `excludeItemBillingFromRevenueAccounting` field to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.  \n"},"serviceEndDate":{"type":"string","format":"date","description":"The end date of the service period associated with this debit memo item. Service ends one second before the date specified in this field.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The start date of the service period associated with this debit memo item. If the associated charge is a one-time fee, this date is the date of that charge.\n"},"sku":{"type":"string","description":"The SKU for the product associated with the debit memo item.\n"},"sourceItemType":{"$ref":"#/components/schemas/NestedDebitMemoItemOnExpandSourceItemType","description":"The type of the source item.\n"},"chargeName":{"type":"string","description":"The name of the charge associated with the debit memo item.\n"},"chargeNumber":{"type":"string","description":"The number of the charge associated with the debit memo item.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of tax on this debit memo.\n"},"taxCodeName":{"type":"string","description":"Name of the tax code identifies which tax rules and tax rates to apply to a specific debit memo item.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxMode":{"$ref":"#/components/schemas/NestedDebitMemoItemOnExpandTaxMode","description":"The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.\n"},"unitOfMeasure":{"type":"string","description":"The units to measure usage.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the debit memo item.\n"},"subscriptionId":{"type":"string","description":"The ID of the subscription associated with the debit memo item.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription associated with the debit memo item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item associated with the debit memo item.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge based on which the debit memo item is created.\n"},"ratePlanChargeId":{"type":"string","description":"The ID of the rate plan charge associated with the debit memo item.\n"},"debitMemoId":{"type":"string","description":"The ID of the debit memo to which this debit memo item belongs.\n"},"balance":{"type":"number","format":"double","description":"The balance of the debit memo item.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"The Recognized Revenue accounting code for the credit memo item.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The Account Receivable accounting code for the credit memo item.\n"},"deferredRevenueAccountingCodeId":{"type":"string","description":"The Deferred Revenue accounting code for the credit memo item.\n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this transaction.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the credit memo.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the credit memo.\n"},"subscription":{"$ref":"#/components/schemas/NestedDebitMemoItemOnExpandSubscription","description":"The subscription associated with the debit memo item.\n"},"ratePlanCharge":{"$ref":"#/components/schemas/NestedDebitMemoItemOnExpandRatePlanCharge","description":"The rate plan charge associated with the debit memo item.\n"}},"title":"NestedDebitMemoItemOnExpand"},"ExpandedDebitMemo":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the debit memo.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the debit memo.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the debit memo was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the debit memo.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the debit memo was last updated.\n"},"autoPay":{"type":"boolean","description":"Whether debit memos are automatically picked up for processing in the\ncorresponding payment run.\n\n\nBy default, debit memos are automatically picked up for processing in\nthe corresponding payment run.\n"},"creditMemoId":{"type":["string","null"],"description":"The ID of the credit memo from which the debit memo was created.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of debit memo.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the debit memo.\n\nThe value of this field is `null` if the bill rule [Preserve snapshot of bill-to and sold-to contacts when billing documents are posted](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Billing_Rules#Preserve_snapshot_of_bill-to_and_sold-to_contacts_when_billing_documents_are_posted) is disabled.\n"},"cancelledById":{"type":["string","null"],"description":"The ID of the Zuora user who cancelled the debit memo.\n"},"cancelledOn":{"type":["string","null"],"format":"date-time","description":"The date and time when the debit memo was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comments":{"type":"string","description":"Comments about the debit memo.\n"},"currency":{"type":["string","null"],"description":"The currency of the debit memo.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"discountAmount":{"type":"number","format":"double","description":"The amount of the discount on the debit memo.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for the debit memo is due, in\n`yyyy-mm-dd` format.\n"},"einvoiceErrorCode":{"type":"string","description":"The error code returned when the e-invoice file status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceErrorMessage":{"type":"string","description":"The error message returned when the e-invoice file status is `Failed`. This message can either be a Zuora-generated error message or one returned by a third-party e-invoicing service provider.\n\n**Note**: This field 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"},"einvoiceFileId":{"type":"string","description":"The ID of the e-invoice file generated for the debit memo.\n\n**Note**: This field 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"},"einvoiceStatus":{"$ref":"#/components/schemas/ExpandedDebitMemoEinvoiceStatus","description":"The status of the e-invoice file generation for the credit memo. \n\n- If e-invoice file generation succeeds, this field is either `Generated` or `Success`, and both the error code and message are empty, and the `eInvoiceFileId` field stores the ID of the generated e-invoice file.\n- If the responses from tax vendors such as Sovos or Avalara are \n  taking too long, this field becomes `RetrieveTimeOut`. Once the \n  vendor responds successfully, you can use the 'Resync E-Invoice Status' \n  action to update the status automatically.  You can view these updates \n  in System Health telemetry.\n\n- If a failure occurs during e-invoice file generation, this field is `Failed` and an error code and an error message are returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields. \n- If e-invoice file generation conditionally succeeds, this field is\n `ConditionalSuccess` and an error code and an error message are \n returned respectively in the `einvoiceErrorCode` and `einvoiceErrorMessage` fields.\n\n- If the e-invoice file has been approved by the tax authority, this\n field is `ApprovedByAuthority`. The next status will be either\n  `Success` or `Rejected`.\n\n- If the e-invoice file has been rejected by the government, this field\n is `Rejected`. You cannot resend this e-invoice; you must create a\n  new invoice instead.\n\n\n**Note**: This field 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"},"exchangeRateDate":{"type":"string","format":"date","description":"The date of the exchange rate used. The date is in `yyyy-mm-dd` format.\nCorresponds to the value specified in the Provider Exchange Rate Date column in the Import Foreign Exchange Rates template when you uploaded the rates through the Mass Updater.\n"},"memoDate":{"type":"string","format":"date","description":"The date when the debit memo takes effect, in `yyyy-mm-dd` format.\nFor example, `2024-01-01`.\n"},"memoNumber":{"type":"string","description":"The unique identification number of the debit memo.\n"},"postedById":{"type":"string","description":"The ID of the Zuora user who posted the debit memo.\n"},"postedOn":{"type":"string","format":"date-time","description":"The date and time when the debit memo was posted, in\n`yyyy-mm-dd hh:mm:ss` format.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction. The value\nmust be an existing reason code or empty.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the debit memo.\n\nThe value of this field is `null` if you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled.\n"},"source":{"$ref":"#/components/schemas/ExpandedDebitMemoSource","description":"The source of the debit memo.\nPossible values:\n- `BillRun`: The debit memo is generated by a bill run.\n- `API`\n- `ApiSubscribe`: The debit memo is created by calling the [Create subscription](https://developer.zuora.com/api-references/api/operation/POST_Subscription) and [Create account](https://developer.zuora.com/api-references/api/operation/POST_Account) operation.\n- `ApiAmend`: The debit memo is created by calling the [Update subscription](https://developer.zuora.com/api-references/api/operation/PUT_Subscription) operation.\n- `AdhocFromPrpc`: The debit memo is created from a product rate plan charge through the Zuora UI or by calling the [Create a debit memo from a charge](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromPrpc/) operation.\n- `AdhocFromInvoice`: The debit memo is created from an invoice or created by reversing an invoice. You can create a debit memo from an invoice through the Zuora UI or by calling the [Create a debit memo from an invoice](https://developer.zuora.com/api-references/api/operation/POST_DebitMemoFromInvoice/) operation.\n"},"sourceId":{"type":"string","description":"The ID of the debit memo source.\n\nIf a debit memo is generated from a bill run, the value is the\nnumber of the corresponding bill run. Otherwise, the value is\n`null`.\n"},"sourceType":{"$ref":"#/components/schemas/ExpandedDebitMemoSourceType","description":"The type of the debit memo source.\n"},"status":{"$ref":"#/components/schemas/ExpandedDebitMemoStatus","description":"The status of the debit memo.\n"},"targetDate":{"type":"string","format":"date","description":"The target date for the debit memo, in `yyyy-mm-dd` format. For example, `2024-01-01`.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxMessage":{"type":["string","null"],"description":"The message about the status of tax calculation related to the\ndebit memo. If tax calculation fails in one debit memo, this\nfield displays the reason for the failure.\n"},"taxStatus":{"$ref":"#/components/schemas/ExpandedDebitMemoTaxStatus","description":"The status of tax calculation related to the debit memo.\n\n\n**Note**: This field is only applicable to tax calculation by\nthird-party tax engines. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side. \nIf a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects\nthe issue and voids the tax transaction on the vendor's side.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the\ndebit memo.\n\n**Note**: If you have the Flexible Billing Attributes feature\ndisabled, the value of this field is `null`.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the\ndebit memo.\n\n**Note**: If you have the Flexible Billing Attributes feature\ndisabled, the value of this field is `null`.\n"},"taxAutoCalculation":{"type":"boolean","default":true,"description":"Whether to automatically calculate taxes in the debit memo.\n"},"totalAmount":{"type":"number","format":"double","description":"The total amount of the debit memo, including taxes.\n"},"totalAmountWithoutTax":{"type":"number","format":"double","description":"The total amount of the debit memo, excluding taxes.\n"},"totalTaxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/ExpandedDebitMemoTransferredToAccounting","description":"Whether the debit memo was transferred to an external\naccounting system. This field is used for integration with\naccounting systems such as NetSuite.\n"},"invoiceId":{"type":"string","description":"The ID of a referred invoice.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the debit memo.\n"},"paymentTerm":{"type":"string","description":"The name of the payment term assoicated with the debit memo.\n\n\nThe value of this field is `null` if you have the [Flexible Billing\nAttributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes)\nfeature disabled.\n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"billToContact":{"$ref":"#/components/schemas/ExpandedContact"},"debitMemoItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedDebitMemoItemOnExpand"}},"billToContactSnapshot":{"$ref":"#/components/schemas/NestedContactSnapshotOnExpand"},"soldToContactSnapshot":{"$ref":"#/components/schemas/NestedContactSnapshotOnExpand"},"shipToContactSnapshot":{"$ref":"#/components/schemas/NestedContactSnapshotOnExpand"}},"title":"ExpandedDebitMemo"},"Object_Queries_queryDebitMemos_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedDebitMemo"}}},"title":"Object Queries_queryDebitMemos_Response_200"},"ObjectQueryDebitMemosKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","billtocontact","billtocontactsnapshot","soldtocontactsnapshot","shiptocontactsnapshot","debitmemoitems","debitmemoitems.subscription","debitmemoitems.subscription.account"],"title":"ObjectQueryDebitMemosKeyGetParametersExpandSchemaItems"},"ObjectQueryDebitMemoItemsGetParametersExpandSchemaItems":{"type":"string","enum":["subscription","rateplancharge","subscriptionowner","debittaxationitems"],"title":"ObjectQueryDebitMemoItemsGetParametersExpandSchemaItems"},"ExpandedDebitMemoItemProcessingType":{"type":"string","enum":["0","1"],"description":"The type of the charge for the debit memo item. \n- `0`: charge - `1`: discount\n","title":"ExpandedDebitMemoItemProcessingType"},"ExpandedDebitMemoItemSourceItemType":{"type":"string","enum":["CreditMemoItem","SubscriptionComponent","InvoiceDetail","ProductRatePlanCharge"],"description":"The type of the source item.\n","title":"ExpandedDebitMemoItemSourceItemType"},"ExpandedDebitMemoItemTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.\n","title":"ExpandedDebitMemoItemTaxMode"},"NestedDebitTaxationItemOnExpandTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the debit memo, indicating whether the amount of the debit memo includes tax.\n","title":"NestedDebitTaxationItemOnExpandTaxMode"},"NestedDebitTaxationItemOnExpandTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate.\n","title":"NestedDebitTaxationItemOnExpandTaxRateType"},"NestedDebitTaxationItemOnExpand":{"type":"object","properties":{"balance":{"type":"number","format":"double","description":"The balance of the taxation item.\n"},"creditAmount":{"type":"number","format":"double","description":"The amount of credit memos applied to the debit memo.\n"},"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically a state, province, county, or city. \n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field. \n"},"name":{"type":"string","description":"The name of the taxation item.\n"},"paymentAmount":{"type":"number","format":"double","description":"The amount of payments applied to the debit memo.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a specific debit memo.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"taxDate":{"type":"string","format":"date","description":"The date that the tax is applied to the debit memo, in yyyy-mm-dd format.\n"},"taxMode":{"$ref":"#/components/schemas/NestedDebitTaxationItemOnExpandTaxMode","description":"The tax mode of the debit memo, indicating whether the amount of the debit memo includes tax.\n"},"taxRate":{"type":"string","format":"decimal","description":"The tax rate applied to the debit memo.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/NestedDebitTaxationItemOnExpandTaxRateType","description":"The type of the tax rate.\n"},"debitMemoItemId":{"type":"string","description":"The ID of the debit memo item.\n"},"taxableItemSnapshotId":{"type":"string","description":"The unique identifier of the taxable item snapshot.\n"},"taxationItemId":{"type":"string","description":"The Id of the taxation item.\n"},"id":{"type":"string","description":"The unique identifier of the taxation item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the taxation item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the taxation item was created in the Zuora\nsystem, in the `yyyy-mm-dd hh:mm:ss` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the taxation item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the taxation item was last updated, in the `yyyy-mm-dd hh:mm:ss` format. \n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The accounting code for Account Receivable.\n"}},"title":"NestedDebitTaxationItemOnExpand"},"ExpandedDebitMemoItem":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the debit memo item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the debit memo item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the debit memo item was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the debit memo item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the debit memo item was last updated.\n"},"amount":{"type":"number","format":"double","description":"The amount of the debit memo item. For tax-inclusive debit memo items, the amount indicates the debit memo item amount including tax. For tax-exclusive debit memo items, the amount indicates the debit memo item amount excluding tax.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The debit memo item amount excluding tax.\n"},"appliedToItemId":{"type":"string","description":"The parent debit memo item that this debit memo items is applied to if this item is discount.\n"},"appliedToOthersAmount":{"type":"number","format":"double"},"beAppliedByOthersAmount":{"type":"number","format":"double"},"chargeDate":{"type":"string","format":"date-time","description":"The date when the debit memo item is charged, in `yyyy-mm-dd hh:mm:ss`\nformat.\n"},"creditMemoItemId":{"type":"string"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the debit memo item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"description":{"type":"string","description":"The description of the debit memo item.\n"},"itemShipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the debit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the debit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the debit memo item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"processingType":{"$ref":"#/components/schemas/ExpandedDebitMemoItemProcessingType","description":"The type of the charge for the debit memo item. \n- `0`: charge - `1`: discount\n"},"quantity":{"type":"number","format":"double","description":"The number of units for the debit memo item.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set the `excludeItemBillingFromRevenueAccounting` field to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.  \n"},"serviceEndDate":{"type":"string","format":"date","description":"The end date of the service period associated with this debit memo item. Service ends one second before the date specified in this field.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The start date of the service period associated with this debit memo item. If the associated charge is a one-time fee, this date is the date of that charge.\n"},"sku":{"type":"string","description":"The SKU for the product associated with the debit memo item.\n"},"sourceItemType":{"$ref":"#/components/schemas/ExpandedDebitMemoItemSourceItemType","description":"The type of the source item.\n"},"chargeName":{"type":"string","description":"The name of the charge associated with the debit memo item.\n"},"chargeNumber":{"type":"string","description":"The number of the charge associated with the debit memo item.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of tax on this debit memo.\n"},"taxCodeName":{"type":"string","description":"Name of the tax code identifies which tax rules and tax rates to apply to a specific debit memo item.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxMode":{"$ref":"#/components/schemas/ExpandedDebitMemoItemTaxMode","description":"The tax mode of the debit memo item, indicating whether the amount of the debit memo item includes tax.\n"},"unitOfMeasure":{"type":"string","description":"The units to measure usage.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the debit memo item.\n"},"subscriptionId":{"type":"string","description":"The ID of the subscription associated with the debit memo item.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription associated with the debit memo item.\n"},"invoiceItemId":{"type":"string","description":"The ID of the invoice item associated with the debit memo item.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge based on which the debit memo item is created.\n"},"ratePlanChargeId":{"type":"string","description":"The ID of the rate plan charge associated with the debit memo item.\n"},"debitMemoId":{"type":"string","description":"The ID of the debit memo to which this debit memo item belongs.\n"},"balance":{"type":"number","format":"double","description":"The balance of the debit memo item.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"The Recognized Revenue accounting code for the debit memo item.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The Account Receivable accounting code for the debit memo item.\n"},"deferredRevenueAccountingCodeId":{"type":"string","description":"The Deferred Revenue accounting code for the debit memo item.\n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this debit memo item.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the debit memo.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the debit memo.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the debit memo.\n"},"subscription":{"$ref":"#/components/schemas/NestedSubscriptionOnExpand"},"ratePlanCharge":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpand"},"subscriptionOwner":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"debitTaxationItems":{"$ref":"#/components/schemas/NestedDebitTaxationItemOnExpand"}},"title":"ExpandedDebitMemoItem"},"Object_Queries_queryDebitMemoItems_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedDebitMemoItem"}}},"title":"Object Queries_queryDebitMemoItems_Response_200"},"ObjectQueryDebitMemoItemsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["subscription","rateplancharge","subscriptionowner","debittaxationitems"],"title":"ObjectQueryDebitMemoItemsKeyGetParametersExpandSchemaItems"},"ExpandedDeliveryAdjustmentStatus":{"type":"string","enum":["Billed","Cancelled"],"description":"The status of the delivery adjustment.              \n","title":"ExpandedDeliveryAdjustmentStatus"},"ExpandedDeliveryAdjustmentType":{"type":"string","enum":["DeliveryCredit"],"description":"The type of delivery adjustment.\n","title":"ExpandedDeliveryAdjustmentType"},"ExpandedDeliveryAdjustment":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the delivery adjustment.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the delivery adjustment.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the delivery adjustment was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the delivery adjustment.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the delivery adjustment was last updated.\n"},"adjustmentNumber":{"type":"string","description":"The system-generated delivery adjustment number.\n"},"creditMemoNumber":{"type":"string","description":"Number of the credit memo generated for the delivery adjustment.\n"},"debitMemoNumber":{"type":"string","description":"The Debit Memo generated to write off the Credit Memo for the delivery adjustment.    \n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo generated for the delivery adjustment.\n"},"segmentId":{"type":"string","description":"The ID of the segment on the subscription for which the delivery adjustment is created.\n"},"chargeId":{"type":"string","description":"The charge ID in the subscription for which the delivery\nadjustment is created.\n"},"chargeNumber":{"type":"string","description":"The charge number in the subscription for which the delivery\nadjustment is created.\n"},"subscriptionId":{"type":"string","description":"The ID of the subscription for which the delivery\nadjustment is created.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription for which the delivery adjustment is created.\n"},"originalSubId":{"type":"string","description":"The original subscription ID.\n"},"status":{"$ref":"#/components/schemas/ExpandedDeliveryAdjustmentStatus","description":"The status of the delivery adjustment.              \n"},"numberOfDeliveries":{"type":"number","format":"double","description":"The total number of all delivery adjustments.\n"},"amountPerUnit":{"type":"number","format":"double","description":"The actual charged amount per unit for the delivery adjustment.\n"},"amount":{"type":"number","format":"double","description":"The amount of the delivery adjustment.\n"},"date":{"type":"string","format":"date","description":"The delivery adjustment date, in `yyyy-mm-dd` format.\n"},"deliveryDay":{"type":"string","description":"The delivery adjustment day of the week.\n"},"reason":{"type":"string","description":"The reason for the delivery adjustment.\n"},"type":{"$ref":"#/components/schemas/ExpandedDeliveryAdjustmentType","description":"The type of delivery adjustment.\n"},"accountId":{"type":"string","description":"The ID of the account who owns the delivery adjustment.\n"},"invoiceOwnerAccountId":{"type":"string","description":"The account ID of the invoice owner who owns the delivery adjustment.\n"},"accountingCode":{"type":"string","description":"The accounting code associated with the delivery adjustment.\n"},"deferredAccountingCode":{"type":"string","description":"The accounting code for the deferred revenue, such as Monthly Recurring Liability. \n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for the recognized revenue, such as Monthly\nRecurring Charges or Overage Charges.\n\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue\nschedule.\n\n**Note**: For the credit memo generated by the delivery adjustment, if this field is not specified, the value inherits from the subscription rate plan charge.\n"},"billingDate":{"type":"string","format":"date","description":"The billing date is same as the delivery date of the delivery adjustment, in `yyyy-mm-dd` format.\n"}},"title":"ExpandedDeliveryAdjustment"},"Object_Queries_queryDeliveryAdjustments_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedDeliveryAdjustment"}}},"title":"Object Queries_queryDeliveryAdjustments_Response_200"},"ExpandedFulfillmentFulfillmentType":{"type":"string","enum":["Delivery","Return"],"description":"The type of the fulfillment. \n","title":"ExpandedFulfillmentFulfillmentType"},"ExpandedFulfillmentState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Cancelled"],"description":"The state of the fulfillment. See <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States\" target=\"_blank\">Order Line Item states, Order states, and state transitions</a> for more information.\n","title":"ExpandedFulfillmentState"},"ExpandedFulfillment":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the fulfillment.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the fulfillment.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the fulfillment was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the fulfillment.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the fulfillment was last updated.\n"},"orderLineItemId":{"type":"string","description":"ID of the order line item.\n"},"fulfillmentNumber":{"type":"string","description":"The sytem generated number for the fulfillment."},"fulfillmentType":{"$ref":"#/components/schemas/ExpandedFulfillmentFulfillmentType","description":"The type of the fulfillment. \n"},"fulfillmentDate":{"type":"string","format":"date","description":"The date of the fulfillment.\n"},"quantity":{"type":"number","format":"double","description":"The quantity of the fulfillment.\n"},"state":{"$ref":"#/components/schemas/ExpandedFulfillmentState","description":"The state of the fulfillment. See <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States\" target=\"_blank\">Order Line Item states, Order states, and state transitions</a> for more information.\n"},"trackingNumber":{"type":"string","description":"The tracking number of the fulfillment.\n"},"billTargetDate":{"type":"string","format":"date","description":"The target date for the fulfillment to be picked up by bill run for billing.\n"},"description":{"type":"string","description":"The description of the fulfillment."},"carrier":{"type":"string","description":"The carrier of the fulfillment. The available values can be managed in the Fulfillment Settings page under Billing Settings.\n"},"fulfillmentLocation":{"type":"string","description":"The location of the fulfillment. The available values can be managed in the Fulfillment Settings page under Billing Settings.\n"},"fulfillmentSystem":{"type":"string","description":"The system of the fulfillment. The available values can be managed in the Fulfillment Settings page under Billing Settings.\n"},"externalId":{"type":"string","description":"The external ID of the fulfillment.\n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude fulfillment item from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature enabled. \n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude fulfillment item from revenue accounting.\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Zuora Billing - Revenue Integration</a> feature enabled. \n"}},"title":"ExpandedFulfillment"},"Object_Queries_queryFulfillments_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedFulfillment"}}},"title":"Object Queries_queryFulfillments_Response_200"},"ObjectQueryInvoicesGetParametersExpandSchemaItems":{"type":"string","enum":["account","account.billto","account.soldto","account.shipto","billtocontact","billtocontactsnapshot","soldtocontactsnapshot","shiptocontactsnapshot","invoiceitems","invoiceitems.subscription","invoiceitems.subscription.account"],"title":"ObjectQueryInvoicesGetParametersExpandSchemaItems"},"ExpandedInvoiceSource":{"type":"string","enum":["BillRun","API","ApiSubscribe","ApiAmend"],"description":"The source of the invoice.\n","title":"ExpandedInvoiceSource"},"ExpandedInvoiceSourceType":{"type":"string","enum":["Subscription","Standalone","Order","Consolidation"],"description":"The type of the invoice source.\n","title":"ExpandedInvoiceSourceType"},"ExpandedInvoiceStatus":{"type":"string","enum":["Draft","Posted","Split"],"description":"The status of the invoice.\n\n  **Note:** \n      \n  - The `Split` status is applicable only when you use <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/invoice-management/split-invoices/split-invoices-overview\"\n    target=\"_blank\">Split Invoice feature</a>.\n      \n  - When an invoice is split, its status changes from `Draft` to `Split`, and the newly created invoices retain a reference to the original invoice.\n","title":"ExpandedInvoiceStatus"},"ExpandedInvoiceTaxStatus":{"type":"string","enum":["Complete","Error","UnknownError","DuplicateDoc","InvalidRequest","InvalidResponse","TaxEngineError","ConcurrentModify","InternalServerError","TaxCodeTemplateError","Voided"],"description":"The status that the tax engine return after it calculates the taxes of this invoice. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n","title":"ExpandedInvoiceTaxStatus"},"ExpandedInvoiceTransferredToAccounting":{"type":"string","enum":["Processing","Error","Ignore","Yes","No"],"description":"Whether the invoice was transferred to an external accounting system.\n","title":"ExpandedInvoiceTransferredToAccounting"},"ExpandedInvoiceEInvoiceStatus":{"type":"string","enum":["Processing","RetrieveTimeOut","Generated","Success","Failed","ConditionalSuccess","ApprovedByAuthority","Rejected"],"description":"It could be Processing, RetrieveTimeOut, Generated, Success, ConditionalSuccess, ApprovedByAuthority, Failed, and Rejected. If it’s Failed, it will have an error code and message. If it’s Generated or Success, both error code and message are empty, and eInvoiceFileId stores the file id of e-invoice.\n","title":"ExpandedInvoiceEInvoiceStatus"},"NestedInvoiceItemOnExpandProcessingType":{"type":"string","enum":["0","1","2","3"],"description":"The kind of the charge for the invoice item. \n\n- `0`: charge\n- `1`: discount\n- `2`: prepayment\n- `3`: tax\n","title":"NestedInvoiceItemOnExpandProcessingType"},"NestedInvoiceItemOnExpandSourceItemType":{"type":"string","enum":["SubscriptionComponent","Rounding","ProductRatePlanCharge","None","OrderLineItem"],"description":"The type of the source item.\n","title":"NestedInvoiceItemOnExpandSourceItemType"},"NestedInvoiceItemOnExpandTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n","title":"NestedInvoiceItemOnExpandTaxMode"},"NestedInvoiceItemOnExpandRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"The date when revenue recognition is triggered.\n","title":"NestedInvoiceItemOnExpandRevRecTriggerCondition"},"NestedInvoiceItemOnExpandInvoice":{"type":"object","properties":{},"description":"The invoices to which the invoice item belongs.\n","title":"NestedInvoiceItemOnExpandInvoice"},"NestedInvoiceItemOnExpandSubscription":{"type":"object","properties":{},"description":"The invoice to which the invoice item belongs.\n","title":"NestedInvoiceItemOnExpandSubscription"},"NestedInvoiceItemOnExpandRatePlanCharge":{"type":"object","properties":{},"description":"The rate plan charge associated with the invoice item.\n","title":"NestedInvoiceItemOnExpandRatePlanCharge"},"NestedInvoiceItemOnExpandOrderLineItem":{"type":"object","properties":{},"description":"The order line item associated with the invoice item.\n","title":"NestedInvoiceItemOnExpandOrderLineItem"},"NestedInvoiceItemOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the invoice item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the invoice item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the invoice item was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the invoice item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the invoice item was last updated.\n"},"invoiceId":{"type":"string","description":"The unique identifier of the invoice to which this invoice item belongs.\n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule associated with the rate plan charge on the subscription.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"invoiceScheduleItemId":{"type":"string","description":"The ID of the invoice schedule item that generates this invoice item.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"ratePlanChargeId":{"type":"string","description":"The ID of the rate plan charge associated with the invoice item.\n"},"accountingCode":{"type":"string","description":"The accounting code associated with the invoice item."},"appliedToInvoiceItemId":{"type":"string","description":"The unique ID of the invoice item that the discount charge is applied\nto.\n"},"chargeAmount":{"type":"number","format":"double","description":"The amount of the charge. \n\n**Note**: This amount does not include taxes regardless if the charge's tax mode is inclusive or exclusive. This is the discount amount actually applied when the invoice item is a discount charge.\n"},"chargeDate":{"type":"string","format":"date-time","description":"The date when the invoice item is charged, in `yyyy-mm-dd hh:mm:ss` format.\n"},"chargeName":{"type":"string","description":"The name of the charge."},"chargeNumber":{"type":"string","description":"Number of the charge.\n"},"commitmentChargeNumber":{"type":"string"},"commitmentChargeSegmentNumber":{"type":"string"},"description":{"type":"string","description":"The description of the invoice item."},"discountAmount":{"type":"number","format":"double","description":"The amount of the discount.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the invoice item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"fulfillmentId":{"type":"string","description":"The reference ID of the fulfillment associated with the invoice item.\n"},"itemShipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the invoice item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the invoice item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the invoice item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"processingType":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpandProcessingType","description":"The kind of the charge for the invoice item. \n\n- `0`: charge\n- `1`: discount\n- `2`: prepayment\n- `3`: tax\n"},"quantity":{"type":"number","format":"double","description":"The quantity of this item, in the configured unit of measure for the\ncharge.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set the `excludeItemBillingFromRevenueAccounting` field to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.  \n"},"revRecStartDate":{"type":"string","format":"date"},"serviceEndDate":{"type":"string","format":"date","description":"The end date of the service period for this item, i.e., the last day\nof the service period, as _yyyy-mm-dd_.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The start date of the service period for this item, as _yyyy-mm-dd_.\nFor a one-time fee item, the date of the charge.\n"},"sKU":{"type":"string","description":"The SKU of the product associated with the invoice item.\n"},"sourceItemType":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpandSourceItemType","description":"The type of the source item.\n"},"subscriptionId":{"type":"string","description":"ID of the subscription associated with the invoice item.\n"},"subscriptionNumber":{"type":"string","description":"Number of the subscription associated with the invoice item.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of tax applied to the charge.\n"},"taxCode":{"type":"string","description":"The tax code of the invoice item.\n**Note** Only when taxation feature is enabled, this field can be presented.\n"},"taxExemptAmount":{"type":"number","format":"double"},"taxMode":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpandTaxMode","description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the invoice item.\n\n**Note**: For discount charges, this represents the discount percentage (for percentage-based discounts)  or the discount amount (for fixed-amount discounts). \n"},"uOM":{"type":"string","description":"The unit of measure (UOM) that is configured in **Settings > Billing** for the product rate plan charge.\n"},"balance":{"type":"number","format":"double","description":"The balance of the invoice item.\n\n**Note**: This field is only available if you have the Invoice Settlement feature enabled.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"The number of deliveries dedicated to the Delivery Pricing charges. \n**Note**: This field is available only if you have the Delivery Pricing feature enabled. \n"},"accountReceivableAccountingCodeId":{"type":"string","description":"ID of the account receivable accounting code associated with the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"ID of the recognized revenue accounting code associated with the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"deferredRevenueAccountingCodeId":{"type":"string","description":"ID of the deferred revenue accounting code associated with the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"contractAssetAccountingCodeId":{"type":"string","description":"ID of the accounting code for contract asset. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"contractLiabilityAccountingCodeId":{"type":"string","description":"ID of the accounting code for contract liability. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"contractRecognizedRevenueAccountingCodeId":{"type":"string","description":"ID of the accounting code for contract recognized revenue. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"unbilledReceivablesAccountingCodeId":{"type":"string"},"adjustmentRevenueAccountingCodeId":{"type":"string","description":"The accounting code for adjustment revenue. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"adjustmentLiabilityAccountingCodeId":{"type":"string","description":"ID of the accounting code for adjustment liability. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this invoice item.\n"},"accountId":{"type":"string","description":"The ID of the account associated with the invoice item.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the invoice.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the invoice.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the invoice.\n"},"parentAccountId":{"type":"string","description":"The parent account of the account associated with the invoice.\n\n**Note**: This field is available only if you have <a\nhref=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\"\ntarget=\"_blank\">Customer Hierarchy</a> enabled for your tenant.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the invoice.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the invoice.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the invoice.\n"},"defaultPaymentMethodId":{"type":"string","description":"The ID of the default payment method on the associated account.\n"},"ratePlanId":{"type":"string","description":"The ID of the rate plan that the invoice is created from.\n"},"amendmentId":{"type":"string","description":"The ID of the amendment associated with the subscription. \n\n**Note**: This field is available only if you do not have Orders enabled for your tenant.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the invoice item is created from.\n"},"productRatePlanId":{"type":"string","description":"The ID of the product rate plan that the invoice item is created from.\n"},"productId":{"type":"string","description":"The ID of the product that the invoice item is created from.\n"},"bookingReference":{"type":"string","description":"The booking reference of the invoice item.\n"},"itemType":{"type":"string","description":"The type of the invoice item.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number associated with the invoice item.\n"},"revRecCode":{"type":"string","description":"The revenue recognition code.\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpandRevRecTriggerCondition","description":"The date when revenue recognition is triggered.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The revenue recognition rule of the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"subscriptionOwnerId":{"type":"string","description":"The ID of the subscription owner associated with the invoice item.\n"},"orderLineItemId":{"type":"string","description":"The reference ID of the oder line item associated with the invoice item.\n"},"invoice":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpandInvoice","description":"The invoices to which the invoice item belongs.\n"},"subscription":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpandSubscription","description":"The invoice to which the invoice item belongs.\n"},"ratePlanCharge":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpandRatePlanCharge","description":"The rate plan charge associated with the invoice item.\n"},"orderLineItem":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpandOrderLineItem","description":"The order line item associated with the invoice item.\n"}},"title":"NestedInvoiceItemOnExpand"},"ExpandedInvoice":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the invoice.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the invoice.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the invoice gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the invoice.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the invoice gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the invoice.\n"},"adjustmentAmount":{"type":"number","format":"double","description":"The amount of the invoice adjustments associated with the invoice.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the invoice.\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The invoice amount excluding tax.\n"},"autoPay":{"type":"boolean","description":"Whether invoices are automatically picked up for processing in the corresponding payment run.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of the invoice after all payments, adjustments, and refunds are applied.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the invoice.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the invoice.\n"},"comments":{"type":"string","description":"Comments about the invoice.\n"},"creditBalanceAdjustmentAmount":{"type":"number","format":"double","description":"The currency amount of the adjustment applied to the customer's credit balance.\n\n  **Note:** This field is only available if you have the Credit Balance feature enabled and the Invoice Settlement feature disabled.\n"},"creditMemoAmount":{"type":"number","format":"double","description":"The currency amount of all credit memos applied to this invoice.\n\n**Note:** This field 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"},"currency":{"type":["string","null"],"description":"The currency of the invoice.\n\n**Note:** By default, the currency on a billing document matches the default currency set on the associated account. \nHowever, Zuora now offers a Multiple Currencies feature to support different currencies for billing documents, allowing flexibility beyond the account-level currency. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currency</a>.\n"},"dueDate":{"type":"string","format":"date","description":"The date by which the payment for this invoice is due, in `yyyy-mm-dd` format.\n"},"includesOneTime":{"type":"boolean","description":"Specifies whether the invoice includes one-time charges.\n"},"includesRecurring":{"type":"boolean","description":"Specifies whether the invoice includes recurring charges.\n"},"includesUsage":{"type":"boolean","description":"Specifies whether the invoice includes usage charges.\n"},"invoiceDate":{"type":"string","format":"date","description":"The date that appears on the invoice being created.\n"},"invoiceNumber":{"type":"string","description":"The unique identification number of the invoice.\n"},"lastEmailSentDate":{"type":"string","description":"The date when the invoice was last emailed.\n"},"organizationId":{"type":"string","description":"ID of the organization this object belongs to.\n"},"paymentAmount":{"type":"number","format":"double","description":"The amount of payments applied to the invoice.\n"},"postedBy":{"type":"string","description":"The user ID of the person who moved the invoice to Posted status.\n"},"postedDate":{"type":"string","format":"date-time","description":"The date when the invoice was posted.\n"},"refundAmount":{"type":"number","format":"double","description":"Specifies the amount of a refund that was applied against an earlier payment on the invoice.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the invoice.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the invoice.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the invoice.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the invoice.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the invoice.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the invoice.\n"},"source":{"$ref":"#/components/schemas/ExpandedInvoiceSource","description":"The source of the invoice.\n"},"sourceId":{"type":"string","description":"The ID of the invoice source.\nIf an invoice is generated from a bill run, the value is the number of the corresponding bill run.Otherwise, the value is `null`.\n"},"reversed":{"type":"boolean","description":"Whether the invoice is reversed.\n"},"sourceType":{"$ref":"#/components/schemas/ExpandedInvoiceSourceType","description":"The type of the invoice source.\n"},"status":{"$ref":"#/components/schemas/ExpandedInvoiceStatus","description":"The status of the invoice.\n\n  **Note:** \n      \n  - The `Split` status is applicable only when you use <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/invoice-management/split-invoices/split-invoices-overview\"\n    target=\"_blank\">Split Invoice feature</a>.\n      \n  - When an invoice is split, its status changes from `Draft` to `Split`, and the newly created invoices retain a reference to the original invoice.\n"},"targetDate":{"type":"string","format":"date","description":"This date is used to determine which charges are to be billed. All charges that are to be billed on this date or prior will be included in this bill run.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of taxation.\n"},"taxExemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"taxMessage":{"type":["string","null"],"description":"The message that the tax engine return if it calculates the taxes of this invoice fails.\n"},"taxStatus":{"$ref":"#/components/schemas/ExpandedInvoiceTaxStatus","description":"The status that the tax engine return after it calculates the taxes of this invoice. Also, the `Voided` status indicates that the tax transaction is successfully canceled on the tax vendor's side.  If a tax transaction was successfully committed to the third-party tax engine but the invoice failed to post, Zuora automatically detects the issue and voids the tax transaction on the vendor's side.\n"},"templateId":{"type":"string","description":"The ID of the invoice template.\n\n- If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature enabled, the value of this field depends on the configuration of the invoice template. \n  - If you specify an invoice template at the subscription level, the value of this field is automatically populated from the corresponding subscription.\n  - If you do not specify any invoice template at the subscription level, the value of this field is automatically populated from the corresponding account.\n- If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/ExpandedInvoiceTransferredToAccounting","description":"Whether the invoice was transferred to an external accounting system.\n"},"eInvoiceStatus":{"$ref":"#/components/schemas/ExpandedInvoiceEInvoiceStatus","description":"It could be Processing, RetrieveTimeOut, Generated, Success, ConditionalSuccess, ApprovedByAuthority, Failed, and Rejected. If it’s Failed, it will have an error code and message. If it’s Generated or Success, both error code and message are empty, and eInvoiceFileId stores the file id of e-invoice.\n"},"eInvoiceFileId":{"type":"string","description":"The ID of the e-invoice file.\n"},"eInvoiceErrorCode":{"type":"string","description":"The error code when status is `Failed`. This code can either be a Zuora-generated error code or one returned by a third-party e-invoice vendor.\n"},"eInvoiceErrorMessage":{"type":"string","description":"The error message when status is \"Failed\". This message can either be a Zuora-generated error code or one returned by a third-party e-invoice vendor.\n"},"paymentLink":{"type":"string","description":"A link to the Payment Link page where the customer can pay the invoice.\n\nThe link is generated only if the invoice is posted after enabling the Payment Link feature on your tenant.\n\n**Note**: The Payment Link feature is in the Early Adopter phase. \nYou can enable the Payment Link feature through a self-service configuration in the **Manage Features** setting for Zuora Payments.\n"},"paymentTerm":{"type":"string","description":"The payment term associated with the invoice. The payment term determines the due dates of\ninvoices.\n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"billToContact":{"$ref":"#/components/schemas/ExpandedContact"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpand"}},"billToContactSnapshot":{"$ref":"#/components/schemas/NestedContactSnapshotOnExpand"},"soldToContactSnapshot":{"$ref":"#/components/schemas/NestedContactSnapshotOnExpand"},"shipToContactSnapshot":{"$ref":"#/components/schemas/NestedContactSnapshotOnExpand"}},"title":"ExpandedInvoice"},"Object_Queries_queryInvoices_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedInvoice"}}},"title":"Object Queries_queryInvoices_Response_200"},"ObjectQueryInvoicesKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","account.billto","account.soldto","account.shipto","billtocontact","billtocontactsnapshot","soldtocontactsnapshot","shiptocontactsnapshot","invoiceitems","invoiceitems.subscription","invoiceitems.subscription.account"],"title":"ObjectQueryInvoicesKeyGetParametersExpandSchemaItems"},"ObjectQueryInvoiceItemsGetParametersExpandSchemaItems":{"type":"string","enum":["invoice","subscription","subscriptionowner","taxationitems","rateplancharge","orderlineitem"],"title":"ObjectQueryInvoiceItemsGetParametersExpandSchemaItems"},"ExpandedInvoiceItemProcessingType":{"type":"string","enum":["0","1","2","3"],"description":"The kind of the charge for the invoice item. \n\n- `0`: charge\n- `1`: discount\n- `2`: prepayment\n- `3`: tax\n","title":"ExpandedInvoiceItemProcessingType"},"ExpandedInvoiceItemSourceItemType":{"type":"string","enum":["SubscriptionComponent","Rounding","ProductRatePlanCharge","None","OrderLineItem"],"description":"The type of the source item.\n","title":"ExpandedInvoiceItemSourceItemType"},"ExpandedInvoiceItemTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n","title":"ExpandedInvoiceItemTaxMode"},"ExpandedInvoiceItemRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"The date when revenue recognition is triggered.\n","title":"ExpandedInvoiceItemRevRecTriggerCondition"},"ExpandedTaxationItemTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"The mode of the tax.\n","title":"ExpandedTaxationItemTaxMode"},"ExpandedTaxationItemTaxRateType":{"type":"string","enum":["Percentage","FlatFee"],"description":"The type of the tax rate applied to the billing document.\n","title":"ExpandedTaxationItemTaxRateType"},"ExpandedTaxationItem":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the taxation item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the taxation item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the taxation item was created in the Zuora\nsystem, in the `yyyy-mm-dd hh:mm:ss` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the taxation item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the taxation item was last updated, in the `yyyy-mm-dd hh:mm:ss` format. \n"},"creditAmount":{"type":"number","format":"double","description":"The amount of credit memos applied to the taxation item. \n"},"accountingCode":{"type":"string","description":"The accounting code that maps to the taxation item in your accounting system.\n"},"exemptAmount":{"type":"number","format":"double","description":"The calculated tax amount excluded due to the exemption.\n"},"invoiceItemId":{"type":"string","description":"The unique identifier of the invoice item to which the taxation item belongs.\n"},"jurisdiction":{"type":"string","description":"The jurisdiction that applies the tax or VAT. This value is typically\na state, province, county, or city.\n"},"locationCode":{"type":"string","description":"The identifier for the location based on the value of the `taxCode` field. \n"},"name":{"type":"string","description":"The name of the taxation item. \n"},"paymentAmount":{"type":"number","format":"double","description":"The amount of payment applied to the invoice or debit memo. \n"},"taxAmount":{"type":"number","format":"double","description":"The amount of the tax applied to the billing document.\n"},"taxAmountUnrounded":{"type":"number","format":"double","description":"The amount of the tax applied to the billing document before rounding.\n"},"countryCode":{"type":"string","description":"The code of country to which the taxation item.\n"},"taxCodeDescription":{"type":"string","description":"The description of the tax code.\n"},"customerCode":{"type":"string","description":"The customer code. This field is only available if you are using one of the Vertex Tax Connector apps.\n"},"exemptCertificate":{"type":"string","description":"The tax exemption certificate that the customer holds. Applicable if you use Zuora Tax or Connect tax engines.\n"},"sellerRegistration":{"type":"string","description":"Your seller registration code. This field is only available if you are using the OneSource Determination app.\n"},"taxDescription":{"type":"string","description":"The description of the tax.\n"},"taxRuleId":{"type":"string","description":"The unique identifier of the tax rule.\n"},"taxCode":{"type":"string","description":"The tax code identifies which tax rules and tax rates to apply to a\nspecific billing document.\n"},"taxMode":{"$ref":"#/components/schemas/ExpandedTaxationItemTaxMode","description":"The mode of the tax.\n"},"taxDate":{"type":"string","format":"date","description":"The date when the tax is applied to the billing document.\n"},"taxRate":{"type":"number","format":"double","description":"The tax rate applied to the billing document.\n"},"taxRateDescription":{"type":"string","description":"The description of the tax rate.\n"},"taxRateType":{"$ref":"#/components/schemas/ExpandedTaxationItemTaxRateType","description":"The type of the tax rate applied to the billing document.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance on the taxation item.\n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this transaction.\n"},"salesTaxPayableAccountingCodeId":{"type":"string","description":"The accounting code for Sales Tax Payable.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The accounting code for Account Receivable.\n"},"taxableItemSnapshotId":{"type":"string","description":"The unique identifier of the taxable item snapshot.\n"},"periodEndDate":{"type":"string","format":"date","description":"The end date of the period to which the taxation item belongs.\n"},"periodStartDate":{"type":"string","format":"date","description":"The start date of the period to which the taxation item belongs.\n"},"taxableAmount":{"type":"number","format":"double","description":"The taxable amount of the taxation item.\n"}},"title":"ExpandedTaxationItem"},"NestedOrderLineItemOnExpandItemState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Cancelled"],"description":"The state of the Order Line Item (OLI). See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n\nTo generate invoice for an OLI, you must set this field to `SentToBilling` and set the `billTargetDate` field .\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` or 'Booked' or `SentToBilling`state (when the `itemState` field is set as `Executing` or `SentToBilling`).\n","title":"NestedOrderLineItemOnExpandItemState"},"NestedOrderLineItemOnExpandItemType":{"type":"string","enum":["Product","Fee","Services"],"description":"The type of the Order Line Item (OLI). \n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n","title":"NestedOrderLineItemOnExpandItemType"},"NestedOrderLineItemOnExpandTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n","title":"NestedOrderLineItemOnExpandTaxMode"},"NestedOrderLineItemOnExpandItemCategory":{"type":"string","enum":["Sales","Return"],"default":"Sales","description":"The category of the Order Line Item, to indicate a product sale or return.\n","title":"NestedOrderLineItemOnExpandItemCategory"},"NestedOrderLineItemOnExpandBillingRule":{"type":"string","enum":["TriggerWithoutFulfillment","TriggerAsFulfillmentOccurs"],"description":"The billing rule of the Order Line Item.\n","title":"NestedOrderLineItemOnExpandBillingRule"},"NestedOrderLineItemOnExpandInlineDiscountType":{"type":"string","enum":["Percentage","FixedAmount","None"],"description":"This field is used to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nThis field is used together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n","title":"NestedOrderLineItemOnExpandInlineDiscountType"},"NestedOrderLineItemOnExpandInvoiceItemsItems":{"type":"object","properties":{},"title":"NestedOrderLineItemOnExpandInvoiceItemsItems"},"NestedOrderLineItemOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the order line item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the order line item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the order line item gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the order line item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the order line item was last updated.\n"},"accountingCode":{"type":["string","null"],"description":"The accountingCode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"billTargetDate":{"type":"string","format":"date","description":"The target date for the Order Line Item (OLI) to be picked up by bill run for generating billing documents.\n\nTo generate billing documents for an OLI, you must set this field and set the `itemState` field to `SentToBilling`.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"amountPerUnit":{"type":"number","format":"double","description":"The actual charged amount per unit for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"description":{"type":"string","description":"The description of the Order Line Item.\n"},"amount":{"type":"number","format":"double","description":"The total amount for the Order Line Item (OLI).\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The total amount for the Order Line Item (OLI) excluding tax.\n"},"itemName":{"type":"string","description":"The name of the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"itemNumber":{"type":"string","description":"The number for the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"itemState":{"$ref":"#/components/schemas/NestedOrderLineItemOnExpandItemState","description":"The state of the Order Line Item (OLI). See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n\nTo generate invoice for an OLI, you must set this field to `SentToBilling` and set the `billTargetDate` field .\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` or 'Booked' or `SentToBilling`state (when the `itemState` field is set as `Executing` or `SentToBilling`).\n"},"itemType":{"$ref":"#/components/schemas/NestedOrderLineItemOnExpandItemType","description":"The type of the Order Line Item (OLI). \n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"listPricePerUnit":{"type":"number","format":"double","description":"The list price per unit for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"listPrice":{"type":"number","format":"double","description":"The extended list price for an order line item, calculated by the formula:\nlistPrice = listPricePerUnit * quantity\n"},"orderId":{"type":"string","description":"The ID of the order that the order line item belongs to.\n"},"productCode":{"type":"string","description":"The product code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"purchaseOrderNumber":{"type":"string","description":"Used by customers to specify the Purchase Order Number provided by the buyer.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"quantity":{"type":"number","format":"double","description":"The quantity of units, such as the number of authors in a hosted wiki service.\n\nYou can update this field for a sales or return OLI only when the OLI in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"revenueRecognitionRule":{"type":"string","description":"The Revenue Recognition rule for the Order Line Item.\n"},"productRatePlanChargeId":{"type":"string","description":"ID of a Product Rate Plan Charge. Only one-time charges are supported.\n"},"billToId":{"type":"string","description":"The ID of a contact that belongs to the billing account of the order line item. Use this field to assign an existing account as the bill-to contact of an order line item.\n"},"billToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the bill-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `billToSnapshotId` field is exposed while retrieving the order line item details.\n"},"shipTo":{"type":"string","description":"The ID of a contact that belongs to the owner acount or billing account of the order line item. Use this field to assign an existing account as the ship-to contact of an order line item.\n"},"shipToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the ship-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `shipToSnapshotId` field is exposed while retrieving the order line item details.\n"},"soldTo":{"type":"string","description":"The ID of a contact that belongs to the owner acount or billing account of the order line item. Use this field to assign an existing account as the sold-to contact of an order line item.\n"},"soldToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the sold-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `soldToSnapshotId` field is exposed while retrieving the order line item details.\n"},"soldToOrderContactId":{"type":"string","description":"The ID of the sold-to contact for the order.\n"},"ownerAccountId":{"type":"string","description":"The account ID of the owner of the order line item.\n"},"invoiceOwnerAccountId":{"type":"string","description":"The account ID of the invoice owner of the order line item.\n"},"taxCode":{"type":"string","description":"The tax code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"taxMode":{"$ref":"#/components/schemas/NestedOrderLineItemOnExpandTaxMode","description":"The tax mode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"transactionDate":{"type":"string","format":"date","description":"The date when the transaction occurs.\n"},"uOM":{"type":"string","description":"Specifies the units to measure usage.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"relatedSubscriptionNumber":{"type":"string","description":"This field is used to relate an order line item to an subscription. \n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"transactionEndDate":{"type":"string","format":"date","description":"The date a transaction is completed. The default value of this field is the transaction start date. Also, the value of this field should always equal or be later than the value of the `transactionStartDate` field.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"transactionStartDate":{"type":"string","format":"date","description":"The date a transaction starts. The default value of this field is the order date.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"originalOrderDate":{"type":"string","format":"date","description":"The date of the original sale order for a return order line item.\n"},"amendedByOrderOn":{"type":"string","format":"date","description":"The date of the amended order for a return order line item.\n"},"itemCategory":{"$ref":"#/components/schemas/NestedOrderLineItemOnExpandItemCategory","default":"Sales","description":"The category of the Order Line Item, to indicate a product sale or return.\n"},"originalOrderId":{"type":"string","description":"The ID of the original sale order for a return order line item. \n"},"originalOrderLineItemId":{"type":"string","description":"The ID of the original sale order line item for a return order line item. \n"},"originalOrderLineItemNumber":{"type":"string","description":"The number of the original sale order line item for a return order line item. \n"},"originalOrderNumber":{"type":"string","description":"The number of the original sale order for a return order line item. \n"},"quantityAvailableForReturn":{"type":"number","format":"double","description":"The quantity that can be returned for an order line item. \n"},"quantityFulfilled":{"type":"number","format":"double","description":"The fulfilled quantity for an order line item.\n"},"quantityPendingFulfillment":{"type":"number","format":"double","description":"The quantity to fulfill for an order line item. \n"},"requiresFulfillment":{"type":"boolean","description":"The flag to show whether fulfillment is needed or not. It's derived from billing rule of the Order Line Item.\n"},"billingRule":{"$ref":"#/components/schemas/NestedOrderLineItemOnExpandBillingRule","description":"The billing rule of the Order Line Item.\n"},"inlineDiscountPerUnit":{"type":"number","format":"double","description":"This field is used in accordance with the `inlineDiscountType` field, in the following manner:\n* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.\n* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.\n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"inlineDiscountType":{"$ref":"#/components/schemas/NestedOrderLineItemOnExpandInlineDiscountType","description":"This field is used to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nThis field is used together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"discount":{"type":"number","format":"double","description":"This field shows the total discount amount that is applied to an order line item after the `inlineDiscountType`, `inlineDiscountPerUnit` and `quantity` fields are set.\n\nThe inline discount is applied to the list price of an order line item.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"The recognized revenue accounting code for the Order Line Item.\n"},"deferredRevenueAccountingCodeId":{"type":"string","description":"The deferred revenue accounting code for the Order Line Item.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"contractRecognizedRevenueAccountingCodeId":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"unbilledReceivablesAccountingCodeId":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"adjustmentRevenueAccountingCodeId":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"adjustmentLiabilityAccountingCodeId":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedOrderLineItemOnExpandInvoiceItemsItems"},"description":"The invoice item associated with the order line item."}},"title":"NestedOrderLineItemOnExpand"},"ExpandedInvoiceItem":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the invoice item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the invoice item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the invoice item was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the invoice item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the invoice item was last updated.\n"},"invoiceId":{"type":"string","description":"The unique identifier of the invoice to which this invoice item belongs.\n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule associated with the rate plan charge on the subscription.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"invoiceScheduleItemId":{"type":"string","description":"The ID of the invoice schedule item that generates this invoice item.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\" target=\"_blank\">Billing Schedule</a> feature enabled.\n"},"ratePlanChargeId":{"type":"string","description":"The ID of the rate plan charge associated with the invoice item.\n"},"accountingCode":{"type":"string","description":"The accounting code associated with the invoice item."},"appliedToInvoiceItemId":{"type":"string","description":"The unique ID of the invoice item that the discount charge is applied\nto.\n"},"chargeAmount":{"type":"number","format":"double","description":"The amount of the charge. \n\n**Note**: This amount does not include taxes regardless if the charge's tax mode is inclusive or exclusive. This is the discount amount actually applied when the invoice item is a discount charge.\n"},"chargeDate":{"type":"string","format":"date-time","description":"The date when the invoice item is charged, in `yyyy-mm-dd hh:mm:ss` format.\n"},"chargeName":{"type":"string","description":"The name of the charge."},"chargeNumber":{"type":"string","description":"Number of the charge.\n"},"commitmentChargeNumber":{"type":"string"},"commitmentChargeSegmentNumber":{"type":"string"},"description":{"type":"string","description":"The description of the invoice item."},"discountAmount":{"type":"number","format":"double","description":"The amount of the discount.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the invoice item from revenue accounting.\n\n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"fulfillmentId":{"type":"string","description":"The reference ID of the fulfillment associated with the invoice item.\n"},"itemShipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the invoice item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the invoice item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"itemSoldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the invoice item.\n\n**Note**: If you have the Flexible Billing Attributes feature disabled, the value of this field is `null`.\n"},"processingType":{"$ref":"#/components/schemas/ExpandedInvoiceItemProcessingType","description":"The kind of the charge for the invoice item. \n\n- `0`: charge\n- `1`: discount\n- `2`: prepayment\n- `3`: tax\n"},"quantity":{"type":"number","format":"double","description":"The quantity of this item, in the configured unit of measure for the\ncharge.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set the `excludeItemBillingFromRevenueAccounting` field to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.  \n"},"revRecStartDate":{"type":"string","format":"date"},"serviceEndDate":{"type":"string","format":"date","description":"The end date of the service period for this item, i.e., the last day\nof the service period, as _yyyy-mm-dd_.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The start date of the service period for this item, as _yyyy-mm-dd_.\nFor a one-time fee item, the date of the charge.\n"},"sKU":{"type":"string","description":"The SKU of the product associated with the invoice item.\n"},"sourceItemType":{"$ref":"#/components/schemas/ExpandedInvoiceItemSourceItemType","description":"The type of the source item.\n"},"subscriptionId":{"type":"string","description":"ID of the subscription associated with the invoice item.\n"},"subscriptionNumber":{"type":"string","description":"Number of the subscription associated with the invoice item.\n"},"taxAmount":{"type":"number","format":"double","description":"The amount of tax applied to the charge.\n"},"taxCode":{"type":"string","description":"The tax code of the invoice item.\n**Note** Only when taxation feature is enabled, this field can be presented.\n"},"taxExemptAmount":{"type":"number","format":"double"},"taxMode":{"$ref":"#/components/schemas/ExpandedInvoiceItemTaxMode","description":"The tax mode of the invoice item, indicating whether the amount of the invoice item includes tax.\n"},"unitPrice":{"type":"number","format":"double","description":"The per-unit price of the invoice item.\n\n**Note**: For discount charges, this represents the discount percentage (for percentage-based discounts) \n  or the discount amount (for fixed-amount discounts).\n"},"uOM":{"type":"string","description":"The unit of measure (UOM) that is configured in **Settings > Billing** for the product rate plan charge.\n"},"balance":{"type":"number","format":"double","description":"The balance of the invoice item.\n\n**Note**: This field is only available if you have the Invoice Settlement feature enabled.\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"The number of deliveries dedicated to the Delivery Pricing charges. \n**Note**: This field is available only if you have the Delivery Pricing feature enabled. \n"},"accountReceivableAccountingCodeId":{"type":"string","description":"ID of the account receivable accounting code associated with the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"ID of the recognized revenue accounting code associated with the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"deferredRevenueAccountingCodeId":{"type":"string","description":"ID of the deferred revenue accounting code associated with the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"contractAssetAccountingCodeId":{"type":"string","description":"ID of the accounting code for contract asset. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"contractLiabilityAccountingCodeId":{"type":"string","description":"ID of the accounting code for contract liability. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"contractRecognizedRevenueAccountingCodeId":{"type":"string","description":"ID of the accounting code for contract recognized revenue. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"unbilledReceivablesAccountingCodeId":{"type":"string"},"adjustmentRevenueAccountingCodeId":{"type":"string","description":"The accounting code for adjustment revenue. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"adjustmentLiabilityAccountingCodeId":{"type":"string","description":"ID of the accounting code for adjustment liability. \n      \n**Note**: This field is only available if you have the Billing - Revenue Integration feature enabled. \n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this invoice item.\n"},"accountId":{"type":"string","description":"The ID of the account associated with the invoice item.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot associated with the invoice.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot associated with the invoice.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot associated with the invoice.\n"},"parentAccountId":{"type":"string","description":"The parent account of the account associated with the invoice.\n\n**Note**: This field is available only if you have <a\nhref=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\"\ntarget=\"_blank\">Customer Hierarchy</a> enabled for your tenant.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the invoice.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the invoice.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the invoice.\n"},"defaultPaymentMethodId":{"type":"string","description":"The ID of the default payment method on the associated account.\n"},"ratePlanId":{"type":"string","description":"The ID of the rate plan that the invoice is created from.\n"},"amendmentId":{"type":"string","description":"The ID of the amendment associated with the subscription. \n\n**Note**: This field is available only if you do not have Orders enabled for your tenant.\n"},"productRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the invoice item is created from.\n"},"productRatePlanId":{"type":"string","description":"The ID of the product rate plan that the invoice item is created from.\n"},"productId":{"type":"string","description":"The ID of the product that the invoice item is created from.\n"},"bookingReference":{"type":"string","description":"The booking reference of the invoice item.\n"},"itemType":{"type":"string","description":"The type of the invoice item.\n"},"purchaseOrderNumber":{"type":"string","description":"The purchase order number associated with the invoice item.\n"},"revRecCode":{"type":"string","description":"The revenue recognition code.\n"},"revRecTriggerCondition":{"$ref":"#/components/schemas/ExpandedInvoiceItemRevRecTriggerCondition","description":"The date when revenue recognition is triggered.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The revenue recognition rule of the invoice item.\n\n**Note:** This field is only available if you have Zuora Finance enabled.\n"},"orderLineItemId":{"type":"string","description":"The reference ID of the oder line item associated with the invoice item.\n"},"subscriptionOwnerId":{"type":"string","description":"The ID of the subscription owner associated with the invoice item.\n"},"invoice":{"$ref":"#/components/schemas/NestedInvoiceOnExpand"},"subscription":{"$ref":"#/components/schemas/NestedSubscriptionOnExpand"},"taxationItems":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedTaxationItem"}},"ratePlanCharge":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpand"},"orderLineItem":{"$ref":"#/components/schemas/NestedOrderLineItemOnExpand"},"subscriptionOwner":{"$ref":"#/components/schemas/NestedAccountOnExpand"}},"title":"ExpandedInvoiceItem"},"Object_Queries_queryInvoiceItems_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedInvoiceItem"}}},"title":"Object Queries_queryInvoiceItems_Response_200"},"ObjectQueryInvoiceItemsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["invoice","subscription","subscriptionowner","taxationitems","rateplancharge","orderlineitem"],"title":"ObjectQueryInvoiceItemsKeyGetParametersExpandSchemaItems"},"ObjectQueryInvoiceSchedulesGetParametersExpandSchemaItems":{"type":"string","enum":["invoicescheduleitems","invoicescheduleitems.invoice","invoicescheduleitems.creditmemo","invoiceschedulebookings","invoiceschedulebookings.order","invoiceschedulebookings.subscription","rateplancharges"],"title":"ObjectQueryInvoiceSchedulesGetParametersExpandSchemaItems"},"ExpandedInvoiceScheduleStatus":{"type":"string","enum":["Pending","PartiallyProcessed","Paused","FullyProcessed"],"description":"The status of the invoice schedule.\n","title":"ExpandedInvoiceScheduleStatus"},"NestedInvoiceScheduleItemOnExpandStatus":{"type":"string","enum":["Pending","Executing","Processed"],"description":"The status of the invoice schedule item.\n","title":"NestedInvoiceScheduleItemOnExpandStatus"},"NestedInvoiceScheduleItemOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the invoice schedule item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the invoice schedule item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the invoice schedule item was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the invoice schedule item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the invoice schedule item was last updated.\n"},"amount":{"type":"string","format":"number","description":"The amount of the invoice generated during the processing of the invoice schedule item.\n\nYou can only specify either the `amount` field or `percentage` field in one request. \n\n- If you choose to specify the `amount` field in the request, `null` is returned as the value of the `percentage` field in the corresponding response. \n\n- If you choose to specify the `percentage` field in the request, the value of the `amount` field returned in the corresponding response is calculated based on the percentage of the total amount.\n\nThe value of this field keeps unchanged once invoice schedule items are created. \n"},"percentage":{"type":"number","format":"double","description":"The percentage of the total amount to be billed during the processing of the invoice schedule item.\n\nYou can only specify either the `amount` field or `percentage` field in one request. \n\n- If you choose to specify the `amount` field in the request, `null` is returned as the value of the `percentage` field in the corresponding response. \n\n- If you choose to specify the `percentage` field in the request, the value of the `amount` field returned in the corresponding response is calculated based on the percentage of the total amount.\n"},"actualAmount":{"type":"string","format":"number","description":"The actual amount that needs to be billed during the processing of the invoice schedule item.\n\nBy default, the actual amount is the same as the total amount. Even if order changes occur like Remove Product or Cancel Subscription, the value of the `amount` field keeps unchanged. The value of the `actualAmount` field reflects the actual amount to be billed.\n"},"runDate":{"type":"string","format":"date","description":"The date in the tenant's time zone when the invoice schedule item is processed to generate an invoice.\n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule that the invoice schedule item belongs to.\n"},"invoiceId":{"type":"string","description":"The ID of the invoice that is generated during the processing of the invoice schedule item.\n"},"creditMemoId":{"type":"string","description":"The ID of the credit memo that is generated during the processing of the invoice schedule item.\n"},"status":{"$ref":"#/components/schemas/NestedInvoiceScheduleItemOnExpandStatus","description":"The status of the invoice schedule item.\n"},"name":{"type":"string","maxLength":100,"description":"The name of the invoice schedule item.\n"},"sequenceNumber":{"type":"string","description":"The sequence number of the invoice schedule item.\n"},"targetDateForAdditionalSubscriptions":{"type":"string","format":"date","description":"The date in the tenant's time zone used by the invoice schedule to determine which fixed-period regular charges to be billed together with the invoice schedule item. \n\nThe regular charges must come from the subscriptions specified in the `additionalSubscriptionsToBill` field on the associated invoice schedule.\n"}},"title":"NestedInvoiceScheduleItemOnExpand"},"NestedInvoiceScheduleBookingOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the invoice schedule booking.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the invoice schedule booking.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the invoice schedule booking was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the invoice schedule booking.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the invoice schedule booking was last updated.\n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule that the invoice schedule booking belongs to.\n"},"orderId":{"type":"string","description":"The ID of the order associated with the invoice schedule.\n"},"orderNumber":{"type":"string","description":"The number of the order associated with the invoice schedule.\n"},"subscriptionId":{"type":"string","description":"The ID of the subscription contained in the order associated with the invoice schedule.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription contained in the order associated with the invoice schedule.\n"},"chargeNumbers":{"type":"string","description":"A list of charges in the subscription that are chosen to be included in the invoice schedule.\n"}},"title":"NestedInvoiceScheduleBookingOnExpand"},"ExpandedInvoiceSchedule":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the invoice schedule.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the invoice schedule.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the invoice schedule was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the invoice schedule.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the invoice schedule was last updated.\n"},"totalAmount":{"type":"number","format":"double","description":"The total amount that needs to be billed during the processing of the invoice schedule. \n\nThe value of this field keeps unchanged once invoice schedule items are created.\n"},"actualAmount":{"type":"number","format":"double","description":"The actual amount that needs to be billed during the processing of the invoice schedule.\n\nBy default, the actual amount is the same as the total amount. Even if order changes occur like Remove Product or Cancel Subscription, the value of the `totalAmount` field keeps unchanged. The value of the `actualAmount` field reflects the actual amount to be billed.\n"},"billedAmount":{"type":"number","format":"double","description":"The amount that has been billed during the processing of the invoice schedule.\n"},"unbilledAmount":{"type":"number","format":"double","description":"The amount that is waiting to be billed during the processing of the invoice schedule.\n"},"nextRunDate":{"type":"string","format":"date","description":"The run date of the next execution of invoice schedule. By default, the next run date is the same as run date of next pending invoice schedule item. \nIt can be overwritten with a different date other than the default value. When the invoice schedule has completed the execution, the next run date is null.\n"},"number":{"type":"string","description":"The sequence number of the invoice schedule. \n"},"notes":{"type":"string","maxLength":255,"description":"Comments on the invoice schedule.\n"},"accountId":{"type":"string","description":"The ID of the customer account that the invoice schedule belongs to.\n"},"status":{"$ref":"#/components/schemas/ExpandedInvoiceScheduleStatus","description":"The status of the invoice schedule.\n"},"additionalSubscriptionsToBill":{"type":"string","description":"A list of the numbers of the subscriptions that need to be billed together with the invoice schedule. \n\nOne invoice schedule can have at most 600 additional subscriptions.\n"},"currency":{"type":"string","description":"The currency of the billing documents generated during the processing of the invoice schedule.\n\n**Note**: \n- This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Leverage_advanced_capabilities/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n\n- If you have the Multiple Currencies feature disabled, the corresponding account's default currency is always used.\n"},"invoiceScheduleItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedInvoiceScheduleItemOnExpand"}},"invoiceScheduleBookings":{"type":"array","items":{"$ref":"#/components/schemas/NestedInvoiceScheduleBookingOnExpand"}},"ratePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpand"}}},"title":"ExpandedInvoiceSchedule"},"Object_Queries_queryInvoiceSchedules_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedInvoiceSchedule"}}},"title":"Object Queries_queryInvoiceSchedules_Response_200"},"ObjectQueryInvoiceSchedulesKeyGetParametersExpandSchemaItems":{"type":"string","enum":["invoicescheduleitems","invoicescheduleitems.invoice","invoicescheduleitems.creditmemo","invoiceschedulebookings","invoiceschedulebookings.order","invoiceschedulebookings.subscription","rateplancharges"],"title":"ObjectQueryInvoiceSchedulesKeyGetParametersExpandSchemaItems"},"ObjectQueryOrderActionsGetParametersExpandSchemaItems":{"type":"string","enum":["subscription","order"],"title":"ObjectQueryOrderActionsGetParametersExpandSchemaItems"},"ExpandedOrderActionType":{"type":"string","enum":["CreateSubscription","TermsAndConditions","AddProduct","UpdateProduct","RemoveProduct","RenewSubscription","CancelSubscription","OwnerTransfer","Suspend","Resume","ChangePlan"],"description":"Type of the order action.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n","title":"ExpandedOrderActionType"},"ExpandedOrderActionRenewSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"default":"RENEW_WITH_SPECIFIC_TERM","description":"Specifies whether a termed subscription will remain termed or change to evergreen when it is renewed.\n","title":"ExpandedOrderActionRenewSetting"},"ExpandedOrderActionRenewalTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"default":"Month","description":"The period type for the subscription renewal term.\n\nThis field is used with the `renewalTerm` field to specify the subscription renewal term.\n","title":"ExpandedOrderActionRenewalTermPeriodType"},"ExpandedOrderActionTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"The type of the subscription term.\n","title":"ExpandedOrderActionTermType"},"ExpandedOrderActionCurrentTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"default":"Month","description":"The period type for the current subscription term.\n","title":"ExpandedOrderActionCurrentTermPeriodType"},"ExpandedOrderActionCancellationPolicy":{"type":"string","enum":["EndOfCurrentTerm","EndOfLastInvoicePeriod","SpecificDate"],"description":"Cancellation method. \n","title":"ExpandedOrderActionCancellationPolicy"},"ExpandedOrderActionSubType":{"type":"string","enum":["Upgrade","Downgrade","Crossgrade","PlanChanged"],"description":"The sub type for the change plan order action.\n\nIf this field was not set by user, the field is automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n","title":"ExpandedOrderActionSubType"},"ExpandedOrderActionEffectivePolicy":{"type":"string","enum":["EffectiveImmediately","EffectiveEndOfBillingPeriod","SpecificDate"],"description":"The default value for the `effectivePolicy` field is as follows:\n  * If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n  * If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n  * Otherwise, the effective policy is `SpecificDate` by default.\n\n**Notes**: \n  * When setting this field to `EffectiveEndOfBillingPeriod`, you cannot set the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/W_Subscription_and_Amendment_Dates#Billing_Trigger_Dates\" target=\"_blank\">billing trigger dates</a> for the subscription as the system will automatically set the trigger dates to the end of billing period.\n  * When setting this field to `SpecificDate`, you must also set the `contractEffectiveDate` field.\n","title":"ExpandedOrderActionEffectivePolicy"},"NestedOrderOnExpandStatus":{"type":"string","enum":["Draft","Pending","Completed","Cancelled","Scheduled","Executing","Failed"],"description":"The status of the order. If the order contains any `Pending\nActivation` or `Pending Acceptance` subscription, the order status\nwill be `Pending`; If the order is in draft status, the order status\nwill be `Draft`; otherwise the order status is `Completed`.\n\n\nThe available order statuses are as follow:\n\n- `Draft`: The order is in draft status.\n\n- `Pending`: The order is in pending status.\n\n- `Completed`: The order is in completed status.\n\n- `Cancelled`: The draft or scheduled order is cancelled.\n\n- `Scheduled`: The order is in scheduled status and it is only valid\nif the Scheduled Orders feature is enabled.\n\n- `Executing`: The scheduled order is executed by a scheduler and it\nis only valid if the Scheduled Orders feature is enabled.\n\n- `Failed`: The scheduled order has failed.\n\n\n**Note**: To manage and access the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/AA_Overview_of_Orders/P_Scheduled_Orders\"\ntarget=\"_blank\">Scheduled Orders</a> feature from the self-service\ninterface, see <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\"\ntarget=\"_blank\">Enable billing features by yourself</a>.\n","title":"NestedOrderOnExpandStatus"},"NestedOrderOnExpandScheduledDatePolicy":{"type":"string","enum":["SpecificDate"],"description":"Date policy of the scheduled order.","title":"NestedOrderOnExpandScheduledDatePolicy"},"NestedOrderActionOnExpandType":{"type":"string","enum":["CreateSubscription","TermsAndConditions","AddProduct","UpdateProduct","RemoveProduct","RenewSubscription","CancelSubscription","OwnerTransfer","Suspend","Resume","ChangePlan"],"description":"Type of the order action.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n","title":"NestedOrderActionOnExpandType"},"NestedOrderActionOnExpandRenewSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"default":"RENEW_WITH_SPECIFIC_TERM","description":"Specifies whether a termed subscription will remain termed or change to evergreen when it is renewed.\n","title":"NestedOrderActionOnExpandRenewSetting"},"NestedOrderActionOnExpandRenewalTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"default":"Month","description":"The period type for the subscription renewal term.\n\nThis field is used with the `renewalTerm` field to specify the subscription renewal term.\n","title":"NestedOrderActionOnExpandRenewalTermPeriodType"},"NestedOrderActionOnExpandTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"The type of the subscription term.\n","title":"NestedOrderActionOnExpandTermType"},"NestedOrderActionOnExpandCurrentTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"default":"Month","description":"The period type for the current subscription term.\n","title":"NestedOrderActionOnExpandCurrentTermPeriodType"},"NestedOrderActionOnExpandCancellationPolicy":{"type":"string","enum":["EndOfCurrentTerm","EndOfLastInvoicePeriod","SpecificDate"],"description":"Cancellation method. \n","title":"NestedOrderActionOnExpandCancellationPolicy"},"NestedOrderActionOnExpandSubType":{"type":"string","enum":["Upgrade","Downgrade","Crossgrade","PlanChanged"],"description":"The sub type for the change plan order action.\n\nIf this field was not set by user, the field is automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n","title":"NestedOrderActionOnExpandSubType"},"NestedOrderActionOnExpandEffectivePolicy":{"type":"string","enum":["EffectiveImmediately","EffectiveEndOfBillingPeriod","SpecificDate"],"description":"The default value for the `effectivePolicy` field is as follows:\n  * If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n  * If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n  * Otherwise, the effective policy is `SpecificDate` by default.\n\n**Notes**: \n  * When setting this field to `EffectiveEndOfBillingPeriod`, you cannot set the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/W_Subscription_and_Amendment_Dates#Billing_Trigger_Dates\" target=\"_blank\">billing trigger dates</a> for the subscription as the system will automatically set the trigger dates to the end of billing period.\n  * When setting this field to `SpecificDate`, you must also set the `contractEffectiveDate` field.\n","title":"NestedOrderActionOnExpandEffectivePolicy"},"NestedOrderActionOnExpandSubscription":{"type":"object","properties":{},"description":"The subscription associated with this order action.\n\n\n**Note**: For draft and scheduled orders, information on the subscription, rate plan, and rate plan charges is not available nor displayed until the following conditions are met:\n\n- A scheduled order is executed and its status is changed to `completed`. \n- A draft order is activated and its status is changed to `pending` or `completed`.\n\nFor example, if an order is in the `scheduled` or `draft` status, information on the subscription, rate plan, and rate plan charges is not displayed.\n","title":"NestedOrderActionOnExpandSubscription"},"NestedOrderActionOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the order action.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the order action.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the order action gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the order action.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the order action was last updated.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"Effective contract date for this subscription, as yyyy-mm-dd.\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been accepted by the customer, as yyyy-mm-dd.\n"},"type":{"$ref":"#/components/schemas/NestedOrderActionOnExpandType","description":"Type of the order action.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n"},"sequence":{"type":"integer","description":"The sequence of the order actions processed in the order.\n"},"subscriptionVersionAmendmentId":{"type":"string","description":"The unique identifier of the amendment that changes the version of the subscription.\n"},"orderId":{"type":"string","description":"The unique identifier of the order that the order action belongs to.\n"},"subscriptionId":{"type":"string","description":"The unique identifier of the subscription associated with the order action.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription associated with the order action.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been activated and access has been provided to the customer, as yyyy-mm-dd.\n"},"autoRenew":{"type":"boolean","default":false,"description":"If `true`, the subscription automatically renews at the end of the term. \n"},"renewSetting":{"$ref":"#/components/schemas/NestedOrderActionOnExpandRenewSetting","default":"RENEW_WITH_SPECIFIC_TERM","description":"Specifies whether a termed subscription will remain termed or change to evergreen when it is renewed.\n"},"renewalTerm":{"type":"integer","format":"int64","default":0,"description":"The length of the period for the subscription renewal term. \n"},"renewalTermPeriodType":{"$ref":"#/components/schemas/NestedOrderActionOnExpandRenewalTermPeriodType","default":"Month","description":"The period type for the subscription renewal term.\n\nThis field is used with the `renewalTerm` field to specify the subscription renewal term.\n"},"termStartDate":{"type":"string","format":"date","description":"The date on which the subscription term begins, as `yyyy-mm-dd`. If this is a renewal subscription, this date is different from the subscription start date.\n"},"termType":{"$ref":"#/components/schemas/NestedOrderActionOnExpandTermType","description":"The type of the subscription term.\n"},"currentTerm":{"type":"integer","format":"int64","description":"The length of the period for the current subscription term.\n"},"currentTermPeriodType":{"$ref":"#/components/schemas/NestedOrderActionOnExpandCurrentTermPeriodType","default":"Month","description":"The period type for the current subscription term.\n"},"suspendDate":{"type":"string","format":"date","description":"The date when subscription suspension takes effect, in the `yyyy-mm-dd` format.\n"},"resumeDate":{"type":"string","format":"date","description":"The resume date when the resumption takes effect.\n"},"cancellationEffectiveDate":{"type":"string","format":"date","description":"Date when the cancellation takes effect, in the `yyyy-mm-dd` format. Used only if `cancellationPolicy` is `SpecificDate`. It should not be earlier than the subscription contract-effective date, later than the subscription term-end date, or within a period for which the customer has been invoiced.\n"},"cancellationPolicy":{"$ref":"#/components/schemas/NestedOrderActionOnExpandCancellationPolicy","description":"Cancellation method. \n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For\nexample, `Net 30`. The payment term determines the due dates of invoices.\n\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"sequenceSetId":{"type":"string","description":"The ID of the sequence set associated with the subscription.\n  \n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the subscription.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"clearingExistingPaymentTerm":{"type":"boolean","default":false,"description":"Whether to clear the existing payment term at the subscription level. This field is mutually exclusive with the `paymentTerm` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingBillToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing bill-to contact ID at the subscription level. This field is mutually exclusive with the `billToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingInvoiceTemplate":{"type":"boolean","default":false,"description":"Whether to clear the existing invoice template ID at the subscription level. This field is mutually exclusive with the `invoiceTemplateId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingSequenceSet":{"type":"boolean","default":false,"description":"Whether to clear the existing sequence set ID at the subscription level. This field is mutually exclusive with the `sequenceSetId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingShipToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing ship-to contact ID at the subscription level. This field is mutually exclusive with the `shipToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingSoldToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing sold-to contact ID at the subscription level. This field is mutually exclusive with the `soldToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the subscription.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\n    feature turned on. The value is `null` in the response body without this feature turned on.\n"},"clearingExistingCommunicationProfile":{"type":"boolean","default":false,"description":"Whether to clear the existing communication profile at the subscription\nlevel. This field is mutually exclusive with the `communicationProfileId` field.\n"},"subType":{"$ref":"#/components/schemas/NestedOrderActionOnExpandSubType","description":"The sub type for the change plan order action.\n\nIf this field was not set by user, the field is automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n"},"effectivePolicy":{"$ref":"#/components/schemas/NestedOrderActionOnExpandEffectivePolicy","description":"The default value for the `effectivePolicy` field is as follows:\n  * If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n  * If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n  * Otherwise, the effective policy is `SpecificDate` by default.\n\n**Notes**: \n  * When setting this field to `EffectiveEndOfBillingPeriod`, you cannot set the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/W_Subscription_and_Amendment_Dates#Billing_Trigger_Dates\" target=\"_blank\">billing trigger dates</a> for the subscription as the system will automatically set the trigger dates to the end of billing period.\n  * When setting this field to `SpecificDate`, you must also set the `contractEffectiveDate` field.\n"},"subscription":{"$ref":"#/components/schemas/NestedOrderActionOnExpandSubscription","description":"The subscription associated with this order action.\n\n\n**Note**: For draft and scheduled orders, information on the subscription, rate plan, and rate plan charges is not available nor displayed until the following conditions are met:\n\n- A scheduled order is executed and its status is changed to `completed`. \n- A draft order is activated and its status is changed to `pending` or `completed`.\n\nFor example, if an order is in the `scheduled` or `draft` status, information on the subscription, rate plan, and rate plan charges is not displayed.\n"}},"title":"NestedOrderActionOnExpand"},"NestedOrderOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the order.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the order.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the order gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the order.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the order was last updated.\n"},"description":{"type":"string","description":"The description of the order.\n"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. All the order actions under this\norder will use this order date as the contract effective date if no\nadditinal contractEffectiveDate is provided.\n"},"orderNumber":{"type":"string","description":"The unique identifier of the order.\n"},"accountId":{"type":"string","description":"The unique identifier of the customer account associated with the\norder.\n"},"status":{"$ref":"#/components/schemas/NestedOrderOnExpandStatus","description":"The status of the order. If the order contains any `Pending\nActivation` or `Pending Acceptance` subscription, the order status\nwill be `Pending`; If the order is in draft status, the order status\nwill be `Draft`; otherwise the order status is `Completed`.\n\n\nThe available order statuses are as follow:\n\n- `Draft`: The order is in draft status.\n\n- `Pending`: The order is in pending status.\n\n- `Completed`: The order is in completed status.\n\n- `Cancelled`: The draft or scheduled order is cancelled.\n\n- `Scheduled`: The order is in scheduled status and it is only valid\nif the Scheduled Orders feature is enabled.\n\n- `Executing`: The scheduled order is executed by a scheduler and it\nis only valid if the Scheduled Orders feature is enabled.\n\n- `Failed`: The scheduled order has failed.\n\n\n**Note**: To manage and access the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/AA_Overview_of_Orders/P_Scheduled_Orders\"\ntarget=\"_blank\">Scheduled Orders</a> feature from the self-service\ninterface, see <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\"\ntarget=\"_blank\">Enable billing features by yourself</a>.\n"},"state":{"type":"string","description":"The state of the bill-to address. The value is a valid subregion (state\n or province) name or code. For more information, see <a\n href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\"\n target=\"_blank\">View subregions of a specific country or region</a>.\n"},"createdByMigration":{"type":"boolean","description":"Indicates whether the order is created by migration.\n"},"category":{"type":"string"},"invoiceScheduleId":{"type":"string","description":"The unique identifier of the invoice schedule associated with the\norder.\n"},"scheduledDate":{"type":"string","format":"date","description":"The date for the order scheduled.\n"},"scheduledDatePolicy":{"$ref":"#/components/schemas/NestedOrderOnExpandScheduledDatePolicy","description":"Date policy of the scheduled order."},"errorCode":{"type":"string","description":"The error code of the error response.\n"},"errorMessage":{"type":"string","description":"The error message of the error response.\n"},"response":{"type":"string"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"orderLineItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedOrderLineItemOnExpand"}},"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/NestedOrderActionOnExpand"}}},"title":"NestedOrderOnExpand"},"ExpandedOrderAction":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the order action.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the order action.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the order action gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the order action.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the order action was last updated.\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"Effective contract date for this subscription, as yyyy-mm-dd.\n"},"customerAcceptanceDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been accepted by the customer, as yyyy-mm-dd.\n"},"type":{"$ref":"#/components/schemas/ExpandedOrderActionType","description":"Type of the order action.\n\n**Note**: The change plan type of order action is supported for the  <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature. However, it 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, the change plan type of order action will no longer be applicable in Zuora Billing.\n"},"sequence":{"type":"integer","description":"The sequence of the order actions processed in the order.\n"},"subscriptionVersionAmendmentId":{"type":"string","description":"The unique identifier of the amendment that changes the version of the subscription.\n"},"orderId":{"type":"string","description":"The unique identifier of the order that the order action belongs to.\n"},"subscriptionId":{"type":"string","description":"The unique identifier of the subscription associated with the order action.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription associated with the order action.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been activated and access has been provided to the customer, as yyyy-mm-dd.\n"},"autoRenew":{"type":"boolean","default":false,"description":"If `true`, the subscription automatically renews at the end of the term. \n"},"renewSetting":{"$ref":"#/components/schemas/ExpandedOrderActionRenewSetting","default":"RENEW_WITH_SPECIFIC_TERM","description":"Specifies whether a termed subscription will remain termed or change to evergreen when it is renewed.\n"},"renewalTerm":{"type":"integer","format":"int64","default":0,"description":"The length of the period for the subscription renewal term. \n"},"renewalTermPeriodType":{"$ref":"#/components/schemas/ExpandedOrderActionRenewalTermPeriodType","default":"Month","description":"The period type for the subscription renewal term.\n\nThis field is used with the `renewalTerm` field to specify the subscription renewal term.\n"},"termStartDate":{"type":"string","format":"date","description":"The date on which the subscription term begins, as `yyyy-mm-dd`. If this is a renewal subscription, this date is different from the subscription start date.\n"},"termType":{"$ref":"#/components/schemas/ExpandedOrderActionTermType","description":"The type of the subscription term.\n"},"currentTerm":{"type":"integer","format":"int64","description":"The length of the period for the current subscription term.\n"},"currentTermPeriodType":{"$ref":"#/components/schemas/ExpandedOrderActionCurrentTermPeriodType","default":"Month","description":"The period type for the current subscription term.\n"},"suspendDate":{"type":"string","format":"date","description":"The date when subscription suspension takes effect, in the `yyyy-mm-dd` format.\n"},"resumeDate":{"type":"string","format":"date","description":"The resume date when the resumption takes effect.\n"},"cancellationEffectiveDate":{"type":"string","format":"date","description":"Date when the cancellation takes effect, in the `yyyy-mm-dd` format. Used only if `cancellationPolicy` is `SpecificDate`. It should not be earlier than the subscription contract-effective date, later than the subscription term-end date, or within a period for which the customer has been invoiced.\n"},"cancellationPolicy":{"$ref":"#/components/schemas/ExpandedOrderActionCancellationPolicy","description":"Cancellation method. \n"},"paymentTerm":{"type":"string","description":"The name of the payment term associated with the subscription. For\nexample, `Net 30`. The payment term determines the due dates of invoices.\n\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Term from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n  \n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact associated with the subscription.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Contact from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"clearingExistingPaymentTerm":{"type":"boolean","default":false,"description":"Whether to clear the existing payment term at the subscription level. This field is mutually exclusive with the `paymentTerm` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingBillToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing bill-to contact ID at the subscription level. This field is mutually exclusive with the `billToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingInvoiceTemplate":{"type":"boolean","default":false,"description":"Whether to clear the existing invoice template ID at the subscription level. This field is mutually exclusive with the `invoiceTemplateId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingSequenceSet":{"type":"boolean","default":false,"description":"Whether to clear the existing sequence set ID at the subscription level. This field is mutually exclusive with the `sequenceSetId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingShipToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing ship-to contact ID at the subscription level. This field is mutually exclusive with the `shipToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"clearingExistingSoldToContact":{"type":"boolean","default":false,"description":"Whether to clear the existing sold-to contact ID at the subscription level. This field is mutually exclusive with the `soldToContactId` field.\n\n**Note**: If you have the [Flexible Billing Attributes](https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes) feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body.\n"},"communicationProfileId":{"type":["string","null"],"description":"The ID of the communication profile associated with the subscription.\n\n**Note**: This field is available in the request body only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/flexible-billing/flexible-billing-attributes/overview-of-flexible-billing-attributes\" target=\"_blank\">Flexible Billing Attributes</a>\n    feature turned on. The value is `null` in the response body without this feature turned on.\n"},"clearingExistingCommunicationProfile":{"type":"boolean","default":false,"description":"Whether to clear the existing communication profile at the subscription\nlevel. This field is mutually exclusive with the `communicationProfileId` field.\n"},"subType":{"$ref":"#/components/schemas/ExpandedOrderActionSubType","description":"The sub type for the change plan order action.\n\nIf this field was not set by user, the field is automatically generated by the system according to the following rules:\n\nWhen the old and new rate plans are within the same Grading catalog group:\n* If the grade of new plan is greater than that of the old plan, this is an \"Upgrade\".\n* If the grade of new plan is less than that of the old plan, this is a \"Downgrade\".\n* If the grade of new plan equals that of the old plan, this is a \"Crossgrade\".\n\nWhen the old and new rate plans are not in the same Grading catalog group, or either has no group, this is \"PlanChanged\".\n"},"effectivePolicy":{"$ref":"#/components/schemas/ExpandedOrderActionEffectivePolicy","description":"The default value for the `effectivePolicy` field is as follows:\n  * If the rate plan change (from old to new) is an upgrade, the effective policy is `EffectiveImmediately` by default.\n  * If the rate plan change (from old to new) is a downgrade, the effective policy is `EffectiveEndOfBillingPeriod` by default.\n  * Otherwise, the effective policy is `SpecificDate` by default.\n\n**Notes**: \n  * When setting this field to `EffectiveEndOfBillingPeriod`, you cannot set the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/W_Subscription_and_Amendment_Dates#Billing_Trigger_Dates\" target=\"_blank\">billing trigger dates</a> for the subscription as the system will automatically set the trigger dates to the end of billing period.\n  * When setting this field to `SpecificDate`, you must also set the `contractEffectiveDate` field.\n"},"subscription":{"$ref":"#/components/schemas/NestedSubscriptionOnExpand"},"order":{"$ref":"#/components/schemas/NestedOrderOnExpand"}},"title":"ExpandedOrderAction"},"Object_Queries_queryOrderActions_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedOrderAction"}}},"title":"Object Queries_queryOrderActions_Response_200"},"ObjectQueryOrderActionsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["subscription","order"],"title":"ObjectQueryOrderActionsKeyGetParametersExpandSchemaItems"},"ObjectQueryOrderLineItemsGetParametersExpandSchemaItems":{"type":"string","enum":["billto","invoiceitems","invoiceowneraccount","owneraccount","soldtoinfo"],"title":"ObjectQueryOrderLineItemsGetParametersExpandSchemaItems"},"ExpandedOrderLineItemItemState":{"type":"string","enum":["Executing","Booked","SentToBilling","Complete","Cancelled"],"description":"The state of the Order Line Item (OLI). See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n\nTo generate invoice for an OLI, you must set this field to `SentToBilling` and set the `billTargetDate` field .\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` or 'Booked' or `SentToBilling`state (when the `itemState` field is set as `Executing` or `SentToBilling`).\n","title":"ExpandedOrderLineItemItemState"},"ExpandedOrderLineItemItemType":{"type":"string","enum":["Product","Fee","Services"],"description":"The type of the Order Line Item (OLI). \n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n","title":"ExpandedOrderLineItemItemType"},"ExpandedOrderLineItemTaxMode":{"type":"string","enum":["TaxInclusive","TaxExclusive"],"description":"The tax mode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n","title":"ExpandedOrderLineItemTaxMode"},"ExpandedOrderLineItemItemCategory":{"type":"string","enum":["Sales","Return"],"default":"Sales","description":"The category of the Order Line Item, to indicate a product sale or return.\n","title":"ExpandedOrderLineItemItemCategory"},"ExpandedOrderLineItemBillingRule":{"type":"string","enum":["TriggerWithoutFulfillment","TriggerAsFulfillmentOccurs"],"description":"The billing rule of the Order Line Item.\n","title":"ExpandedOrderLineItemBillingRule"},"ExpandedOrderLineItemInlineDiscountType":{"type":"string","enum":["Percentage","FixedAmount","None"],"description":"This field is used to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nThis field is used together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n","title":"ExpandedOrderLineItemInlineDiscountType"},"ExpandedOrderLineItem":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the order line item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the order line item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the order line item gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the order line item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the order line item was last updated.\n"},"accountingCode":{"type":["string","null"],"description":"The accountingCode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"billTargetDate":{"type":"string","format":"date","description":"The target date for the Order Line Item (OLI) to be picked up by bill run for generating billing documents.\n\nTo generate billing documents for an OLI, you must set this field and set the `itemState` field to `SentToBilling`.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"amountPerUnit":{"type":"number","format":"double","description":"The actual charged amount per unit for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"description":{"type":"string","description":"The description of the Order Line Item.\n"},"amount":{"type":"number","format":"double","description":"The total amount for the Order Line Item (OLI).\n"},"amountWithoutTax":{"type":"number","format":"double","description":"The total amount for the Order Line Item (OLI) excluding tax.\n"},"itemName":{"type":"string","description":"The name of the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"itemNumber":{"type":"string","description":"The number for the Order Line Item (OLI).\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"itemState":{"$ref":"#/components/schemas/ExpandedOrderLineItemItemState","description":"The state of the Order Line Item (OLI). See [State transitions for an order, order line item, and fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AB_Order_Line_Item_States_and_Order_States) for more information.\n\nTo generate invoice for an OLI, you must set this field to `SentToBilling` and set the `billTargetDate` field .\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` or 'Booked' or `SentToBilling`state (when the `itemState` field is set as `Executing` or `SentToBilling`).\n"},"itemType":{"$ref":"#/components/schemas/ExpandedOrderLineItemItemType","description":"The type of the Order Line Item (OLI). \n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"listPricePerUnit":{"type":"number","format":"double","description":"The list price per unit for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"listPrice":{"type":"number","format":"double","description":"The extended list price for an order line item, calculated by the formula:\nlistPrice = listPricePerUnit * quantity\n"},"orderId":{"type":"string","description":"The ID of the order that the order line item belongs to.\n"},"orderNumber":{"type":"string","description":"The number of the order that the order line item belongs to.\n"},"productCode":{"type":"string","description":"The product code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"purchaseOrderNumber":{"type":"string","description":"Used by customers to specify the Purchase Order Number provided by the buyer.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"quantity":{"type":"number","format":"double","description":"The quantity of units, such as the number of authors in a hosted wiki service.\n\nYou can update this field for a sales or return OLI only when the OLI in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"revenueRecognitionRule":{"type":"string","description":"The Revenue Recognition rule for the Order Line Item.\n"},"productRatePlanChargeId":{"type":"string","description":"ID of a Product Rate Plan Charge. Only one-time charges are supported.\n"},"billToId":{"type":"string","description":"The ID of a contact that belongs to the billing account of the order line item. Use this field to assign an existing account as the bill-to contact of an order line item.\n"},"billToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the bill-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `billToSnapshotId` field is exposed while retrieving the order line item details.\n"},"shipTo":{"type":"string","description":"The ID of a contact that belongs to the owner acount or billing account of the order line item. Use this field to assign an existing account as the ship-to contact of an order line item.\n"},"shipToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the ship-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `shipToSnapshotId` field is exposed while retrieving the order line item details.\n"},"soldTo":{"type":"string","description":"The ID of a contact that belongs to the owner acount or billing account of the order line item. Use this field to assign an existing account as the sold-to contact of an order line item.\n"},"soldToSnapshotId":{"type":"string","description":"The snapshot of the ID for an account used as the sold-to contact of an order line item. This field is used to store the original information about the account, in case the information about the account is changed after the creation of the order line item. The `soldToSnapshotId` field is exposed while retrieving the order line item details.\n"},"soldToOrderContactId":{"type":"string","description":"The ID of the sold-to contact for the order.\n"},"ownerAccountId":{"type":"string","description":"The account ID of the owner of the order line item.\n"},"invoiceOwnerAccountId":{"type":"string","description":"The account ID of the invoice owner of the order line item.\n"},"taxCode":{"type":"string","description":"The tax code for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"taxMode":{"$ref":"#/components/schemas/ExpandedOrderLineItemTaxMode","description":"The tax mode for the Order Line Item (OLI).\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"transactionDate":{"type":"string","format":"date","description":"The date when the transaction occurs.\n"},"uOM":{"type":"string","description":"Specifies the units to measure usage.\n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"relatedSubscriptionNumber":{"type":"string","description":"This field is used to relate an order line item to an subscription. \n\nYou can update this field only for a sales OLI and only when the sales OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"transactionEndDate":{"type":"string","format":"date","description":"The date a transaction is completed. The default value of this field is the transaction start date. Also, the value of this field should always equal or be later than the value of the `transactionStartDate` field.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"transactionStartDate":{"type":"string","format":"date","description":"The date a transaction starts. The default value of this field is the order date.\n\nYou can update this field for a sales or return OLI only when the OLI is in the `Executing` state (when the `itemState` field is set as `Executing`).\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"originalOrderDate":{"type":"string","format":"date","description":"The date of the original sale order for a return order line item.\n"},"amendedByOrderOn":{"type":"string","format":"date","description":"The date of the amended order for a return order line item.\n"},"itemCategory":{"$ref":"#/components/schemas/ExpandedOrderLineItemItemCategory","default":"Sales","description":"The category of the Order Line Item, to indicate a product sale or return.\n"},"originalOrderId":{"type":"string","description":"The ID of the original sale order for a return order line item. \n"},"originalOrderLineItemId":{"type":"string","description":"The ID of the original sale order line item for a return order line item. \n"},"originalOrderLineItemNumber":{"type":"string","description":"The number of the original sale order line item for a return order line item. \n"},"originalOrderNumber":{"type":"string","description":"The number of the original sale order for a return order line item. \n"},"quantityAvailableForReturn":{"type":"number","format":"double","description":"The quantity that can be returned for an order line item. \n"},"quantityFulfilled":{"type":"number","format":"double","description":"The fulfilled quantity for an order line item.\n"},"quantityPendingFulfillment":{"type":"number","format":"double","description":"The quantity to fulfill for an order line item. \n"},"requiresFulfillment":{"type":"boolean","description":"The flag to show whether fulfillment is needed or not. It's derived from billing rule of the Order Line Item.\n"},"billingRule":{"$ref":"#/components/schemas/ExpandedOrderLineItemBillingRule","description":"The billing rule of the Order Line Item.\n"},"inlineDiscountPerUnit":{"type":"number","format":"double","description":"This field is used in accordance with the `inlineDiscountType` field, in the following manner:\n* If the `inlineDiscountType` field is set as `Percentage`, this field specifies the discount percentage for each unit of the order line item. For exmaple, if you specify `5` in this field, the discount percentage is 5%.\n* If the `inlineDiscountType` field is set as `FixedAmount`, this field specifies the discount amount on each unit of the order line item. For exmaple, if you specify `10` in this field, the discount amount on each unit of the order line item is 10.\n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"inlineDiscountType":{"$ref":"#/components/schemas/ExpandedOrderLineItemInlineDiscountType","description":"This field is used to specify the inline discount type, which can be `Percentage`, `FixedAmount`, or `None`. The default value is `Percentage`.\n\nThis field is used together with the `inlineDiscountPerUnit` field to specify inline discounts for order line items. The inline discount is applied to the list price of an order line item. \n\nOnce you set the `inlineDiscountType`, `inlineDiscountPerUnit`, and `listPricePerUnit` fields, the system will automatically generate the `amountPerUnit` field. You shall not set the `amountPerUnit` field by yourself.\n"},"discount":{"type":"number","format":"double","description":"This field shows the total discount amount that is applied to an order line item after the `inlineDiscountType`, `inlineDiscountPerUnit` and `quantity` fields are set.\n\nThe inline discount is applied to the list price of an order line item.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"The recognized revenue accounting code for the Order Line Item.\n"},"deferredRevenueAccountingCodeId":{"type":"string","description":"The deferred revenue accounting code for the Order Line Item.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"contractRecognizedRevenueAccountingCodeId":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"unbilledReceivablesAccountingCodeId":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"adjustmentRevenueAccountingCodeId":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"adjustmentLiabilityAccountingCodeId":{"type":"string","description":"The accounting code on the Order Line Item object for customers using [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration).\n"},"billTo":{"$ref":"#/components/schemas/ExpandedContact"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpand"}},"invoiceOwnerAccount":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"ownerAccount":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"soldToInfo":{"$ref":"#/components/schemas/ExpandedContact"}},"title":"ExpandedOrderLineItem"},"Object_Queries_queryOrderLineItems_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedOrderLineItem"}}},"title":"Object Queries_queryOrderLineItems_Response_200"},"ObjectQueryOrderLineItemsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["billto","invoiceitems","invoiceowneraccount","owneraccount","soldtoinfo"],"title":"ObjectQueryOrderLineItemsKeyGetParametersExpandSchemaItems"},"ObjectQueryOrdersGetParametersExpandSchemaItems":{"type":"string","enum":["account","orderlineitems","orderlineitems.invoiceitems","orderactions","orderactions.subscription","orderactions.subscription.rateplans","orderactions.subscription.rateplans.rateplancharges"],"title":"ObjectQueryOrdersGetParametersExpandSchemaItems"},"ExpandedOrdersStatus":{"type":"string","enum":["Draft","Pending","Completed","Cancelled","Scheduled","Executing","Failed"],"description":"The status of the order. If the order contains any `Pending\nActivation` or `Pending Acceptance` subscription, the order status\nwill be `Pending`; If the order is in draft status, the order status\nwill be `Draft`; otherwise the order status is `Completed`.\n\n\nThe available order statuses are as follow:\n\n- `Draft`: The order is in draft status.\n\n- `Pending`: The order is in pending status.\n\n- `Completed`: The order is in completed status.\n\n- `Cancelled`: The draft or scheduled order is cancelled.\n\n- `Scheduled`: The order is in scheduled status and it is only valid\nif the Scheduled Orders feature is enabled.\n\n- `Executing`: The scheduled order is executed by a scheduler and it\nis only valid if the Scheduled Orders feature is enabled.\n\n- `Failed`: The scheduled order has failed.\n\n\n**Note**: To manage and access the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/AA_Overview_of_Orders/P_Scheduled_Orders\"\ntarget=\"_blank\">Scheduled Orders</a> feature from the self-service\ninterface, see <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\"\ntarget=\"_blank\">Enable billing features by yourself</a>.\n","title":"ExpandedOrdersStatus"},"ExpandedOrdersScheduledDatePolicy":{"type":"string","enum":["SpecificDate"],"description":"Date policy of the scheduled order.","title":"ExpandedOrdersScheduledDatePolicy"},"ExpandedOrders":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the order.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the order.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the order gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the order.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the order was last updated.\n"},"description":{"type":"string","description":"The description of the order.\n"},"orderDate":{"type":"string","format":"date","description":"The date when the order is signed. All the order actions under this\norder will use this order date as the contract effective date if no\nadditinal contractEffectiveDate is provided.\n"},"orderNumber":{"type":"string","description":"The unique identifier of the order.\n"},"accountId":{"type":"string","description":"The unique identifier of the customer account associated with the\norder.\n"},"status":{"$ref":"#/components/schemas/ExpandedOrdersStatus","description":"The status of the order. If the order contains any `Pending\nActivation` or `Pending Acceptance` subscription, the order status\nwill be `Pending`; If the order is in draft status, the order status\nwill be `Draft`; otherwise the order status is `Completed`.\n\n\nThe available order statuses are as follow:\n\n- `Draft`: The order is in draft status.\n\n- `Pending`: The order is in pending status.\n\n- `Completed`: The order is in completed status.\n\n- `Cancelled`: The draft or scheduled order is cancelled.\n\n- `Scheduled`: The order is in scheduled status and it is only valid\nif the Scheduled Orders feature is enabled.\n\n- `Executing`: The scheduled order is executed by a scheduler and it\nis only valid if the Scheduled Orders feature is enabled.\n\n- `Failed`: The scheduled order has failed.\n\n\n**Note**: To manage and access the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/AA_Overview_of_Orders/P_Scheduled_Orders\"\ntarget=\"_blank\">Scheduled Orders</a> feature from the self-service\ninterface, see <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Configure_billing_settings/System_settings/Enable_billing_features_by_yourself\"\ntarget=\"_blank\">Enable billing features by yourself</a>.\n"},"state":{"type":"string","description":"The state of the bill-to address. The value is a valid subregion (state\n or province) name or code. For more information, see <a\n href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\"\n target=\"_blank\">View subregions of a specific country or region</a>.\n"},"createdByMigration":{"type":"boolean","description":"Indicates whether the order is created by migration.\n"},"category":{"type":"string"},"invoiceScheduleId":{"type":"string","description":"The unique identifier of the invoice schedule associated with the\norder.\n"},"scheduledDate":{"type":"string","format":"date","description":"The date for the order scheduled.\n"},"scheduledDatePolicy":{"$ref":"#/components/schemas/ExpandedOrdersScheduledDatePolicy","description":"Date policy of the scheduled order."},"errorCode":{"type":"string","description":"The error code of the error response.\n"},"errorMessage":{"type":"string","description":"The error message of the error response.\n"},"response":{"type":"string"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"orderLineItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedOrderLineItemOnExpand"}},"orderActions":{"type":"array","items":{"$ref":"#/components/schemas/NestedOrderActionOnExpand"}}},"title":"ExpandedOrders"},"Object_Queries_queryOrders_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedOrders"}}},"title":"Object Queries_queryOrders_Response_200"},"ObjectQueryOrdersKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","orderlineitems","orderlineitems.invoiceitems","orderactions","orderactions.subscription","orderactions.subscription.rateplans","orderactions.subscription.rateplans.rateplancharges"],"title":"ObjectQueryOrdersKeyGetParametersExpandSchemaItems"},"ObjectQueryPaymentsGetParametersExpandSchemaItems":{"type":"string","enum":["account","account.billto","account.soldto","paymentmethod","paymentapplications","paymentscheduleitempayments","paymentscheduleitempayments.paymentscheduleitem"],"title":"ObjectQueryPaymentsGetParametersExpandSchemaItems"},"ExpandedPaymentGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the payment in the gateway; use for reconciliation. \n","title":"ExpandedPaymentGatewayState"},"ExpandedPaymentSource":{"type":"string","enum":["PaymentRun","Import","Manually","API"],"description":"Indicates how the payment was created, whether through API, manually, import, or payment run.\n","title":"ExpandedPaymentSource"},"ExpandedPaymentStatus":{"type":"string","enum":["Draft","Processing","Processed","Error","Canceled","Posted"],"description":"The status of the payment.\n","title":"ExpandedPaymentStatus"},"ExpandedPaymentType":{"type":"string","enum":["External","Electronic"],"description":"The type of the payment.\n","title":"ExpandedPaymentType"},"ExpandedPaymentTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"ExpandedPaymentTransferredToAccounting"},"ExpandedPaymentTransactionSource":{"type":"string","enum":["C_Unscheduled","M_Recurring","M_Unscheduled","M_MOTO"],"description":"Payment transaction source used to differentiate the transaction source in Stored Credential Transaction framework.\n  - `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.\n  - `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_MOTO`: Mail Order Telephone Order (MOTO) payment transaction. This option is only available for credit card payments on Stripe v2. See [Overview of Stripe payment gateway integration](https://knowledgecenter.zuora.com/Zuora_Collect/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration) for more information.\n","title":"ExpandedPaymentTransactionSource"},"ExpandedPaymentApplicationPaymentApplicationStatus":{"type":"string","enum":["Processing","Processed","Cancelled"],"description":"The status of the payment application.\n","title":"ExpandedPaymentApplicationPaymentApplicationStatus"},"ExpandedPaymentApplication":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the payment application.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment application.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the payment application was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment application.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the payment application was last updated.\n"},"applyAmount":{"type":"number","format":"double","description":"The applied amount of the payment.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the payment application takes effect, in `yyyy-mm-dd` format. \nThe effective date is later than or equal to the maximum effective date of the payment.\n"},"paymentApplicationStatus":{"$ref":"#/components/schemas/ExpandedPaymentApplicationPaymentApplicationStatus","description":"The status of the payment application.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the payment application.\n"},"paymentId":{"type":"string","description":"The unique ID of the created payment. \n"},"invoiceId":{"type":"string","description":"The ID of the invoice to which the payment is applied.\n"},"applicationGroupId":{"type":"string","description":"The ID of the application group to which this payment application belongs.\n"},"debitMemoId":{"type":"string","description":"The ID of the debit memo to which the payment is applied.\n"},"billingDocumentOwnerId":{"type":"string","description":"The ID of the billing document owner. \n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The accountReceivableAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>, <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a>, and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Get_started_with_Invoice_Settlement/AA_Overview_of_Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> features are enabled.\n"},"unappliedPaymentAccountingCodeId":{"type":"string","description":"The accounting code for the unapplied payment.\n"},"cashAccountingCodeId":{"type":"string","description":"The accounting code for cash payments.\n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this transaction.\n"},"payment":{"$ref":"#/components/schemas/NestedPaymentOnExpand"}},"title":"ExpandedPaymentApplication"},"ExpandedPayment":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the payment.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the payment gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the payment gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"accountId":{"type":"string","description":"The ID of the customer account that the payment is for.\n"},"accountingCode":{"type":"string","description":"The accounting code for the charge. Accounting codes group\ntransactions that contain similar accounting attributes.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment.\n"},"appliedAmount":{"type":"number","format":"double","description":"The applied amount of the payment.\n"},"authTransactionId":{"type":"string","description":"The authorization transaction ID from the payment gateway.\n"},"appliedCreditBalanceAmount":{"type":"number","format":"double","description":"The amount of the payment to apply to a credit balance. \n"},"bankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the credit card or debit card used for the payment, when applicable. \nUse this field to <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DF_Reconciling_Payments_with_Merchant_Accounts\" target=\"_blank\">reconcile payments between the gateway and merchant banks</a>.\n"},"cancelledOn":{"type":"string","format":"date-time","description":"The date when the payment was canceled.\n"},"comment":{"type":["string","null"],"description":"Comments about the payment.\n"},"currency":{"type":"string","description":"When Standalone Payment is not enabled, the `currency` of the payment must be the same as the payment currency defined in the customer account settings through Zuora UI.\n\nWhen Standalone Payment is enabled and `standalone` is `true`, the `currency` of the standalone payment can be different from the payment currency defined in the customer account settings. The amount will not be summed up to the account balance or key metrics regardless of currency.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date and time when the payment takes effect, in `yyyy-mm-dd hh:mm:ss` format.\n"},"gatewayOrderId":{"type":"string","description":"A merchant-specified natural key value that can be passed to the electronic payment gateway when a payment is created.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the payment. This message is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the payment. This code is gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/ExpandedPaymentGatewayState","description":"The status of the payment in the gateway; use for reconciliation. \n"},"gatewayTransactionState":{"type":"string"},"isStandalone":{"type":"boolean","description":"Indicates whether the payment is a standalone payment. A standalone\npayment is a payment that is not associated with any invoice or\nsubscription.\n"},"markedForSubmissionOn":{"type":"string","format":"date-time","description":"The date and time when a charge was marked and waiting for batch\nsubmission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the payment.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot which is a copy of the particular Payment Method used in a transaction.\n"},"paymentOptionId":{"type":"string","description":"ID of the paymentOption object, which describe the transactional level rules for processing payments. \n"},"paymentNumber":{"type":"string","description":"The unique identification number of a payment. \n"},"payoutId":{"type":"string","description":"The payout ID of the payment from the gateway side.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the payment is used as a reserved payment. See [Prepaid Cash with Drawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown) for more information.\n"},"referencedPaymentID":{"type":"string","description":"The ID of a referenced payment. \n"},"referenceId":{"type":"string","description":"The transaction ID returned by the payment gateway. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"refundAmount":{"type":"number","format":"double","description":"The amount of the payment that is refunded.\n"},"secondPaymentReferenceId":{"type":"string","description":"The transaction ID returned by the payment gateway if there is an additional transaction for the payment. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":"string","format":"date-time","description":"The date and time when the payment was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps to Zuora for the gateways, Orbital, Vantiv and Verifi.\n"},"source":{"$ref":"#/components/schemas/ExpandedPaymentSource","description":"Indicates how the payment was created, whether through API, manually, import, or payment run.\n"},"sourceName":{"type":"string","description":"Name of the source. It can be a payment run number or a file name.\n"},"status":{"$ref":"#/components/schemas/ExpandedPaymentStatus","description":"The status of the payment.\n"},"submittedOn":{"type":"string","format":"date-time","description":"The date and time when the payment was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"type":{"$ref":"#/components/schemas/ExpandedPaymentType","description":"The type of the payment.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/ExpandedPaymentTransferredToAccounting","description":"Whether the payment was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"transactionSource":{"$ref":"#/components/schemas/ExpandedPaymentTransactionSource","description":"Payment transaction source used to differentiate the transaction source in Stored Credential Transaction framework.\n  - `C_Unscheduled`: Cardholder-initiated transaction (CIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_Recurring`: Merchant-initiated transaction (MIT) that occurs at regular intervals.\n  - `M_Unscheduled`: Merchant-initiated transaction (MIT) that does not occur on scheduled or regularly occurring dates.\n  - `M_MOTO`: Mail Order Telephone Order (MOTO) payment transaction. This option is only available for credit card payments on Stripe v2. See [Overview of Stripe payment gateway integration](https://knowledgecenter.zuora.com/Zuora_Collect/Payment_gateway_integrations/Supported_payment_gateways/Stripe_Payment_Gateway/A_Overview_of_Stripe_payment_gateway_integration) for more information.\n"},"unappliedAmount":{"type":"number","format":"double","description":"The unapplied amount of the payment.\n"},"lastEmailDateTime":{"type":"string","description":"The date and time when the last email was sent to the customer for the payment.\n"},"gateway":{"type":"string","description":"Name of the gateway instance that processes the payment. \n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"paymentMethod":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpand"},"paymentApplications":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPaymentApplication"}}},"title":"ExpandedPayment"},"Object_Queries_queryPayments_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPayment"}}},"title":"Object Queries_queryPayments_Response_200"},"ObjectQueryPaymentsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","account.billto","account.soldto","paymentmethod","paymentapplications","paymentscheduleitempayments","paymentscheduleitempayments.paymentscheduleitem"],"title":"ObjectQueryPaymentsKeyGetParametersExpandSchemaItems"},"ObjectQueryPaymentApplicationsGetParametersExpandSchemaItems":{"type":"string","enum":["payment"],"title":"ObjectQueryPaymentApplicationsGetParametersExpandSchemaItems"},"Object_Queries_queryPaymentApplications_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPaymentApplication"}}},"title":"Object Queries_queryPaymentApplications_Response_200"},"ObjectQueryPaymentApplicationsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["payment"],"title":"ObjectQueryPaymentApplicationsKeyGetParametersExpandSchemaItems"},"ObjectQueryPaymentMethodsGetParametersExpandSchemaItems":{"type":"string","enum":["account"],"title":"ObjectQueryPaymentMethodsGetParametersExpandSchemaItems"},"ExpandedPaymentMethodAchAccountType":{"type":"string","enum":["BusinessChecking","Checking","Saving"],"description":"The type of bank account associated with the ACH payment method. This field is only required if the `type` field is set to `ACH`.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, `Checking` preferably.\n","title":"ExpandedPaymentMethodAchAccountType"},"ExpandedPaymentMethodAccountVerificationStatus":{"type":"string","enum":["Active","Expired","Expiring","Inactive"],"description":"Displays the status of the account.\n**Note:** \n- `Active` - Access token is active. \n- `Expired` - Access token has expired and must be linked again. \n- `Expiring` - Access token will expire in few days(7 days for Plaid) and must be linked again\n- `Inactive` - The end customer has revoked the account pemission. The end customer can login again and select the same method for the access token to be linked again.\n","title":"ExpandedPaymentMethodAccountVerificationStatus"},"ExpandedPaymentMethodBankTransferType":{"type":"string","enum":["AutomatischIncasso","LastschriftDE","LastschriftAT","DemandeDePrelevement","DirectDebitUK","Domicil","LastschriftCH","RID","OrdenDeDomiciliacion","Autogiro","Betalingsservice"],"description":"Specifies the type of direct debit transfer. The value of this field is dependent on the country of the user.\n\nPossible Values: \n\n\n* `AutomatischIncasso` (NL)\n\n* `LastschriftDE` (Germany)\n\n* `LastschriftAT` (Austria)\n\n* `DemandeDePrelevement` (FR)\n\n* `DirectDebitUK` (UK)\n\n* `Domicil` (Belgium)\n\n* `LastschriftCH` (CH)\n\n* `RID` (Italy)\n\n* `OrdenDeDomiciliacion` (Spain)\n* `Autogiro` (Sweden)\n* `Betalingsservice` (Denmark)\n","title":"ExpandedPaymentMethodBankTransferType"},"ExpandedPaymentMethodExistingMandate":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is an existing mandate.\n","title":"ExpandedPaymentMethodExistingMandate"},"ExpandedPaymentMethodMandateReceived":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is received from the gateway.\n","title":"ExpandedPaymentMethodMandateReceived"},"ExpandedPaymentMethodPaymentMethodStatus":{"type":"string","enum":["Active","Closed","Scrubbed"],"description":"The status of the payment method.\n","title":"ExpandedPaymentMethodPaymentMethodStatus"},"ExpandedPaymentMethodCardClass":{"type":"string","enum":["ChargeCard","Credit","Debit","DeferredDebit","Prepaid"],"description":"The type of the card.\n","title":"ExpandedPaymentMethodCardClass"},"ExpandedPaymentMethodCardProductType":{"type":"string","enum":["Commercial_or_Corporate_Card","Consumer_Card"],"description":"The product type of the card.\n","title":"ExpandedPaymentMethodCardProductType"},"ExpandedPaymentMethod":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the payment method.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment method.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the payment method gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment method.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the payment method gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"accountId":{"type":"string","description":"The unique identifier of the account that the payment method is\nassociated with.\n"},"achAbaCode":{"type":"string","description":"The nine-digit routing number or ABA number used by banks. This field is only required if the `type` field is set to `ACH`.\n"},"achAccountName":{"type":"string","description":"The name of the account holder, which can be either a person or a company. This field is only required if the `type` field is set to `ACH`.\n"},"achAccountNumberMask":{"type":"string","description":"The masked bank account number associated with the ACH payment method. This field is only required if the `type` field is set to `ACH`.\n"},"achAccountType":{"$ref":"#/components/schemas/ExpandedPaymentMethodAchAccountType","description":"The type of bank account associated with the ACH payment method. This field is only required if the `type` field is set to `ACH`.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, `Checking` preferably.\n"},"achAddress1":{"type":"string","maxLength":255,"description":"First address line for the ACH payment method.\n"},"achAddress2":{"type":"string","maxLength":255,"description":"Second address line for the ACH payment method.\n"},"achBankName":{"type":"string","maxLength":70,"description":"The name of the bank where the ACH payment account is held.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify a dummy value.\n"},"achCity":{"type":"string","maxLength":40,"description":"City for the ACH payment method.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"achCountry":{"type":"string","description":"Country for the ACH payment method. Must be a valid country name or abbreviation.\n\nSee <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> for the list of supported country names and abbreviations.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"achPostalCode":{"type":"string","maxLength":20,"description":"Zip code or postal code for the ACH payment method.\n"},"achState":{"type":"string","description":"State for the ACH payment method. Must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>.\n"},"active":{"type":"boolean","description":"Indicates whether the payment method type is active. This field is for Zuora internal use and does not impact customer integration or use cases.\n"},"isSystem":{"type":"boolean","description":"Indicates whether the payment method is a system-generated payment method. This field is for Zuora internal use and does not impact customer integration or use cases.\n"},"accountVerificationService":{"type":"string","description":"Displays the name of the service provider. For example, Plaid.\n"},"accountVerificationStatus":{"$ref":"#/components/schemas/ExpandedPaymentMethodAccountVerificationStatus","description":"Displays the status of the account.\n**Note:** \n- `Active` - Access token is active. \n- `Expired` - Access token has expired and must be linked again. \n- `Expiring` - Access token will expire in few days(7 days for Plaid) and must be linked again\n- `Inactive` - The end customer has revoked the account pemission. The end customer can login again and select the same method for the access token to be linked again.\n"},"bankBranchCode":{"type":"string","description":"The branch code of the bank used for Direct Debit.  \n"},"bankCheckDigit":{"type":"string","description":"The check digit in the international bank account number, which confirms the validity of the account. Applicable to direct debit payment methods."},"bankCity":{"type":"string","description":"The city of the direct debit bank."},"bankCode":{"type":"string","description":"The sort code or number that identifies the bank. This is also known as the sort code. \n"},"bankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the payment method's number, such as the credit card number or account number. Banks use this number to identify a payment method."},"bankName":{"type":"string","description":"The name of the direct debit bank."},"bankPostalCode":{"type":"string","description":"The zip code or postal code of the direct debit bank."},"bankStreetName":{"type":"string","description":"The name of the street of the direct debit bank."},"bankStreetNumber":{"type":"string","description":"The number of the direct debit bank."},"bankTransferAccountName":{"type":"string","description":"The name on the direct debit bank account."},"bankTransferAccountNumberMask":{"type":"string","description":"This is a masked displayable version of the bank account number, used for\nsecurity purposes. For example: `XXXXXXXXX54321`.\n"},"bankTransferAccountType":{"type":"string","description":"The type of the customer's bank account. Applicable to direct debit\npayment methods.\n"},"bankTransferType":{"$ref":"#/components/schemas/ExpandedPaymentMethodBankTransferType","description":"Specifies the type of direct debit transfer. The value of this field is dependent on the country of the user.\n\nPossible Values: \n\n\n* `AutomatischIncasso` (NL)\n\n* `LastschriftDE` (Germany)\n\n* `LastschriftAT` (Austria)\n\n* `DemandeDePrelevement` (FR)\n\n* `DirectDebitUK` (UK)\n\n* `Domicil` (Belgium)\n\n* `LastschriftCH` (CH)\n\n* `RID` (Italy)\n\n* `OrdenDeDomiciliacion` (Spain)\n* `Autogiro` (Sweden)\n* `Betalingsservice` (Denmark)\n"},"businessIdentificationCode":{"type":"string","description":"The business identification code for Swiss direct payment methods that use\nthe Global Collect payment gateway. Only applicable to direct debit\npayment methods in Switzerland with Global Collect.\n"},"city":{"type":"string","description":"The city of the customer's address. Applicable to debit payment methods.\n"},"country":{"type":"string","description":"The two-letter country code of the customer's address. Applicable to direct debit payment methods."},"creditCardAddress1":{"type":"string","description":"The first line of the card holder's address, which is often a street\naddress or business name. Applicable to credit card and direct debit\npayment methods.\n"},"creditCardAddress2":{"type":"string","description":"The second line of the card holder's address. Applicable to credit card\nand direct debit payment methods.\n"},"creditCardCity":{"type":"string","description":"The city of the card holder's address. Applicable to credit card and\ndirect debit payment methods.\n"},"creditCardCountry":{"type":"string","description":"The country where the credit card holder stays.\n\nWhen creating a payment method through a translated UI or Payment Page, a country name in a translated language might be selected. \nRegardless of the country texts selected when creating the payment method, only the supported country name returns in this field. \nFor a complete list of supported country names, 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>. \nInternationalization is not supported for the API field value.\n"},"creditCardExpirationMonth":{"type":"integer","minimum":1,"maximum":12,"description":"One or two digits expiration month.\n"},"creditCardExpirationYear":{"type":"integer","description":"Four-digit expiration year.\n"},"creditCardHolderName":{"type":"string","description":"The full name of the credit card holder.\n"},"creditCardMaskNumber":{"type":"string","description":"The masked credit card number, such as `*********1112`.\n"},"creditCardPostalCode":{"type":"string","description":"The postal code for the address of the credit card holder.\n"},"creditCardState":{"type":"string","description":"The state where the credit card holder stays.\n"},"creditCardType":{"type":"string","description":"The type of the credit card or debit card.\n\nPossible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).\n\n**Note:** This field is only returned for the Credit Card and Debit Card payment types.\n"},"deviceSessionId":{"type":"string","description":"The session ID of the user when the `PaymentMethod` was created or updated.\n"},"existingMandate":{"$ref":"#/components/schemas/ExpandedPaymentMethodExistingMandate","description":"Indicates whether the mandate is an existing mandate.\n"},"email":{"type":"string","description":"The email address of the payment method holder.\n"},"firstName":{"type":"string","description":"The customer's first name. Only applicable to direct debit payment methods.\n"},"iBAN":{"type":"string","description":"The International Bank Account Number used to create the SEPA payment method. The value is masked.\n"},"iPAddress":{"type":"string","description":"The IP address of the user when the payment method was created or updated.\n"},"identityNumber":{"type":"string","description":"The identity number of the account holder or the cardholder.\n"},"companyName":{"type":"string","description":"The name of the company.\n"},"isCompany":{"type":"boolean","description":"Whether the customer account is a company.\n"},"lastFailedSaleTransactionDate":{"type":"string","format":"date","description":"The date of the last failed attempt to collect payment with this payment\nmethod.\n"},"lastName":{"type":"string","description":"The customer's last name. Only applicable to direct debit payment methods.\n"},"lastTransactionDateTime":{"type":"string","format":"date-time","description":"The date and time of the most recent transaction.\n"},"lastTransactionStatus":{"type":"string","description":"The status of the most recent transaction."},"mandateCreationDate":{"type":"string","format":"date","description":"The date on which the mandate was created.\n"},"mandateId":{"type":"string","description":"The mandate ID.\n"},"mandateReason":{"type":"string","description":"The reason of the mandate from the gateway side.\n"},"mandateReceived":{"$ref":"#/components/schemas/ExpandedPaymentMethodMandateReceived","description":"Indicates whether the mandate is received from the gateway.\n"},"mandateStatus":{"type":"string","description":"The status of the mandate from the gateway side.\n"},"mandateUpdateDate":{"type":"string","format":"date","description":"The date on which the mandate was updated.\n"},"maxConsecutivePaymentFailures":{"type":"integer","description":"The number of allowable consecutive failures Zuora attempts with the payment method before stopping.\n"},"name":{"type":"string","description":"The name of the payment method.\n"},"numConsecutiveFailures":{"type":"integer","description":"The number of consecutive failed payments for this payment method. It is reset to `0` upon successful payment. \n"},"paymentMethodStatus":{"$ref":"#/components/schemas/ExpandedPaymentMethodPaymentMethodStatus","description":"The status of the payment method.\n"},"paymentRetryWindow":{"type":"integer","description":"The retry interval setting, which prevents making a payment attempt if the last failed attempt was within the last specified number of hours.\n"},"paypalBaid":{"type":"string","description":"ID of a PayPal billing agreement. \n"},"paypalEmail":{"type":"string","description":"Email address associated with the PayPal payment method. \n"},"paypalPreapprovalKey":{"type":"string","description":"The PayPal preapproval key.\n"},"paypalType":{"type":"string","description":"The type of the PayPal payment method.\n"},"phone":{"type":"string","description":"The phone number that the account holder registered with the bank. This\nfield is used for credit card validation when passing to a gateway.\n"},"postalCode":{"type":"string","description":"The zip code of the customer's address. Only applicable to direct debit\npayment methods.\n"},"secondTokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data.\n\n**Note:** This field is only returned for the Credit Card Reference Transaction payment type.\n"},"state":{"type":"string","description":"The state of the customer's address. Only applicable to direct debit\npayment methods.\n"},"streetName":{"type":"string","description":"The street name of the customer's address. Only applicable to direct debit\npayment methods.\n"},"streetNumber":{"type":"string","description":"The street number of the customer's address. Only applicable to direct\ndebit payment methods.\n"},"tokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data or\nrepresents a gateway's unique customer profile. Applicable to CC Reference\nTransaction payment methods.\n"},"totalNumberOfErrorPayments":{"type":"integer","description":"The number of error payments that used this payment method."},"totalNumberOfProcessedPayments":{"type":"integer","description":"The number of successful payments that used this payment method."},"type":{"type":"string","description":"The type of the payment method. For example, `CreditCard`.\n"},"useDefaultRetryRule":{"type":"boolean","description":"Indicates whether this payment method uses the default retry rules configured in the Zuora Payments settings.\n"},"methodReferenceId":{"type":"string","description":"The identification reference of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Payment Method Data Source Exports and Data Query.\n"},"userReferenceId":{"type":"string","description":"The identification reference of the user or customer account.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"subType":{"type":"string","description":"The identification reference indicating the subtype of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"methodSpecificData":{"type":"string","description":"Other method-specific data of the payment method.\n"},"cardBrand":{"type":"string","description":"The card brand, such as `Visa` and `MasterCard`.\n"},"cardClass":{"$ref":"#/components/schemas/ExpandedPaymentMethodCardClass","description":"The type of the card.\n"},"cardIssuingBank":{"type":"string","description":"The issuer bank of the card, such as `JPMORGAN CHASE BANK N.A.`.\n"},"cardIssuingCountry":{"type":"string","description":"The issuing country code of the card, such as `US`.\n"},"cardProductType":{"$ref":"#/components/schemas/ExpandedPaymentMethodCardProductType","description":"The product type of the card.\n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"}},"title":"ExpandedPaymentMethod"},"Object_Queries_queryPaymentMethods_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPaymentMethod"}}},"title":"Object Queries_queryPaymentMethods_Response_200"},"ObjectQueryPaymentMethodsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account"],"title":"ObjectQueryPaymentMethodsKeyGetParametersExpandSchemaItems"},"ExpandedPaymentMethodSnapshotAchAccountType":{"type":"string","enum":["BusinessChecking","Checking","Saving"],"description":"The type of bank account associated with the ACH payment method. This field is only required if the `type` field is set to `ACH`.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, `Checking` preferably.\n","title":"ExpandedPaymentMethodSnapshotAchAccountType"},"ExpandedPaymentMethodSnapshotBankTransferType":{"type":"string","enum":["AutomatischIncasso","LastschriftDE","LastschriftAT","DemandeDePrelevement","DirectDebitUK","Domicil","LastschriftCH","RID","OrdenDeDomiciliacion","Autogiro","Betalingsservice"],"description":"Specifies the type of direct debit transfer. The value of this field is dependent on the country of the user.\n\nPossible Values: \n\n\n* `AutomatischIncasso` (NL)\n\n* `LastschriftDE` (Germany)\n\n* `LastschriftAT` (Austria)\n\n* `DemandeDePrelevement` (FR)\n\n* `DirectDebitUK` (UK)\n\n* `Domicil` (Belgium)\n\n* `LastschriftCH` (CH)\n\n* `RID` (Italy)\n\n* `OrdenDeDomiciliacion` (Spain)\n* `Autogiro` (Sweden)\n* `Betalingsservice` (Denmark)\n","title":"ExpandedPaymentMethodSnapshotBankTransferType"},"ExpandedPaymentMethodSnapshotExistingMandate":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is an existing mandate.\n","title":"ExpandedPaymentMethodSnapshotExistingMandate"},"ExpandedPaymentMethodSnapshotMandateReceived":{"type":"string","enum":["Yes","No"],"description":"Indicates whether the mandate is received from the gateway.\n","title":"ExpandedPaymentMethodSnapshotMandateReceived"},"ExpandedPaymentMethodSnapshotPaymentMethodStatus":{"type":"string","enum":["Active","Closed","Scrubbed"],"description":"The status of the payment method.\n","title":"ExpandedPaymentMethodSnapshotPaymentMethodStatus"},"ExpandedPaymentMethodSnapshot":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the payment method snapshot.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment method snapshot.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the payment method snapshot gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment method snapshot.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the payment method snapshot gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"accountId":{"type":"string","description":"The unique identifier of the account that the payment method snapshot is\nassociated with.\n"},"achAbaCode":{"type":"string","description":"The nine-digit routing number or ABA number used by banks. This field is only required if the `type` field is set to `ACH`.\n"},"achAccountName":{"type":"string","description":"The name of the account holder, which can be either a person or a company. This field is only required if the `type` field is set to `ACH`.\n"},"achAccountNumberMask":{"type":"string","description":"The masked bank account number associated with the ACH payment method. This field is only required if the `type` field is set to `ACH`.\n"},"achAccountType":{"$ref":"#/components/schemas/ExpandedPaymentMethodSnapshotAchAccountType","description":"The type of bank account associated with the ACH payment method. This field is only required if the `type` field is set to `ACH`.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify any of the allowed values as a dummy value, `Checking` preferably.\n"},"achAddress1":{"type":"string","maxLength":255,"description":"First address line for the ACH payment method.\n"},"achAddress2":{"type":"string","maxLength":255,"description":"Second address line for the ACH payment method.\n"},"achBankName":{"type":"string","maxLength":70,"description":"The name of the bank where the ACH payment account is held.\n\nWhen creating an ACH payment method on Adyen, this field is required by Zuora but it is not required by Adyen. To create the ACH payment method successfully, specify a real value for this field if you can. If it is not possible to get the real value for it, specify a dummy value.\n"},"achCity":{"type":"string","maxLength":40,"description":"City for the ACH payment method.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"achCountry":{"type":"string","description":"Country for the ACH payment method. Must be a valid country name or abbreviation.\n\nSee <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> for the list of supported country names and abbreviations.\n\nIt is recommended to provide the city and country information when creating a payment method. The information will be used to process payments. If the information is not provided during payment method creation, the city and country data will be missing during payment processing.\n"},"achPostalCode":{"type":"string","maxLength":20,"description":"Zip code or postal code for the ACH payment method.\n"},"achState":{"type":"string","description":"State for the ACH payment method. Must be a valid subregion (state or province) name or code. For more information, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_subregions_of_a_specific_country_or_region\" target=\"_blank\">View subregions of a specific country or region</a>.\n"},"active":{"type":"boolean","description":"Indicates whether the payment method type is active. This field is for Zuora internal use and does not impact customer integration or use cases.\n"},"isSystem":{"type":"boolean","description":"Indicates whether the payment method is a system-generated payment method. This field is for Zuora internal use and does not impact customer integration or use cases.\n"},"bankBranchCode":{"type":"string","description":"The branch code of the bank used for Direct Debit.  \n"},"bankCheckDigit":{"type":"string","description":"The check digit in the international bank account number, which confirms the validity of the account. Applicable to direct debit payment methods."},"bankCity":{"type":"string","description":"The city of the direct debit bank."},"bankCode":{"type":"string","description":"The sort code or number that identifies the bank. This is also known as the sort code. \n"},"bankIdentificationNumber":{"type":"string","description":"The first six or eight digits of the payment method's number, such as the credit card number or account number. Banks use this number to identify a payment method."},"bankName":{"type":"string","description":"The name of the direct debit bank."},"bankPostalCode":{"type":"string","description":"The zip code or postal code of the direct debit bank."},"bankStreetName":{"type":"string","description":"The name of the street of the direct debit bank."},"bankStreetNumber":{"type":"string","description":"The number of the direct debit bank."},"bankTransferAccountName":{"type":"string","description":"The name on the direct debit bank account."},"bankTransferAccountNumberMask":{"type":"string","description":"This is a masked displayable version of the bank account number, used for\nsecurity purposes. For example: `XXXXXXXXX54321`.\n"},"bankTransferAccountType":{"type":"string","description":"The type of the customer's bank account. Applicable to direct debit\npayment methods.\n"},"bankTransferType":{"$ref":"#/components/schemas/ExpandedPaymentMethodSnapshotBankTransferType","description":"Specifies the type of direct debit transfer. The value of this field is dependent on the country of the user.\n\nPossible Values: \n\n\n* `AutomatischIncasso` (NL)\n\n* `LastschriftDE` (Germany)\n\n* `LastschriftAT` (Austria)\n\n* `DemandeDePrelevement` (FR)\n\n* `DirectDebitUK` (UK)\n\n* `Domicil` (Belgium)\n\n* `LastschriftCH` (CH)\n\n* `RID` (Italy)\n\n* `OrdenDeDomiciliacion` (Spain)\n* `Autogiro` (Sweden)\n* `Betalingsservice` (Denmark)\n"},"businessIdentificationCode":{"type":"string","description":"The business identification code for Swiss direct payment methods that use\nthe Global Collect payment gateway. Only applicable to direct debit\npayment methods in Switzerland with Global Collect.\n"},"city":{"type":"string","description":"The city of the customer's address. Applicable to debit payment methods.\n"},"country":{"type":"string","description":"The two-letter country code of the customer's address. Applicable to direct debit payment methods."},"creditCardAddress1":{"type":"string","description":"The first line of the card holder's address, which is often a street\naddress or business name. Applicable to credit card and direct debit\npayment methods.\n"},"creditCardAddress2":{"type":"string","description":"The second line of the card holder's address. Applicable to credit card\nand direct debit payment methods.\n"},"creditCardCity":{"type":"string","description":"The city of the card holder's address. Applicable to credit card and\ndirect debit payment methods.\n"},"creditCardCountry":{"type":"string","description":"The country where the credit card holder stays.\n\nWhen creating a payment method through a translated UI or Payment Page, a country name in a translated language might be selected. \nRegardless of the country texts selected when creating the payment method, only the supported country name returns in this field. \nFor a complete list of supported country names, 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>. \nInternationalization is not supported for the API field value.\n"},"creditCardExpirationMonth":{"type":"integer","minimum":1,"maximum":12,"description":"One or two digits expiration month.\n"},"creditCardExpirationYear":{"type":"integer","description":"Four-digit expiration year.\n"},"creditCardHolderName":{"type":"string","description":"The full name of the credit card holder.\n"},"creditCardMaskNumber":{"type":"string","description":"The masked credit card number, such as `*********1112`.\n"},"creditCardPostalCode":{"type":"string","description":"The postal code for the address of the credit card holder.\n"},"creditCardState":{"type":"string","description":"The state where the credit card holder stays.\n"},"creditCardType":{"type":"string","description":"The type of the credit card or debit card.\n\nPossible values include `Visa`, `MasterCard`, `AmericanExpress`, `Discover`, `JCB`, and `Diners`. For more information about credit card types supported by different payment gateways, see [Supported Payment Gateways](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways).\n\n**Note:** This field is only returned for the Credit Card and Debit Card payment types.\n"},"deviceSessionId":{"type":"string","description":"The session ID of the user when the `PaymentMethod` was created or updated.\n"},"existingMandate":{"$ref":"#/components/schemas/ExpandedPaymentMethodSnapshotExistingMandate","description":"Indicates whether the mandate is an existing mandate.\n"},"email":{"type":"string","description":"The email address of the payment method holder.\n"},"firstName":{"type":"string","description":"The customer's first name. Only applicable to direct debit payment methods.\n"},"iBAN":{"type":"string","description":"The International Bank Account Number used to create the SEPA payment method. The value is masked.\n"},"iPAddress":{"type":"string","description":"The IP address of the user when the payment method was created or updated.\n"},"identityNumber":{"type":"string","description":"The identity number of the account holder or the cardholder.\n"},"companyName":{"type":"string","description":"The name of the company.\n"},"isCompany":{"type":"boolean","description":"Whether the customer account is a company.\n"},"lastFailedSaleTransactionDate":{"type":"string","format":"date","description":"The date of the last failed attempt to collect payment with this payment\nmethod.\n"},"lastName":{"type":"string","description":"The customer's last name. Only applicable to direct debit payment methods.\n"},"lastTransactionDateTime":{"type":"string","format":"date-time","description":"The date and time of the most recent transaction.\n"},"lastTransactionStatus":{"type":"string","description":"The status of the most recent transaction."},"mandateCreationDate":{"type":"string","format":"date","description":"The date on which the mandate was created.\n"},"mandateId":{"type":"string","description":"The mandate ID.\n"},"mandateReason":{"type":"string","description":"The reason of the mandate from the gateway side.\n"},"mandateReceived":{"$ref":"#/components/schemas/ExpandedPaymentMethodSnapshotMandateReceived","description":"Indicates whether the mandate is received from the gateway.\n"},"mandateStatus":{"type":"string","description":"The status of the mandate from the gateway side.\n"},"mandateUpdateDate":{"type":"string","format":"date","description":"The date on which the mandate was updated.\n"},"maxConsecutivePaymentFailures":{"type":"integer","description":"The number of allowable consecutive failures Zuora attempts with the payment method before stopping.\n"},"paymentMethodId":{"type":"string","description":"ID of the associated payment method.\n"},"name":{"type":"string","description":"The name of the payment method.\n"},"numConsecutiveFailures":{"type":"integer","description":"The number of consecutive failed payments for this payment method. It is reset to `0` upon successful payment. \n"},"paymentMethodStatus":{"$ref":"#/components/schemas/ExpandedPaymentMethodSnapshotPaymentMethodStatus","description":"The status of the payment method.\n"},"paymentRetryWindow":{"type":"integer","description":"The retry interval setting, which prevents making a payment attempt if the last failed attempt was within the last specified number of hours.\n"},"paypalBaid":{"type":"string","description":"ID of a PayPal billing agreement. \n"},"paypalEmail":{"type":"string","description":"Email address associated with the PayPal payment method. \n"},"paypalPreapprovalKey":{"type":"string","description":"The PayPal preapproval key.\n"},"paypalType":{"type":"string","description":"The type of the PayPal payment method.\n"},"phone":{"type":"string","description":"The phone number that the account holder registered with the bank. This\nfield is used for credit card validation when passing to a gateway.\n"},"postalCode":{"type":"string","description":"The zip code of the customer's address. Only applicable to direct debit\npayment methods.\n"},"secondTokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data.\n\n**Note:** This field is only returned for the Credit Card Reference Transaction payment type.\n"},"state":{"type":"string","description":"The state of the customer's address. Only applicable to direct debit\npayment methods.\n"},"streetName":{"type":"string","description":"The street name of the customer's address. Only applicable to direct debit\npayment methods.\n"},"streetNumber":{"type":"string","description":"The street number of the customer's address. Only applicable to direct\ndebit payment methods.\n"},"tokenId":{"type":"string","description":"A gateway unique identifier that replaces sensitive payment method data or\nrepresents a gateway's unique customer profile. Applicable to CC Reference\nTransaction payment methods.\n"},"totalNumberOfErrorPayments":{"type":"integer","description":"The number of error payments that used this payment method."},"totalNumberOfProcessedPayments":{"type":"integer","description":"The number of successful payments that used this payment method."},"type":{"type":"string","description":"The type of the payment method. For example, `CreditCard`.\n"},"useDefaultRetryRule":{"type":"boolean","description":"Indicates whether this payment method uses the default retry rules configured in the Zuora Payments settings.\n"},"methodReferenceId":{"type":"string","description":"The identification reference of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Payment Method Data Source Exports and Data Query.\n"},"userReferenceId":{"type":"string","description":"The identification reference of the user or customer account.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"subType":{"type":"string","description":"The identification reference indicating the subtype of the custom payment method.\n\nThis field should be mapped to a field name defined in the `fields` array for the purpose of being used as a filter in reporting tools such as Data Source Exports and Data Query.\n"},"methodSpecificData":{"type":"string","description":"Other method-specific data of the payment method.\n"}},"title":"ExpandedPaymentMethodSnapshot"},"Object_Queries_queryPaymentMethodSnapshots_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPaymentMethodSnapshot"}}},"title":"Object Queries_queryPaymentMethodSnapshots_Response_200"},"ExpandedPaymentRunStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","Canceled"],"description":"The status of the created payment run.\n","title":"ExpandedPaymentRunStatus"},"ExpandedPaymentRunRepeatType":{"type":"string","enum":["None","Daily","Weekly","Monthly"],"description":"The repeat type of the payment run.\n","title":"ExpandedPaymentRunRepeatType"},"ExpandedPaymentRunWeeklyOnDay":{"type":"string","enum":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"description":"The repeat day in a week. \n\nThis field is required if you set `repeatType` field to `Weekly`.\n","title":"ExpandedPaymentRunWeeklyOnDay"},"ExpandedPaymentRun":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the payment run.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment run.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the payment run gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment run.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the payment run gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"endDate":{"type":"string","description":"The end date of the payment run.\n"},"executedDate":{"type":"string","format":"date-time","description":"The date and time when the payment run is executed, in `yyyy-mm-dd\nhh:mm:ss` format. For example, 2024-03-01 11:30:37.\n"},"numberOfCreditBalanceAdjustments":{"type":"integer","description":"**Note:** This field is only available if you have the Credit Balance\nfeature enabled.\n\n\nThe number of credit balance adjustments that are successfully processed\nin the payment run.\n"},"numberOfErrors":{"type":"integer","description":"The number of payments with the status of `Error` and `Processing`.\n"},"numberOfInvoices":{"type":"integer","description":"**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n\nThe total number of invoices that are picked up for processing in the payment run.\n"},"numberOfPayments":{"type":"integer","description":"The number of payments that are successfully processed in the payment run.\n"},"numberOfUnprocessed":{"type":"integer","description":"The number of billing documents with remaining positive balances after the\npayment run is completed.\n"},"paymentRunNumber":{"type":"string","description":"Number of the payment run.\n"},"status":{"$ref":"#/components/schemas/ExpandedPaymentRunStatus","description":"The status of the created payment run.\n"},"targetDate":{"type":"string","format":"date","description":"The target date used to determine which receivables to be collected in the\npayment run. \n"},"applyCreditBalance":{"type":"boolean","description":"Whether to apply credit balances in the payment run. This field is only\navailable when you have Invoice Settlement feature disabled.\n"},"consolidatedPayment":{"type":"boolean","description":"**Note:** The **Process Electronic Payment** permission also needs to be allowed for a Manage Payment Runs role to work. See [Payments Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles) for more information. \n\nWhether to process a single payment for all receivables that are due on an account.\n"},"processPaymentWithClosedPM":{"type":"boolean","description":"Whether to process payments even if the default payment method is closed.\n\n\n**Note:** The **Process Electronic Payment** permission also needs to be\nallowed for a Manage Payment Runs role to work. See [Payments\nRoles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/e_Payments_Roles)\nfor more information. \n"},"collectPayment":{"type":"boolean","description":"Whether to process electronic payments during the execution of payment\nruns. \n"},"autoApplyCreditMemo":{"type":"boolean","description":"Whether to automatically apply a posted credit memo to one or more\nreceivables in the payment run.\n\n\n**Note:** This field is only available if you have [Invoice\nSettlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\nenabled. The Invoice Settlement feature is generally available as of Zuora\nBilling Release 296 (March 2021). This feature includes Unapplied\nPayments, Credit and Debit Memo, and Invoice Item Settlement. If you want\nto enable Invoice Settlement, see [Invoice Settlement Enablement and\nChecklist\nGuide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\nfor more information.\n"},"autoApplyUnappliedPayment":{"type":"boolean","description":"Whether to automatically apply unapplied payments to  one or more\nreceivables in the payment run.\n\n\n**Note:** This field is only available if you have [Invoice\nSettlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\nenabled. The Invoice Settlement feature is generally available as of Zuora\nBilling Release 296 (March 2021). This feature includes Unapplied\nPayments, Credit and Debit Memo, and Invoice Item Settlement. If you want\nto enable Invoice Settlement, see [Invoice Settlement Enablement and\nChecklist\nGuide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\nfor more information.\n"},"numberOfCreditMemos":{"type":"integer","description":"The total number of credit memos that are successfully processed in the\npayment run.\n\n\n**Note:** This field is only available if you have the Invoice Settlement\nfeature enabled.\n"},"numberOfDebitMemos":{"type":"integer","description":"The total number of debit memos that are picked up for processing in the payment run.\n\n**Note:** This field is only available if you have the Invoice Settlement feature enabled.\n"},"numberOfDebitMemosUnprocessed":{"type":"integer","description":"The total number of debit memos that are not processed in the payment run.\n\n\n**Note:** This field is only available if you have the Invoice Settlement\nfeature enabled.\n"},"numberofUnappliedPayments":{"type":"integer","description":"The number of unapplied payments that are successfully processed in the\npayment run.\n\n\n**Note:** This field is only available if you have the Invoice Settlement\nfeature enabled.\n"},"totalExecutionTime":{"type":"integer","format":"int64","description":"The total time taken to execute the payment run in milliseconds.\n"},"errorMessage":{"type":"string","description":"The detailed information of the error response.\n"},"runDate":{"type":"string","format":"date","description":"The date and time when the scheduled payment run is to be executed for\ncollecting payments.\n"},"nextRunOn":{"type":"string","format":"date","description":"The date when the next payment run is scheduled to run.\n"},"repeatType":{"$ref":"#/components/schemas/ExpandedPaymentRunRepeatType","description":"The repeat type of the payment run.\n"},"repeatFrom":{"type":"string","description":"The start date of the scheduled payment run.\n"},"repeatTo":{"type":"string","description":"The end date of of the scheduled payment run.\n"},"runTime":{"type":"integer","minimum":0,"maximum":23,"description":"The scheduled run time (hour) of day.\n"},"timeZone":{"type":"string","description":"Timezone of the scheduled payment run.\n"},"monthlyOnDay":{"type":"string","description":"The repeat day in a month.\n"},"weeklyOnDay":{"$ref":"#/components/schemas/ExpandedPaymentRunWeeklyOnDay","description":"The repeat day in a week. \n\nThis field is required if you set `repeatType` field to `Weekly`.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the payment run.\n"},"batch":{"type":"string","description":"The alias name given to a batch.\n"},"billingCycleDay":{"type":"string","description":"The billing cycle day (BCD), the day of the month when a bill run\ngenerates invoices for the account. \n"},"currency":{"type":"string","description":"A currency defined in the web-based UI administrative settings.\n"},"paymentGatewayId":{"type":["string","null"],"format":"uuid","description":"The ID of the gateway instance that processes the payment.\n"},"billingRunId":{"type":"string","description":"The unique identifier of the billing run that the payment run is\nassociated with.\n"}},"title":"ExpandedPaymentRun"},"Object_Queries_queryPaymentRuns_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPaymentRun"}}},"title":"Object Queries_queryPaymentRuns_Response_200"},"ExpandedPaymentSchedulePeriod":{"type":"string","enum":["Monthly","Weekly","BiWeekly"],"description":"For recurring payment schedule only. The period of payment generation.\n\nReturns `null` for custom payment schedules.\n","title":"ExpandedPaymentSchedulePeriod"},"ExpandedPaymentScheduleStatus":{"type":"string","enum":["Active","Canceled","Completed"],"description":"The status of the payment schedule.\n\n- Active: There is still payment schedule item to process.\n\n- Canceled: After a payment schedule is canceled by the user, the\nschedule is marked as `canceled`.\n\n- Completed: After all payment schedule items are processed, the\nschedule is marked as `Completed`.\n","title":"ExpandedPaymentScheduleStatus"},"ExpandedPaymentSchedule":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the payment schedule.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment schedule.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the payment schedule gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment schedule.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the payment schedule gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"number":{"type":"string","description":"Number of the payment schedule.\n"},"accountId":{"type":"string","description":"ID of the account that owns the payment schedule.\n"},"invoiceId":{"type":"string","description":"The unique identifier of the invoice to which the payment is applied.\n"},"debitmemoId":{"type":"string","description":"The unique identifier of the debit memo to which the payment is applied.\n"},"paymentOptionId":{"type":"string","description":"The unique identifier of the payment option that is used to process\nthe payment schedule.\n"},"startDate":{"type":"string","format":"date","description":"The date when the first payment of this payment schedule is\nproccessed.\n"},"runHour":{"type":"integer","minimum":0,"maximum":23,"description":"At which hour in the day in the tenant’s timezone the recurring\npayment schedule items will be collected.\n\nReturn `0` for custom payment schedules.\n"},"period":{"oneOf":[{"$ref":"#/components/schemas/ExpandedPaymentSchedulePeriod"},{"type":"null"}],"description":"For recurring payment schedule only. The period of payment generation.\n\nReturns `null` for custom payment schedules.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the payments created by the payment schedule are\nused as a reserved payment. This field is available only if the\nprepaid cash drawdown permission is enabled. See [Prepaid Cash with\nDrawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)\nfor more information.\n"},"occurrences":{"type":"integer","description":"The number of payment schedule items that are created by this payment schedule.\n"},"status":{"$ref":"#/components/schemas/ExpandedPaymentScheduleStatus","description":"The status of the payment schedule.\n\n- Active: There is still payment schedule item to process.\n\n- Canceled: After a payment schedule is canceled by the user, the\nschedule is marked as `canceled`.\n\n- Completed: After all payment schedule items are processed, the\nschedule is marked as `Completed`.\n"},"description":{"type":"string","description":"The description of the payment schedule.\n"},"nextPaymentDate":{"type":"string","format":"date","description":"The date the next payment will be processed.\n"},"recentPaymentDate":{"type":"string","format":"date","description":"The date the last payment was processed.\n"},"totalPaymentsProcessed":{"type":"integer","description":"The number of processed payments.\n"},"totalPaymentsErrored":{"type":"integer","description":"The number of errored payments.\n"},"totalAmount":{"type":"number","format":"double","description":"The total amount that will be collected by the payment\nschedule.            \n"}},"title":"ExpandedPaymentSchedule"},"Object_Queries_queryPaymentSchedules_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPaymentSchedule"}}},"title":"Object Queries_queryPaymentSchedules_Response_200"},"ObjectQueryPaymentScheduleItemsGetParametersExpandSchemaItems":{"type":"string","enum":["paymentscheduleitempayments","paymentscheduleitempayments.payment"],"title":"ObjectQueryPaymentScheduleItemsGetParametersExpandSchemaItems"},"ExpandedPaymentScheduleItemStatus":{"type":"string","enum":["Pending","Processed","Error","Canceled"],"description":"ID of the payment method of the payment schedule item.\n\n- `Pending`: Waiting for processing.\n- `Processed`: The payment has been collected.\n- `Error`: Failed to collect the payment.\n- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.\n","title":"ExpandedPaymentScheduleItemStatus"},"ExpandedPaymentScheduleItem":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the payment schedule item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment schedule item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the payment schedule item gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment schedule item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The time that the payment schedule item gets updated in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"number":{"type":"string","description":"Number of the payment schedule item.\n"},"accountId":{"type":"string","description":"ID of the account that owns the payment schedule.\n"},"invoiceId":{"type":"string","description":"The unique identifier of the invoice to which the payment is applied.\n"},"debitmemoId":{"type":"string","description":"The unique identifier of the debit memo to which the payment is applied.\n"},"paymentOptionId":{"type":"string","description":"The unique identifier of the payment option that is used to process\nthe payment schedule item.\n"},"prepayment":{"type":"boolean","description":"Indicates whether the payments created by the payment schedule are\nused as a reserved payment. This field is available only if the\nprepaid cash drawdown permission is enabled. See [Prepaid Cash with\nDrawdown](https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_Cash_with_Drawdown)\nfor more information.\n"},"scheduledDate":{"type":"string","format":"date","description":"The scheduled date when the payment is processed.\n"},"runHour":{"type":"integer","minimum":0,"maximum":23,"description":"At which hour in the day in the tenant’s timezone the recurring\npayment schedule items will be collected.\n\nReturn `0` for custom payment schedules.\n"},"paymentMethodId":{"type":"string","description":"ID of the payment method that will pay the billing documents.\n"},"paymentGatewayId":{"type":["string","null"],"description":"ID of the payment gateway that processes the payment.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the payment schedule item.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance of payment schedule item.\n"},"currency":{"type":"string","description":"The currency in which the payment is made.\n\nNote: If this field was not specified, the default value is the currency set for the account.\n"},"status":{"$ref":"#/components/schemas/ExpandedPaymentScheduleItemStatus","description":"ID of the payment method of the payment schedule item.\n\n- `Pending`: Waiting for processing.\n- `Processed`: The payment has been collected.\n- `Error`: Failed to collect the payment.\n- `Canceled`: After a pending payment schedule item is canceled by the user, the item is marked as `Canceled`.\n"},"errorMessage":{"type":"string","description":"The error message indicating if the error is related to the\nconfiguration or the payment collection.\n"},"paymentId":{"type":"string","description":"ID of the payment that is created by the payment schedule item, or linked to the payment schedule item. \nThis field is only available if the request doesn’t specify `Zuora-Version`, or `Zuora-Version` is set to a value equal to or smaller than\\_`336.0`.\n"},"description":{"type":"string","description":"The description of the payment schedule item.\n"},"cancellationReason":{"type":"string","description":"The reason for the cancellation of payment schedule item.  \n"},"paymentScheduleId":{"type":"string","description":"ID of the payment schedule to which the payment schedule item belongs.\n"}},"title":"ExpandedPaymentScheduleItem"},"Object_Queries_queryPaymentScheduleItems_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPaymentScheduleItem"}}},"title":"Object Queries_queryPaymentScheduleItems_Response_200"},"ObjectQueryPaymentScheduleItemsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["paymentscheduleitempayments","paymentscheduleitempayments.payment"],"title":"ObjectQueryPaymentScheduleItemsKeyGetParametersExpandSchemaItems"},"ObjectQueryPrepaidBalancesGetParametersExpandSchemaItems":{"type":"string","enum":["account","origsubscription"],"title":"ObjectQueryPrepaidBalancesGetParametersExpandSchemaItems"},"ExpandedPrepaidBalancePrepaidBalanceState":{"type":"string","enum":["ACTIVE","EXPIRED"],"description":"The state of the prepaid balance. \n","title":"ExpandedPrepaidBalancePrepaidBalanceState"},"ExpandedPrepaidBalance":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the prepaid balance.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment application.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the payment application was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment application.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the payment application was last updated.\n"},"name":{"type":"string","description":"The name of the prepaid balance.\n"},"totalFund":{"type":"number","format":"double","description":"The total amount of all prepaid balance funds.\n"},"balance":{"type":"number","format":"double","description":"The current prepaid balance.\n"},"endDate":{"type":"string","format":"date","description":"End date of the validity period."},"startDate":{"type":"string","format":"date","description":"Start date of the validity period."},"accountId":{"type":"string","description":"The ID of the customer account to which the prepaid balance belongs.\n"},"origSubscriptionId":{"type":"string","description":"If it belongs to a subscription, the original subscription ID.\n"},"uOM":{"type":"string","description":"The units of measure for prepayment charge. Units of measure\nare configured in the web-based UI. Your values depend on your\nconfiguration in **Billing Settings**.\n\n**Values**: a valid unit of measure\n"},"prepaidBalanceState":{"$ref":"#/components/schemas/ExpandedPrepaidBalancePrepaidBalanceState","description":"The state of the prepaid balance. \n"},"prepaidType":{"type":["integer","null"],"description":"The type of the prepaid balance.\n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"origSubscription":{"$ref":"#/components/schemas/NestedSubscriptionOnExpand"}},"title":"ExpandedPrepaidBalance"},"Object_Queries_queryPrepaidBalances_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPrepaidBalance"}}},"title":"Object Queries_queryPrepaidBalances_Response_200"},"ObjectQueryPrepaidBalancesKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","origsubscription"],"title":"ObjectQueryPrepaidBalancesKeyGetParametersExpandSchemaItems"},"ObjectQueryPrepaidBalanceFundsGetParametersExpandSchemaItems":{"type":"string","enum":["account","prepaidbalance","source","vpsummary"],"title":"ObjectQueryPrepaidBalanceFundsGetParametersExpandSchemaItems"},"ExpandedPrepaidBalanceFundFundSourceType":{"type":"string","enum":["CHARGE","ORDER_LINE_ITEM","CREDIT_MEMO_ITEM","DEBIT_MEMO_ITEM"],"description":"The type of the Prepaid Balance Fund.  \n","title":"ExpandedPrepaidBalanceFundFundSourceType"},"ExpandedPrepaidBalanceFundPriority":{"type":"string","enum":["10","50","100"],"description":"The priority of the Fund. Possible values include: 10(high), 50(medium),100(low)\n","title":"ExpandedPrepaidBalanceFundPriority"},"NestedPrepaidBalanceOnExpandPrepaidBalanceState":{"type":"string","enum":["ACTIVE","EXPIRED"],"description":"The state of the prepaid balance. \n","title":"NestedPrepaidBalanceOnExpandPrepaidBalanceState"},"NestedPrepaidBalanceOnExpandAccount":{"type":"object","properties":{},"description":"The account associated with the prepaid balance.\n","title":"NestedPrepaidBalanceOnExpandAccount"},"NestedPrepaidBalanceOnExpandOrigSubscription":{"type":"object","properties":{},"description":"The subscription associated with the prepaid balance.\n","title":"NestedPrepaidBalanceOnExpandOrigSubscription"},"NestedPrepaidBalanceOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the prepaid balance.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the payment application.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the payment application was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the payment application.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the payment application was last updated.\n"},"name":{"type":"string","description":"The name of the prepaid balance.\n"},"totalFund":{"type":"number","format":"double","description":"The total amount of all prepaid balance funds.\n"},"balance":{"type":"number","format":"double","description":"The current prepaid balance.\n"},"endDate":{"type":"string","format":"date","description":"End date of the validity period."},"startDate":{"type":"string","format":"date","description":"Start date of the validity period."},"accountId":{"type":"string","description":"The ID of the customer account to which the prepaid balance belongs.\n"},"origSubscriptionId":{"type":"string","description":"If it belongs to a subscription, the original subscription ID.\n"},"uOM":{"type":"string","description":"The units of measure for prepayment charge. Units of measure\nare configured in the web-based UI. Your values depend on your\nconfiguration in **Billing Settings**.\n\n**Values**: a valid unit of measure\n"},"prepaidBalanceState":{"$ref":"#/components/schemas/NestedPrepaidBalanceOnExpandPrepaidBalanceState","description":"The state of the prepaid balance. \n"},"prepaidType":{"type":["integer","null"],"description":"The type of the prepaid balance.\n"},"account":{"$ref":"#/components/schemas/NestedPrepaidBalanceOnExpandAccount","description":"The account associated with the prepaid balance.\n"},"origSubscription":{"$ref":"#/components/schemas/NestedPrepaidBalanceOnExpandOrigSubscription","description":"The subscription associated with the prepaid balance.\n"}},"title":"NestedPrepaidBalanceOnExpand"},"NestedValidityPeriodSummaryOnExpandAccount":{"type":"object","properties":{},"description":"The account associated with the validty period summary.\n","title":"NestedValidityPeriodSummaryOnExpandAccount"},"NestedValidityPeriodSummaryOnExpandPrepaidBalance":{"type":"object","properties":{},"description":"The prepaid balance associated with the validity period summary.\n","title":"NestedValidityPeriodSummaryOnExpandPrepaidBalance"},"NestedValidityPeriodSummaryOnExpandBillingTiming":{"type":"string","enum":["In Advance","In Arrears"],"description":"The billing timing of the validity period.\n","title":"NestedValidityPeriodSummaryOnExpandBillingTiming"},"NestedValidityPeriodSummaryOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the validity period summary.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the validity period summary.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the validity period summary was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the validity period summary.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the validity period summary was last updated.\n"},"prepaidBalanceId":{"type":"string","description":"The unique identifier of the prepaid balance.\n"},"startDate":{"type":"string","format":"date","description":"The start date of the validity period.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the validity period.\n"},"totalBalance":{"type":"number","format":"double","description":"The total prepaid balance for the current validity period.\n"},"remainingBalance":{"type":"number","format":"double","description":"The remaining prepaid balance for the current validity period.\n"},"totalBilledAmount":{"type":"number","format":"double","description":"The total amount that has been billed.\n"},"billedBalanceAmount":{"type":"number","format":"double","description":"The total amount of the billing documents balances.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription the validity period belongs to.\n"},"uom":{"type":"string","description":"The UOM of the validity period.\n"},"accountNumber":{"type":"string","description":"The number of the account to which the prepaid balance belongs.\n"},"accountId":{"type":"string","description":"The ID of the account to which the prepaid balance belongs.\n"},"overageRatedQuantity":{"type":"number","format":"double","description":"The overage rated quantity for the validity period.\n\n**Note**: The `overageRatedQuantity` and `overageRatedAmount` fields of the Validity Period Summary object are approaching end of support on  February 01, 2025. For more information, see <a href=\"https://knowledgecenter.zuora.com/Releases/ZProduct_and_feature_end_of_support_plan#overageRatedQuantity_and_overageRatedAmount_fields_end_of_support_plan\" target=\"_blank\">Product and feature end of support plan</a>.\n"},"overageRatedAmount":{"type":"number","format":"double","description":"The overage rated amount for the validity period.\n\n**Note**: The `overageRatedQuantity` and `overageRatedAmount` fields of the Validity Period Summary object are approaching end of support on  February 01, 2025. For more information, see <a href=\"https://knowledgecenter.zuora.com/Releases/ZProduct_and_feature_end_of_support_plan#overageRatedQuantity_and_overageRatedAmount_fields_end_of_support_plan\" target=\"_blank\">Product and feature end of support plan</a>.\n"},"account":{"$ref":"#/components/schemas/NestedValidityPeriodSummaryOnExpandAccount","description":"The account associated with the validty period summary.\n"},"prepaidBalance":{"$ref":"#/components/schemas/NestedValidityPeriodSummaryOnExpandPrepaidBalance","description":"The prepaid balance associated with the validity period summary.\n"},"billingTiming":{"$ref":"#/components/schemas/NestedValidityPeriodSummaryOnExpandBillingTiming","description":"The billing timing of the validity period.\n"}},"title":"NestedValidityPeriodSummaryOnExpand"},"ExpandedPrepaidBalanceFund":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the prepaid balance fund.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the prepaid balance fund.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the prepaid balance fund was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the prepaid balance fund.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the prepaid balance fund was last updated.\n"},"accountId":{"type":"string","description":"The ID of the customer account to which the prepaid balance fund belongs.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance (remaining units) on the fund.\n"},"chargeSegmentNumber":{"type":"integer","description":"The number of the charge segment. One prepaid balance fund can only belong to one charge segment.\n"},"endDate":{"type":"string","format":"date","description":"End date of the fund effective period.\n"},"fundedBalance":{"type":"number","format":"double","description":"The total units of the fund. \n"},"fundSourceType":{"$ref":"#/components/schemas/ExpandedPrepaidBalanceFundFundSourceType","description":"The type of the Prepaid Balance Fund.  \n"},"fundingPrice":{"type":"number","format":"double","description":"The price amount of a fund. A rounded value that follows the associated invoice owner's <a href=\"https://knowledgecenter.zuora.com/Quick_References/Rounding_and_Precision#Currency_rounding_rules\" target=\"_blank\">currency rounding rule</a>. \n\n**Calculation**: (Number of billing periods in one fund validity period) * (price in one billing period)\n"},"totalBilled":{"type":"number","format":"double","description":"The total billed amount of a fund.\n"},"totalBalance":{"type":"number","format":"double","description":"The total balance of a fund.\n"},"originalTotalBalance":{"type":"number","format":"double","description":"The original total balance of a fund.\n"},"originalFundingPrice":{"type":"number","format":"double","description":"The original price amount of a fund.\n"},"originalFundEndDate":{"type":"string","format":"date","description":"The original end date of the fund effective period.\n"},"rolloverValidityPeriodStartDate":{"type":"string","format":"date","description":"Start date of the rollover validity period.\n"},"rolloverValidityPeriodEndDate":{"type":"string","format":"date","description":"End date of the rollover validity period.\n"},"prepaidBalanceId":{"type":"string","description":"The ID of the prepaid balance associated to which this prepaid balance fund belongs.\n"},"priority":{"$ref":"#/components/schemas/ExpandedPrepaidBalanceFundPriority","description":"The priority of the Fund. Possible values include: 10(high), 50(medium),100(low)\n"},"sourceId":{"type":"string","description":"The source Id of the fund. It is the original charge ID. \n"},"startDate":{"type":"string","format":"date","description":"Start date of the fund effective period.\n"},"vpSummaryId":{"type":"string"},"rolloverCount":{"type":"integer"},"originFundId":{"type":"string"},"rolloverApplyOption":{"type":"string"},"done":{"type":"integer"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"prepaidBalance":{"$ref":"#/components/schemas/NestedPrepaidBalanceOnExpand"},"source":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpand"},"vpSummary":{"$ref":"#/components/schemas/NestedValidityPeriodSummaryOnExpand"}},"title":"ExpandedPrepaidBalanceFund"},"Object_Queries_queryPrepaidBalanceFunds_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPrepaidBalanceFund"}}},"title":"Object Queries_queryPrepaidBalanceFunds_Response_200"},"ObjectQueryPrepaidBalanceFundsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","prepaidbalance","source","vpsummary"],"title":"ObjectQueryPrepaidBalanceFundsKeyGetParametersExpandSchemaItems"},"ObjectQueryPrepaidBalanceTransactionsGetParametersExpandSchemaItems":{"type":"string","enum":["account","prepaidbalance","fund"],"title":"ObjectQueryPrepaidBalanceTransactionsGetParametersExpandSchemaItems"},"ExpandedPrepaidBalanceTransactionTransactionSourceType":{"type":"string","enum":["CHARGE","ORDER_LINE_ITEM","USAGE"],"description":"The type of the transaction source. \n","title":"ExpandedPrepaidBalanceTransactionTransactionSourceType"},"ExpandedPrepaidBalanceTransactionPrepaidBalanceTransactionType":{"type":"string","enum":["PREPAYMENT","DRAWDOWN","PREPAYMENT_ADJUSTMENT","DRAWDOWN_ADJUSTMENT","DRAWDOWN_REVERSAL","PREPAYMENT_CREDIT_BACK","PREPAYMENT_CREDIT_BACK_REVERSAL"],"description":"The type of the Prepaid Balance Transaction. \n","title":"ExpandedPrepaidBalanceTransactionPrepaidBalanceTransactionType"},"NestedPrepaidBalanceFundOnExpandFundSourceType":{"type":"string","enum":["CHARGE","ORDER_LINE_ITEM","CREDIT_MEMO_ITEM","DEBIT_MEMO_ITEM"],"description":"The type of the Prepaid Balance Fund.  \n","title":"NestedPrepaidBalanceFundOnExpandFundSourceType"},"NestedPrepaidBalanceFundOnExpandPriority":{"type":"string","enum":["10","50","100"],"description":"The priority of the Fund. Possible values include: 10(high), 50(medium),100(low)\n","title":"NestedPrepaidBalanceFundOnExpandPriority"},"NestedPrepaidBalanceFundOnExpandAccount":{"type":"object","properties":{},"description":"The account associated with the prepaid balance fund.\n","title":"NestedPrepaidBalanceFundOnExpandAccount"},"NestedPrepaidBalanceFundOnExpandPrepaidBalance":{"type":"object","properties":{},"description":"The prepaid balance that contains the prepaid balance fund.\n","title":"NestedPrepaidBalanceFundOnExpandPrepaidBalance"},"NestedPrepaidBalanceFundOnExpandSource":{"type":"object","properties":{},"description":"The rate plan charge associated with the prepaid balance fund.\n","title":"NestedPrepaidBalanceFundOnExpandSource"},"NestedPrepaidBalanceFundOnExpandVpSummary":{"type":"object","properties":{},"description":"The validity period summary associated with the prepaid balance fund.\n","title":"NestedPrepaidBalanceFundOnExpandVpSummary"},"NestedPrepaidBalanceFundOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the prepaid balance fund.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the prepaid balance fund.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the prepaid balance fund was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the prepaid balance fund.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the prepaid balance fund was last updated.\n"},"accountId":{"type":"string","description":"The ID of the customer account to which the prepaid balance fund belongs.\n"},"balance":{"type":"number","format":"double","description":"The remaining balance (remaining units) on the fund.\n"},"chargeSegmentNumber":{"type":"integer","description":"The number of the charge segment. One prepaid balance fund can only belong to one charge segment.\n"},"endDate":{"type":"string","format":"date","description":"End date of the fund effective period.\n"},"fundedBalance":{"type":"number","format":"double","description":"The total units of the fund. \n"},"fundSourceType":{"$ref":"#/components/schemas/NestedPrepaidBalanceFundOnExpandFundSourceType","description":"The type of the Prepaid Balance Fund.  \n"},"fundingPrice":{"type":"number","format":"double","description":"The price amount of a fund. A rounded value that follows the associated invoice owner's <a href=\"https://knowledgecenter.zuora.com/Quick_References/Rounding_and_Precision#Currency_rounding_rules\" target=\"_blank\">currency rounding rule</a>. \n\n**Calculation**: (Number of billing periods in one fund validity period) * (price in one billing period)\n"},"totalBilled":{"type":"number","format":"double"},"totalBalance":{"type":"number","format":"double"},"originalTotalBalance":{"type":"number","format":"double"},"originalFundingPrice":{"type":"number","format":"double"},"originalFundEndDate":{"type":"string","format":"date"},"rolloverValidityPeriodStartDate":{"type":"string","format":"date"},"rolloverValidityPeriodEndDate":{"type":"string","format":"date"},"prepaidBalanceId":{"type":"string","description":"The ID of the prepaid balance associated to which this prepaid balance fund belongs.\n"},"priority":{"$ref":"#/components/schemas/NestedPrepaidBalanceFundOnExpandPriority","description":"The priority of the Fund. Possible values include: 10(high), 50(medium),100(low)\n"},"sourceId":{"type":"string","description":"The source Id of the fund. It is the original charge ID. \n"},"startDate":{"type":"string","format":"date","description":"Start date of the fund effective period.\n"},"vpSummaryId":{"type":"string"},"rolloverCount":{"type":"integer"},"originFundId":{"type":"string"},"rolloverApplyOption":{"type":"string"},"done":{"type":"integer"},"account":{"$ref":"#/components/schemas/NestedPrepaidBalanceFundOnExpandAccount","description":"The account associated with the prepaid balance fund.\n"},"prepaidBalance":{"$ref":"#/components/schemas/NestedPrepaidBalanceFundOnExpandPrepaidBalance","description":"The prepaid balance that contains the prepaid balance fund.\n"},"source":{"$ref":"#/components/schemas/NestedPrepaidBalanceFundOnExpandSource","description":"The rate plan charge associated with the prepaid balance fund.\n"},"vpSummary":{"$ref":"#/components/schemas/NestedPrepaidBalanceFundOnExpandVpSummary","description":"The validity period summary associated with the prepaid balance fund.\n"}},"title":"NestedPrepaidBalanceFundOnExpand"},"ExpandedPrepaidBalanceTransaction":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the prepaid balance transaction.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the prepaid balance transaction.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the prepaid balance transaction was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the prepaid balance transaction.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the prepaid balance transaction was last updated.\n"},"accountId":{"type":"string","description":"The ID of the customer account on which the prepaid balance transaction occurs.\n"},"prepaidBalanceId":{"type":"string","description":"The ID of the prepaid balance.\n"},"fundId":{"type":"string","description":"The ID of the prepaid balance fund.\n"},"amount":{"type":"number","format":"double","description":"The amount of units to be adjusted to the prepaid balance (could be positive or negative).\n"},"balance":{"type":"number","format":"double","description":"The prepaid balance after a transaction.\n"},"sourceId":{"type":"string","description":"The transaction source id (original Charge Id, Guided Usage Id, Order Line Item Id).\n"},"transactionDate":{"type":"string","format":"date","description":"The date when the prepaid balance transaction occurs.\n"},"transactionSourceType":{"$ref":"#/components/schemas/ExpandedPrepaidBalanceTransactionTransactionSourceType","description":"The type of the transaction source. \n"},"prepaidBalanceTransactionType":{"$ref":"#/components/schemas/ExpandedPrepaidBalanceTransactionPrepaidBalanceTransactionType","description":"The type of the Prepaid Balance Transaction. \n"},"usageUom":{"type":"string"},"drawdownRate":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"prepaidBalance":{"$ref":"#/components/schemas/NestedPrepaidBalanceOnExpand"},"fund":{"$ref":"#/components/schemas/NestedPrepaidBalanceFundOnExpand"}},"title":"ExpandedPrepaidBalanceTransaction"},"Object_Queries_queryPrepaidBalanceTransactions_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedPrepaidBalanceTransaction"}}},"title":"Object Queries_queryPrepaidBalanceTransactions_Response_200"},"ObjectQueryPrepaidBalanceTransactionsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","prepaidbalance","fund"],"title":"ObjectQueryPrepaidBalanceTransactionsKeyGetParametersExpandSchemaItems"},"ObjectQueryProcessedUsagesGetParametersExpandSchemaItems":{"type":"string","enum":["usage","invoiceitem","creditmemoitem"],"title":"ObjectQueryProcessedUsagesGetParametersExpandSchemaItems"},"ExpandedProcessedUsage":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the processed usage.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the processed usage.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the processed usage was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the processed usage.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the processed usage was last updated.\n"},"usageId":{"type":"string","description":"The unique identifier of the usage.\n"},"amount":{"type":"number","format":"double","description":"The amount of the processed usage.\n"},"billingPeriodEndDate":{"type":"string","description":"The end date of the billing period for the processed usage.\n"},"billingPeriodStartDate":{"type":"string","description":"The start date of the billing period for the processed usage.\n"},"invoiceItemId":{"type":"string","description":"The unique identifier of the invoice item associated with the processed usage.\n"},"creditMemoItemId":{"type":"string","description":"The unique identifier of the credit memo item associated with the processed usage.\n"},"ratePlanChargeId":{"type":"string","description":"ID of the rate plan charge associated with the processed usage.\n"},"usage":{"$ref":"#/components/schemas/NestedUsageOnExpand"},"invoiceItem":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpand"},"creditMemoItem":{"$ref":"#/components/schemas/NestedCreditMemoItemOnExpand"}},"title":"ExpandedProcessedUsage"},"Object_Queries_queryProcessedUsages_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedProcessedUsage"}}},"title":"Object Queries_queryProcessedUsages_Response_200"},"ObjectQueryProcessedUsagesKeyGetParametersExpandSchemaItems":{"type":"string","enum":["usage","invoiceitem","creditmemoitem"],"title":"ObjectQueryProcessedUsagesKeyGetParametersExpandSchemaItems"},"ObjectQueryProductsGetParametersExpandSchemaItems":{"type":"string","enum":["productrateplans","productrateplans.productrateplancharges","productrateplans.productrateplancharges.productrateplanchargetiers"],"title":"ObjectQueryProductsGetParametersExpandSchemaItems"},"ExpandedProductCategory":{"type":"string","enum":["Base Products","Add On Services","Miscellaneous Products"],"description":"Category of the product. Used by Zuora Quotes Guided Product Selector.\n","title":"ExpandedProductCategory"},"NestedProductRatePlanOnExpandProduct":{"type":"object","properties":{},"description":"The product associated with the product rate plan.\n","title":"NestedProductRatePlanOnExpandProduct"},"NestedProductRatePlanOnExpandProductRatePlanChargesItems":{"type":"object","properties":{},"title":"NestedProductRatePlanOnExpandProductRatePlanChargesItems"},"NestedProductRatePlanOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the product rate plan.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the product rate plan.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the product rate plan was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the product rate plan.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the product rate plan was last updated.\n"},"productId":{"type":"string","description":"The unique identifier of the product to which this product rate\nplan belongs.\n"},"name":{"type":"string","description":"The name of the product rate plan.\n"},"description":{"type":"string","description":"A description of the product rate plan.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"First date the rate plan is active (i.e., available to be subscribed\nto), as `yyyy-mm-dd`.  Before this date, the status is `NotStarted`.\n"},"effectiveEndDate":{"type":"string","format":"date","description":"Final date the rate plan is active, as `yyyy-mm-dd`. After this date,\nthe rate plan status is `Expired`.\n"},"grade":{"type":"integer","description":"The grade of the product rate plan.\n\n\n**Note**: This field is in the **Early Adopter** phase. We are\nactively soliciting feedback from a small set of early adopters before\nreleasing it as generally available. If you want to join this early\nadopter program, submit a request at [Zuora Global\nSupport](http://support.zuora.com/).\n"},"productRatePlanNumber":{"type":"string","description":"The natural key of the product rate plan. \n"},"product":{"$ref":"#/components/schemas/NestedProductRatePlanOnExpandProduct","description":"The product associated with the product rate plan.\n"},"productRatePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/NestedProductRatePlanOnExpandProductRatePlanChargesItems"},"description":"The product rate plan charges on the product rate plan.\n"}},"title":"NestedProductRatePlanOnExpand"},"ExpandedProduct":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the product.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the product.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the product was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the product.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the product was last updated.\n"},"allowFeatureChanges":{"type":"boolean","default":false,"description":"Controls whether to allow your users to add or remove features while creating or amending a subscription.\n"},"description":{"type":"string","description":"A description of the product. \n"},"name":{"type":"string","description":"The name of the product. This information is displayed in the product\ncatalog pages in the web-based UI.\n"},"effectiveEndDate":{"type":"string","format":"date","description":"The date when the product expires and can't be subscribed to anymore,\nin the `yyyy-mm-dd` format.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"The date when the product becomes available and can be subscribed to, in the `yyyy-mm-dd` format.\n"},"sKU":{"type":"string","description":"The unique SKU for the product.\n"},"productNumber":{"type":"string","description":"The product number of the product.\n"},"category":{"$ref":"#/components/schemas/ExpandedProductCategory","description":"Category of the product. Used by Zuora Quotes Guided Product Selector.\n"},"productRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/NestedProductRatePlanOnExpand"}}},"title":"ExpandedProduct"},"Object_Queries_queryProducts_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedProduct"}}},"title":"Object Queries_queryProducts_Response_200"},"ObjectQueryProductsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["productrateplans","productrateplans.productrateplancharges","productrateplans.productrateplancharges.productrateplanchargetiers"],"title":"ObjectQueryProductsKeyGetParametersExpandSchemaItems"},"ObjectQueryProductRatePlansGetParametersExpandSchemaItems":{"type":"string","enum":["product","productrateplancharges","productrateplancharges.productrateplanchargetiers","externalproductrateplans"],"title":"ObjectQueryProductRatePlansGetParametersExpandSchemaItems"},"NestedProductOnExpandCategory":{"type":"string","enum":["Base Products","Add On Services","Miscellaneous Products"],"description":"Category of the product. Used by Zuora Quotes Guided Product Selector.\n","title":"NestedProductOnExpandCategory"},"NestedProductOnExpandProductRatePlansItems":{"type":"object","properties":{},"title":"NestedProductOnExpandProductRatePlansItems"},"NestedProductOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the product.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the product.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the product was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the product.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the product was last updated.\n"},"allowFeatureChanges":{"type":"boolean","default":false,"description":"Controls whether to allow your users to add or remove features while creating or amending a subscription.\n"},"description":{"type":"string","description":"A description of the product. \n"},"name":{"type":"string","description":"The name of the product. This information is displayed in the product\ncatalog pages in the web-based UI.\n"},"effectiveEndDate":{"type":"string","format":"date","description":"The date when the product expires and can't be subscribed to anymore,\nin the `yyyy-mm-dd` format.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"The date when the product becomes available and can be subscribed to, in the `yyyy-mm-dd` format.\n"},"sKU":{"type":"string","description":"The unique SKU for the product.\n"},"productNumber":{"type":"string","description":"The product number of the product.\n"},"category":{"$ref":"#/components/schemas/NestedProductOnExpandCategory","description":"Category of the product. Used by Zuora Quotes Guided Product Selector.\n"},"productRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/NestedProductOnExpandProductRatePlansItems"},"description":"The product rate plans contained in this product."}},"title":"NestedProductOnExpand"},"NestedPrpcOnExpandApplyDiscountTo":{"type":"string","enum":["ONETIME","RECURRING","USAGE","ONETIMERECURRING","ONETIMEUSAGE","RECURRINGUSAGE","ONETIMERECURRINGUSAGE"],"description":"Indicates which type of charge the discount charge applies to.\n","title":"NestedPrpcOnExpandApplyDiscountTo"},"NestedPrpcOnExpandChargeFunction":{"type":"string","enum":["Standard","Prepayment","CommitmentTrueUp","Drawdown","CreditCommitment","DrawdownAndCreditCommitment"],"description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"NestedPrpcOnExpandChargeFunction"},"NestedPrpcOnExpandBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek","TermStartDay","TermEndDay"],"description":"Specifies how to determine the billing day for the\ncharge.               \n","title":"NestedPrpcOnExpandBillCycleType"},"NestedPrpcOnExpandBillingPeriod":{"type":"string","enum":["Month","Quarter","Annual","Semi-Annual","Specific Months","Subscription Term","Week","Specific Weeks","Specific Days"],"description":"The billing period for the charge. The start day of the billing period\nis also called the bill cycle day (BCD).\n","title":"NestedPrpcOnExpandBillingPeriod"},"NestedPrpcOnExpandBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart","AlignToTermEnd"],"description":"The billing period alignment setting for this charge.\n","title":"NestedPrpcOnExpandBillingPeriodAlignment"},"NestedPrpcOnExpandBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"The billing timing for this charge.\n","title":"NestedPrpcOnExpandBillingTiming"},"NestedPrpcOnExpandChargeModel":{"type":"string","enum":["Discount-Fixed Amount","Discount-Percentage","Flat Fee Pricing","Per Unit Pricing","Overage Pricing","Tiered Pricing","Tiered with Overage Pricing","Volume Pricing","Delivery Pricing","MultiAttributePricing","PreratedPerUnit","PreratedPricing`","HighWatermarkVolumePricing","HighWatermarkTieredPricing"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n","title":"NestedPrpcOnExpandChargeModel"},"NestedPrpcOnExpandChargeType":{"type":"string","enum":["OneTime","Recurring","Usage"],"description":"Specifies the type of charge.\n","title":"NestedPrpcOnExpandChargeType"},"NestedPrpcOnExpandCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nThe way to calculate credit. See [Credit\nOption](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option)\nfor more information. \n","title":"NestedPrpcOnExpandCreditOption"},"NestedPrpcOnExpandDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"The application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"NestedPrpcOnExpandDiscountLevel"},"NestedPrpcOnExpandEndDateCondition":{"type":"string","enum":["SubscriptionEnd","OneTime","FixedPeriod","SpecificEndDate"],"description":"The end date condition for this charge.\n","title":"NestedPrpcOnExpandEndDateCondition"},"NestedPrpcOnExpandListPriceBase":{"type":"string","enum":["Per Billing Period","Per Month","Per Week","Per Year","Per Specific Months"],"description":"The list price base for the product rate plan charge.\n\nThis field is only applicable for recurring charges.\n","title":"NestedPrpcOnExpandListPriceBase"},"NestedPrpcOnExpandOverageCalculationOption":{"type":"string","enum":["EndOfSmoothingPeriod","PerBillingPeriod"],"description":"Value specifies when to calculate overage charges.\n","title":"NestedPrpcOnExpandOverageCalculationOption"},"NestedPrpcOnExpandOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Determines whether to credit the customer with unused units of usage.\n","title":"NestedPrpcOnExpandOverageUnusedUnitsCreditOption"},"NestedPrpcOnExpandPrepaidOperationType":{"type":"string","enum":["topup","drawdown"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n","title":"NestedPrpcOnExpandPrepaidOperationType"},"NestedPrpcOnExpandPriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is\nrenewed and the following applies:\n\n\n1. AutomatedPriceChange setting is on\n\n2. Charge type is not one-time\n\n3. Charge model is not discount fixed amount\n","title":"NestedPrpcOnExpandPriceChangeOption"},"NestedPrpcOnExpandRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"Specifies when revenue recognition begins.\n","title":"NestedPrpcOnExpandRevRecTriggerCondition"},"NestedPrpcOnExpandRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"NestedPrpcOnExpandRolloverApply"},"NestedPrpcOnExpandTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Specifies how to define taxation for the charge; used by Zuora Tax.\n","title":"NestedPrpcOnExpandTaxMode"},"NestedPrpcOnExpandTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance","SpecificDate"],"description":"Specifies when to start billing the customer for the charge.\n\nValues: one of the following:\n- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n- `CustomerAcceptance` is when the customer accepts the services or products for a subscription. \n- `SpecificDate` is the date specified.\n","title":"NestedPrpcOnExpandTriggerEvent"},"NestedPrpcOnExpandUpToPeriodsType":{"type":"string","enum":["Billing Periods","Days","Weeks","Months","Years"],"description":"The period type used to define when the charge ends.\n","title":"NestedPrpcOnExpandUpToPeriodsType"},"NestedPrpcOnExpandValidityPeriodType":{"type":"string","enum":["SubscriptionTerm","Annual","SemiAnnual","Quarter","Month"],"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nThe period in which the prepayment units are valid to use as defined\nin a [prepayment\ncharge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n","title":"NestedPrpcOnExpandValidityPeriodType"},"NestedPrpcOnExpandWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Specifies which day of the week as the bill cycle day (BCD) for the\ncharge.\n\n\nThis feature is in **Limited Availability**. If you wish to have\naccess to the feature, submit a request at [Zuora Global\nSupport](http://support.zuora.com/). \n","title":"NestedPrpcOnExpandWeeklyBillCycleDay"},"NestedPrpcOnExpandCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"NestedPrpcOnExpandCommitmentType"},"NestedPrpcOnExpandProductRatePlan":{"type":"object","properties":{},"description":"The product rate plan that contains this product rate plan charge.\n","title":"NestedPrpcOnExpandProductRatePlan"},"NestedPrpcOnExpandProductRatePlanChargeTiersItems":{"type":"object","properties":{},"title":"NestedPrpcOnExpandProductRatePlanChargeTiersItems"},"NestedPrpcOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the product rate plan charge.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the product rate plan charge.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the product rate plan charge was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the product rate plan charge.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the product rate plan charge was last updated.\n"},"accountingCode":{"type":"string","maxLength":100,"description":"The accounting code for the charge. Accounting codes group\ntransactions that contain similar accounting attributes.\n"},"applyDiscountTo":{"oneOf":[{"$ref":"#/components/schemas/NestedPrpcOnExpandApplyDiscountTo"},{"type":"null"}],"description":"Indicates which type of charge the discount charge applies to.\n"},"chargeFunction":{"$ref":"#/components/schemas/NestedPrpcOnExpandChargeFunction","description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"isAllocationEligible":{"type":"boolean","default":false,"description":"Indicates whether the charge segment is allocation eligible in revenue recognition. \n"},"isUnbilled":{"type":"boolean","default":false,"description":"Specifies how to perform the accounting during revenue recognition. \n"},"applyToBillingPeriodPartially":{"type":"boolean","default":false,"description":"Allow the discount duration to be aligned with the billing period partially.\n"},"billCycleDay":{"type":"integer","format":"int64","minimum":1,"maximum":31,"description":"Sets the bill cycle day (BCD) for the charge. The BCD determines which\nday of the month customer is billed. The BCD value in the account can\noverride the BCD in this object.\n"},"billCycleType":{"$ref":"#/components/schemas/NestedPrpcOnExpandBillCycleType","description":"Specifies how to determine the billing day for the\ncharge.               \n"},"billingPeriod":{"$ref":"#/components/schemas/NestedPrpcOnExpandBillingPeriod","description":"The billing period for the charge. The start day of the billing period\nis also called the bill cycle day (BCD).\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/NestedPrpcOnExpandBillingPeriodAlignment","description":"The billing period alignment setting for this charge.\n"},"billingTiming":{"$ref":"#/components/schemas/NestedPrpcOnExpandBillingTiming","description":"The billing timing for this charge.\n"},"chargeModel":{"$ref":"#/components/schemas/NestedPrpcOnExpandChargeModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n"},"chargeType":{"$ref":"#/components/schemas/NestedPrpcOnExpandChargeType","description":"Specifies the type of charge.\n"},"creditOption":{"$ref":"#/components/schemas/NestedPrpcOnExpandCreditOption","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nThe way to calculate credit. See [Credit\nOption](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option)\nfor more information. \n"},"defaultQuantity":{"type":["number","null"],"format":"double","description":"The default quantity. \n\nThis field is applicable only for one-time and recurring charges.\n"},"deferredRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the deferred revenue account for this charge.\n\n\nThis feature is in **Limited Availability**. If you wish to have\naccess to the feature, submit a request at [Zuora Global\nSupport](http://support.zuora.com/). \n"},"description":{"type":"string","description":"Description of the product rate plan charge.\n"},"discountClassId":{"type":["string","null"],"description":"ID of the class the discount belongs to. The discount class defines the order in which discount product rate plan charges are applied.\n\nFor more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).\n"},"discountLevel":{"oneOf":[{"$ref":"#/components/schemas/NestedPrpcOnExpandDiscountLevel"},{"type":"null"}],"description":"The application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"drawdownRate":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"endDateCondition":{"$ref":"#/components/schemas/NestedPrpcOnExpandEndDateCondition","description":"The end date condition for this charge.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"includedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units.\n"},"isPrepaid":{"type":"boolean","default":false,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nIndicates whether this charge is a prepayment (topup) charge or a\ndrawdown charge. \n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nIt determines whether the rollover fields are needed.\n"},"isStackedDiscount":{"type":"boolean","description":"**Note**: This field is only applicable to the Discount - Percentage charge model.\n\nThis field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:\n  - `True`: This is a stacked discount, which should be calculated by stacking with other discounts.\n  - `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.\n\nFor more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).\n"},"legacyRevenueReporting":{"type":"boolean","description":"Indicates whether to use the legacy revenue reporting for this charge.\n"},"listPriceBase":{"$ref":"#/components/schemas/NestedPrpcOnExpandListPriceBase","description":"The list price base for the product rate plan charge.\n\nThis field is only applicable for recurring charges.\n"},"specificListPriceBase":{"type":["integer","null"],"description":"The number of months for the list price base of the charge. The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"},"maxQuantity":{"type":"number","format":"double","description":"The maximum number of units for this charge. This field and the `minQuantity` field can be used to create a range of units allowed in a product rate plan charge.\n"},"minQuantity":{"type":"number","format":"double","description":"The minimum number of units for this charge. This field and the `maxQuantity` field can be used to create a range of units allowed in a product rate plan charge.\n"},"name":{"type":"string","description":"Name of the product rate-plan charge. Not required to be unique.\n"},"numberOfPeriod":{"type":["integer","null"],"format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model.\nThis field is ued when overage smoothing model is `RollingWindow` or `Rollover`.\n"},"overageCalculationOption":{"oneOf":[{"$ref":"#/components/schemas/NestedPrpcOnExpandOverageCalculationOption"},{"type":"null"}],"description":"Value specifies when to calculate overage charges.\n"},"overageUnusedUnitsCreditOption":{"oneOf":[{"$ref":"#/components/schemas/NestedPrpcOnExpandOverageUnusedUnitsCreditOption"},{"type":"null"}],"description":"Determines whether to credit the customer with unused units of usage.\n"},"prepaidOperationType":{"oneOf":[{"$ref":"#/components/schemas/NestedPrpcOnExpandPrepaidOperationType"},{"type":"null"}],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n"},"prepaidQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaidTotalQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe total amount of units that end customers can use during a validity period when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"priceChangeOption":{"oneOf":[{"$ref":"#/components/schemas/NestedPrpcOnExpandPriceChangeOption"},{"type":"null"}],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is\nrenewed and the following applies:\n\n\n1. AutomatedPriceChange setting is on\n\n2. Charge type is not one-time\n\n3. Charge model is not discount fixed amount\n"},"priceIncreasePercentage":{"type":["number","null"],"format":"double","minimum":-100,"maximum":100,"description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the `PriceChangeOption` value to `SpecificPercentageValue`.\n\n1. AutomatedPriceChange setting is on\n2. Charge type is not one-time\n3. Charge model is not discount fixed amount\n\nValues: a decimal between -100 and 100\n"},"productRatePlanChargeNumber":{"type":"string","description":"The natural key of the product rate plan charge.\n"},"prorationOption":{"type":"string","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled.\n\nThe charge-level proration option for the product rate plan charge.\n"},"ratingGroup":{"type":["string","null"],"description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:\n\n- `ByBillingPeriod` (default): The rating is based on all the usages in a billing period.\n- `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Note:** \n- The `ByBillingPeriod` value can be applied for all charge models. \n- The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n- The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n- Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n"},"revRecTriggerCondition":{"oneOf":[{"$ref":"#/components/schemas/NestedPrpcOnExpandRevRecTriggerCondition"},{"type":"null"}],"description":"Specifies when revenue recognition begins.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n"},"rolloverApply":{"$ref":"#/components/schemas/NestedPrpcOnExpandRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nThe period length of the rollover fund.\n"},"rolloverPeriods":{"type":"integer","format":"int64","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"recognizedRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the recognized revenue account for this charge.\n  - Required when the Allow Blank Accounting Code setting is No.\n  - Optional when the Allow Blank Accounting Code setting is Yes.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"smoothingModel":{"type":["string","null"],"description":"Specifies the smoothing model for an overage smoothing charge model or\nan tiered with overage model, which is an advanced type of a usage\nmodel that avoids spikes in usage charges. If a customer's usage\nspikes in a single period, then an overage smoothing model eases\noverage charges by considering usage and multiple periods.\n\n\nOne of the following values shows which smoothing model will be\napplied to the charge when `Overage` or `Tiered with Overage` is used:\n\n\n- `RollingWindow` considers a number of periods to smooth usage. The\nrolling window starts and increments forward based on billing\nfrequency. When allowed usage is met, then period resets and a new\nwindow begins.\n\n- `Rollover` considers a fixed number of periods before calculating\nusage. The net balance at the end of a period is unused usage, which\nis carried over to the next period's balance.\n"},"specificBillingPeriod":{"type":["integer","null"],"format":"int64","description":"When the billing period is set to `Specific` Months then this positive\ninteger reflects the number of months for billing period charges.\n"},"taxable":{"type":"boolean","description":"Specifies whether the charge is taxable; used by Zuora Tax. \n"},"taxCode":{"type":"string","description":"Specifies the tax code for taxation rules; used by Zuora Tax.\n"},"taxMode":{"oneOf":[{"$ref":"#/components/schemas/NestedPrpcOnExpandTaxMode"},{"type":"null"}],"description":"Specifies how to define taxation for the charge; used by Zuora Tax.\n"},"triggerEvent":{"$ref":"#/components/schemas/NestedPrpcOnExpandTriggerEvent","description":"Specifies when to start billing the customer for the charge.\n\nValues: one of the following:\n- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n- `CustomerAcceptance` is when the customer accepts the services or products for a subscription. \n- `SpecificDate` is the date specified.\n"},"upToPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the length of the period during which the charge is active.\nIf this period ends before the subscription ends, the charge ends when\nthis period ends.\n\nIf the subscription end date is subsequently changed through a\nRenewal, or Terms and Conditions amendment, the charge end date will\nchange accordingly up to the original period end.\n"},"upToPeriodsType":{"oneOf":[{"$ref":"#/components/schemas/NestedPrpcOnExpandUpToPeriodsType"},{"type":"null"}],"description":"The period type used to define when the charge ends.\n"},"usageRecordRatingOption":{"type":["string","null"],"description":"Determines how Zuora processes usage records for per-unit usage\ncharges. \n"},"useDiscountSpecificAccountingCode":{"type":["boolean","null"],"description":"Determines whether to define a new accounting code for the new\ndiscount charge.\n"},"useTenantDefaultForPriceChange":{"type":"boolean","description":"Shows the tenant-level percentage uplift value for an automatic price\nchange to a termed subscription's renewal. You set the tenant uplift\nvalue in the web-based UI: **Settings > Billing > Define Default\nSubscription Settings**.\n"},"validityPeriodType":{"$ref":"#/components/schemas/NestedPrpcOnExpandValidityPeriodType","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nThe period in which the prepayment units are valid to use as defined\nin a [prepayment\ncharge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/NestedPrpcOnExpandWeeklyBillCycleDay","description":"Specifies which day of the week as the bill cycle day (BCD) for the\ncharge.\n\n\nThis feature is in **Limited Availability**. If you wish to have\naccess to the feature, submit a request at [Zuora Global\nSupport](http://support.zuora.com/). \n"},"priceUpsellQuantityStacked":{"type":"boolean","description":"Indicates whether the price upsell quantity is stacked.\n"},"deliveryScheduleId":{"type":"string","description":"The unique identifier of the delivery schedule associated with the\nproduct rate plan charge. This field is applicable only when this charge is\nusing Delivery Pricing charge model.\n"},"commitmentType":{"$ref":"#/components/schemas/NestedPrpcOnExpandCommitmentType","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"isCommitted":{"type":"boolean","description":"Indicates whether the charge is commited.\n"},"productRatePlanId":{"type":"string","description":"The unique identifier of the product rate plan to which this product rate plan charge belongs.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The type of the accounting code for accounts receivable.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"The accounting code for recognized revenue, such as Monthly Recurring\nCharges or Overage Charges. \n"},"deferredRevenueAccountingCodeId":{"type":["string","null"],"description":"The type associated with the deferred revenue accounting code, such as\nDeferred Revenue. \n"},"adjustmentLiabilityAccountingCodeId":{"type":"string","description":"The type associated with the adjustment liability accounting code. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"adjustmentRevenueAccountingCodeId":{"type":"string","description":"The type associated with the adjustment revenue accounting code. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"contractAssetAccountingCodeId":{"type":"string","description":"The type associated with the contract asset accounting code. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"contractLiabilityAccountingCodeId":{"type":"string","description":"The accounting code for contract liability. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCodeId":{"type":"string","description":"The accounting code for contract recognized revenue. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"unbilledReceivablesAccountingCodeId":{"type":["string","null"],"description":"The accounting code for unbilled receivables. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"revRecCode":{"type":["string","null"],"maxLength":70,"description":"Associates this product rate plan charge with a specific revenue\nrecognition code.\n"},"uOM":{"type":["string","null"],"description":"Describes the Units of Measure (uom) configured in **Settings >\nBilling** for the productRatePlanCharges.\n"},"drawdownUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nUnit of measurement for a [drawdown\ncharge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).\n"},"prepaidUom":{"type":["string","null"],"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nUnit of measurement for a [prepayment\ncharge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"productRatePlan":{"$ref":"#/components/schemas/NestedPrpcOnExpandProductRatePlan","description":"The product rate plan that contains this product rate plan charge.\n"},"productRatePlanChargeTiers":{"type":"array","items":{"$ref":"#/components/schemas/NestedPrpcOnExpandProductRatePlanChargeTiersItems"},"description":"The product rate plan charge tiers contained in this product rate plan charge.\n"}},"title":"NestedPrpcOnExpand"},"ExpandedProductRatePlan":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the product rate plan.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the product rate plan.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the product rate plan was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the product rate plan.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the product rate plan was last updated.\n"},"productId":{"type":"string","description":"The unique identifier of the product to which this product rate\nplan belongs.\n"},"name":{"type":"string","description":"The name of the product rate plan.\n"},"description":{"type":"string","description":"A description of the product rate plan.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"First date the rate plan is active (i.e., available to be subscribed\nto), as `yyyy-mm-dd`.  Before this date, the status is `NotStarted`.\n"},"effectiveEndDate":{"type":"string","format":"date","description":"Final date the rate plan is active, as `yyyy-mm-dd`. After this date,\nthe rate plan status is `Expired`.\n"},"grade":{"type":"integer","description":"The grade of the product rate plan.\n\n\n**Note**: This field is in the **Early Adopter** phase. We are\nactively soliciting feedback from a small set of early adopters before\nreleasing it as generally available. If you want to join this early\nadopter program, submit a request at [Zuora Global\nSupport](http://support.zuora.com/).\n"},"productRatePlanNumber":{"type":"string","description":"The natural key of the product rate plan. \n"},"product":{"$ref":"#/components/schemas/NestedProductOnExpand"},"productRatePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/NestedPrpcOnExpand"}}},"title":"ExpandedProductRatePlan"},"Object_Queries_queryProductRatePlans_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedProductRatePlan"}}},"title":"Object Queries_queryProductRatePlans_Response_200"},"ObjectQueryProductRatePlansKeyGetParametersExpandSchemaItems":{"type":"string","enum":["product","productrateplancharges","productrateplancharges.productrateplanchargetiers","externalproductrateplans"],"title":"ObjectQueryProductRatePlansKeyGetParametersExpandSchemaItems"},"ObjectQueryProductRatePlanChargesGetParametersExpandSchemaItems":{"type":"string","enum":["productrateplan","productrateplanchargetiers"],"title":"ObjectQueryProductRatePlanChargesGetParametersExpandSchemaItems"},"ExpandedProductRatePlanChargeApplyDiscountTo":{"type":"string","enum":["ONETIME","RECURRING","USAGE","ONETIMERECURRING","ONETIMEUSAGE","RECURRINGUSAGE","ONETIMERECURRINGUSAGE"],"description":"Indicates which type of charge the discount charge applies to.\n","title":"ExpandedProductRatePlanChargeApplyDiscountTo"},"ExpandedProductRatePlanChargeChargeFunction":{"type":"string","enum":["Standard","Prepayment","CommitmentTrueUp","Drawdown","CreditCommitment","DrawdownAndCreditCommitment"],"description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"ExpandedProductRatePlanChargeChargeFunction"},"ExpandedProductRatePlanChargeBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek","TermStartDay","TermEndDay"],"description":"Specifies how to determine the billing day for the\ncharge.               \n","title":"ExpandedProductRatePlanChargeBillCycleType"},"ExpandedProductRatePlanChargeBillingPeriod":{"type":"string","enum":["Month","Quarter","Annual","Semi-Annual","Specific Months","Subscription Term","Week","Specific Weeks","Specific Days"],"description":"The billing period for the charge. The start day of the billing period\nis also called the bill cycle day (BCD).\n","title":"ExpandedProductRatePlanChargeBillingPeriod"},"ExpandedProductRatePlanChargeBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart","AlignToTermEnd"],"description":"The billing period alignment setting for this charge.\n","title":"ExpandedProductRatePlanChargeBillingPeriodAlignment"},"ExpandedProductRatePlanChargeBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"The billing timing for this charge.\n","title":"ExpandedProductRatePlanChargeBillingTiming"},"ExpandedProductRatePlanChargeChargeModel":{"type":"string","enum":["Discount-Fixed Amount","Discount-Percentage","Flat Fee Pricing","Per Unit Pricing","Overage Pricing","Tiered Pricing","Tiered with Overage Pricing","Volume Pricing","Delivery Pricing","MultiAttributePricing","PreratedPerUnit","PreratedPricing`","HighWatermarkVolumePricing","HighWatermarkTieredPricing"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n","title":"ExpandedProductRatePlanChargeChargeModel"},"ExpandedProductRatePlanChargeChargeType":{"type":"string","enum":["OneTime","Recurring","Usage"],"description":"Specifies the type of charge.\n","title":"ExpandedProductRatePlanChargeChargeType"},"ExpandedProductRatePlanChargeCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nThe way to calculate credit. See [Credit\nOption](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option)\nfor more information. \n","title":"ExpandedProductRatePlanChargeCreditOption"},"ExpandedProductRatePlanChargeDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"The application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"ExpandedProductRatePlanChargeDiscountLevel"},"ExpandedProductRatePlanChargeEndDateCondition":{"type":"string","enum":["SubscriptionEnd","OneTime","FixedPeriod","SpecificEndDate"],"description":"The end date condition for this charge.\n","title":"ExpandedProductRatePlanChargeEndDateCondition"},"ExpandedProductRatePlanChargeListPriceBase":{"type":"string","enum":["Per Billing Period","Per Month","Per Week","Per Year","Per Specific Months"],"description":"The list price base for the product rate plan charge.\n\nThis field is only applicable for recurring charges.\n","title":"ExpandedProductRatePlanChargeListPriceBase"},"ExpandedProductRatePlanChargeOverageCalculationOption":{"type":"string","enum":["EndOfSmoothingPeriod","PerBillingPeriod"],"description":"Value specifies when to calculate overage charges.\n","title":"ExpandedProductRatePlanChargeOverageCalculationOption"},"ExpandedProductRatePlanChargeOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Determines whether to credit the customer with unused units of usage.\n","title":"ExpandedProductRatePlanChargeOverageUnusedUnitsCreditOption"},"ExpandedProductRatePlanChargePrepaidOperationType":{"type":"string","enum":["topup","drawdown"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n","title":"ExpandedProductRatePlanChargePrepaidOperationType"},"ExpandedProductRatePlanChargePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is\nrenewed and the following applies:\n\n\n1. AutomatedPriceChange setting is on\n\n2. Charge type is not one-time\n\n3. Charge model is not discount fixed amount\n","title":"ExpandedProductRatePlanChargePriceChangeOption"},"ExpandedProductRatePlanChargeRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"Specifies when revenue recognition begins.\n","title":"ExpandedProductRatePlanChargeRevRecTriggerCondition"},"ExpandedProductRatePlanChargeRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"ExpandedProductRatePlanChargeRolloverApply"},"ExpandedProductRatePlanChargeTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Specifies how to define taxation for the charge; used by Zuora Tax.\n","title":"ExpandedProductRatePlanChargeTaxMode"},"ExpandedProductRatePlanChargeTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance","SpecificDate"],"description":"Specifies when to start billing the customer for the charge.\n\nValues: one of the following:\n- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n- `CustomerAcceptance` is when the customer accepts the services or products for a subscription. \n- `SpecificDate` is the date specified.\n","title":"ExpandedProductRatePlanChargeTriggerEvent"},"ExpandedProductRatePlanChargeUpToPeriodsType":{"type":"string","enum":["Billing Periods","Days","Weeks","Months","Years"],"description":"The period type used to define when the charge ends.\n","title":"ExpandedProductRatePlanChargeUpToPeriodsType"},"ExpandedProductRatePlanChargeValidityPeriodType":{"type":"string","enum":["SubscriptionTerm","Annual","SemiAnnual","Quarter","Month"],"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nThe period in which the prepayment units are valid to use as defined\nin a [prepayment\ncharge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n","title":"ExpandedProductRatePlanChargeValidityPeriodType"},"ExpandedProductRatePlanChargeWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Specifies which day of the week as the bill cycle day (BCD) for the\ncharge.\n\n\nThis feature is in **Limited Availability**. If you wish to have\naccess to the feature, submit a request at [Zuora Global\nSupport](http://support.zuora.com/). \n","title":"ExpandedProductRatePlanChargeWeeklyBillCycleDay"},"ExpandedProductRatePlanChargeCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"ExpandedProductRatePlanChargeCommitmentType"},"NestedPrpcTierOnExpandPriceFormat":{"type":"string","enum":["Flat Fee","Per Unit"],"description":"Indicates if pricing is a flat fee or is per unit. This field is for tiered and volume pricing models only.\n","title":"NestedPrpcTierOnExpandPriceFormat"},"NestedPrpcTierOnExpandProductRatePlanCharge":{"type":"object","properties":{},"description":"The product rate plan charge that contains this product rate plan charge tier.\n","title":"NestedPrpcTierOnExpandProductRatePlanCharge"},"NestedPrpcTierOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the product rate plan charge tier.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the product rate plan charge tier.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the product rate plan charge tier gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the product rate plan charge tier.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the product rate plan charge tier was last updated.\n"},"active":{"type":"boolean","description":"Indicates whether the product rate plan charge tier is active.\n"},"currency":{"type":"string","description":"The valid code corresponding to the currency for the tier's price.\n"},"discountAmount":{"type":"number","format":"double","description":"The specific amount for a fixed discount. This field is applicable for charges based on the Discount-Fixed Amount charge model.\n"},"discountPercentage":{"type":"number","format":"double","description":"The percentage of discount for a percentage discount. This field is applicable for charges based on the Discount-Percentage charge model.\n"},"endingUnit":{"type":"number","format":"double","description":"The end number of a range of units for the tier. This field is\napplicable for charges based on the Tiered Pricing or Tiered with\nOverage Pricing charge model.\n"},"includedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units.\n"},"overagePrice":{"type":"number","format":"double","description":"Indicates whether the price is an overage price, which is the price when usage surpasses the last defined tier.\n"},"price":{"type":"number","format":"double","description":"The price of the tier if the charge is a flat fee, or the price of each unit in the tier if the charge model is tiered pricing.\n"},"priceFormat":{"$ref":"#/components/schemas/NestedPrpcTierOnExpandPriceFormat","description":"Indicates if pricing is a flat fee or is per unit. This field is for tiered and volume pricing models only.\n"},"startingUnit":{"type":"number","format":"double","description":"The starting number of a range of units for the tier. This field is\napplicable for charges based on the Tiered Pricing or Tiered with\nOverage Pricing charge model.\n"},"tier":{"type":"integer","description":"A unique number that identifies the tier that the price applies to.\n"},"isDefault":{"type":"boolean","description":"Indicates whether the tier is the default tier. The default tier is the\ntier that is used when the usage does not fall into any of the defined\ntiers.\n"},"productRatePlanChargeId":{"type":"string","description":"The unique identifier of the product rate plan charge that the tier\nbelongs to.\n"},"productChargeDefinitionId":{"type":"string","description":"The unique identifier of the product rate plan charge definition that\nthe tier belongs to.\n"},"productRatePlanCharge":{"$ref":"#/components/schemas/NestedPrpcTierOnExpandProductRatePlanCharge","description":"The product rate plan charge that contains this product rate plan charge tier.\n"}},"title":"NestedPrpcTierOnExpand"},"ExpandedProductRatePlanCharge":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the product rate plan charge.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the product rate plan charge.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the product rate plan charge was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the product rate plan charge.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the product rate plan charge was last updated.\n"},"accountingCode":{"type":"string","maxLength":100,"description":"The accounting code for the charge. Accounting codes group\ntransactions that contain similar accounting attributes.\n"},"applyDiscountTo":{"oneOf":[{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeApplyDiscountTo"},{"type":"null"}],"description":"Indicates which type of charge the discount charge applies to.\n"},"chargeFunction":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeChargeFunction","description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"isAllocationEligible":{"type":"boolean","default":false,"description":"Indicates whether the charge segment is allocation eligible in revenue recognition. \n"},"isUnbilled":{"type":"boolean","default":false,"description":"Specifies how to perform the accounting during revenue recognition. \n"},"applyToBillingPeriodPartially":{"type":"boolean","default":false,"description":"Allow the discount duration to be aligned with the billing period partially.\n"},"billCycleDay":{"type":"integer","format":"int64","minimum":1,"maximum":31,"description":"Sets the bill cycle day (BCD) for the charge. The BCD determines which\nday of the month customer is billed. The BCD value in the account can\noverride the BCD in this object.\n"},"billCycleType":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeBillCycleType","description":"Specifies how to determine the billing day for the\ncharge.               \n"},"billingPeriod":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeBillingPeriod","description":"The billing period for the charge. The start day of the billing period\nis also called the bill cycle day (BCD).\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeBillingPeriodAlignment","description":"The billing period alignment setting for this charge.\n"},"billingTiming":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeBillingTiming","description":"The billing timing for this charge.\n"},"chargeModel":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeChargeModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n"},"chargeType":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeChargeType","description":"Specifies the type of charge.\n"},"creditOption":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeCreditOption","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nThe way to calculate credit. See [Credit\nOption](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option)\nfor more information. \n"},"defaultQuantity":{"type":["number","null"],"format":"double","description":"The default quantity. \n\nThis field is applicable only for one-time and recurring charges.\n"},"deferredRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the deferred revenue account for this charge.\n\n\nThis feature is in **Limited Availability**. If you wish to have\naccess to the feature, submit a request at [Zuora Global\nSupport](http://support.zuora.com/). \n"},"description":{"type":"string","description":"Description of the product rate plan charge.\n"},"discountClassId":{"type":["string","null"],"description":"ID of the class the discount belongs to. The discount class defines the order in which discount product rate plan charges are applied.\n\nFor more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).\n"},"discountLevel":{"oneOf":[{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeDiscountLevel"},{"type":"null"}],"description":"The application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"drawdownRate":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"endDateCondition":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeEndDateCondition","description":"The end date condition for this charge.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"includedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units.\n"},"isPrepaid":{"type":"boolean","default":false,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nIndicates whether this charge is a prepayment (topup) charge or a\ndrawdown charge. \n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nIt determines whether the rollover fields are needed.\n"},"isStackedDiscount":{"type":"boolean","description":"**Note**: This field is only applicable to the Discount - Percentage charge model.\n\nThis field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:\n  - `True`: This is a stacked discount, which should be calculated by stacking with other discounts.\n  - `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.\n\nFor more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).\n"},"legacyRevenueReporting":{"type":"boolean","description":"Indicates whether to use the legacy revenue reporting for this charge.\n"},"listPriceBase":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeListPriceBase","description":"The list price base for the product rate plan charge.\n\nThis field is only applicable for recurring charges.\n"},"specificListPriceBase":{"type":["integer","null"],"description":"The number of months for the list price base of the charge. The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"},"maxQuantity":{"type":"number","format":"double","description":"The maximum number of units for this charge. This field and the `minQuantity` field can be used to create a range of units allowed in a product rate plan charge.\n"},"minQuantity":{"type":"number","format":"double","description":"The minimum number of units for this charge. This field and the `maxQuantity` field can be used to create a range of units allowed in a product rate plan charge.\n"},"name":{"type":"string","description":"Name of the product rate-plan charge. Not required to be unique.\n"},"numberOfPeriod":{"type":["integer","null"],"format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model.\nThis field is ued when overage smoothing model is `RollingWindow` or `Rollover`.\n"},"overageCalculationOption":{"oneOf":[{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeOverageCalculationOption"},{"type":"null"}],"description":"Value specifies when to calculate overage charges.\n"},"overageUnusedUnitsCreditOption":{"oneOf":[{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeOverageUnusedUnitsCreditOption"},{"type":"null"}],"description":"Determines whether to credit the customer with unused units of usage.\n"},"prepaidOperationType":{"oneOf":[{"$ref":"#/components/schemas/ExpandedProductRatePlanChargePrepaidOperationType"},{"type":"null"}],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n"},"prepaidQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaidTotalQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe total amount of units that end customers can use during a validity period when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"priceChangeOption":{"oneOf":[{"$ref":"#/components/schemas/ExpandedProductRatePlanChargePriceChangeOption"},{"type":"null"}],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is\nrenewed and the following applies:\n\n\n1. AutomatedPriceChange setting is on\n\n2. Charge type is not one-time\n\n3. Charge model is not discount fixed amount\n"},"priceIncreasePercentage":{"type":["number","null"],"format":"double","minimum":-100,"maximum":100,"description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the `PriceChangeOption` value to `SpecificPercentageValue`.\n\n1. AutomatedPriceChange setting is on\n2. Charge type is not one-time\n3. Charge model is not discount fixed amount\n\nValues: a decimal between -100 and 100\n"},"productRatePlanChargeNumber":{"type":"string","description":"The natural key of the product rate plan charge.\n"},"prorationOption":{"type":"string","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled.\n\nThe charge-level proration option for the product rate plan charge.\n"},"ratingGroup":{"type":["string","null"],"description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:\n\n- `ByBillingPeriod` (default): The rating is based on all the usages in a billing period.\n- `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Note:** \n- The `ByBillingPeriod` value can be applied for all charge models. \n- The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n- The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n- Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n"},"revRecTriggerCondition":{"oneOf":[{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeRevRecTriggerCondition"},{"type":"null"}],"description":"Specifies when revenue recognition begins.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n"},"rolloverApply":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nThe period length of the rollover fund.\n"},"rolloverPeriods":{"type":"integer","format":"int64","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"recognizedRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the recognized revenue account for this charge.\n  - Required when the Allow Blank Accounting Code setting is No.\n  - Optional when the Allow Blank Accounting Code setting is Yes.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"smoothingModel":{"type":["string","null"],"description":"Specifies the smoothing model for an overage smoothing charge model or\nan tiered with overage model, which is an advanced type of a usage\nmodel that avoids spikes in usage charges. If a customer's usage\nspikes in a single period, then an overage smoothing model eases\noverage charges by considering usage and multiple periods.\n\n\nOne of the following values shows which smoothing model will be\napplied to the charge when `Overage` or `Tiered with Overage` is used:\n\n\n- `RollingWindow` considers a number of periods to smooth usage. The\nrolling window starts and increments forward based on billing\nfrequency. When allowed usage is met, then period resets and a new\nwindow begins.\n\n- `Rollover` considers a fixed number of periods before calculating\nusage. The net balance at the end of a period is unused usage, which\nis carried over to the next period's balance.\n"},"specificBillingPeriod":{"type":["integer","null"],"format":"int64","description":"When the billing period is set to `Specific` Months then this positive\ninteger reflects the number of months for billing period charges.\n"},"taxable":{"type":"boolean","description":"Specifies whether the charge is taxable; used by Zuora Tax. \n"},"taxCode":{"type":"string","description":"Specifies the tax code for taxation rules; used by Zuora Tax.\n"},"taxMode":{"oneOf":[{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeTaxMode"},{"type":"null"}],"description":"Specifies how to define taxation for the charge; used by Zuora Tax.\n"},"triggerEvent":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeTriggerEvent","description":"Specifies when to start billing the customer for the charge.\n\nValues: one of the following:\n- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n- `CustomerAcceptance` is when the customer accepts the services or products for a subscription. \n- `SpecificDate` is the date specified.\n"},"upToPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the length of the period during which the charge is active.\nIf this period ends before the subscription ends, the charge ends when\nthis period ends.\n\nIf the subscription end date is subsequently changed through a\nRenewal, or Terms and Conditions amendment, the charge end date will\nchange accordingly up to the original period end.\n"},"upToPeriodsType":{"oneOf":[{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeUpToPeriodsType"},{"type":"null"}],"description":"The period type used to define when the charge ends.\n"},"usageRecordRatingOption":{"type":["string","null"],"description":"Determines how Zuora processes usage records for per-unit usage\ncharges. \n"},"useDiscountSpecificAccountingCode":{"type":["boolean","null"],"description":"Determines whether to define a new accounting code for the new\ndiscount charge.\n"},"useTenantDefaultForPriceChange":{"type":"boolean","description":"Shows the tenant-level percentage uplift value for an automatic price\nchange to a termed subscription's renewal. You set the tenant uplift\nvalue in the web-based UI: **Settings > Billing > Define Default\nSubscription Settings**.\n"},"validityPeriodType":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeValidityPeriodType","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nThe period in which the prepayment units are valid to use as defined\nin a [prepayment\ncharge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeWeeklyBillCycleDay","description":"Specifies which day of the week as the bill cycle day (BCD) for the\ncharge.\n\n\nThis feature is in **Limited Availability**. If you wish to have\naccess to the feature, submit a request at [Zuora Global\nSupport](http://support.zuora.com/). \n"},"priceUpsellQuantityStacked":{"type":"boolean","description":"Indicates whether the price upsell quantity is stacked.\n"},"deliveryScheduleId":{"type":"string","description":"The unique identifier of the delivery schedule associated with the\nproduct rate plan charge. This field is applicable only when this charge is\nusing Delivery Pricing charge model.\n"},"commitmentType":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeCommitmentType","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"isCommitted":{"type":"boolean","description":"Indicates whether the charge is commited.\n"},"productRatePlanId":{"type":"string","description":"The unique identifier of the product rate plan to which this product rate plan charge belongs.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The type of the accounting code for accounts receivable.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"The accounting code for recognized revenue, such as Monthly Recurring\nCharges or Overage Charges. \n"},"deferredRevenueAccountingCodeId":{"type":["string","null"],"description":"The type associated with the deferred revenue accounting code, such as\nDeferred Revenue. \n"},"adjustmentLiabilityAccountingCodeId":{"type":"string","description":"The type associated with the adjustment liability accounting code. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"adjustmentRevenueAccountingCodeId":{"type":"string","description":"The type associated with the adjustment revenue accounting code. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"contractAssetAccountingCodeId":{"type":"string","description":"The type associated with the contract asset accounting code. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"contractLiabilityAccountingCodeId":{"type":"string","description":"The accounting code for contract liability. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCodeId":{"type":"string","description":"The accounting code for contract recognized revenue. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"unbilledReceivablesAccountingCodeId":{"type":["string","null"],"description":"The accounting code for unbilled receivables. \n\n\n**Note**: This field is only available if you have the Zuora Billing -\nRevenue Integration feature enabled.\n"},"revRecCode":{"type":["string","null"],"maxLength":70,"description":"Associates this product rate plan charge with a specific revenue\nrecognition code.\n"},"uOM":{"type":["string","null"],"description":"Describes the Units of Measure (uom) configured in **Settings >\nBilling** for the productRatePlanCharges.\n"},"drawdownUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nUnit of measurement for a [drawdown\ncharge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).\n"},"prepaidUom":{"type":["string","null"],"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nUnit of measurement for a [prepayment\ncharge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"productRatePlan":{"$ref":"#/components/schemas/NestedProductRatePlanOnExpand"},"productRatePlanChargeTiers":{"type":"array","items":{"$ref":"#/components/schemas/NestedPrpcTierOnExpand"}}},"title":"ExpandedProductRatePlanCharge"},"Object_Queries_queryProductRatePlanCharges_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedProductRatePlanCharge"}}},"title":"Object Queries_queryProductRatePlanCharges_Response_200"},"ObjectQueryProductRatePlanChargesKeyGetParametersExpandSchemaItems":{"type":"string","enum":["productrateplan","productrateplanchargetiers"],"title":"ObjectQueryProductRatePlanChargesKeyGetParametersExpandSchemaItems"},"ObjectQueryProductRatePlanChargeTiersGetParametersExpandSchemaItems":{"type":"string","enum":["productrateplancharge"],"title":"ObjectQueryProductRatePlanChargeTiersGetParametersExpandSchemaItems"},"ExpandedProductRatePlanChargeTierPriceFormat":{"type":"string","enum":["Flat Fee","Per Unit"],"description":"Indicates if pricing is a flat fee or is per unit. This field is for tiered and volume pricing models only.\n","title":"ExpandedProductRatePlanChargeTierPriceFormat"},"ExpandedProductRatePlanChargeTier":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the product rate plan charge tier.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the product rate plan charge tier.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the product rate plan charge tier gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the product rate plan charge tier.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the product rate plan charge tier was last updated.\n"},"active":{"type":"boolean","description":"Indicates whether the product rate plan charge tier is active.\n"},"currency":{"type":"string","description":"The valid code corresponding to the currency for the tier's price.\n"},"discountAmount":{"type":"number","format":"double","description":"The specific amount for a fixed discount. This field is applicable for charges based on the Discount-Fixed Amount charge model.\n"},"discountPercentage":{"type":"number","format":"double","description":"The percentage of discount for a percentage discount. This field is applicable for charges based on the Discount-Percentage charge model.\n"},"endingUnit":{"type":"number","format":"double","description":"The end number of a range of units for the tier. This field is\napplicable for charges based on the Tiered Pricing or Tiered with\nOverage Pricing charge model.\n"},"includedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units.\n"},"overagePrice":{"type":"number","format":"double","description":"Indicates whether the price is an overage price, which is the price when usage surpasses the last defined tier.\n"},"price":{"type":"number","format":"double","description":"The price of the tier if the charge is a flat fee, or the price of each unit in the tier if the charge model is tiered pricing.\n"},"priceFormat":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeTierPriceFormat","description":"Indicates if pricing is a flat fee or is per unit. This field is for tiered and volume pricing models only.\n"},"startingUnit":{"type":"number","format":"double","description":"The starting number of a range of units for the tier. This field is\napplicable for charges based on the Tiered Pricing or Tiered with\nOverage Pricing charge model.\n"},"tier":{"type":"integer","description":"A unique number that identifies the tier that the price applies to.\n"},"isDefault":{"type":"boolean","description":"Indicates whether the tier is the default tier. The default tier is the\ntier that is used when the usage does not fall into any of the defined\ntiers.\n"},"productRatePlanChargeId":{"type":"string","description":"The unique identifier of the product rate plan charge that the tier\nbelongs to.\n"},"productChargeDefinitionId":{"type":"string","description":"The unique identifier of the product rate plan charge definition that\nthe tier belongs to.\n"},"productRatePlanCharge":{"$ref":"#/components/schemas/NestedPrpcOnExpand"}},"title":"ExpandedProductRatePlanChargeTier"},"Object_Queries_queryProductRatePlanChargeTiers_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedProductRatePlanChargeTier"}}},"title":"Object Queries_queryProductRatePlanChargeTiers_Response_200"},"ObjectQueryProductRatePlanChargeTiersKeyGetParametersExpandSchemaItems":{"type":"string","enum":["productrateplancharge"],"title":"ObjectQueryProductRatePlanChargeTiersKeyGetParametersExpandSchemaItems"},"ExpandedRampMetricsProcessingStatus":{"type":"string","enum":["Completed","NotStarted"],"description":"Status of the metrics processing. \n","title":"ExpandedRampMetricsProcessingStatus"},"ExpandedRamp":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the ramp.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the ramp.\n"},"createdDate":{"type":"string","format":"date-time","description":"The time that the ramp gets created in the system, in the\n`YYYY-MM-DD HH:MM:SS` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the ramp.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the ramp was last updated.\n"},"name":{"type":"string","description":"The name of the ramp.\n"},"number":{"type":"string","description":"The number of the ramp. It is automaticcally generated by the billing system.\n"},"description":{"type":"string","description":"The short description of the ramp.\n"},"subscriptionNumbers":{"type":"string","description":"The number of the subscription that is considered as part of the ramp deal.\n"},"chargeNumbers":{"type":"string","description":"The number of the rate plan charge. It can contain multiple charge numbers, separated by commas(`,`).\n"},"orderId":{"type":"string","description":"The unique identifier of the order.\n"},"grossTcb":{"type":"number","format":"double","description":"The gross TCB value before discount charges are applied."},"grossTcv":{"type":"number","format":"double","description":"The gross TCV value before discount charges are applied."},"netTcb":{"type":"number","format":"double","description":"The net TCB value after discount charges are applied."},"netTcv":{"type":"number","format":"double","description":"The net TCV value after discount charges are applied."},"discountTcb":{"type":"number","format":"double","description":"The discount amount for the TCB."},"discountTcv":{"type":"number","format":"double","description":"The discount amount for the TCV."},"metricsProcessingStatus":{"$ref":"#/components/schemas/ExpandedRampMetricsProcessingStatus","description":"Status of the metrics processing. \n"}},"title":"ExpandedRamp"},"Object_Queries_queryRamps_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedRamp"}}},"title":"Object Queries_queryRamps_Response_200"},"ObjectQueryRatePlansGetParametersExpandSchemaItems":{"type":"string","enum":["subscription","productrateplan","rateplancharges","rateplancharges.rateplanchargetiers"],"title":"ObjectQueryRatePlansGetParametersExpandSchemaItems"},"ExpandedRatePlan":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the rate plan.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the rate plan.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the rate plan was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the rate plan.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the rate plan was last updated.\n"},"productId":{"type":"string","description":"The unique identifier of the product associated with the rate plan.\n"},"amendmentId":{"type":"string","description":"The unique identifier of the amendment made to the subscription.\n"},"amendmentType":{"type":"string","description":"The type of amendment associated with the rate plan. This field only applies to amendment rate plans.\n"},"name":{"type":"string","description":"The name of the rate plan.\n"},"productRatePlanId":{"type":"string","description":"The unique identifier of the product rate plan that the rate plan is based on.\n"},"subscriptionId":{"type":"string","description":"The unique identifier of the subscription associated with the rate plan.\n"},"subscriptionOwnerId":{"type":"string","description":"The unique identifier of the account that owns the subscription.\n"},"invoiceOwnerId":{"type":"string","description":"The unique identifier of the account that will pay the invoice.\n"},"reverted":{"type":"boolean","description":"Indicates whether the rate plan has been reverted.\n"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a\nthird-party store. This field is used to represent a subscription rate\nplan created through third-party stores.\n"},"originalRatePlanId":{"type":"string","description":"The original ID of the subscription rate plan, which is the ID of the subscription rate plan in the version-1 subscription.\n"},"subscriptionOfferId":{"type":"string","description":"The unique identifier of the subscription offer associated with the rate plan.\n"},"subscriptionRatePlanNumber":{"type":"string","description":"The number of the rate plan in the subscription.\n"},"subscription":{"$ref":"#/components/schemas/NestedSubscriptionOnExpand"},"productRatePlan":{"$ref":"#/components/schemas/NestedProductRatePlanOnExpand"},"ratePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpand"}}},"title":"ExpandedRatePlan"},"Object_Queries_queryRatePlans_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedRatePlan"}}},"title":"Object Queries_queryRatePlans_Response_200"},"ObjectQueryRatePlansKeyGetParametersExpandSchemaItems":{"type":"string","enum":["subscription","productrateplan","rateplancharges","rateplancharges.rateplanchargetiers"],"title":"ObjectQueryRatePlansKeyGetParametersExpandSchemaItems"},"ObjectQueryRatePlanChargesGetParametersExpandSchemaItems":{"type":"string","enum":["rateplan","productrateplancharge","rateplanchargetiers"],"title":"ObjectQueryRatePlanChargesGetParametersExpandSchemaItems"},"ExpandedRatePlanChargeBillingTiming":{"type":"string","enum":["In Advance","In Arrears"],"description":"The billing timing for the charge. You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.\n\n**Note:** You can override the value inherited from the Product Rate Plan Charge when a subscription has a recurring charge type.\n","title":"ExpandedRatePlanChargeBillingTiming"},"ExpandedRatePlanChargeDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"ExpandedRatePlanChargeDiscountLevel"},"ExpandedRatePlanChargeEndDateCondition":{"type":"string","enum":["SubscriptionEnd","FixedPeriod","SpecificEndDate","OneTime"],"description":"Condition for the charge to become inactive.\n\n\n- If the value of this field is `FixedPeriod`, the charge is active for a\npredefined duration based on the value of the `upToPeriodsType` and\n`upToPeriods` fields.\n\n- If the value of this field is `SpecificEndDate`, use the\n`specificEndDate` field to specify the date when the charge becomes\ninactive.\n","title":"ExpandedRatePlanChargeEndDateCondition"},"ExpandedRatePlanChargeRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"ExpandedRatePlanChargeRolloverApply"},"ExpandedRatePlanChargeListPriceBase":{"type":"string","enum":["Per Billing Period","Per Month","Per Week","Per Year","Per Specific Months"],"description":"The list price base for the product rate plan charge.\n","title":"ExpandedRatePlanChargeListPriceBase"},"ExpandedRatePlanChargeCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"ExpandedRatePlanChargeCommitmentType"},"ExpandedRatePlanChargePrepaidOperationType":{"type":"string","enum":["topup","drawdown"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n","title":"ExpandedRatePlanChargePrepaidOperationType"},"ExpandedRatePlanChargeRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload","ByGroupId"],"description":"A rating group based on which usage records are rated. Only\napplicable to Usage charges.\n\nPossible values:\n- `ByBillingPeriod`: The rating is based on all the usages in a billing period.\n- `ByUsageStartDate`: The rating is based on all the usages on the same usage start date.\n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in a custom group.\n\nFor more information, see [Usage rating by group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group).\n","title":"ExpandedRatePlanChargeRatingGroup"},"ExpandedRatePlanChargeRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"ExpandedRatePlanChargeRevenueRecognitionTiming"},"ExpandedRatePlanChargeRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"ExpandedRatePlanChargeRevenueAmortizationMethod"},"ExpandedRatePlanChargeUpToPeriodsType":{"type":"string","enum":["Billing Periods","Days","Weeks","Months","Years"],"default":"Billing Periods","description":"The period type used to define when the charge ends. This field can be updated when **Status** is `Draft`. \n\n**Note**:\n\n- You must use this field together with the `UpToPeriods` field to specify the time period.\n- This field is only applicable only when the `EndDateCondition` field is set to `FixedPeriod`.\n","title":"ExpandedRatePlanChargeUpToPeriodsType"},"ExpandedRatePlanChargeWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Specifies which day of the week as the bill cycle day (BCD) for the charge.\n","title":"ExpandedRatePlanChargeWeeklyBillCycleDay"},"ExpandedRatePlanChargeValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n","title":"ExpandedRatePlanChargeValidityPeriodType"},"ExpandedRatePlanChargeCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled. \n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n","title":"ExpandedRatePlanChargeCreditOption"},"NestedRatePlanOnExpandSubscription":{"type":"object","properties":{},"description":"The subscription associated with the rate plan.\n","title":"NestedRatePlanOnExpandSubscription"},"NestedRatePlanOnExpandProductRatePlan":{"type":"object","properties":{},"description":"The product rate plan associated with the rate plan.\n","title":"NestedRatePlanOnExpandProductRatePlan"},"NestedRatePlanOnExpandRatePlanChargesItems":{"type":"object","properties":{},"title":"NestedRatePlanOnExpandRatePlanChargesItems"},"NestedRatePlanOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the rate plan.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the rate plan.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the rate plan was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the rate plan.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the rate plan was last updated.\n"},"productId":{"type":"string","description":"The unique identifier of the product associated with the rate plan.\n"},"amendmentId":{"type":"string","description":"The unique identifier of the amendment made to the subscription.\n"},"amendmentType":{"type":"string","description":"The type of amendment associated with the rate plan. This field only applies to amendment rate plans.\n"},"name":{"type":"string","description":"The name of the rate plan.\n"},"productRatePlanId":{"type":"string","description":"The unique identifier of the product rate plan that the rate plan is based on.\n"},"subscriptionId":{"type":"string","description":"The unique identifier of the subscription associated with the rate plan.\n"},"subscriptionOwnerId":{"type":"string","description":"The unique identifier of the account that owns the subscription.\n"},"invoiceOwnerId":{"type":"string","description":"The unique identifier of the account that will pay the invoice.\n"},"externallyManagedPlanId":{"type":"string","description":"Indicates the unique identifier for the rate plan purchased on a\nthird-party store. This field is used to represent a subscription rate\nplan created through third-party stores.\n"},"originalRatePlanId":{"type":"string","description":"The original ID of the subscription rate plan, which is the ID of the subscription rate plan in the version-1 subscription.\n"},"subscriptionOfferId":{"type":"string","description":"The unique identifier of the subscription offer associated with the rate plan.\n"},"subscriptionRatePlanNumber":{"type":"string","description":"The number of the rate plan in the subscription.\n"},"subscription":{"$ref":"#/components/schemas/NestedRatePlanOnExpandSubscription","description":"The subscription associated with the rate plan.\n"},"productRatePlan":{"$ref":"#/components/schemas/NestedRatePlanOnExpandProductRatePlan","description":"The product rate plan associated with the rate plan.\n"},"reverted":{"type":"boolean","description":"Indicates whether the rate plan has been reverted.\n"},"ratePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/NestedRatePlanOnExpandRatePlanChargesItems"},"description":"The rate plan charges on the rate plan.\n"}},"title":"NestedRatePlanOnExpand"},"ExpandedRatePlanCharge":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the rate plan charge.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the rate plan charge.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the rate plan charge was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the rate plan charge.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the rate plan charge was last updated.\n"},"ratePlanId":{"type":"string","description":"The unique identifier of the rate plan to which this rate plan charge belongs.\n"},"productRatePlanChargeId":{"type":"string","description":"The unique identifier of the product rate plan charge associated with this product rate plan charge.\n"},"accountingCode":{"type":"string","description":"The accounting code for the charge. Accounting codes group transactions that contain similar accounting attributes.\n\n**Values**: inherited from `ProductRatePlanCharge.AccountingCode`\n\n**Note**: This value changes if `ProductRatePlanCharge.AccountingCode` is updated.\nThe values of `UpdatedById` and `UpdatedDate` for the `RatePlanCharge` do not change when `ProductRatePlanCharge.AccountingCode` is updated. \n"},"applyDiscountTo":{"type":"string","description":"Specifies the type of charges a specific discount applies to. \n\n**Values**: inherited from `ProductRatePlanCharge.ApplyDiscountTo` \n"},"billCycleDay":{"type":"integer","format":"int64","description":"Indicates the charge's billing cycle day (BCD), which is\nwhen bill runs generate invoices for charges associated with the product\nrate plan charge or the account. \n\n**Values**: inherited from `ProductRatePlanCharge.BillCycleDay` \n"},"billCycleType":{"type":"string","description":"Specifies how to determine the billing day for the charge.\n\n**Values**: inherited from `ProductRatePlanCharge.BillCycleType`\n**Note:** You can override the value inherited from the Product Rate\nPlan Charge, but only when creating a new subscription or a New Product\namendment. \n"},"billingPeriod":{"type":"string","description":"Allows billing period to be overridden on rate plan Charge.\n\n**Values**: **inherited from `ProductRatePlanCharge.BillingPeriod`\n\n**Note:**\nYou can override the value inherited from the Product Rate Plan Charge,\nbut only when creating a new subscription or a New Product amendment. \n"},"billingPeriodAlignment":{"type":"string","description":"Aligns charges within the same subscription if multiple charges\nbegin on different dates.\n\n**Values**: inherited from `ProductRatePlanCharge.BillingPeriodAlignment` \n"},"billingTiming":{"$ref":"#/components/schemas/ExpandedRatePlanChargeBillingTiming","description":"The billing timing for the charge. You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.\n\n**Note:** You can override the value inherited from the Product Rate Plan Charge when a subscription has a recurring charge type.\n"},"chargedThroughDate":{"type":"string","format":"date","description":"The date through which a customer has been billed for the charge.\n"},"chargeModel":{"type":"string","description":"Determines how to evaluate charges. Charge models must be\nindividually activated in the web-based UI.\n\n**Values**: inherited from `ProductRatePlanCharge.ChargeModel` \n"},"chargeNumber":{"type":"string","description":"A unique number that identifies the charge. This number is returned as a string.\n\n**Values**: one of the following:\n- automatically generated if left `null`\n- a unique number of 50 characters or fewer\n"},"chargeType":{"type":"string","description":"Specifies the type of charge.\n\n**Values**: inherited from `ProductRatePlanCharge.ChargeType`\n"},"description":{"type":"string","description":"A description of the rate plan charge. \n"},"discountLevel":{"$ref":"#/components/schemas/ExpandedRatePlanChargeDiscountLevel","description":"Application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"dMRC":{"type":"number","format":"double","description":"A delta monthly recurring charge is the change in monthly\nrecurring revenue caused by an amendment or a new subscription. \n\n**Character limit**: 16 \n**Values**: automatically generated\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nThe [conversion\nrate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion)\nbetween Usage UOM and Drawdown UOM for a [drawdown\ncharge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).\nMust be a positive number (>0).\n"},"dTCV":{"type":"number","format":"double","description":"After an Amendment, the change in the total contract value\n(TCV) amount for this charge, compared with its previous value.\n\n**Character limit**: 16\n**Values**: automatically generated \n"},"effectiveEndDate":{"type":"string","format":"date","description":"Start date when the rate plan charge becomes active, as `yyyy-mm-dd`.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"Final date the rate plan is active, as `yyyy-mm-dd`.\n"},"endDateCondition":{"$ref":"#/components/schemas/ExpandedRatePlanChargeEndDateCondition","description":"Condition for the charge to become inactive.\n\n\n- If the value of this field is `FixedPeriod`, the charge is active for a\npredefined duration based on the value of the `upToPeriodsType` and\n`upToPeriods` fields.\n\n- If the value of this field is `SpecificEndDate`, use the\n`specificEndDate` field to specify the date when the charge becomes\ninactive.\n"},"estimatedStartDate":{"type":"string","format":"date","description":"The estimated start date of the pending charge in an active subscription.\n\nThe value must be a date within the subscription term. The system will then automatically calculate the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge. \n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"estimatedEndDate":{"type":"string","format":"date","description":"The estimated end date of the pending charge in an active subscription.\n\nThe system automatically calculates the estimated end date for the pending charge. The estimated start and end dates are used to manage the estimated charge duration and forecast the revenue for the pending charge. \n\n**Note:** This field is available only when the Pending Subscription Processing feature is turned on.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charge related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\nIf both the following features are enabled in your tenant, you must ensure the `excludeItemBillingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge. In addition, if the `excludeItemBookingFromRevenueAccounting` field in an Create Subscription or Add Product order action is set to `false`, you must also set the `excludeItemBillingFromRevenueAccounting` field in this order action to `false`.\n  * Prepaid with Drawdown\n  * Unbilled Usage\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude rate plan charges from revenue accounting.\n\nIf both the following features are enabled in your tenant, you must ensure the `excludeItemBookingFromRevenueAccounting` field is set consistently for a prepayment charge and the corresponding drawdown charge.\n  * Prepaid with Drawdown\n  * Unbilled Usage\n\n**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> or [Zuora Billing - Revenue Integration](https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration) feature enabled. \n"},"invoiceScheduleId":{"type":"string","description":"The unique identifier of the invoice schedule associated with the subscription.\n"},"isLastSegment":{"type":"boolean","description":"Indicates if the segment of the rate plan charge is the most\nrecent segment.\n\n**Character limit**: 5\n**Values**: automatically generated.\n"},"isPrepaid":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nIndicates whether this charge is a prepayment (topup) charge or a\ndrawdown charge. \n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nIt determines whether the rollover fields are needed.\n"},"rolloverPeriods":{"type":"integer","format":"int64","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"rolloverPeriodLength":{"type":["integer","null"],"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"rolloverApply":{"$ref":"#/components/schemas/ExpandedRatePlanChargeRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"isProcessed":{"type":"boolean","description":"Indicates whether the rate plan charge has been processed.\n"},"listPriceBase":{"$ref":"#/components/schemas/ExpandedRatePlanChargeListPriceBase","description":"The list price base for the product rate plan charge.\n"},"specificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `ListPriceBase` field to `Per Specific Months`.\n\n**Notes**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - The value of this field is `null` if you do not set the value of the `ListPriceBase` field to `Per Specific Months`.\n"},"priceUpsellQuantityStacked":{"type":"boolean"},"commitmentType":{"$ref":"#/components/schemas/ExpandedRatePlanChargeCommitmentType","description":"**Note**: This field is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"isCommitted":{"type":"boolean","description":"Indicates whether the rate plan charge is commited.\n"},"mRR":{"type":"number","format":"double","description":"Monthly recurring revenue (MRR) is the amount of recurring\ncharges in a given month. The MRR calculation doesn't include one-time\ncharges nor usage charges.\n\n**Character limit**: 16\n**Values**: automatically generated \n"},"name":{"type":"string","description":"The name of the rate plan charge.\n\n**Character limit**: 100\n**Values**: automatically generated \n"},"numberOfPeriods":{"type":"integer","format":"int64","description":"Specifies the number of periods to use when calculating charges\nin an overage smoothing charge model.\n\n**Character limit**: 5\n**Values**: inherited from `ProductRatePlanCharge.NumberOfPeriod`\n"},"originalId":{"type":"string","description":"The original ID of the rate plan charge.\n\n**Character limit**: 32\n**Values**: automatically generated\n"},"overageCalculationOption":{"type":"string","description":"Determines when to calculate overage charges. If the value\nof the SmoothingMode field is null (not specified and not inherited from\nProductRatePlanCharge.SmoothingMode), the value of this field is ignored.\n\n**Character limit**: 20\n**Values**: inherited from `ProductRatePlanCharge.OverageCalculationOption`\n"},"overageUnusedUnitsCreditOption":{"type":"string","description":"Determines whether to credit the customer with unused units\nof usage.\n\n**Character limit**: 20\n**Values**: inherited from `ProductRatePlanCharge.OverageUnusedUnitsCreditOption`\n"},"prepaidOperationType":{"oneOf":[{"$ref":"#/components/schemas/ExpandedRatePlanChargePrepaidOperationType"},{"type":"null"}],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n"},"prepaidQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaidTotalQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe total amount of units that end customers can use during a validity period when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"priceChangeOption":{"type":"string","description":"Applies an automatic price change when a termed subscription is renewed.\n\n**Values**: one of the following:\n\n- `NoChange` (default)\n- `SpecificPercentageValue`\n- `UseLatestProductCatalogPricing`\n"},"priceIncreasePercentage":{"type":"number","format":"double","description":"Specifies the percentage to increase or decrease the price\nof renewed subscriptions.\n\n**Character limit**: 16\n**Values**: a decimal value between -100 and 100\n"},"processedThroughDate":{"type":"string","format":"date","description":"The date until when charges have been processed. When billing\nin arrears, such as usage, this field value is the the same as the `ChargedThroughDate`\nvalue. This date is the earliest date when a charge can be amended.\n\n**Character limit**: 29\n**Values**: automatically generated\n"},"prorationOption":{"type":"string","description":"Determines how to prorate charges when a subscription is created or amended.\n"},"quantity":{"type":"number","format":"double","description":"The default quantity of units, such as the number of authors\nin a hosted wiki service. Valid for all charge models except for Flat\nFee pricing.\n\n**Character limit**: 16\n**Values**: a valid quantity value\n"},"numberOfDeliveries":{"type":"number","format":"double","description":"Number of deliveries in the billing period for the charge segment.\n\nThe `numberOfDeliveries` is used for the Delivery Pricing charge model only. \n\n**Note**: The Delivery Pricing charge model 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. You can check **Delivery Pricing** in **Billing Settings** > **Enable Charge Types / Models**.\n"},"ratingGroup":{"$ref":"#/components/schemas/ExpandedRatePlanChargeRatingGroup","description":"A rating group based on which usage records are rated. Only\napplicable to Usage charges.\n\nPossible values:\n- `ByBillingPeriod`: The rating is based on all the usages in a billing period.\n- `ByUsageStartDate`: The rating is based on all the usages on the same usage start date.\n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in a custom group.\n\nFor more information, see [Usage rating by group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group).\n"},"revenueRecognitionRuleName":{"type":"string","description":"Specifies the Revenue Recognition Rule that you want the\nRate Plan Charge to use. This field can be updated when **Status** is\n`Draft`. By default, the Revenue Recognition Rule is inherited from\nthe Product Rate Plan Charge. For Amend calls, you can use this field\nonly for NewProduct amendments. For Update calls, you can use this field\nonly to update subscriptions in draft status. Note that if you use this\nfield to specify a Revenue Recognition Rule for the Rate Plan Charge,\nthe rule will remain as specified even if you later change the rule\nused by the corresponding Product Rate Plan Charge.\n\n**Character limit**: n/a\n**Values**: inherited from `ProductRatePlanCharge.RevenueRecognitionRuleName` or the name of an active Revenue Recognition Rule\n\n**Note**: Unless overridden, this value changes if `ProductRatePlanCharge.RevenueRecognitionRuleName` is updated.\nThe values of `UpdatedById` and `UpdatedDate` for the `RatePlanCharge` do not change when `ProductRatePlanCharge.RevenueRecognitionRuleName` is updated.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/ExpandedRatePlanChargeRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/ExpandedRatePlanChargeRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. Other options might also be avaliable depending on the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revRecCode":{"type":"string","description":"Associates this product rate plan charge with a specific revenue recognition code.\n\n**Character limit**: 70\n**Values**: inherited from `ProductRatePlanCharge.RevRecCode` or a valid revenue recognition code\n\n**Note**: Unless overridden, this value changes if `ProductRatePlanCharge.RevRecCode` is updated.\nThe values of `UpdatedById` and `UpdatedDate` for the `RatePlanCharge` do not change when `ProductRatePlanCharge.RevRecCode` is updated.\n"},"revRecTriggerCondition":{"type":"string","description":"Specifies when revenue recognition begins.\n\n**Character limit**: 22\n**Values**: inherited from `ProductRatePlanCharge.RevRecTriggerCondition` or one of the following:\n\n-  `ContractEffectiveDate`\n-  `ServiceActivationDate`\n-  `CustomerAcceptanceDate`\n\nNote: Unless overridden, this value changes if `ProductRatePlanCharge.RevRecTriggerCondition` is updated.\nThe values of `UpdatedById` and `UpdatedDate` for the `RatePlanCharge` do not change when `ProductRatePlanCharge.RevRecTriggerCondition` is updated. \"\n"},"segment":{"type":"integer","description":"The identifying number of the subscription rate plan segment.\nSegments are numbered sequentially, starting with 1.\n\n**Character limit**: 2\n**Values**: automatically generated\n"},"specificBillingPeriod":{"type":"integer","format":"int64","description":"Customizes the number of months or weeks for the charges\nbilling period. This field is required if you set the value of the BillingPeriod\nfield to `Specific Months` or `Specific Weeks`.\n\n**Character limit**: 5\n**Values**: inherited from `ProductRatePlanCharge.BillingPeriod`\n\n**Note:** You can override the value inherited from the Product Rate Plan Charge, but only when creating a new subscription or a New Product amendment.\n"},"specificEndDate":{"type":"string","format":"date","description":"The specific date on which the charge ends, in `yyyy-mm-dd` format.\n\n**Character limit**: 29 \n\n**Note**:\n\n- This field is only applicable when the `EndDateCondition` field is set to `SpecificEndDate`.\n- If the subscription ends before the specific end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the specific end date.\n"},"tCV":{"type":"number","format":"double","description":"The total contract value (TCV) is the value of a single rate\nplan charge in a subscription over the lifetime of the subscription.\nThis value does not represent all charges on the subscription. The TCV\nincludes recurring charges and one-time charges, but it doesn't include\nusage charge.\n\n**Character limit**: 16\n**Values**: automatically generated\n"},"triggerDate":{"type":"string","format":"date","description":"The date when the charge becomes effective and billing begins,\nin `yyyy-mm-dd` format. This field is required if the `TriggerEvent`\nfield value is `SpecificDate`.\n\n**Character limit**: 29\n"},"triggerEvent":{"type":"string","description":"Specifies when to start billing the customer for the charge.\n**Note: **This field can be passed through the Subscribe and Amend calls and will override the default value set on the Product Rate Plan Charge.\n\n**Character limit**: 18\n**Values**: inherited from `ProductRatePlanCharge.TriggerEvent` and can be one of the following values:\n\n- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n- `ServiceActivation` is when the services or products for a subscription have been activated and the customers have access.\n- `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n- `SpecificDate` is valid only on the RatePlanCharge.\n"},"uOM":{"type":"string","description":"Specifies the units to measure usage.\n\n**Character limit**: 25\n**Values**: inherited from `ProductRatePlanCharge.UOM`\n"},"upToPeriods":{"type":"integer","format":"int64","description":"Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.\n\n**Character limit**: 5 \n\n**Values**: inherited from `ProductRatePlanCharge.UpToPeriods` **Note**:\n\n- You must use this field together with the `UpToPeriodsType` field to specify the time period. This field is only applicable only when the `EndDateCondition` field is set to `FixedPeriod`.\n- You can override the value inherited from the Product Rate Plan Charge, but only when creating a new subscription or a New Product amendment.\n- Use this field to override the value in `ProductRatePlanCharge.UpToPeriod`.\n- If you override the value in this field, enter a whole number between 0 and 65535, exclusive.\n- If the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge end date will change accordingly up to the original period end.\n"},"upToPeriodsType":{"$ref":"#/components/schemas/ExpandedRatePlanChargeUpToPeriodsType","default":"Billing Periods","description":"The period type used to define when the charge ends. This field can be updated when **Status** is `Draft`. \n\n**Note**:\n\n- You must use this field together with the `UpToPeriods` field to specify the time period.\n- This field is only applicable only when the `EndDateCondition` field is set to `FixedPeriod`.\n"},"version":{"type":"integer","format":"int64","description":"The version of the rate plan charge. Each time a charge is\namended, Zuora creates a new version of the rate plan charge.\n\n**Character limit**: 5\n**Values**: automatically generated.\n"},"weeklyBillCycleDay":{"$ref":"#/components/schemas/ExpandedRatePlanChargeWeeklyBillCycleDay","description":"Specifies which day of the week as the bill cycle day (BCD) for the charge.\n"},"subscriptionId":{"type":"string","description":"The unique identifier of the subscription to which the rate plan charge belongs.\n"},"subscriptionOwnerId":{"type":"string","description":"ID of the account that owns the subscription.\n"},"invoiceOwnerId":{"type":"string","description":"ID of the account that will pay the billing documents for the subscription.\n"},"originalOrderDate":{"type":"string","format":"date","description":"The date when the rate plan charge is created through an order or amendment. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sales order line in Zuora Revenue.\n"},"amendedByOrderOn":{"type":"string","format":"date","description":"The date when the rate plan charge is amended through an order\nor amendment. This field is to standardize the booking date\ninformation to increase audit ability and traceability of data\nbetween Zuora Billing and Zuora Revenue. It is mapped as the\nbooking date for a sale order line in Zuora Revenue.\n"},"validityPeriodType":{"$ref":"#/components/schemas/ExpandedRatePlanChargeValidityPeriodType","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"creditOption":{"$ref":"#/components/schemas/ExpandedRatePlanChargeCreditOption","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled. \n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information.\n"},"applyToBillingPeriodPartially":{"type":"boolean","description":"Allow the discount duration to be aligned with the billing period partially.\n\n**Note**: You must enable the [Enhanced Discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"productChargeDefinitionId":{"type":"string","description":"The unique ID of the product charge definition.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"ID of the accountReceivableAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a>, <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a>, and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Get_started_with_Invoice_Settlement/AA_Overview_of_Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> features are enabled.\n"},"deferredRevenueAccountingCodeId":{"type":"string","description":"ID of the deferredRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"recognizedRevenueAccountingCodeId":{"type":"string","description":"ID of the recognizedRevenueAccountingCode of a standalone charge.\n\n**Note:** This field is available when the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders\" target=\"_blank\">Standalone Orders</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance\" target=\"_blank\">Zuora Finance</a> features are enabled.\n"},"prepaidUOM":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nUnit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"drawdownUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nUnit of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).\n"},"salesPrice":{"type":"number","format":"double","description":"The sales price associated with the rate plan charge expressed as a decimal.\n\n**Notes**:\n  - This field is only available to subscriptions that are created through orders and exist after 2023-01-10.\n  - This field applies to the following charge models, and the values vary with the charge models:\n    - Flat fee: the value equals the value of the `price` field.\n    - Per unit: the value equals `price` multiplied by `quantity`.\n    - Fixed amount discount: the value equals the value of the `discountAmount` field.\n    - Volume: The calculation of the tier price is dependent on whether the price format is the flat fee or per unit.\n    - Tiered: The calculation of the tier price is dependent on whether the price format is the flat fee or per unit.\n"},"taxable":{"type":"boolean","description":"Indicates whether the rate plan charge is taxable.\n"},"reverted":{"type":"boolean","description":"Indicates whether the rate plan charge has been reverted.\n"},"reflectDiscountInNetAmount":{"type":"boolean","description":"Indicates whether the discount is reflected in the net amount.\n"},"ratePlan":{"$ref":"#/components/schemas/NestedRatePlanOnExpand"},"productRatePlanCharge":{"$ref":"#/components/schemas/NestedPrpcOnExpand"}},"title":"ExpandedRatePlanCharge"},"Object_Queries_queryRatePlanCharges_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedRatePlanCharge"}}},"title":"Object Queries_queryRatePlanCharges_Response_200"},"ObjectQueryRatePlanChargesKeyGetParametersExpandSchemaItems":{"type":"string","enum":["rateplan","productrateplancharge","rateplanchargetiers"],"title":"ObjectQueryRatePlanChargesKeyGetParametersExpandSchemaItems"},"ObjectQueryRatePlanChargeTiersGetParametersExpandSchemaItems":{"type":"string","enum":["rateplancharge"],"title":"ObjectQueryRatePlanChargeTiersGetParametersExpandSchemaItems"},"ExpandedRatePlanChargeTierPriceFormat":{"type":"string","enum":["Per Unit","Flat Fee"],"description":"Indicates if the price is a flat fee or is per unit.\n","title":"ExpandedRatePlanChargeTierPriceFormat"},"ExpandedRatePlanChargeTier":{"type":"object","properties":{"currency":{"type":"string","description":"The currency of the rate plan charge tier.\n"},"discountAmount":{"type":"number","format":"double","description":"The discount amount if it is a amount-based discount.\n"},"discountPercentage":{"type":"number","format":"double","description":"The discount percentage if it is a percentage-based discount.\n"},"endingUnit":{"type":"number","format":"double","description":"The ending number of a range of units for the tier.\n"},"includedUnits":{"type":"number","format":"double","description":"The number of units included in the tier.\n"},"overagePrice":{"type":"number","format":"double","description":"The overage price. An overage occurs when usage surpasses the last defined tier. \nThis field is applicable only to tier pricing and volume pricing models.\n"},"price":{"type":"number","format":"double","description":"The price of the tier if the charge is a flat fee, or the price of each unit in the tier if the change model is tiered pricing.\n"},"priceFormat":{"$ref":"#/components/schemas/ExpandedRatePlanChargeTierPriceFormat","description":"Indicates if the price is a flat fee or is per unit.\n"},"startingUnit":{"type":"number","format":"double","description":"The start number of a range of units for the tier.\n"},"tier":{"type":"integer","format":"int64","description":"A unique number that identifies the tier that the price applies to.\n"},"id":{"type":"string","description":"The unique identifier of the rate plan charge tier.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the rate plan charge tier.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the rate plan charge tier was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the rate plan charge tier.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the rate plan charge tier was last updated.\n"},"ratePlanChargeId":{"type":"string","description":"The unique identifier of the rate plan charge to which the rate plan charge tier belongs.\n"},"ratePlanCharge":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpand"}},"title":"ExpandedRatePlanChargeTier"},"Object_Queries_queryRatePlanChargeTiers_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedRatePlanChargeTier"}}},"title":"Object Queries_queryRatePlanChargeTiers_Response_200"},"ObjectQueryRatePlanChargeTiersKeyGetParametersExpandSchemaItems":{"type":"string","enum":["rateplancharge"],"title":"ObjectQueryRatePlanChargeTiersKeyGetParametersExpandSchemaItems"},"ObjectQueryRatingResultsGetParametersExpandSchemaItems":{"type":"string","enum":["account","rateplancharge","subscription","invoiceitem"],"title":"ObjectQueryRatingResultsGetParametersExpandSchemaItems"},"ExpandedRatingResult":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the rating result.\n"},"createdByID":{"type":"string","description":"The unique identifier of the user who created the rating result.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the rating result was created in the Zuora\nsystem, in the `yyyy-mm-dd hh:mm:ss` format.\n"},"updatedByID":{"type":"string","description":"The unique identifier of the user who last updated the rating result.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the rating result was last updated, in the `yyyy-mm-dd hh:mm:ss` format.\n"},"accountId":{"type":"string","description":"The unique identifier of the customer account associated with the rating result.\n"},"subscriptionId":{"type":"string","description":"The unique identifier of the subscription associated with the rating result.\n"},"ratePlanChargeId":{"type":"string","description":"The unique identifier of the rate plan charge associated with the rating result.\n"},"quantity":{"type":"number","format":"double","description":"The quantity of the charge.\n"},"amount":{"type":"number","format":"double","description":"The amount of the charge.\n"},"serviceStartDate":{"type":"string","format":"date","description":"The start date of the service period for the rating result.\n"},"serviceEndDate":{"type":"string","format":"date","description":"The end date of the service period for the rating result.\n"},"status":{"type":"string","description":"The status of the rating result.\n"},"isPartial":{"type":"boolean","description":"Indicates whether the rating result is partial.\n"},"chargeSegmentNumber":{"type":"integer","description":"Rate plan charge number.\n"},"invoiceItemId":{"type":"string","description":"The unique identifier of the invoice item associated with the rating result.\n"},"actualPeriodStartDate":{"type":"string","format":"date","description":"The start date of the actual period for the rating result.\n"},"actualPeriodEndDate":{"type":"string","format":"date","description":"The end date of the actual period for the rating result.\n"},"billingCycleDay":{"type":"integer","description":"The day of the month on which the billing cycle starts.\n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"ratePlanCharge":{"$ref":"#/components/schemas/NestedRatePlanChargeOnExpand"},"subscription":{"$ref":"#/components/schemas/NestedSubscriptionOnExpand"},"invoiceItem":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpand"}},"title":"ExpandedRatingResult"},"Object_Queries_queryRatingResults_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedRatingResult"}}},"title":"Object Queries_queryRatingResults_Response_200"},"ObjectQueryRatingResultsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","rateplancharge","subscription","invoiceitem"],"title":"ObjectQueryRatingResultsKeyGetParametersExpandSchemaItems"},"ObjectQueryRefundsGetParametersExpandSchemaItems":{"type":"string","enum":["account","account.billto","account.soldto","paymentmethod","refundapplications","refundapplications.payment","refundapplications.refundapplicationitems"],"title":"ObjectQueryRefundsGetParametersExpandSchemaItems"},"ExpandedRefundGatewayState":{"type":"string","enum":["MarkedForSubmission","Submitted","Settled","NotSubmitted","FailedToSettle"],"description":"The status of the refund in the gateway. \n","title":"ExpandedRefundGatewayState"},"ExpandedRefundMethodType":{"type":"string","enum":["ACH","Cash","Check","CreditCard","PayPal","WireTransfer","DebitCard","CreditCardReferenceTransaction","BankTransfer","Other"],"description":"How an external refund was issued to a customer. \n","title":"ExpandedRefundMethodType"},"ExpandedRefundSourceType":{"type":"string","enum":["Payment","CreditBalance","CreditMemo"],"description":"Specifies whether the refund is a refund payment or a credit balance. \n","title":"ExpandedRefundSourceType"},"ExpandedRefundStatus":{"type":"string","enum":["Processed","Canceled","Error","Processing"],"description":"The status of the refund. \n","title":"ExpandedRefundStatus"},"ExpandedRefundTransferredToAccounting":{"type":"string","enum":["Processing","Yes","No","Error","Ignore"],"description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n","title":"ExpandedRefundTransferredToAccounting"},"ExpandedRefundType":{"type":"string","enum":["External","Electronic"],"description":"The type of the refund. \n","title":"ExpandedRefundType"},"NestedRefundApplicationOnExpandRefund":{"type":"object","properties":{},"description":"The refund associated with the refund application.\n","title":"NestedRefundApplicationOnExpandRefund"},"NestedRefundApplicationOnExpandPayment":{"type":"object","properties":{},"description":"The payment associated with the refund application.\n","title":"NestedRefundApplicationOnExpandPayment"},"NestedRefundApplicationOnExpandRefundApplicationItemsItems":{"type":"object","properties":{},"title":"NestedRefundApplicationOnExpandRefundApplicationItemsItems"},"NestedRefundApplicationOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the refund application.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the refund application.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the refund application was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the refund application.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the refund application was last updated.\n"},"accountId":{"type":"string","description":"The ID of the account associated with this refund application. \n"},"applicationGroupId":{"type":"string","description":"The ID of the application group to which this payment application belongs.\n"},"applyAmount":{"type":"number","format":"double","description":"The total amount of the refund to be applied.\n"},"creditMemoId":{"type":"string","description":"The unique identifier of the credit memo to which the associated payment was applied.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the refund application becomes effective.\n"},"invoiceId":{"type":"string","description":"The unique identifier of the invoice to which the associated payment was applied.\n"},"paymentId":{"type":"string","description":"The unique identifier of the payment associated with the refund application.\n"},"refundId":{"type":"string","description":"The unique identifier of the refund associated with the refund application.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The Account Receivable accounting code of a standalone charge.\n"},"onAccountAccountingCodeId":{"type":"string","description":"The accounting code that maps to an on account in your accounting\nsystem.\n"},"unappliedPaymentAccountingCodeId":{"type":"string","description":"The accounting code for the unapplied payment.\n"},"cashAccountingCodeId":{"type":"string","description":"The accounting code for cash payments.\n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this transaction.\n"},"refund":{"$ref":"#/components/schemas/NestedRefundApplicationOnExpandRefund","description":"The refund associated with the refund application.\n"},"payment":{"$ref":"#/components/schemas/NestedRefundApplicationOnExpandPayment","description":"The payment associated with the refund application.\n"},"refundApplicationItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedRefundApplicationOnExpandRefundApplicationItemsItems"},"description":"The refund application items contained in the refund application.\n"}},"title":"NestedRefundApplicationOnExpand"},"ExpandedRefund":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the refund.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the refund.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the refund was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the refund.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the refund was last updated.\n"},"accountId":{"type":"string","description":"The ID of the account associated with this refund. Zuora associates the refund automatically with the account from the associated payment or credit memo.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the refund.\n"},"cancelledOn":{"type":"string","format":"date-time","description":"The date and time when the refund was cancelled, in `yyyy-mm-dd hh:mm:ss` format.\n"},"comment":{"type":["string","null"],"description":"Comments about the refund.\n"},"paymentMethodSnapshotId":{"type":"string","description":"The unique ID of the payment method snapshot which is a copy of the particular payment method used in a transaction.\n"},"accountingCode":{"type":"string","description":"The accounting code that maps to this refund transaction in your accounting\nsystem.\n"},"currency":{"type":"string","description":"The currency of the refund.\n"},"gatewayReconciliationReason":{"type":"string","description":"The reason of gateway reconciliation.\n"},"gatewayReconciliationStatus":{"type":"string","description":"The status of gateway reconciliation.\n"},"gatewayResponse":{"type":"string","description":"The message returned from the payment gateway for the refund. This\nmessage is gateway-dependent.\n"},"gatewayResponseCode":{"type":"string","description":"The code returned from the payment gateway for the refund. This code\nis gateway-dependent.\n"},"gatewayState":{"$ref":"#/components/schemas/ExpandedRefundGatewayState","description":"The status of the refund in the gateway. \n"},"markedForSubmissionOn":{"type":"string","format":"date-time","description":"The date and time when a refund was marked and waiting for batch submission to the payment process, in `yyyy-mm-dd hh:mm:ss` format.\n"},"methodType":{"$ref":"#/components/schemas/ExpandedRefundMethodType","description":"How an external refund was issued to a customer. \n"},"paymentMethodId":{"type":"string","description":"The unique ID of the payment method that the customer used to make the refund.\n"},"payoutId":{"type":"string","description":"The payout ID of the refund from the gateway side.\n"},"reasonCode":{"type":"string","description":"A code identifying the reason for the transaction.\n"},"refundNumber":{"type":"string","description":"The number of the refund.\n"},"referenceID":{"type":"string","description":"The transaction ID returned by the payment gateway for an electronic refund. Use this field to reconcile refunds between your gateway and Zuora Payments.\n"},"refundDate":{"type":"string","format":"date","description":"The date when the refund takes effect, in `yyyy-mm-dd` format. For example, 2017-03-01.\n"},"refundTransactionTime":{"type":"string","format":"date-time","description":"The date and time when the refund was issued, in `yyyy-mm-dd hh:mm:ss` format.\n"},"sourceType":{"$ref":"#/components/schemas/ExpandedRefundSourceType","description":"Specifies whether the refund is a refund payment or a credit balance. \n"},"secondRefundReferenceId":{"type":"string","description":"The transaction ID returned by the payment gateway if there is an additional transaction for the refund. Use this field to reconcile payments between your gateway and Zuora Payments.\n"},"settledOn":{"type":"string","format":"date-time","description":"The date and time when the refund was settled in the payment processor, in `yyyy-mm-dd hh:mm:ss` format. This field is used by the Spectrum gateway only and not applicable to other gateways.\n"},"softDescriptor":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"softDescriptorPhone":{"type":"string","description":"A payment gateway-specific field that maps Zuora to other gateways.\n"},"status":{"$ref":"#/components/schemas/ExpandedRefundStatus","description":"The status of the refund. \n"},"submittedOn":{"type":"string","format":"date-time","description":"The date and time when the refund was submitted, in `yyyy-mm-dd hh:mm:ss` format.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/ExpandedRefundTransferredToAccounting","description":"Whether the refund was transferred to an external accounting system. Use this field for integration with accounting systems, such as NetSuite. \n"},"type":{"$ref":"#/components/schemas/ExpandedRefundType","description":"The type of the refund. \n"},"associatedTransactionNumber":{"type":"string","description":"The number of the associated transactions, such as payments.\n"},"gateway":{"type":"string","description":"The gateway that processed the original payment. A gateway is an online service provider that connects an online shopping cart to a payment processor.\nZuora uses this same gateway for the corresponding refund. \nIf this payment gateway is no longer active, then the electronic refund fails. \n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"paymentMethod":{"$ref":"#/components/schemas/NestedPaymentMethodOnExpand"},"refundApplications":{"type":"array","items":{"$ref":"#/components/schemas/NestedRefundApplicationOnExpand"}}},"title":"ExpandedRefund"},"Object_Queries_queryRefunds_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedRefund"}}},"title":"Object Queries_queryRefunds_Response_200"},"ObjectQueryRefundsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","account.billto","account.soldto","paymentmethod","refundapplications","refundapplications.payment","refundapplications.refundapplicationitems"],"title":"ObjectQueryRefundsKeyGetParametersExpandSchemaItems"},"ObjectQueryRefundApplicationsGetParametersExpandSchemaItems":{"type":"string","enum":["refund","payment","refundapplicationitems"],"title":"ObjectQueryRefundApplicationsGetParametersExpandSchemaItems"},"NestedRefundApplicationItemOnExpandRefundApplication":{"type":"object","properties":{},"description":"The refund application object that contains the refund application item.\n","title":"NestedRefundApplicationItemOnExpandRefundApplication"},"NestedRefundApplicationItemOnExpand":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the refund application item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the refund application item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the refund application item was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the refund application item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the refund application item was last updated.\n"},"amount":{"type":"number","format":"double","description":"The amount of the refund application item.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the refund application item becomes effective.\n"},"applicationGroupId":{"type":"string","description":"The ID of the application group to which this refund application belongs.\n"},"refundApplicationId":{"type":"string","description":"The ID of the refund application to which this refund application item belongs.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The Account Receivable accounting code of a standalone charge.\n"},"onAccountAccountingCodeId":{"type":"string","description":"The accounting code that maps to an on account in your accounting system.\n"},"unappliedPaymentAccountingCodeId":{"type":"string","description":"The accounting code for the unapplied payment.\n"},"cashAccountingCodeId":{"type":"string","description":"The accounting code for cash payments.\n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this transaction.\n"},"creditTaxationItemId":{"type":"string","description":"The unique identifier of the credit taxation item to which the refund application item is applied.\n"},"creditMemoItemId":{"type":"string","description":"The unique identifier of the credit memo item to which the refund application item is applied.\n"},"refundApplication":{"$ref":"#/components/schemas/NestedRefundApplicationItemOnExpandRefundApplication","description":"The refund application object that contains the refund application item.\n"}},"title":"NestedRefundApplicationItemOnExpand"},"ExpandedRefundApplication":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the refund application.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the refund application.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the refund application was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the refund application.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the refund application was last updated.\n"},"accountId":{"type":"string","description":"The ID of the account associated with this refund application. \n"},"applicationGroupId":{"type":"string","description":"The ID of the application group to which this payment application belongs.\n"},"applyAmount":{"type":"number","format":"double","description":"The total amount of the refund to be applied.\n"},"creditMemoId":{"type":"string","description":"The unique identifier of the credit memo to which the associated payment was applied.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the refund application becomes effective.\n"},"invoiceId":{"type":"string","description":"The unique identifier of the invoice to which the associated payment was applied.\n"},"paymentId":{"type":"string","description":"The unique identifier of the payment associated with the refund application.\n"},"refundId":{"type":"string","description":"The unique identifier of the refund associated with the refund application.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The accountReceivableAccountingCode of a standalone charge.\n"},"onAccountAccountingCodeId":{"type":"string","description":"The accounting code that maps to an on account in your accounting\nsystem.\n"},"unappliedPaymentAccountingCodeId":{"type":"string","description":"The accounting code for the unapplied payment.\n"},"cashAccountingCodeId":{"type":"string","description":"The accounting code for cash payments.\n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this transaction.\n"},"refund":{"$ref":"#/components/schemas/NestedRefundOnExpand"},"payment":{"$ref":"#/components/schemas/NestedPaymentOnExpand"},"refundApplicationItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedRefundApplicationItemOnExpand"}}},"title":"ExpandedRefundApplication"},"Object_Queries_queryRefundApplications_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedRefundApplication"}}},"title":"Object Queries_queryRefundApplications_Response_200"},"ObjectQueryRefundApplicationsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["refund","payment","refundapplicationitems"],"title":"ObjectQueryRefundApplicationsKeyGetParametersExpandSchemaItems"},"ObjectQueryRefundApplicationItemsGetParametersExpandSchemaItems":{"type":"string","enum":["refundapplication"],"title":"ObjectQueryRefundApplicationItemsGetParametersExpandSchemaItems"},"ExpandedRefundApplicationItem":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the refund application item.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the refund application item.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the refund application item was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the refund application item.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the refund application item was last updated.\n"},"amount":{"type":"number","format":"double","description":"The amount of the refund application item.\n"},"effectiveDate":{"type":"string","format":"date","description":"The date when the refund application item becomes effective.\n"},"applicationGroupId":{"type":"string","description":"The ID of the application group to which this refund application belongs.\n"},"refundApplicationId":{"type":"string","description":"The ID of the refund application to which this refund application item belongs.\n"},"accountReceivableAccountingCodeId":{"type":"string","description":"The Account Receivable accounting code of a standalone charge.\n"},"onAccountAccountingCodeId":{"type":"string","description":"The accounting code that maps to an on account in your accounting system.\n"},"unappliedPaymentAccountingCodeId":{"type":"string","description":"The accounting code for the unapplied payment.\n"},"cashAccountingCodeId":{"type":"string","description":"The accounting code for cash payments.\n"},"journalEntryId":{"type":"string","description":"The ID of the journal entry that corresponds to this transaction.\n"},"creditTaxationItemId":{"type":"string","description":"The unique identifier of the credit taxation item to which the refund application item is applied.\n"},"creditMemoItemId":{"type":"string","description":"The unique identifier of the credit memo item to which the refund application item is applied.\n"},"refundApplication":{"$ref":"#/components/schemas/NestedRefundApplicationOnExpand"}},"title":"ExpandedRefundApplicationItem"},"Object_Queries_queryRefundApplicationItems_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedRefundApplicationItem"}}},"title":"Object Queries_queryRefundApplicationItems_Response_200"},"ObjectQueryRefundApplicationItemsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["refundapplication"],"title":"ObjectQueryRefundApplicationItemsKeyGetParametersExpandSchemaItems"},"ObjectQuerySummarystatementrunsGetParametersSortSchemaItems":{"type":"string","enum":["endDate","startDate","statementRunNumber"],"title":"ObjectQuerySummarystatementrunsGetParametersSortSchemaItems"},"ObjectQuerySummarystatementrunsGetParametersFilterSchemaItems":{"type":"string","enum":["accountId","id","startDate","statementRunNumber","status"],"title":"ObjectQuerySummarystatementrunsGetParametersFilterSchemaItems"},"ExpandedSummaryStatementRunDateRangeType":{"type":"string","enum":["Custom","PreviousOneCalendarMonth","PreviousThreeCalendarMonth"],"description":"The type of date range used for the statement.\n","title":"ExpandedSummaryStatementRunDateRangeType"},"ExpandedSummaryStatementRunRunType":{"type":"string","enum":["AdHoc","Scheduled"],"description":"The type of summary statement run.\n","title":"ExpandedSummaryStatementRunRunType"},"ExpandedSummaryStatementRunStatus":{"type":"string","enum":["Pending","Processing","GenerationCompleted","Completed","Error","Terminated"],"description":"The current status of the statement, with possible values:\n  - Pending\n  - Processing\n  - GenerationCompleted\n  - Completed (indicates PDF generation is completed and emails are triggered if AutoEmailEnabled)\n  - Error\n  - Terminated\n  \nFor AutoEmailEnabled, the possible values are Pending, Processing, GenerationCompleted, Completed, Error\nFor AutoEmailDisabled, the possible values are Pending, Processing, Completed\n","title":"ExpandedSummaryStatementRunStatus"},"ExpandedSummaryStatementRunTargetAccountCategory":{"type":"string","enum":["SingleAccount","AllAccounts","AccountsWithOpenInvoices","AccountsWithOpenBalances","AccountsWithoutInvoices","AccountsWithoutInvoicesAndOpenBalances"],"description":"The method used to filter accounts.\n","title":"ExpandedSummaryStatementRunTargetAccountCategory"},"ExpandedSummaryStatementRun":{"type":"object","properties":{"accountId":{"type":"string","description":"The unique identifier for the statement account.\n"},"autoEmailEnabled":{"type":"string","description":"Indicates whether automatic emails are enabled.\n"},"batchName":{"type":"string","description":"The name of the batch used to filter accounts, for example, Batch1.\n"},"billCycleDay":{"type":["string","null"],"description":"The bill cycle day for filtering accounts, represented as a number, for example '01' to '31'.\n"},"createdDate":{"type":"string","format":"dateTime","description":"The date and time when the summary statement run was created.\n"},"updatedDate":{"type":"string","format":"dateTime","description":"The date and time when the summary statement run was last updated.\n"},"createdById":{"type":"string","description":"The user ID of the person who created the summary statement run.\n"},"updatedById":{"type":"string","description":"The user ID of the person who last updated the summary statement run.\n"},"dateRangeType":{"$ref":"#/components/schemas/ExpandedSummaryStatementRunDateRangeType","description":"The type of date range used for the statement.\n"},"deleted":{"type":"string","description":"Indicates whether the statement has been deleted.\n"},"description":{"type":"string","description":"A description of the summary statement run.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the statement in the format YYYY-MM-DD.\n"},"id":{"type":"string","description":"The unique identifier of the statement.\n"},"numberOfAccounts":{"type":"string","description":"The number of accounts being processed in the summary statement run.\n"},"runType":{"$ref":"#/components/schemas/ExpandedSummaryStatementRunRunType","description":"The type of summary statement run.\n"},"startDate":{"type":"string","format":"date","description":"The start date of the statement in the format YYYY-MM-DD.\n"},"statementRunNumber":{"type":"string","description":"The unique number assigned to this statement run.\n"},"status":{"$ref":"#/components/schemas/ExpandedSummaryStatementRunStatus","description":"The current status of the statement, with possible values:\n  - Pending\n  - Processing\n  - GenerationCompleted\n  - Completed (indicates PDF generation is completed and emails are triggered if AutoEmailEnabled)\n  - Error\n  - Terminated\n  \nFor AutoEmailEnabled, the possible values are Pending, Processing, GenerationCompleted, Completed, Error\nFor AutoEmailDisabled, the possible values are Pending, Processing, Completed\n"},"targetAccountCategory":{"$ref":"#/components/schemas/ExpandedSummaryStatementRunTargetAccountCategory","description":"The method used to filter accounts.\n"},"errorCategory":{"type":"string","description":"The category of error when the operation fails.\n"},"errorMessage":{"type":"string","description":"The specific error message when the operation fails.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded."},"statementDate":{"type":"string","format":"date","description":"The date of the statement in the format YYYY-MM-DD.\n"},"statementNumber":{"type":"string","description":"The unique number assigned to the statement.\n"},"statementRunId":{"type":"string","description":"ID of the statement run.\n"},"emailStatus":{"type":"string","description":"The email status of the statement.\n"}},"title":"ExpandedSummaryStatementRun"},"ObjectQuerySummarystatementrunsKeyGetParametersSortSchemaItems":{"type":"string","enum":["endDate","startDate","statementRunNumber"],"title":"ObjectQuerySummarystatementrunsKeyGetParametersSortSchemaItems"},"ObjectQuerySummarystatementrunsKeyGetParametersFilterSchemaItems":{"type":"string","enum":["accountId","id","startDate","statementRunNumber","status"],"title":"ObjectQuerySummarystatementrunsKeyGetParametersFilterSchemaItems"},"ObjectQuerySummarystatementsGetParametersSortSchemaItems":{"type":"string","enum":["endDate","statementDate","statementNumber"],"title":"ObjectQuerySummarystatementsGetParametersSortSchemaItems"},"ObjectQuerySummarystatementsGetParametersFilterSchemaItems":{"type":"string","enum":["accountId","id","startDate","statementDate","statementNumber","statementRunId","status","emailStatus"],"title":"ObjectQuerySummarystatementsGetParametersFilterSchemaItems"},"ExpandedSummaryStatementDateRangeType":{"type":"string","enum":["Custom","PreviousThreeCalendarMonth","PreviousOneCalendarMonth"],"description":"The date range for the statement.\n\nIf `PreviousThreeCalendarMonth` or `PreviousOneCalendarMonth` is selected, the start and end dates are automatically calculated.\nFor example, if `PreviousThreeCalendarMonth` is chosen today (2024-08-20), the dates would be 2024-05-01 to 2024-07-31.\n","title":"ExpandedSummaryStatementDateRangeType"},"ExpandedSummaryStatementRunType":{"type":"string","enum":["AdHoc"],"description":"The scheduled type of the run which can either be AdHoc or Scheduled. Currently, only `AdHoc` is supported.\n","title":"ExpandedSummaryStatementRunType"},"ExpandedSummaryStatementStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","Terminated"],"description":"The current status of the statement.\n","title":"ExpandedSummaryStatementStatus"},"ExpandedSummaryStatementTargetAccountCategory":{"type":"string","enum":["SingleAccount","AllAccounts","AccountsWithOpenInvoices","AccountsWithOpenBalances","AccountsWithoutInvoices","AccountsWithoutInvoicesAndOpenBalances"],"description":"The method used to filter accounts.\n","title":"ExpandedSummaryStatementTargetAccountCategory"},"ExpandedSummaryStatement":{"type":"object","properties":{"accountId":{"type":"string","description":"The unique identifier for the statement account.\n"},"autoEmailEnabled":{"type":"boolean","description":"Indicates whether to send an email after a statement is generated. Acceptable values are `true` or `false`. If unspecified, the default value is `false`.\n"},"description":{"type":"string","description":"A text description of the statement run.\n"},"batchName":{"type":["string","null"],"description":"Name of the batch."},"billCycleDay":{"type":["string","null"],"description":"The bill cycle day for filtering accounts, with values ranging from '01' to '31'.\n"},"dateRangeType":{"$ref":"#/components/schemas/ExpandedSummaryStatementDateRangeType","description":"The date range for the statement.\n\nIf `PreviousThreeCalendarMonth` or `PreviousOneCalendarMonth` is selected, the start and end dates are automatically calculated.\nFor example, if `PreviousThreeCalendarMonth` is chosen today (2024-08-20), the dates would be 2024-05-01 to 2024-07-31.\n"},"runType":{"$ref":"#/components/schemas/ExpandedSummaryStatementRunType","description":"The scheduled type of the run which can either be AdHoc or Scheduled. Currently, only `AdHoc` is supported.\n"},"createdById":{"type":"string","description":"The ID of the user who created the statement.\n"},"createdDate":{"type":"string","format":"dateTime","description":"The date and time when the statement was created.\n"},"deleted":{"type":"string","description":"Indicates whether the statement has been deleted.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the statement in the format YYYY-MM-DD.\n"},"fileId":{"type":"string","description":"The ID associated with the file generated for the statement.\n"},"id":{"type":"string","description":"The unique identifier of the statement.\n"},"startDate":{"type":"string","format":"date","description":"The start date of the statement in the format YYYY-MM-DD.\n"},"emailStatus":{"type":"string","description":"The email status of the statement.\n"},"statementDate":{"type":"string","format":"date","description":"The date of the statement in the format YYYY-MM-DD.\n"},"statementNumber":{"type":"string","description":"The unique number assigned to the statement.\n"},"statementRunNumber":{"type":"string","description":"The number of the related statement run.\n"},"statementRunId":{"type":"string","description":"The ID of the related statement run.\n"},"status":{"$ref":"#/components/schemas/ExpandedSummaryStatementStatus","description":"The current status of the statement.\n"},"targetAccountCategory":{"$ref":"#/components/schemas/ExpandedSummaryStatementTargetAccountCategory","description":"The method used to filter accounts.\n"},"updatedById":{"type":"string","description":"The ID of the user who last updated the statement.\n"},"updatedDate":{"type":"string","format":"dateTime","description":"The date and time when the statement was last updated.\n"},"errorCategory":{"type":"string","description":"The category of error when the operation fails.\n"},"errorMessage":{"type":"string","description":"The specific error message when the operation fails.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded."}},"title":"ExpandedSummaryStatement"},"ObjectQuerySummarystatementsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["createdById","createdDate","deleted","endDate","fileId","updatedById","updatedDate","errorCategory","errorMessage"],"title":"ObjectQuerySummarystatementsKeyGetParametersExpandSchemaItems"},"ObjectQuerySummarystatementsKeyGetParametersFilterSchemaItems":{"type":"string","enum":["accountId","id","startDate","statementDate","statementNumber","statementRunId","status","emailStatus"],"title":"ObjectQuerySummarystatementsKeyGetParametersFilterSchemaItems"},"ObjectQuerySubscriptionsGetParametersExpandSchemaItems":{"type":"string","enum":["account","invoiceowner","billtocontact","soldtocontact","invoiceitems","rateplans","rateplans.rateplancharges","rateplans.rateplancharges.rateplanchargetiers","account.billto","account.soldto","account.paymentmethods","order"],"title":"ObjectQuerySubscriptionsGetParametersExpandSchemaItems"},"ExpandedSubscriptionCurrentTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"default":"Month","description":"The period type for the current subscription term.\n","title":"ExpandedSubscriptionCurrentTermPeriodType"},"ExpandedSubscriptionInitialTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"default":"Month","description":"The period type for the first subscription term.\n","title":"ExpandedSubscriptionInitialTermPeriodType"},"ExpandedSubscriptionRenewalSetting":{"type":"string","enum":["RENEW_WITH_SPECIFIC_TERM","RENEW_TO_EVERGREEN"],"default":"RENEW_WITH_SPECIFIC_TERM","description":"Specifies whether a termed subscription will remain `TERMED` or change to `EVERGREEN` when it is renewed. \n","title":"ExpandedSubscriptionRenewalSetting"},"ExpandedSubscriptionRenewalTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"default":"Month","description":"The period type for the subscription renewal term.\n","title":"ExpandedSubscriptionRenewalTermPeriodType"},"ExpandedSubscriptionStatus":{"type":"string","enum":["Draft","Pending Activation","Pending Acceptance","Active","Cancelled","Suspended"],"description":"Subscription status.\n","title":"ExpandedSubscriptionStatus"},"ExpandedSubscriptionTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"The type of the subscription term.\n","title":"ExpandedSubscriptionTermType"},"ExpandedSubscriptionExternallyManagedBy":{"type":"string","enum":["Amazon","Apple","Google","Roku"],"description":"An enum field on the Subscription object to indicate the name of a\nthird-party store. This field is used to represent subscriptions created\nthrough third-party stores.\n","title":"ExpandedSubscriptionExternallyManagedBy"},"ExpandedSubscription":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the subscription.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the subscription.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the subscription was created in the Zuora\nsystem, in the `yyyy-mm-dd hh:mm:ss` format.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the subscription.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the subscription was last updated, in the `yyyy-mm-dd hh:mm:ss` format.\n"},"accountId":{"type":"string","description":"The ID of the account associated with this subscription."},"autoRenew":{"type":"boolean","default":false,"description":"If `true`, the subscription automatically renews at the end of the\nterm. \n"},"cancelledDate":{"type":"string","format":"date","description":"The date on which the subscription was canceled.\n"},"contractAcceptanceDate":{"type":"string","format":"date","description":"The date when the customer accepts the contract, in the `yyyy-mm-dd` format.\n\nIf this field is not set:\n\n- If the `serviceActivationDate` field is not set, the value of this\nfield is set to be the contract effective date.\n\n- If the `serviceActivationDate` field is set, the value of this field\nis set to be the service activation date.\n\n\nThe billing trigger dates must follow this rule:\n\ncontractEffectiveDate <= serviceActivationDate <=\ncontractAcceptanceDate\n"},"contractEffectiveDate":{"type":"string","format":"date","description":"The date when the subscription is activated, in the `yyyy-mm-dd` format.\n\n\nYou must specify a Service Activation date if the Customer Acceptance\ndate is set. If the Customer Acceptance date is not set, the value of\nthe `serviceActivationDate` field defaults to be the Contract\nEffective Date.\n\n\nThe billing trigger dates must follow this rule:\n\n\ncontractEffectiveDate <= serviceActivationDate <=\ncontractAcceptanceDate\n"},"creatorAccountId":{"type":"string","description":"The ID of the account that created the subscription. This field is\nautomatically populated with the ID of the account that creates the\nsubscription.\n"},"creatorInvoiceOwnerId":{"type":"string","description":"The account ID that owns the invoices associated with the subscription or the amended subscription.\n"},"currentTerm":{"type":"integer","format":"int64","description":"The length of the period for the current subscription term.\n"},"currentTermPeriodType":{"$ref":"#/components/schemas/ExpandedSubscriptionCurrentTermPeriodType","default":"Month","description":"The period type for the current subscription term.\n"},"initialTerm":{"type":"integer","format":"int64","description":"The length of the period for the initial subscription term.\n"},"initialTermPeriodType":{"$ref":"#/components/schemas/ExpandedSubscriptionInitialTermPeriodType","default":"Month","description":"The period type for the first subscription term.\n"},"invoiceOwnerId":{"type":"string","description":"The account ID that owns the invoices associated with the subscription. \n"},"isInvoiceSeparate":{"type":"boolean","default":false,"description":"Determines if the subscription is invoiced separately. \nIf `true`, then all charges for this subscription are collected into the subscription's own invoice.\n"},"name":{"type":"string","description":"The name of the subscription.\n"},"notes":{"type":"string","maxLength":65535,"description":"Additional information about the subscription.\n"},"originalCreatedDate":{"type":"string","description":"The date when the subscription was originally created. \nThis value is the same as the `createdDate` value until the subscription is amended.\n"},"originalId":{"type":"string","description":"The original rate plan charge ID. Only available for update\nsubscription.\n"},"previousSubscriptionId":{"type":"string","description":"The ID of the previous subscription. This field is only available if\nthe subscription is a renewal subscription.\n"},"renewalSetting":{"$ref":"#/components/schemas/ExpandedSubscriptionRenewalSetting","default":"RENEW_WITH_SPECIFIC_TERM","description":"Specifies whether a termed subscription will remain `TERMED` or change to `EVERGREEN` when it is renewed. \n"},"renewalTerm":{"type":"integer","format":"int64","description":"The length of the period for the subscription renewal term.\n"},"renewalTermPeriodType":{"$ref":"#/components/schemas/ExpandedSubscriptionRenewalTermPeriodType","default":"Month","description":"The period type for the subscription renewal term.\n"},"revision":{"type":"string","description":"An auto-generated decimal value uniquely tagged with a subscription.\nThe value always contains one decimal place, for example, the revision\nof a new subscription is 1.0. If a further version of the subscription\nis created, the revision value will be increased by 1. Also, the\nrevision value is always incremental regardless of deletion of\nsubscription versions.\n"},"serviceActivationDate":{"type":"string","format":"date","description":"The date on which the services or products within a subscription have been activated and access has been provided to the customer, in the `yyyy-mm-dd` format.\n"},"status":{"$ref":"#/components/schemas/ExpandedSubscriptionStatus","description":"Subscription status.\n"},"isLatestVersion":{"type":"boolean","description":"If `true`, the current subscription object is the latest version.\n"},"subscriptionEndDate":{"type":"string","format":"date","description":"The date when the subscription term ends, where the subscription ends\nat midnight the day before.\n\nFor example, if the `subscriptionEndDate` is 12/31/2016, the\nsubscriptions ends at midnight (00:00:00 hours) on 12/30/2016.\n\nThis date is the same as the term end date or the cancelation date, as\nappropriate.\n"},"subscriptionStartDate":{"type":"string","format":"date","description":"Date the subscription becomes effective.\n"},"subscriptionVersionAmendmentId":{"type":"string","description":"The ID of the amendment made to this subscription version.\n"},"termEndDate":{"type":"string","format":"date","description":"Date the subscription term ends. If the subscription is evergreen,\nthis is null or is the cancellation date (if one has been set).\n"},"termStartDate":{"type":"string","format":"date","description":"Date the subscription term begins. If this is a renewal subscription,\nthis date is different from the subscription start date.\n"},"termType":{"$ref":"#/components/schemas/ExpandedSubscriptionTermType","description":"The type of the subscription term.\n"},"version":{"type":"integer","format":"int64","description":"This is the subscription version automatically generated by Zuora Billing. Each order or amendment creates a new version of the subscription, which incorporates the changes made in the order or amendment."},"cMRR":{"type":"number","format":"double","description":"Monthly recurring revenue of the subscription.\n"},"billToContactSnapshotId":{"type":"string","description":"The ID of the bill-to contact snapshot.\n"},"billToContactId":{"type":"string","description":"The ID of the bill-to contact for the subscription.\n"},"invoiceTemplateId":{"type":"string","description":"The ID of the invoice template associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Template from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"sequenceSetId":{"type":["string","null"],"description":"The ID of the sequence set associated with the subscription.\n\n**Note**: \n  - If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_customers_at_subscription_level/Flexible_Billing_Attributes\" target=\"_blank\">Flexible Billing Attributes</a> feature disabled, this field is unavailable in the request body and the value of this field is `null` in the response body. \n  - If you have the Flexible Billing Attributes feature enabled, and you do not specify this field in the request or you select **Default Set from Account** for this field during subscription creation, the value of this field is automatically set to `null` in the response body.\n"},"shipToContactId":{"type":"string","description":"The ID of the ship-to contact for the subscription.\n"},"shipToContactSnapshotId":{"type":"string","description":"The ID of the ship-to contact snapshot.\n"},"soldToContactId":{"type":"string","description":"The ID of the sold-to contact for the subscription.\n"},"soldToContactSnapshotId":{"type":"string","description":"The ID of the sold-to contact snapshot.\n"},"externallyManagedBy":{"$ref":"#/components/schemas/ExpandedSubscriptionExternallyManagedBy","description":"An enum field on the Subscription object to indicate the name of a\nthird-party store. This field is used to represent subscriptions created\nthrough third-party stores.\n"},"lastBookingDate":{"type":"string","format":"date","description":"The last booking date of the subscription object. This field is\nwritable only when the subscription is newly created as a first\nversion subscription. You can override the date value when creating a\nsubscription through the Subscribe and Amend API or the subscription\ncreation UI (non-Orders). Otherwise, the default value `today` is set\nper the user's timezone. The value of this field is as follows:\n\n* For a new subscription created by the [Subscribe and Amend\nAPIs](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Migration_Guidance#Subscribe_and_Amend_APIs_to_Migrate),\nthis field has the value of the subscription creation date.\n\n* For a subscription changed by an amendment, this field has the value\nof the amendment booking date.\n\n* For a subscription created or changed by an order, this field has\nthe value of the order date. \n"},"invoiceScheduleId":{"type":"string","description":"The ID of the invoice schedule associated with the subscription.\n\n\nIf multiple invoice schedules are created for different terms of a\nsubscription, this field stores the latest invoice schedule.\n\n\n**Note**: This field is available only if you have the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Billing_Schedule\"\ntarget=\"_blank\">Billing Schedule</a> feature enabled.\n"},"cancelReason":{"type":"string","description":"The reason for a subscription cancellation copied from the\n`changeReason` field of a Cancel Subscription order action. \n\nThis field contains valid value only if a subscription is cancelled\nthrough the Orders UI or API. Otherwise, the value for this field will\nalways be `null`.\n"},"prepayment":{"type":"boolean","description":"Whether the subscription is prepaid.\n"},"currency":{"type":"string","description":"The currency of the subscription.\n\n**Note**: This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies\" target=\"_blank\">Multiple Currencies</a> feature enabled.\n"},"orderId":{"type":"string","description":"The ID of the order associated with the subscription.\n\n**Note**: This field is available only for orders that exist after the end of June 2023.\n"},"rampId":{"type":"string","description":"The ID of the ramp object associated with the subscription.\n\n**Note**: This field is available only if you have the <a\nhref=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Ramp\"\ntarget=\"_blank\">Ramp</a> feature enabled.\n"},"paymentTerm":{"type":"string","description":"Name of the payment term associated with the account. For example,\n\"Net 30\". The payment term determines the due dates of invoices.\n"},"quoteNumber__QT":{"type":"string","maxLength":32,"description":"The unique identifier of the Quote. This field is used in Zuora data\nsources to report on Subscription metrics. If the subscription originated\nfrom Zuora Quotes, the value is populated with the value from Zuora\nQuotes.\n"},"quoteType__QT":{"type":"string","maxLength":32,"description":"The Quote type that represents the subscription lifecycle stage such as\nNew, Amendment, Renew or Cancel. This field is used in Zuora data sources\nto report on Subscription metrics. If the subscription originated from\nZuora Quotes, the value is populated with the value from Zuora Quotes.\n"},"quoteBusinessType__QT":{"type":"string","maxLength":32,"description":"The specific identifier for the type of business transaction the Quote\nrepresents such as New, Upsell, Downsell, Renewal or Churn. This field is\nused in Zuora data sources to report on Subscription metrics. If the\nsubscription originated from Zuora Quotes, the value is populated with the\nvalue from Zuora Quotes.\n"},"opportunityName__QT":{"type":"string","maxLength":100,"description":"The unique identifier of the Opportunity. This field is used in Zuora data\nsources to report on Subscription metrics. If the subscription originated\nfrom Zuora Quotes, the value is populated with the value from Zuora\nQuotes.\n"},"opportunityCloseDate__QT":{"type":"string","format":"date"},"cpqBundleJsonId__QT":{"type":"string","maxLength":32,"description":"The Bundle product structures from Zuora Quotes if you utilize Bundling in Salesforce. Do not change the value in this field.\n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"invoiceOwner":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"billToContact":{"$ref":"#/components/schemas/ExpandedContact"},"soldToContact":{"$ref":"#/components/schemas/ExpandedContact"},"invoiceItems":{"type":"array","items":{"$ref":"#/components/schemas/NestedInvoiceItemOnExpand"}},"ratePlans":{"type":"array","items":{"$ref":"#/components/schemas/NestedRatePlanOnExpand"}}},"title":"ExpandedSubscription"},"Object_Queries_querySubscriptions_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedSubscription"}}},"title":"Object Queries_querySubscriptions_Response_200"},"ObjectQuerySubscriptionsKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","invoiceowner","billtocontact","soldtocontact","invoiceitems","rateplans","rateplans.rateplancharges","rateplans.rateplancharges.rateplanchargetiers","account.billto","account.soldto","account.paymentmethods","order"],"title":"ObjectQuerySubscriptionsKeyGetParametersExpandSchemaItems"},"Object_Queries_queryTaxationItems_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedTaxationItem"}}},"title":"Object Queries_queryTaxationItems_Response_200"},"ObjectQueryUsagesGetParametersExpandSchemaItems":{"type":"string","enum":["account"],"title":"ObjectQueryUsagesGetParametersExpandSchemaItems"},"ExpandedUsageRbeStatus":{"type":"string","enum":["Importing","Pending","Processed"],"description":"Indicates if the rating and billing engine (RBE) processed usage data for an invoice.\n","title":"ExpandedUsageRbeStatus"},"ExpandedUsageSourceType":{"type":"string","enum":["API","Import"],"description":"Indicates if the usage records were imported from the web-based UI or the API.\n","title":"ExpandedUsageSourceType"},"ExpandedUsage":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the usage.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the usage.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the usage was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the usage.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the usage was last updated.\n"},"accountId":{"type":"string","description":"The ID of the customer account associated with the usage.\n"},"accountNumber":{"type":"string","description":"The number of the customer account associated with the usage.\n"},"ratePlanChargeId":{"type":"string","description":"ID of the rate plan charge that pays for this usage.\n"},"endDateTime":{"type":"string","format":"date-time","description":"End date of the time period in which usage is tracked. Zuora uses\nthis field value to determine the usage date.\n"},"productRatePlanChargeId":{"type":"string","description":"The product rate plan charge number that you use for a dynamic usage charge.\n"},"quantity":{"type":"number","format":"double","description":"Number of units used.\n"},"rbeStatus":{"$ref":"#/components/schemas/ExpandedUsageRbeStatus","description":"Indicates if the rating and billing engine (RBE) processed usage data for an invoice.\n"},"sourceType":{"$ref":"#/components/schemas/ExpandedUsageSourceType","description":"Indicates if the usage records were imported from the web-based UI or the API.\n"},"startDateTime":{"type":"string","format":"date-time","description":"Start date of the time period in which usage is tracked. Zuora uses\nthis field value to determine the usage date.\n"},"subscriptionId":{"type":"string","description":"The original ID of the subscription that contains the fees related to the usage data.\n"},"submissionDateTime":{"type":"string","format":"date-time","description":"The date and time when the usage was submitted.\n"},"uOM":{"type":"string","description":"The units to measure usage. Units of measure are configured in the web-based UI. Your values depend on your configuration in **Billing Settings**.\n"},"description":{"type":"string","description":"A description of the usage record.\n"},"importId":{"type":"string","description":"The unique identifier of the import.\n"},"uniqueKey":{"type":"string","description":"a customer-defined specific identifier of a usage record.\n\n**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature or the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage\" target=\"_blank\">Unbilled Usage</a> feature enabled. See [Upload usage record with unique\nkey](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Prepaid_balance_transactions#Upload_usage_record_with_unique_key)\nfor more information.\n"},"fileId":{"type":"string","description":"File ID of the uploaded usage records file. You can use this file ID with [Get files](https://developer.zuora.com/api-references/api/operation/GET_Files) to download the file.\n"},"fileName":{"type":"string","description":"The name of the import file when the usage record is imported from the file.\n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"}},"title":"ExpandedUsage"},"Object_Queries_queryUsages_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedUsage"}}},"title":"Object Queries_queryUsages_Response_200"},"ObjectQueryUsagesKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account"],"title":"ObjectQueryUsagesKeyGetParametersExpandSchemaItems"},"ObjectQueryValidityPeriodSummariesGetParametersExpandSchemaItems":{"type":"string","enum":["account","prepaidbalance"],"title":"ObjectQueryValidityPeriodSummariesGetParametersExpandSchemaItems"},"ExpandedValidityPeriodSummaryBillingTiming":{"type":"string","enum":["In Advance","In Arrears"],"description":"The billing timing of the validity period.\n","title":"ExpandedValidityPeriodSummaryBillingTiming"},"ExpandedValidityPeriodSummary":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the validity period summary.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the validity period summary.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the validity period summary was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the validity period summary.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the validity period summary was last updated.\n"},"prepaidBalanceId":{"type":"string","description":"The unique identifier of the prepaid balance.\n"},"startDate":{"type":"string","format":"date","description":"The start date of the validity period.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the validity period.\n"},"totalBalance":{"type":"number","format":"double","description":"The total prepaid balance for the current validity period.\n"},"remainingBalance":{"type":"number","format":"double","description":"The remaining prepaid balance for the current validity period.\n"},"totalBilledAmount":{"type":"number","format":"double","description":"The total amount that has been billed.\n"},"billedBalanceAmount":{"type":"number","format":"double","description":"The total amount of the billing documents balances.\n"},"subscriptionNumber":{"type":"string","description":"The number of the subscription the validity period belongs to.\n"},"uom":{"type":"string","description":"The UOM of the validity period.\n"},"accountNumber":{"type":"string","description":"The number of the account to which the prepaid balance belongs.\n"},"accountId":{"type":"string","description":"The ID of the account to which the prepaid balance belongs.\n"},"billingTiming":{"$ref":"#/components/schemas/ExpandedValidityPeriodSummaryBillingTiming","description":"The billing timing of the validity period.\n"},"overageRatedQuantity":{"type":"number","format":"double","description":"The overage rated quantity for the validity period.\n\n**Note**: The `overageRatedQuantity` and `overageRatedAmount` fields of the Validity Period Summary object are approaching end of support on  February 01, 2025. For more information, see <a href=\"https://knowledgecenter.zuora.com/Releases/ZProduct_and_feature_end_of_support_plan#overageRatedQuantity_and_overageRatedAmount_fields_end_of_support_plan\" target=\"_blank\">Product and feature end of support plan</a>.\n"},"overageRatedAmount":{"type":"number","format":"double","description":"The overage rated amount for the validity period. \n\n**Note**: The `overageRatedQuantity` and `overageRatedAmount` fields of the Validity Period Summary object are approaching end of support on  February 01, 2025. For more information, see <a href=\"https://knowledgecenter.zuora.com/Releases/ZProduct_and_feature_end_of_support_plan#overageRatedQuantity_and_overageRatedAmount_fields_end_of_support_plan\" target=\"_blank\">Product and feature end of support plan</a>.\n"},"account":{"$ref":"#/components/schemas/NestedAccountOnExpand"},"prepaidBalance":{"$ref":"#/components/schemas/NestedPrepaidBalanceOnExpand"}},"title":"ExpandedValidityPeriodSummary"},"Object_Queries_queryValidityPeriodSummarys_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedValidityPeriodSummary"}}},"title":"Object Queries_queryValidityPeriodSummarys_Response_200"},"ObjectQueryValidityPeriodSummariesKeyGetParametersExpandSchemaItems":{"type":"string","enum":["account","prepaidbalance"],"title":"ObjectQueryValidityPeriodSummariesKeyGetParametersExpandSchemaItems"},"Object_Queries_queryCustomObjects_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}}},"title":"Object Queries_queryCustomObjects_Response_200"},"ExpandedContactSnapshot":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the contact snapshot.\n"},"createdById":{"type":"string","description":"The unique identifier of the user who created the snapshot.\n"},"createdDate":{"type":"string","format":"date-time","description":"The date and time when the contact snapshot was created.\n"},"updatedById":{"type":"string","description":"The unique identifier of the user who last updated the snapshot.\n"},"updatedDate":{"type":"string","format":"date-time","description":"The date and time when the contact snapshot was last updated.\n"},"accountId":{"type":"string","description":"The unique identifier of the associated billing account.\n"},"contactId":{"type":"string","description":"The unique identifier of the original contact.\n"},"firstName":{"type":"string","description":"The first name of the contact.\n"},"lastName":{"type":"string","description":"The last name of the contact.\n"},"nickName":{"type":"string","description":"The nickname of the contact.\n"},"address1":{"type":"string","description":"The first line of the address.\n"},"address2":{"type":"string","description":"The second line of the address.\n"},"city":{"type":"string","description":"The city of the contact's address.\n"},"state":{"type":"string","description":"The state or province of the contact's address.\n"},"postalCode":{"type":"string","description":"The postal or ZIP code.\n"},"county":{"type":"string","description":"The county or region of the contact.\n"},"country":{"type":"string","description":"The county or region of the contact.\n"},"taxRegion":{"type":"string","description":"The tax region applicable to the contact.\n"},"description":{"type":"string","description":"The free-form description of the contact snapshot.\n"},"homePhone":{"type":"string","description":"The home phone number.\n"},"otherPhone":{"type":"string","description":"Any other phone number.\n"},"otherPhoneType":{"type":"string","description":"The type of the other phone number.\n"},"fax":{"type":"string","description":"The fax number.\n"},"personalEmail":{"type":"string","description":"The personal email address.\n"},"workEmail":{"type":"string","description":"The personal email address.\n"},"deleted":{"type":"boolean","description":"Indicates whether the contact snapshot is marked as deleted.\n"}},"title":"ExpandedContactSnapshot"},"Object_Queries_queryContactSnapshots_Response_200":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string that can be used as the `cursor` value to retrieve the next page of the response if it exists; otherwise absent.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpandedContactSnapshot"}}},"title":"Object Queries_queryContactSnapshots_Response_200"},"RatingDetails":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the Rating Detail."},"invoiceItemId":{"type":"string","description":"The unique identifier of the Invoice Item this Rating Detail is associated to."},"creditMemoItemId":{"type":["string","null"],"description":"The unique identifier of the Credit Memo Item this Rating Detail is associated to."},"chargeType":{"type":"string","description":"The type of charge of the associated Invoice Item."},"chargeModel":{"type":"string","description":"The charge model of the associated Invoice Item."},"formula":{"type":"string","description":"Text with mathematical formula used to rate the amount."},"calculation":{"type":"string","description":"Details of the rating done by replacing values in the formula."},"calculatedAmount":{"type":"number","format":"double","description":"The output result of the rating calculation."},"currency":{"type":"string","description":"The currency code of the calculated amount."},"unitOfMeasure":{"type":"string","description":"Unit of measure if it's a usage charge."},"quantity":{"type":["number","null"],"format":"double","description":"If usage charge, quantity of usages."},"billedQuantity":{"type":["number","null"],"format":"double","description":"For on-demand usage charges, previously billed quantity in the same billing period."},"billedAmount":{"type":["number","null"],"format":"double","description":"For on-demand usage charges, previously billed amount in the same billing period."},"isProration":{"type":"boolean","description":"True if the billing period is a prorated period."},"isCredit":{"type":"boolean","description":"True if this is a credit."},"listPriceBase":{"type":"string","description":"List price base from the rate plan charge."},"billingCycleDay":{"type":"integer","description":"Billing cycle day from the rate plan charge."},"billingCycleType":{"type":"string","description":"Billing cycle type from the rate plan charge."},"billingPeriod":{"type":"string","description":"Billing period from the rate plan charge."},"specificBillingPeriod":{"type":"string","description":"Specific billing period from the rate plan charge."},"validityPeriodType":{"type":"string","description":"Validity period type for prepaid or commitment charges."},"billingPeriodAlignment":{"type":"string","description":"Billing period alignment from the rate plan charge."},"alignmentStartDate":{"type":"string","format":"date","description":"Start date used for billing alignment."},"amountWithoutTax":{"type":"number","format":"double","description":"The amount from the Invoice Item or Credit Memo Item."},"isInclusiveTaxNoRounding":{"type":"boolean","description":"True if tax mode option is set to tax inclusive."},"isProrationPartialPeriod":{"type":"boolean","description":"True if billing rule \"Prorate recurring charges for partial period?\" is Yes."},"isProrateMonthlyCharges":{"type":"boolean","description":"True if billing rule \"Bill usage/recurring charges for partial month?\" is Yes."},"isProrateWeeklyCharges":{"type":"boolean","description":"True if billing rule \"Bill usage/recurring charges for partial week?\" is Yes."},"prorationUnitRule":{"type":"string","description":"Value of billing rule for prorating units."},"daysInMonthRule":{"type":"string","description":"Value of billing rule for days in a month."},"recurringCreditProrationOptionRule":{"type":"string","description":"Billing rule for recurring credit proration option."},"isCreditWithOriginalCE":{"type":"boolean","description":"True if permission for credit with original invoice item amount is enabled."},"isProrateDiscountCredit":{"type":"boolean","description":"True if prorated discount credit rule is enabled."},"stackedDiscountClassApplyRule":{"type":"string","description":"Billing rule for applying stacked discount class."},"recurringPeriodStart":{"type":"string","format":"date","description":"Start date of the current service period."},"recurringPeriodEnd":{"type":"string","format":"date","description":"End date of the current service period."},"chargeStartDate":{"type":"string","format":"date","description":"Charge start date."},"chargeEndDate":{"type":"string","format":"date","description":"Charge end date."},"subStartDate":{"type":"string","format":"date","description":"Subscription start date."},"subEndDate":{"type":"string","format":"date","description":"Subscription end date."},"termStartDate":{"type":"string","format":"date","description":"Term start date."},"termEndDate":{"type":"string","format":"date","description":"Term end date."},"creditOption":{"type":"string","description":"Credit option from the rate plan charge."},"fundingPrice":{"type":"number","format":"double","description":"Total price of current validity period fund."},"totalBalance":{"type":"number","format":"double","description":"Total fund or discount schedule balance."},"remainingBalance":{"type":"number","format":"double","description":"Remaining fund or discount schedule balance."},"originalBillingPeriodStart":{"type":"string","format":"date","description":"Start date of original billing period if credit."},"originalBillingPeriodEnd":{"type":"string","format":"date","description":"End date of original billing period if credit."},"originalAmount":{"type":"number","format":"double","description":"Original billed amount if credit."},"basePrice":{"type":"number","format":"double","description":"Base price or fixed amount."},"discountClass":{"type":"string","description":"Discount class as in rate plan charge."},"discountClassOrder":{"type":"integer","description":"Order number of discount class."},"discountLevel":{"type":"string","description":"Discount level from rate plan charge."},"discountApplySequence":{"type":"integer","description":"Sequence in which the discount is applied."},"discountSchedulePeriodStart":{"type":"string","format":"date","description":"Discount schedule start date."},"discountSchedulePeriodEnd":{"type":"string","format":"date","description":"Discount schedule end date."},"regularChargeAmount":{"type":"number","format":"double","description":"Amount of the charge that the discount is applied to."},"regularChargeAmountLeft":{"type":"number","format":"double","description":"Remaining amount of charge before this discount is applied."},"originalRegularChargeAmount":{"type":"number","format":"double","description":"Original amount of charge before credit."},"discountBalanceFormula":{"type":"string","description":"Formula used to calculate discount total balance."}},"title":"RatingDetails"},"QueryRatingDetailsResponse":{"type":"object","properties":{"nextPage":{"type":["string","null"],"description":"A string to use as the `cursor` value in the next request to paginate results.\n"},"data":{"type":"array","items":{"$ref":"#/components/schemas/RatingDetails"},"description":"Array of rating detail results."}},"title":"QueryRatingDetailsResponse"},"GetAccountingCodeItemWithoutSuccessTypeCategory":{"type":"string","enum":["Assets","Liabilities","Equity","Revenue","Expenses"],"description":"The category associated with the accounting code.\n","title":"GetAccountingCodeItemWithoutSuccessTypeCategory"},"GetAccountingCodeItemWithoutSuccessTypeStatus":{"type":"string","enum":["Active","Inactive"],"description":"The accounting code status.\n","title":"GetAccountingCodeItemWithoutSuccessTypeStatus"},"GetAccountingCodeItemWithoutSuccessTypeType":{"type":"string","enum":["AccountsReceivable","OnAccountReceivable","Cash","OtherAssets","CustomerCashOnAccount","DeferredRevenue","SalesTaxPayable","OtherLiabilities","SalesRevenue","SalesDiscounts","OtherRevenue","OtherEquity","BadDebt","OtherExpenses"],"description":"Accounting code type. \n\nNote that `OnAccountReceivable` is only available if you enable the Invoice Settlement feature. \n","title":"GetAccountingCodeItemWithoutSuccessTypeType"},"SegmentConstantValuesCustomFields":{"type":"object","properties":{},"description":"Segment constant values. The field is available only if you have GL Segmentation 2.0 enabled.\n\nThis field is additional property.\n","title":"SegmentConstantValuesCustomFields"},"GETAccountingCodeItemWithoutSuccessType":{"type":"object","properties":{"category":{"$ref":"#/components/schemas/GetAccountingCodeItemWithoutSuccessTypeCategory","description":"The category associated with the accounting code.\n"},"createdBy":{"type":"string","description":"The ID of the user who created the accounting code.\n"},"createdOn":{"type":"string","description":"Date and time when the accounting code was created.\n"},"glAccountName":{"type":"string","description":"Name of the account in your general ledger.\n\nField only available if you have Zuora Finance enabled.\n"},"glAccountNumber":{"type":"string","description":"Account number in your general ledger.\n\nField only available if you have Zuora Finance enabled.\n"},"id":{"type":"string","description":"ID of the accounting code.\n"},"name":{"type":"string","description":"Name of the accounting code.\n"},"notes":{"type":"string","description":"Any optional notes for the accounting code.\n"},"status":{"$ref":"#/components/schemas/GetAccountingCodeItemWithoutSuccessTypeStatus","description":"The accounting code status.\n"},"type":{"$ref":"#/components/schemas/GetAccountingCodeItemWithoutSuccessTypeType","description":"Accounting code type. \n\nNote that `OnAccountReceivable` is only available if you enable the Invoice Settlement feature. \n"},"updatedBy":{"type":"string","description":"The ID of the user who last updated the accounting code.\n"},"updatedOn":{"type":"string","description":"Date and time when the accounting code was last updated.\n"},"segmentConstantValues":{"$ref":"#/components/schemas/SegmentConstantValuesCustomFields"}},"description":"Container for custom fields of an Accounting Code object.\n","title":"GETAccountingCodeItemWithoutSuccessType"},"GETAccountingCodesType":{"type":"object","properties":{"accountingCodes":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountingCodeItemWithoutSuccessType"},"description":"An array of all the accounting codes in your chart of accounts. Each accounting code has the following fields.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETAccountingCodesType"},"PostAccountingCodeTypeType":{"type":"string","enum":["AccountsReceivable","OnAccountReceivable","Cash","OtherAssets","CustomerCashOnAccount","DeferredRevenue","SalesTaxPayable","OtherLiabilities","SalesRevenue","SalesDiscounts","OtherRevenue","OtherEquity","BadDebt","OtherExpenses"],"description":"If you want to create multiple accounting codes of the type `AccountsReceivable`, you need to have [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) enabled and contact [Zuora Global Support](http://support.zuora.com) to access the Multiple AR Accounting Codes feature. \n\nNote that `OnAccountReceivable` is only available if you enable the Invoice Settlement feature. \n","title":"PostAccountingCodeTypeType"},"POSTAccountingCodeType":{"type":"object","properties":{"glAccountName":{"type":"string","description":"Name of the account in your general ledger.\n\nField only available if you have Zuora Finance enabled. Maximum of 255 characters.\n"},"glAccountNumber":{"type":"string","description":"Account number in your general ledger.\n\nField only available if you have Zuora Finance enabled. Maximum of 255 characters.\n"},"name":{"type":"string","description":"Name of the accounting code.\n\nAccounting code name must be unique. Maximum of 100 characters.\n"},"notes":{"type":"string","description":"Maximum of 2,000 characters.\n"},"type":{"$ref":"#/components/schemas/PostAccountingCodeTypeType","description":"If you want to create multiple accounting codes of the type `AccountsReceivable`, you need to have [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) enabled and contact [Zuora Global Support](http://support.zuora.com) to access the Multiple AR Accounting Codes feature. \n\nNote that `OnAccountReceivable` is only available if you enable the Invoice Settlement feature. \n"},"segmentConstantValues":{"$ref":"#/components/schemas/SegmentConstantValuesCustomFields"}},"required":["name","type"],"description":"Container for custom fields of an Accounting Code object.\n","title":"POSTAccountingCodeType"},"POSTAccountingCodeResponseType":{"type":"object","properties":{"id":{"type":"string","description":"ID of the newly created accounting code.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"POSTAccountingCodeResponseType"},"GetAccountingCodeItemTypeCategory":{"type":"string","enum":["Assets","Liabilities","Equity","Revenue","Expenses"],"description":"The category associated with the accounting code.\n","title":"GetAccountingCodeItemTypeCategory"},"GetAccountingCodeItemTypeStatus":{"type":"string","enum":["Active","Inactive"],"description":"The accounting code status.\n","title":"GetAccountingCodeItemTypeStatus"},"GetAccountingCodeItemTypeType":{"type":"string","enum":["AccountsReceivable","OnAccountReceivable","Cash","OtherAssets","CustomerCashOnAccount","DeferredRevenue","SalesTaxPayable","OtherLiabilities","SalesRevenue","SalesDiscounts","OtherRevenue","OtherEquity","BadDebt","OtherExpenses"],"description":"Accounting code type. \n\nNote that `OnAccountReceivable` is only available if you enable the Invoice Settlement feature. \n","title":"GetAccountingCodeItemTypeType"},"GETAccountingCodeItemType":{"type":"object","properties":{"category":{"$ref":"#/components/schemas/GetAccountingCodeItemTypeCategory","description":"The category associated with the accounting code.\n"},"createdBy":{"type":"string","description":"The ID of the user who created the accounting code.\n"},"createdOn":{"type":"string","description":"Date and time when the accounting code was created.\n"},"glAccountName":{"type":"string","description":"Name of the account in your general ledger.\n\nField only available if you have Zuora Finance enabled.\n"},"glAccountNumber":{"type":"string","description":"Account number in your general ledger.\n\nField only available if you have Zuora Finance enabled.\n"},"id":{"type":"string","description":"ID of the accounting code.\n"},"name":{"type":"string","description":"Name of the accounting code.\n"},"notes":{"type":"string","description":"Any optional notes for the accounting code.\n"},"status":{"$ref":"#/components/schemas/GetAccountingCodeItemTypeStatus","description":"The accounting code status.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"type":{"$ref":"#/components/schemas/GetAccountingCodeItemTypeType","description":"Accounting code type. \n\nNote that `OnAccountReceivable` is only available if you enable the Invoice Settlement feature. \n"},"updatedBy":{"type":"string","description":"The ID of the user who last updated the accounting code.\n"},"updatedOn":{"type":"string","description":"Date and time when the accounting code was last updated.\n"},"segmentConstantValues":{"$ref":"#/components/schemas/SegmentConstantValuesCustomFields"}},"description":"Container for custom fields of an Accounting Code object.\n","title":"GETAccountingCodeItemType"},"PutAccountingCodeTypeType":{"type":"string","enum":["AccountsReceivable","OnAccountReceivable","Cash","OtherAssets","CustomerCashOnAccount","DeferredRevenue","SalesTaxPayable","OtherLiabilities","SalesRevenue","SalesDiscounts","OtherRevenue","OtherEquity","BadDebt","OtherExpenses"],"description":"Accounting code type. You cannot change the type of an accounting code from `AccountsReceivable` to a different type. \n\nNote that `OnAccountReceivable` is only available if you enable the Invoice Settlement feature. \n","title":"PutAccountingCodeTypeType"},"PUTAccountingCodeType":{"type":"object","properties":{"glAccountName":{"type":"string","description":"Name of the account in your general ledger.\n\nField only available if you have Zuora Finance enabled. Maximum of 255 characters.\n"},"glAccountNumber":{"type":"string","description":"Account number in your general ledger.\n\nField only available if you have Zuora Finance enabled. Maximum of 255 characters.\n"},"name":{"type":"string","description":"Name of the accounting code.\n\nAccounting code name must be unique. Maximum of 100 characters.\n"},"notes":{"type":"string","description":"Maximum of 2,000 characters.\n"},"type":{"$ref":"#/components/schemas/PutAccountingCodeTypeType","description":"Accounting code type. You cannot change the type of an accounting code from `AccountsReceivable` to a different type. \n\nNote that `OnAccountReceivable` is only available if you enable the Invoice Settlement feature. \n"},"segmentConstantValues":{"$ref":"#/components/schemas/SegmentConstantValuesCustomFields"}},"description":"Container for custom fields of an Accounting Code object.\n","title":"PUTAccountingCodeType"},"GetAccountingPeriodWithoutSuccessTypeFileIds":{"type":"object","properties":{"accountsReceivableAccountAgingDetailExportFileId":{"type":"string","description":"File ID of the Accounts Receivable Aging Account Detail report.\n"},"accountsReceivableInvoiceAgingDetailExportFileId":{"type":"string","description":"File ID of the Accounts Receivable Aging Invoice Detail report.\n"},"arRollForwardDetailExportFileId":{"type":"string","description":"File ID of the Accounts Receivable Detail report.\n"},"fxRealizedGainAndLossDetailExportFileId":{"type":"string","description":"File ID of the Realized Gain and Loss Detail report.\n\nReturned only if you have Foreign Currency Conversion enabled.\n"},"fxUnrealizedGainAndLossDetailExportFileId":{"type":"string","description":"File ID of the Unrealized Gain and Loss Detail report.\n\nReturned only if you have Foreign Currency Conversion enabled\n"},"revenueDetailCsvFileId":{"type":"string","description":"File ID of the Revenue Detail report in CSV format.\n"},"revenueDetailExcelFileId":{"type":"string","description":"File ID of the Revenue Detail report in XLSX format.\n"},"unprocessedChargesFileId":{"type":"string","description":"File ID of a report containing all unprocessed charges for the accounting period.\n"}},"description":"File IDs of the reports available for the accounting period. You can retrieve the reports by specifying the file ID in a [Get Files](https://developer.zuora.com/api-references/api/operation/GET_Files) REST API call.\n","title":"GetAccountingPeriodWithoutSuccessTypeFileIds"},"GetAccountingPeriodWithoutSuccessTypeOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"GetAccountingPeriodWithoutSuccessTypeOrganizationLabelsItems"},"GETAccountingPeriodWithoutSuccessType":{"type":"object","properties":{"createdBy":{"type":"string","description":"ID of the user who created the accounting period.\n"},"createdOn":{"type":"string","description":"Date and time when the accounting period was created.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the accounting period.\n"},"fileIds":{"$ref":"#/components/schemas/GetAccountingPeriodWithoutSuccessTypeFileIds","description":"File IDs of the reports available for the accounting period. You can retrieve the reports by specifying the file ID in a [Get Files](https://developer.zuora.com/api-references/api/operation/GET_Files) REST API call.\n"},"fiscalYear":{"type":"integer","description":"Fiscal year of the accounting period.\n"},"fiscalQuarter":{"type":"integer","description":"Fiscal quarter of the accounting period."},"id":{"type":"string","description":"ID of the accounting period.\n"},"name":{"type":"string","description":"Name of the accounting period.\n"},"notes":{"type":"string","description":"Any optional notes about the accounting period.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetAccountingPeriodWithoutSuccessTypeOrganizationLabelsItems"},"description":"The organization(s) that the object belongs to. \n\nNote: This field is available only when the Multi-Org feature is enabled.            \n"},"runTrialBalanceEnd":{"type":"string","description":"Date and time that the trial balance was completed. If the trial balance status is `Pending`, `Processing`, or `Error`, this field is `null`.\n"},"runTrialBalanceErrorMessage":{"type":"string","description":"If trial balance status is Error, an error message is returned in this field.\n"},"runTrialBalanceStart":{"type":"string","description":"Date and time that the trial balance was run. If the trial balance status is `Pending`, this field is `null`.\n"},"runTrialBalanceStatus":{"type":"string","description":"Status of the trial balance for the accounting period. Possible values:\n\n* `Pending`\n* `Processing`\n* `Completed`\n* `Error`\n"},"startDate":{"type":"string","format":"date","description":"The start date of the accounting period.\n"},"status":{"type":"string","description":"Status of the accounting period. Possible values:\n\n* `Open`\n* `PendingClose`\n* `Closed`\n"},"updatedBy":{"type":"string","description":"D of the user who last updated the accounting period.\n"},"updatedOn":{"type":"string","description":"Date and time when the accounting period was last updated.\n"}},"description":"Container for custom fields of an Accounting Period object.\n","title":"GETAccountingPeriodWithoutSuccessType"},"GETAccountingPeriodsType":{"type":"object","properties":{"accountingPeriods":{"type":"array","items":{"$ref":"#/components/schemas/GETAccountingPeriodWithoutSuccessType"},"description":"An array of all accounting periods on your tenant. The accounting periods are returned in ascending order of start date; that is, the latest period is returned first.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETAccountingPeriodsType"},"PostAccountingPeriodTypeOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"PostAccountingPeriodTypeOrganizationLabelsItems"},"POSTAccountingPeriodType":{"type":"object","properties":{"endDate":{"type":"string","format":"date","description":"The end date of the accounting period in yyyy-mm-dd format, for example, \"2016-02-19\".\n"},"fiscalYear":{"type":"integer","description":"Fiscal year of the accounting period in yyyy format, for example, \"2016\".\n"},"fiscalQuarter":{"type":"integer","minimum":1,"maximum":4,"description":"Fiscal quarter of the accounting period. One number between 1 and 4."},"name":{"type":"string","description":"Name of the accounting period.\n\nAccounting period name must be unique. Maximum of 100 characters.\n"},"notes":{"type":"string","description":"Notes about the accounting period.\n\nMaximum of 255 characters.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/PostAccountingPeriodTypeOrganizationLabelsItems"},"description":"The organization that the accounting period belongs to. \n\nFor each item in the array, either the `organizationId` or the `organizationName` field is required.\n\nThis field is only required when you have already turned on Multi-Org feature.\n"},"startDate":{"type":"string","format":"date","description":"The start date of the accounting period in yyyy-mm-dd format, for example, \"2016-02-19\".\n"}},"required":["endDate","fiscalYear","name","startDate"],"description":"Container for custom fields of an Accounting Period object.\n","title":"POSTAccountingPeriodType"},"POSTAccountingPeriodResponseType":{"type":"object","properties":{"id":{"type":"string","description":"ID of the newly-created accounting period.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"POSTAccountingPeriodResponseType"},"GetAccountingPeriodTypeFileIds":{"type":"object","properties":{"accountsReceivableAccountAgingDetailExportFileId":{"type":"string","description":"File ID of the Accounts Receivable Aging Account Detail report.\n"},"accountsReceivableInvoiceAgingDetailExportFileId":{"type":"string","description":"File ID of the Accounts Receivable Aging Invoice Detail report.\n"},"accountsReceivableDebitMemoAgingDetailExportFileId":{"type":"string","description":"File ID of the Accounts Receivable Aging Debit Memo Detail report.\n"},"arRollForwardDetailExportFileId":{"type":"string","description":"File ID of the Accounts Receivable Detail report.\n"},"fxRealizedGainAndLossDetailExportFileId":{"type":"string","description":"File ID of the Realized Gain and Loss Detail report.\n\nReturned only if you have Foreign Currency Conversion enabled.\n"},"fxUnrealizedGainAndLossDetailExportFileId":{"type":"string","description":"File ID of the Unrealized Gain and Loss Detail report.\n\nReturned only if you have Foreign Currency Conversion enabled\n"},"revenueDetailCsvFileId":{"type":"string","description":"File ID of the Revenue Detail report in CSV format.\n"},"revenueDetailExcelFileId":{"type":"string","description":"File ID of the Revenue Detail report in XLSX format.\n"},"unprocessedChargesFileId":{"type":"string","description":"File ID of a report containing all unprocessed charges for the accounting period.\n"}},"description":"File IDs of the reports available for the accounting period. You can retrieve the reports by specifying the file ID in a [Get Files](https://developer.zuora.com/api-references/api/operation/GET_Files) REST API call.\n","title":"GetAccountingPeriodTypeFileIds"},"GetAccountingPeriodTypeOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"GetAccountingPeriodTypeOrganizationLabelsItems"},"GETAccountingPeriodType":{"type":"object","properties":{"createdBy":{"type":"string","description":"ID of the user who created the accounting period.\n"},"createdOn":{"type":"string","description":"Date and time when the accounting period was created.\n"},"endDate":{"type":"string","format":"date","description":"The end date of the accounting period.\n"},"fileIds":{"$ref":"#/components/schemas/GetAccountingPeriodTypeFileIds","description":"File IDs of the reports available for the accounting period. You can retrieve the reports by specifying the file ID in a [Get Files](https://developer.zuora.com/api-references/api/operation/GET_Files) REST API call.\n"},"fiscalYear":{"type":"integer","description":"Fiscal year of the accounting period.\n"},"fiscalQuarter":{"type":"integer","description":"Fiscal quarter of the accounting period."},"id":{"type":"string","description":"ID of the accounting period.\n"},"name":{"type":"string","description":"Name of the accounting period.\n"},"notes":{"type":"string","description":"Any optional notes about the accounting period.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetAccountingPeriodTypeOrganizationLabelsItems"},"description":"The organization(s) that the object belongs to. \n\nNote: This field is available only when the Multi-Org feature is enabled.            \n"},"runTrialBalanceEnd":{"type":"string","description":"Date and time that the trial balance was completed. If the trial balance status is `Pending`, `Processing`, or `Error`, this field is `null`.\n"},"runTrialBalanceErrorMessage":{"type":"string","description":"If trial balance status is Error, an error message is returned in this field.\n"},"runTrialBalanceStart":{"type":"string","description":"Date and time that the trial balance was run. If the trial balance status is Pending, this field is null.\n"},"runTrialBalanceStatus":{"type":"string","description":"Status of the trial balance for the accounting period. Possible values:\n\n* `Pending`\n* `Processing`\n* `Completed`\n* `Error`\n"},"startDate":{"type":"string","format":"date","description":"The start date of the accounting period.\n"},"status":{"type":"string","description":"Status of the accounting period. Possible values:\n* `Open`\n* `PendingClose`\n* `Closed`\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"updatedBy":{"type":"string","description":"ID of the user who last updated the accounting period.\n"},"updatedOn":{"type":"string","description":"Date and time when the accounting period was last updated.\n"}},"description":"Container for custom fields of an Accounting Period object.\n","title":"GETAccountingPeriodType"},"PUTAccountingPeriodType":{"type":"object","properties":{"endDate":{"type":"string","format":"date","description":"The end date of the accounting period in yyyy-mm-dd format, for example, \"2016-02-19\".\n"},"fiscalYear":{"type":"integer","description":"Fiscal year of the accounting period in yyyy format, for example, \"2016\".\n"},"fiscalQuarter":{"type":"integer","minimum":1,"maximum":4,"description":"Fiscal quarter of the accounting period. One number between 1 and 4."},"name":{"type":"string","description":"Name of the accounting period.\n\nAccounting period name must be unique. Maximum of 100 characters.\n"},"notes":{"type":"string","description":"Notes about the accounting period.\n\nMaximum of 255 characters.\n"},"startDate":{"type":"string","format":"date","description":"The start date of the accounting period in yyyy-mm-dd format, for example, \"2016-02-19\".\n"}},"description":"Container for custom fields of an Accounting Period object.\n","title":"PUTAccountingPeriodType"},"PostJournalEntryItemTypeAccountingCodeType":{"type":"string","enum":["AccountsReceivable","On-Account Receivable","Cash","OtherAssets","CustomerCashOnAccount","DeferredRevenue","SalesTaxPayable","OtherLiabilities","SalesRevenue","SalesDiscounts","OtherRevenue","OtherEquity","BadDebt","OtherExpenses"],"description":"Accounting code type. This field is required if `accountingCodeName` is not unique.\n\nNote that `On-Account Receivable` is only available if you enable the Invoice Settlement feature. \n","title":"PostJournalEntryItemTypeAccountingCodeType"},"PostJournalEntryItemTypeType":{"type":"string","enum":["Credit","Debit"],"description":"Type of journal entry item. ","title":"PostJournalEntryItemTypeType"},"POSTJournalEntryItemType":{"type":"object","properties":{"accountingCodeName":{"type":"string","description":"Name of the accounting code.\n"},"accountingCodeType":{"$ref":"#/components/schemas/PostJournalEntryItemTypeAccountingCodeType","description":"Accounting code type. This field is required if `accountingCodeName` is not unique.\n\nNote that `On-Account Receivable` is only available if you enable the Invoice Settlement feature. \n"},"amount":{"type":"string","format":"decimal","description":"Journal entry item amount in transaction currency.\n"},"homeCurrencyAmount":{"type":"string","format":"decimal","description":"Journal entry item amount in home currency.\n\nThis field is required if you have set your home currency for foreign currency conversion. Otherwise, do not pass this field.\n"},"type":{"$ref":"#/components/schemas/PostJournalEntryItemTypeType","description":"Type of journal entry item. "}},"required":["accountingCodeName","amount","type"],"description":"Container for custom fields of a Journal Entry Item object.\n","title":"POSTJournalEntryItemType"},"POSTJournalEntrySegmentType":{"type":"object","properties":{"segmentName":{"type":"string","description":"Name of segment. You must use the segment name that has already been specified in the default segment rule. In addition, segments need to be passed in the order where they were defined in the segmentation rule. If multiple segments are configured in the default rule, you need to specify all of them in order. "},"segmentValue":{"type":"string","description":"Value of segment in this summary journal entry.\n"}},"required":["segmentName","segmentValue"],"title":"POSTJournalEntrySegmentType"},"PostJournalEntryTypeTransferredToAccounting":{"type":"string","enum":["No","Processing","Yes","Error","Ignore"],"description":"Status shows whether the journal entry has been transferred to an accounting system.\n","title":"PostJournalEntryTypeTransferredToAccounting"},"POSTJournalEntryType":{"type":"object","properties":{"accountingPeriodName":{"type":"string","description":"Name of the accounting period. The open-ended accounting period is named `Open-Ended`.\n"},"currency":{"type":"string","description":"The type of currency used. Currency must be active.\n"},"journalEntryDate":{"type":"string","format":"date","description":"Date of the journal entry.\n"},"journalEntryItems":{"type":"array","items":{"$ref":"#/components/schemas/POSTJournalEntryItemType"},"description":"Key name that represents the list of journal entry items.\n"},"notes":{"type":"string","description":"The number associated with the revenue event.\n\nCharacter limit: 2,000\n"},"organizationLabel":{"type":"string","description":"Name of the organization that the journal entry belongs to.  \n\nThis field is only required when you have already turned on Multi-Org feature.    \n"},"segments":{"type":"array","items":{"$ref":"#/components/schemas/POSTJournalEntrySegmentType"},"description":"List of segments that apply to the summary journal entry.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PostJournalEntryTypeTransferredToAccounting","description":"Status shows whether the journal entry has been transferred to an accounting system.\n"}},"required":["accountingPeriodName","currency","journalEntryDate","journalEntryItems"],"description":"Container for custom fields of a Journal Entry object.\n","title":"POSTJournalEntryType"},"POSTJournalEntryResponseType":{"type":"object","properties":{"journalEntryNumber":{"type":"string","description":"Journal entry number in the format JE-00000001.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"POSTJournalEntryResponseType"},"GetJournalEntryItemTypeAccountingCodeType":{"type":"string","enum":["AccountsReceivable","On-Account Receivable","Cash","OtherAssets","CustomerCashOnAccount","DeferredRevenue","SalesTaxPayable","OtherLiabilities","SalesRevenue","SalesDiscounts","OtherRevenue","OtherEquity","BadDebt","OtherExpenses"],"description":"Accounting code type.\n\nNote that `On-Account Receivable` is only available if you enable the Invoice Settlement feature. \n","title":"GetJournalEntryItemTypeAccountingCodeType"},"GetJournalEntryItemTypeType":{"type":"string","enum":["Credit","Debit"],"description":"Type of journal entry item. ","title":"GetJournalEntryItemTypeType"},"GETJournalEntryItemType":{"type":"object","properties":{"accountingCodeName":{"type":"string","description":"Name of the accounting code.\n"},"accountingCodeType":{"$ref":"#/components/schemas/GetJournalEntryItemTypeAccountingCodeType","description":"Accounting code type.\n\nNote that `On-Account Receivable` is only available if you enable the Invoice Settlement feature. \n"},"amount":{"type":"string","format":"decimal","description":"Journal entry item amount in transaction currency.\n"},"glAccountName":{"type":"string","description":"The account number in the general ledger (GL) that corresponds to the accounting code.\n"},"glAccountNumber":{"type":"string","description":"The account name in the general ledger (GL) that corresponds to the accounting code.\n"},"homeCurrencyAmount":{"type":"string","format":"decimal","description":"Journal entry item amount in home currency.\n"},"type":{"$ref":"#/components/schemas/GetJournalEntryItemTypeType","description":"Type of journal entry item. "}},"description":"Container for custom fields of a Journal Entry Item object.\n","title":"GETJournalEntryItemType"},"GETJournalEntrySegmentType":{"type":"object","properties":{"segmentName":{"type":"string","description":"Name of segment.\n"},"segmentValue":{"type":"string","description":"Value of segment in this summary journal entry.\n"}},"title":"GETJournalEntrySegmentType"},"GetJournalEntryDetailTypeWithoutSuccessStatus":{"type":"string","enum":["Created","Cancelled"],"description":"Status of journal entry. ","title":"GetJournalEntryDetailTypeWithoutSuccessStatus"},"GetJournalEntryDetailTypeWithoutSuccessTransferredToAccounting":{"type":"string","enum":["No","Processing","Yes","Error","Ignore"],"description":"Status shows whether the journal entry has been transferred to an accounting system. ","title":"GetJournalEntryDetailTypeWithoutSuccessTransferredToAccounting"},"GETJournalEntryDetailTypeWithoutSuccess":{"type":"object","properties":{"accountingPeriodName":{"type":"string","description":"Name of the accounting period that the journal entry belongs to.\n"},"aggregateCurrency":{"type":"boolean","description":"Returns true if the journal entry is aggregating currencies. That is, if the journal entry was created when the `Aggregate transactions with different currencies during a JournalRun` setting was configured to \"Yes\". Otherwise, returns `false`.\n"},"currency":{"type":"string","description":"Currency used.\n"},"homeCurrency":{"type":"string","description":"Home currency used.\n"},"journalEntryDate":{"type":"string","format":"date","description":"Date of the journal entry.\n"},"journalEntryItems":{"type":"array","items":{"$ref":"#/components/schemas/GETJournalEntryItemType"},"description":"Key name that represents the list of journal entry items.\n"},"notes":{"type":"string","description":"Additional information about this record.\nCharacter limit: 2,000\n"},"number":{"type":"string","description":"Journal entry number in the format JE-00000001.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"segments":{"type":"array","items":{"$ref":"#/components/schemas/GETJournalEntrySegmentType"},"description":"List of segments that apply to the summary journal entry.\n"},"status":{"$ref":"#/components/schemas/GetJournalEntryDetailTypeWithoutSuccessStatus","description":"Status of journal entry. "},"timePeriodEnd":{"type":"string","format":"date","description":"End date of time period included in the journal entry.\n"},"timePeriodStart":{"type":"string","format":"date","description":"Start date of time period included in the journal entry.\n"},"transactionType":{"type":"string","description":"Transaction type of the transactions included in the summary journal entry.\n"},"transferDateTime":{"type":"string","description":"Date and time that transferredToAccounting was changed to `Yes`. This field is returned only when transferredToAccounting is `Yes`. Otherwise, this field is `null`.\n"},"transferredBy":{"type":"string","description":"User ID of the person who changed transferredToAccounting to `Yes`. This field is returned only when transferredToAccounting is `Yes`. Otherwise, this field is `null`.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetJournalEntryDetailTypeWithoutSuccessTransferredToAccounting","description":"Status shows whether the journal entry has been transferred to an accounting system. "}},"description":"Container for custom fields of a Journal Entry object.\n","title":"GETJournalEntryDetailTypeWithoutSuccess"},"GETJournalEntriesInJournalRunType":{"type":"object","properties":{"journalEntries":{"type":"array","items":{"$ref":"#/components/schemas/GETJournalEntryDetailTypeWithoutSuccess"},"description":"Key name that represents the list of journal entries.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETJournalEntriesInJournalRunType"},"GetJournalEntryDetailTypeStatus":{"type":"string","enum":["Created","Cancelled"],"description":"Status of journal entry.\n","title":"GetJournalEntryDetailTypeStatus"},"GetJournalEntryDetailTypeTransferredToAccounting":{"type":"string","enum":["No","Processing","Yes","Error","Ignore"],"description":"Status shows whether the journal entry has been transferred to an accounting system. ","title":"GetJournalEntryDetailTypeTransferredToAccounting"},"GETJournalEntryDetailType":{"type":"object","properties":{"accountingPeriodName":{"type":"string","description":"Name of the accounting period that the journal entry belongs to.\n"},"aggregateCurrency":{"type":"boolean","description":"Returns true if the journal entry is aggregating currencies. That is, if the journal entry was created when the `Aggregate transactions with different currencies during a Journal Run` setting was configured to `Yes`. Otherwise, returns `false`.\n"},"currency":{"type":"string","description":"Currency used.\n"},"homeCurrency":{"type":"string","description":"Home currency used.\n"},"journalEntryDate":{"type":"string","format":"date","description":"Date of the journal entry.\n"},"journalEntryItems":{"type":"array","items":{"$ref":"#/components/schemas/GETJournalEntryItemType"},"description":"Key name that represents the list of journal entry items.\n"},"notes":{"type":"string","description":"\nAdditional information about this record.\nCharacter limit: 2,000\n"},"number":{"type":"string","description":"Journal entry number in the format JE-00000001.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"segments":{"type":"array","items":{"$ref":"#/components/schemas/GETJournalEntrySegmentType"},"description":"List of segments that apply to the summary journal entry.\n"},"status":{"$ref":"#/components/schemas/GetJournalEntryDetailTypeStatus","description":"Status of journal entry.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"timePeriodEnd":{"type":"string","format":"date","description":"End date of time period included in the journal entry.\n"},"timePeriodStart":{"type":"string","format":"date","description":"Start date of time period included in the journal entry.\n"},"transactionType":{"type":"string","description":"Transaction type of the transactions included in the summary journal entry.\n"},"transferDateTime":{"type":"string","description":"Date and time that transferredToAccounting was changed to `Yes`. This field is returned only when transferredToAccounting is `Yes`. Otherwise, this field is `null`.\n"},"transferredBy":{"type":"string","description":"User ID of the person who changed transferredToAccounting to `Yes`. This field is returned only when transferredToAccounting is `Yes`. Otherwise, this field is `null`.\n"},"transferredToAccounting":{"$ref":"#/components/schemas/GetJournalEntryDetailTypeTransferredToAccounting","description":"Status shows whether the journal entry has been transferred to an accounting system. "}},"description":"Container for custom fields of a Journal Entry object.\n","title":"GETJournalEntryDetailType"},"PutJournalEntryItemTypeAccountingCodeType":{"type":"string","enum":["AccountsReceivable","On-Account Receivable","Cash","OtherAssets","CustomerCashOnAccount","DeferredRevenue","SalesTaxPayable","OtherLiabilities","SalesRevenue","SalesDiscounts","OtherRevenue","OtherEquity","BadDebt","OtherExpenses"],"description":"Accounting code type.\n\nNote that `On-Account Receivable` is only available if you enable the Invoice Settlement feature. \n","title":"PutJournalEntryItemTypeAccountingCodeType"},"PutJournalEntryItemTypeType":{"type":"string","enum":["Credit","Debit"],"description":"Type of journal entry item. ","title":"PutJournalEntryItemTypeType"},"PUTJournalEntryItemType":{"type":"object","properties":{"accountingCodeName":{"type":"string","description":"Name of the accounting code.\n\nIf the Journal Entry Item has a blank accounting code, enter the empty string.\n"},"accountingCodeType":{"$ref":"#/components/schemas/PutJournalEntryItemTypeAccountingCodeType","description":"Accounting code type.\n\nNote that `On-Account Receivable` is only available if you enable the Invoice Settlement feature. \n"},"type":{"$ref":"#/components/schemas/PutJournalEntryItemTypeType","description":"Type of journal entry item. "}},"required":["accountingCodeName","type"],"description":"Container for custom fields of a Journal Entry Item object.\n","title":"PUTJournalEntryItemType"},"PutBasicSummaryJournalEntryTypeTransferredToAccounting":{"type":"string","enum":["No","Processing","Yes","Error","Ignore"],"description":"Status shows whether the journal entry has been transferred to an accounting system. \n\nThis field cannot be changed after the summary journal entry has been canceled.\n\n**Note:** The Zuora Finance ***Override Transferred to Accounting*** permission is required to change `transferredToAccounting` from `Yes` to any other value.\n","title":"PutBasicSummaryJournalEntryTypeTransferredToAccounting"},"PUTBasicSummaryJournalEntryType":{"type":"object","properties":{"journalEntryItems":{"type":"array","items":{"$ref":"#/components/schemas/PUTJournalEntryItemType"},"description":"Key name that represents the list of journal entry items.\n"},"notes":{"type":"string","description":"Additional information about this record.\n\n***Character limit:*** 2,000\n"},"transferredToAccounting":{"$ref":"#/components/schemas/PutBasicSummaryJournalEntryTypeTransferredToAccounting","description":"Status shows whether the journal entry has been transferred to an accounting system. \n\nThis field cannot be changed after the summary journal entry has been canceled.\n\n**Note:** The Zuora Finance ***Override Transferred to Accounting*** permission is required to change `transferredToAccounting` from `Yes` to any other value.\n"}},"description":"Container for custom fields of a Journal Entry object.\n","title":"PUTBasicSummaryJournalEntryType"},"PostJournalRunTypeOrganizationLabels":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"description":"The organization that this run is created for. \n\n\nFor each item in the array, either the `organizationId` or the\n`organizationName` field is required.\n\n\nThis field is only required when you have already turned on Multi-Org\nfeature.\n","title":"PostJournalRunTypeOrganizationLabels"},"PostJournalRunTransactionTypeType":{"type":"string","enum":["Invoice Item","Taxation Item","Invoice Item Adjustment (Invoice)","Invoice Item Adjustment (Tax)","Invoice Adjustment","Electronic Payment","External Payment","Electronic Refund","External Refund","Electronic Credit Balance Payment","External Credit Balance Payment","Electronic Credit Balance Refund","External Credit Balance Refund","Credit Balance Adjustment (Applied from Credit Balance)","Credit Balance Adjustment (Transferred to Credit Balance)","Revenue Event Item","Debit Memo Item (Charge)","Debit Memo Item (Tax)","Credit Memo Item (Charge)","Credit Memo Item (Tax)","Credit Memo Application Item","Electronic Payment Application","External Payment Application","Electronic Refund Application","External Refund Application","Electronic Payment Application Item","External Payment Application Item","Electronic Refund Application Item","External Refund Application Item"],"description":"Transaction type. Invoice Adjustment is deprecated on Production. Zuora recommends that you use the Invoice Item Adjustment instead.\n\nIf you enable the Invoice Settlement feature, Debit Memo Item, Credit Memo Item, and Credit Memo Application Item are available, Payment and Refund will be replaced by Payment Application and Refund Application. \n\nIf you enable both the Invoice Settlement feature and the Invoice Item Settlement feature, Payment and Refund will be replaced by Payment Application Item and Refund Application Item. \n","title":"PostJournalRunTransactionTypeType"},"POSTJournalRunTransactionType":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/PostJournalRunTransactionTypeType","description":"Transaction type. Invoice Adjustment is deprecated on Production. Zuora recommends that you use the Invoice Item Adjustment instead.\n\nIf you enable the Invoice Settlement feature, Debit Memo Item, Credit Memo Item, and Credit Memo Application Item are available, Payment and Refund will be replaced by Payment Application and Refund Application. \n\nIf you enable both the Invoice Settlement feature and the Invoice Item Settlement feature, Payment and Refund will be replaced by Payment Application Item and Refund Application Item. \n"}},"required":["type"],"title":"POSTJournalRunTransactionType"},"POSTJournalRunType":{"type":"object","properties":{"accountingPeriodName":{"type":"string","description":"Name of the accounting period.\n\nThis field determines the target start and end dates of the journal run.\n\nRequired if you do not include `targetStartDate` and `targetEndDate`.\n"},"journalEntryDate":{"type":"string","format":"date","description":"Date of the journal entry.\n"},"organizationLabels":{"$ref":"#/components/schemas/PostJournalRunTypeOrganizationLabels","description":"The organization that this run is created for. \n\n\nFor each item in the array, either the `organizationId` or the\n`organizationName` field is required.\n\n\nThis field is only required when you have already turned on Multi-Org\nfeature.\n"},"targetEndDate":{"type":"string","format":"date","description":"The target end date of the journal run.\n\nIf you include `accountingPeriodName`, the `targetEndDate` must be empty or the same as the end date of the accounting period specified in `accountingPeriodName`.\n"},"targetStartDate":{"type":"string","format":"date","description":"The target start date of the journal run.\n\nRequired if you include targetEndDate.\n\nIf you include `accountingPeriodName`, the `targetStartDate` must be empty or the same as the start date of the accounting period specified in `accountingPeriodName`.\n"},"transactionTypes":{"type":"array","items":{"$ref":"#/components/schemas/POSTJournalRunTransactionType"},"description":"Transaction types included in the journal run.\n\nYou can include one or more transaction types.\n"}},"required":["journalEntryDate","transactionTypes"],"title":"POSTJournalRunType"},"POSTJournalRunResponseType":{"type":"object","properties":{"journalRunNumber":{"type":"string","description":"Journal run number.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"POSTJournalRunResponseType"},"GetJournalRunTypeOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"GetJournalRunTypeOrganizationLabelsItems"},"GetJournalRunTypeStatus":{"type":"string","enum":["Pending","Processing","Completed","Error","CancelInprogress","Cancelled","DeleteInprogress"],"description":"Status of the journal run. \n","title":"GetJournalRunTypeStatus"},"GetJournalRunTransactionTypeType":{"type":"string","enum":["Invoice Item","Taxation Item","Invoice Item Adjustment (Invoice)","Invoice Item Adjustment (Tax)","Invoice Adjustment","Electronic Payment","External Payment","Electronic Refund","External Refund","Electronic Credit Balance Payment","External Credit Balance Payment","Electronic Credit Balance Refund","External Credit Balance Refund","Credit Balance Adjustment (Applied from Credit Balance)","Credit Balance Adjustment (Transferred to Credit Balance)","Revenue Event Item","Debit Memo Item (Charge)","Debit Memo Item (Tax)","Credit Memo Item (Charge)","Credit Memo Item (Tax)","Credit Memo Application Item","Electronic Payment Application","External Payment Application","Electronic Refund Application","External Refund Application","Electronic Payment Application Item","External Payment Application Item","Electronic Refund Application Item","External Refund Application Item"],"description":"Transaction type. Invoice Adjustment is deprecated on Production. Zuora recommends that you use the Invoice Item Adjustment instead.\n\nIf you enable the Invoice Settlement feature, Debit Memo Item, Credit Memo Item, and Credit Memo Application Item are available, Payment and Refund will be replaced by Payment Application and Refund Application. \n\nIf you enable both the Invoice Settlement feature and the Invoice Item Settlement feature, Payment and Refund will be replaced by Payment Application Item and Refund Application Item. \n","title":"GetJournalRunTransactionTypeType"},"GETJournalRunTransactionType":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/GetJournalRunTransactionTypeType","description":"Transaction type. Invoice Adjustment is deprecated on Production. Zuora recommends that you use the Invoice Item Adjustment instead.\n\nIf you enable the Invoice Settlement feature, Debit Memo Item, Credit Memo Item, and Credit Memo Application Item are available, Payment and Refund will be replaced by Payment Application and Refund Application. \n\nIf you enable both the Invoice Settlement feature and the Invoice Item Settlement feature, Payment and Refund will be replaced by Payment Application Item and Refund Application Item. \n"}},"title":"GETJournalRunTransactionType"},"GETJournalRunType":{"type":"object","properties":{"aggregateCurrency":{"type":"boolean"},"executedOn":{"type":"string","description":"Date and time the journal run was executed.\n"},"journalEntryDate":{"type":"string","format":"date","description":"Date of the journal entry.\n"},"number":{"type":"string","description":"Journal run number.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetJournalRunTypeOrganizationLabelsItems"},"description":"The organization(s) that the object belongs to. \n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"segmentationRuleName":{"type":"string","description":"Name of GL segmentation rule used in the journal run.\n"},"status":{"$ref":"#/components/schemas/GetJournalRunTypeStatus","description":"Status of the journal run. \n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"targetEndDate":{"type":"string","format":"date","description":"The target end date of the journal run.\n"},"targetStartDate":{"type":"string","format":"date","description":"The target start date of the journal run.\n"},"totalJournalEntryCount":{"type":"integer","format":"int64","description":"Total number of journal entries in the journal run.\n"},"transactionTypes":{"type":"array","items":{"$ref":"#/components/schemas/GETJournalRunTransactionType"},"description":"Transaction types included in the journal run.\n"}},"title":"GETJournalRunType"},"POSTMassUpdateResponseType":{"type":"object","properties":{"bulkKey":{"type":"string","description":"String of 32 characters that identifies the mass action. The bulkKey is generated before the mass action is processed. You can use the bulkKey to Get the Mass Action Result.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"POSTMassUpdateResponseType"},"GETMassUpdateType":{"type":"object","properties":{"actionType":{"type":"string","description":"Type of mass action.\n"},"endedOn":{"type":"string","description":"Date and time that the mass action was completed. The format is `yyyy-MM-dd hh:mm:ss`.\n"},"errorCount":{"type":"string","description":"Total number of failed records.\n\nThis field is updated in real time. When the mass action **status** is Processing, this field returns the number of records that have failed so far. When the mass action **status** is Pending, this field is null.\n"},"inputSize":{"type":"integer","format":"int64","description":"Size of the input file in bytes.\n"},"outputSize":{"type":"integer","format":"int64","description":"Size of the response file in bytes.\n"},"outputType":{"type":"string","description":"Type of output for the response file. The following table describes the output type.\n\n| Output Type    | Description                         |\n|----------------|-------------------------------------|\n| (url:.csv.zip) | URL pointing to a zipped .csv file. |\n"},"outputURL":{"type":"string","description":"URL to download the response file. The response file is a zipped .csv file. \nThe response file is identical to the file you uploaded to perform the mass action, with additional columns providing information about the outcome of each record. \nThis field only returns a value when the mass action **status** is Completed or Stopped. Otherwise, this field is null.\n"},"processedCount":{"type":"string","description":"Total number of processed records. This field is equal to the sum of `errorCount` and `successCount`.\n\nThis field is updated in real time. When the mass action **status** is Processing, this field returns the number of records that have been processed so far. When the mass action **status** is Pending, this field is null.\n"},"startedOn":{"type":"string","description":"Date and time that Zuora started processing the mass action. The format is `yyyy-MM-dd hh:mm:ss`.\n"},"status":{"type":"string","description":"Status of the mass action. The following table describes the mass action statuses.\n\n| Status     | Description                                                                |\n|------------|----------------------------------------------------------------------------|\n| Pending    | Mass action has not yet started being processed.                           |\n| Processing | Mass action is in progress.                                                |\n| Stopping   | Mass action is in the process of stopping, but has not yet stopped.        |\n| Stopped    | Mass action has stopped.                                                   |\n| Completed  | Mass action was successfully completed. There may still be failed records. |\n| Failed     | Mass action failed. No records are processed. No response file is created. |\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"successCount":{"type":"string","description":"Total number of successful records.\nThis field is updated in real time. When the mass action **status** is Processing, this field returns the number of records that have succeeded so far. When the mass action **status** is Pending, this field is null.\n"},"totalCount":{"type":"string","description":"Total number of records in the uploaded mass action file.\nWhen the mass action **status** is Pending, this field is null.\n"},"uploadedBy":{"type":"string","description":"Email of the person who uploaded the mass action file.\n"},"uploadedOn":{"type":"string","description":"Date and time that the mass action file was uploaded. The format is `yyyy-MM-dd hh:mm:ss`.\n"}},"title":"GETMassUpdateType"},"CalloutAuth":{"type":"object","properties":{"domain":{"type":"string","description":"The domain of the callout auth."},"password":{"type":"string","description":"The field is required when `requiredAuth` is `true`."},"preemptive":{"type":"boolean","description":"Set this field to `true` if you want to enable the preemptive authentication."},"username":{"type":"string","description":"The field is required when `requiredAuth` is `true`."}},"description":"If `requiredAuth` is `true`, this object is required.","title":"CalloutAuth"},"CalloutMergeFields":{"type":"object","additionalProperties":{"type":"string"},"description":"A key-value map of merge fields of this callout.\n","title":"CalloutMergeFields"},"GetPublicNotificationDefinitionResponseCalloutHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"GetPublicNotificationDefinitionResponseCalloutHttpMethod"},"GetPublicNotificationDefinitionResponseCallout":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default value is `true`."},"calloutAuth":{"$ref":"#/components/schemas/CalloutAuth"},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with 'https://'"},"calloutParams":{"$ref":"#/components/schemas/CalloutMergeFields"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"description":{"type":"string","maxLength":255,"description":"Description for the callout."},"eventTypeName":{"type":"string","minLength":1,"description":"The name of the custom event type."},"httpMethod":{"$ref":"#/components/schemas/GetPublicNotificationDefinitionResponseCalloutHttpMethod","description":"The HTTP method of the callout."},"id":{"type":"string","format":"uuid","description":"The ID of the callout. If `calloutActive` is `true`, a callout is required. The eventTypeName of the callout MUST be the same as the eventTypeName."},"name":{"type":"string","maxLength":255,"description":"The name of the created callout."},"oauth2ProviderId":{"type":"string","description":"The ID of the OAuth 2.0 provider in your tenant that provides access tokens for the callout."},"requiredAuth":{"type":"boolean","description":"Indicates whether Basic authentication is enabled for the callout."},"requiredOauth2":{"type":"boolean","description":"Indicates whether OAuth 2.0 authentication is enabled for the callout."}},"title":"GetPublicNotificationDefinitionResponseCallout"},"GetPublicNotificationDefinitionResponseEventTypeNamespace":{"type":"string","enum":["user.notification","com.zuora.notification"],"description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events.\n\nThis field is available only if the notification definition is based on a Zuora custom event, custom event, or custom scheduled event.      \n","title":"GetPublicNotificationDefinitionResponseEventTypeNamespace"},"FilterRuleParameterDefinitionValueType":{"type":"string","enum":["STRING","BYTE","SHORT","CHARACTER","INTEGER","LONG","FLOAT","DOUBLE","BOOLEAN","BIG_INTEGER","BIG_DECIMAL","LOCAL_DATE","LOCAL_DATE_TIME","TIMESTAMP","BYTE_ARRAY","SHORT_ARRAY","CHARACTER_ARRAY","INTEGER_ARRAY","FLOAT_ARRAY","DOUBLE_ARRAY","BOOLEAN_ARRAY","STRING_ARRAY","BIG_INTEGER_ARRAY","BIG_DECIMAL_ARRAY","LOCAL_DATE_ARRAY","LOCAL_DATE_TIME_ARRAY","TIMESTAMP_ARRAY"],"description":"The type of the value.\n","title":"FilterRuleParameterDefinitionValueType"},"FilterRuleParameterDefinition":{"type":"object","properties":{"description":{"type":"string","maxLength":255},"displayName":{"type":"string","maxLength":255,"description":"The display name of the parameter.\n"},"options":{"type":"array","items":{"type":"string"},"description":"The option values of the parameter.\n"},"valueType":{"$ref":"#/components/schemas/FilterRuleParameterDefinitionValueType","description":"The type of the value.\n"}},"description":"Definition of a filter rule parameter.\n","title":"FilterRuleParameterDefinition"},"FilterRuleParameterDefinitions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FilterRuleParameterDefinition"},"description":"The parameters of the filter rule and their name must match those in the filter rule. And all parameters must be defined in the event type payload. The name of parameters can't be duplicate. The following reserved keywords should not be used as a parameter name: `AttachmentList`, `RecipientList`, `RecipientType`, `Exceptions`, `OCP_OBJECT_TYPE`, `OCP_OBJECT_ID`, `OCP_TRIGGER_BY`\n","title":"FilterRuleParameterDefinitions"},"GetPublicNotificationDefinitionResponseFilterRule":{"type":"object","properties":{"condition":{"type":"string","description":"The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/).\nThe rule might contain event context merge fields and data source merge fields. Data source merge fields must be from [the base object of the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects). Notifications with invalid merge fields will fail to evaluate, thus will not be invoked. For example, to trigger an event when an invoice is posted with the amount over 1000, you would define the following condition on the `Invoice` object:\n\n```changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000.0```\n\nThere are conventions and keywords you need to be aware of. For example:\n\n* `changeType` is a keyword to specify what kind of change happened to the object. Allowed values are `INSERT`, `UPDATE` or `DELETE`.\n\n* `Invoice.Status` refers to field `Status` of the Zuora object `Invoice`.\n\n* A variable with the `_old` suffix means it’s a previous value of the corresponding object field. The \"_old\" fields are only available on the base objects.\n"},"description":{"type":"string","maxLength":255,"description":"The description of the filter rule."},"eventTypeName":{"type":"string","minLength":1,"description":"The value is `null`."},"id":{"type":"string","format":"uuid","description":"The ID of the filter rule. If not specified or null, the notification definition is always qualified to process events of \"eventType\"."},"parameters":{"$ref":"#/components/schemas/FilterRuleParameterDefinitions"}},"title":"GetPublicNotificationDefinitionResponseFilterRule"},"FilterRuleParameterValues":{"type":"object","additionalProperties":{"type":"string"},"description":"The parameter values used to configure the filter rule.\n","title":"FilterRuleParameterValues"},"GETPublicNotificationDefinitionResponse":{"type":"object","properties":{"active":{"type":"boolean","description":"The status of the notification definition. The default value is `true`."},"associatedAccount":{"type":"string","description":"The account on which the histories of this notification will be displayed. The associated account does not enforce where the merge fields come from.\n"},"callout":{"$ref":"#/components/schemas/GetPublicNotificationDefinitionResponseCallout"},"calloutActive":{"type":"boolean","description":"The status of the callout action. The default value is `false`."},"calloutTemplateIds":{"type":"array","items":{"type":"string"},"description":"List of callout template IDs that the notification definition is associated with.\n"},"communicationProfileId":{"type":"string","format":"uuid","description":"The ID of the communication profile that the notification definition is associated with.\n\nIf the notification definition is associated with multiple communication profiles, see `communicationProfileIds` for all associated communication profile IDs.\n"},"communicationProfileIds":{"type":"array","items":{"type":"string"},"description":"List of communication profile IDs that the notification definition is associated with.\n"},"createdBy":{"type":"string","format":"uuid","description":"The ID of the user who created the notification definition."},"createdOn":{"type":"string","description":"The time when the notification definition was created. Specified in the UTC timezone in the ISO860 format (YYYY-MM-DDThh:mm:ss.sTZD). E.g. 1997-07-16T19:20:30.45+00:00"},"description":{"type":"string","maxLength":255,"description":"Description of the notification definition"},"emailActive":{"type":"boolean","description":"The status of the email action. The default value is `false`."},"emailTemplateId":{"type":"string","format":"uuid","description":"The ID of the email template. In the request, there should be at least one email template or callout."},"eventCategory":{"type":"number","format":"double","description":"The event category code for a standard event, on which the notification definition is created.\n\nThis field is available only if the notification definition is based on a standard event.\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"},"eventId":{"type":"string","format":"uuid","description":"The ID of the event that the notification definition is based on.\n\nThis field is available only if the notification definition is based on a standard event.    \n"},"eventTypeName":{"type":"string","minLength":1,"description":"The name of the event that the notification definition is based on.\n\nThis field is available only if the notification definition is based on a Zuora custom event, custom event, or custom scheduled event.\n"},"eventTypeNamespace":{"$ref":"#/components/schemas/GetPublicNotificationDefinitionResponseEventTypeNamespace","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events.\n\nThis field is available only if the notification definition is based on a Zuora custom event, custom event, or custom scheduled event.      \n"},"filterRule":{"$ref":"#/components/schemas/GetPublicNotificationDefinitionResponseFilterRule"},"filterRuleParams":{"$ref":"#/components/schemas/FilterRuleParameterValues"},"id":{"type":"string","format":"uuid","description":"The ID associated with this notification definition."},"name":{"type":"string","maxLength":255,"description":"The name of the notification definition."},"updatedBy":{"type":"string","format":"uuid","description":"The ID of the user who updated the notification definition."},"updatedOn":{"type":"string","description":"The time when the notification was updated. Specified in the UTC timezone in the ISO860 format (YYYY-MM-DDThh:mm:ss.sTZD). E.g. 1997-07-16T19:20:30.45+00:00"}},"title":"GETPublicNotificationDefinitionResponse"},"Notifications_GET_Query_Notification_Definitions_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETPublicNotificationDefinitionResponse"}},"next":{"type":"string","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."}},"title":"Notifications_GET_Query_Notification_Definitions_Response_200"},"PostPublicNotificationDefinitionCalloutCommonHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PostPublicNotificationDefinitionCalloutCommonHttpMethod"},"POSTPublicNotificationDefinitionCalloutCommon":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with 'https://'.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"calloutParams":{"$ref":"#/components/schemas/CalloutMergeFields"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"description":{"type":"string","maxLength":255,"description":"Description for the callout."},"eventTypeName":{"type":"string","minLength":1,"description":"The name of the event type. The value must be the same as the parent-level `eventTypeName` field."},"httpMethod":{"$ref":"#/components/schemas/PostPublicNotificationDefinitionCalloutCommonHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template that will be created. It must be unique across all callout templates."}},"required":["calloutBaseurl","httpMethod","name"],"description":"Common information for callout notifications.\n","title":"POSTPublicNotificationDefinitionCalloutCommon"},"PostPublicNotificationDefinitionCalloutBasicAuthenticationHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PostPublicNotificationDefinitionCalloutBasicAuthenticationHttpMethod"},"POSTPublicNotificationDefinitionCalloutBasicAuthentication":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with 'https://'.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"calloutParams":{"$ref":"#/components/schemas/CalloutMergeFields"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"description":{"type":"string","maxLength":255,"description":"Description for the callout."},"eventTypeName":{"type":"string","minLength":1,"description":"The name of the event type. The value must be the same as the parent-level `eventTypeName` field."},"httpMethod":{"$ref":"#/components/schemas/PostPublicNotificationDefinitionCalloutBasicAuthenticationHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template that will be created. It must be unique across all callout templates."},"requiredAuth":{"type":"boolean","description":"Indicates whether Basic authentication is enabled for the callout.\n\nWhen creating callout notifications with Basic authentication enabled, you must set this field to `true` and specify the username and password in `calloutAuth`.\n"},"calloutAuth":{"$ref":"#/components/schemas/CalloutAuth"}},"required":["calloutBaseurl","httpMethod","name","requiredAuth"],"description":"The Basic Authentication information for callout notifications.\n","title":"POSTPublicNotificationDefinitionCalloutBasicAuthentication"},"PostPublicNotificationDefinitionCalloutOauth2AuthenticationHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PostPublicNotificationDefinitionCalloutOauth2AuthenticationHttpMethod"},"POSTPublicNotificationDefinitionCalloutOauth2Authentication":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with 'https://'.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"calloutParams":{"$ref":"#/components/schemas/CalloutMergeFields"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"description":{"type":"string","maxLength":255,"description":"Description for the callout."},"eventTypeName":{"type":"string","minLength":1,"description":"The name of the event type. The value must be the same as the parent-level `eventTypeName` field."},"httpMethod":{"$ref":"#/components/schemas/PostPublicNotificationDefinitionCalloutOauth2AuthenticationHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template that will be created. It must be unique across all callout templates."},"requiredOauth2":{"type":"boolean","description":"Indicates whether OAuth 2.0 authentication is enabled for the callout.\n\nWhen creating callout notifications with OAuth 2.0 authentication enabled, you must set this field to `true` and specify the OAuth 2.0 provider ID in `oauth2ProviderId`.\n"},"oauth2ProviderId":{"description":"The ID of the OAuth 2.0 provider in your tenant that provides access tokens for the callout. This field is required if `requiredOauth2` is `true`.\n\nFor more information about how to get the ID of an OAuth 2.0 provider, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Tenant_Management/A_Administrator_Settings/Add_an_OAuth_2.0_Provider#Retrieve_the_ID_of_an_OAuth_2.0_provider\" target=\"_blank\">Retrieve the ID of an OAuth 2.0 provider</a>.\n"}},"required":["calloutBaseurl","httpMethod","name","requiredOauth2"],"description":"The OAuth 2.0 Authentication information for callout notifications.\n","title":"POSTPublicNotificationDefinitionCalloutOauth2Authentication"},"PostPublicNotificationDefinitionRequestCallout":{"oneOf":[{"$ref":"#/components/schemas/POSTPublicNotificationDefinitionCalloutCommon"},{"$ref":"#/components/schemas/POSTPublicNotificationDefinitionCalloutBasicAuthentication"},{"$ref":"#/components/schemas/POSTPublicNotificationDefinitionCalloutOauth2Authentication"}],"description":"If this field is specified, Zuora will create a new callout template when creating the notification definition and associate the template with the notification definition.\n\nYou cannot specify the `calloutTemplateIds` and `callout` fields at the same time.\n\nFor more information about callout templates, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Events_and_Notifications/AF_Manage_email_and_callout_templates/B_Manage_callout_templates\" target=\"_blank\">Manage callout templates</a>.\n","title":"PostPublicNotificationDefinitionRequestCallout"},"PostPublicNotificationDefinitionRequestEventTypeNamespace":{"type":"string","enum":["user.notification","com.zuora.notification"],"default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a notification definition on the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n","title":"PostPublicNotificationDefinitionRequestEventTypeNamespace"},"PostPublicNotificationDefinitionRequestFilterRule":{"type":"object","properties":{"condition":{"type":"string","description":"The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/).\nThe rule might contain event context merge fields and data source merge fields. Data source merge fields must be from [the base object of the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects). Notifications with invalid merge fields will fail to evaluate, thus will not be invoked. For example, to filter an invoice posted notification to only invoices with an amount over 1000, you would define the following condition:\n\n```Invoice.Amount > 1000.0```\n\nThere are conventions and keywords you need to be aware of. For example:\n\n* `Invoice.Amount` refers to the `Amount` field of the Zuora object `Invoice`.\n\n* Unlike Event Triggers, there is no access to variables with the `_old` suffix. Fields with the `_old` suffix are only available on Event Trigger conditions.\n"},"description":{"type":"string","maxLength":255,"description":"The description of the filter rule."},"parameters":{"$ref":"#/components/schemas/FilterRuleParameterDefinitions"}},"required":["condition","parameters"],"title":"PostPublicNotificationDefinitionRequestFilterRule"},"POSTPublicNotificationDefinitionRequest":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the notification definition. The default value is `true`."},"associatedAccount":{"type":"string","description":"The account on which the histories of this notification will be displayed. The associated account does not enforce where the merge fields come from.\nAvailable values are as follows:\n* `Account.Id`: ID of the primary customer account related to the notification. It is also the default value.\n* `ParentAccount.Id`: this option is available only if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\" target=\"_blank\">Customer Hierarchy</a> enabled for your tenant.\n* `SubscriptionOwnerAccount.Id`: this option is available if the base object of the notification is Order Action.\n\n**Note:** before specifying this field, we recommend that you use [Data Source](https://knowledgecenter.zuora.com/Billing/Reporting/D_Data_Sources_and_Exports/C_Data_Source_Reference) to check the available types of accounts for the current notification.  \n"},"callout":{"$ref":"#/components/schemas/PostPublicNotificationDefinitionRequestCallout","description":"If this field is specified, Zuora will create a new callout template when creating the notification definition and associate the template with the notification definition.\n\nYou cannot specify the `calloutTemplateIds` and `callout` fields at the same time.\n\nFor more information about callout templates, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Events_and_Notifications/AF_Manage_email_and_callout_templates/B_Manage_callout_templates\" target=\"_blank\">Manage callout templates</a>.\n"},"calloutActive":{"type":"boolean","default":false,"description":"The status of the callout action. The default value is `false`."},"calloutTemplateIds":{"type":"array","items":{"type":"string"},"description":"List of callout template IDs that the notification definition is associated with.\n\nYou cannot specify the `calloutTemplateIds` and `callout` fields at the same time.\n\nFor more information about callout templates, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Events_and_Notifications/AF_Manage_email_and_callout_templates/B_Manage_callout_templates\" target=\"_blank\">Manage callout templates</a>.\n"},"communicationProfileId":{"type":"string","description":"The ID of the communication profile that the notification definition is associated with.\n\nYou can use the [Query Action](https://developer.zuora.com/api-references/api/operation/Action_POSTquery) to get the communication profile Id. See the following request sample:\n\n`{\n    \"queryString\": \"select Id, ProfileName from CommunicationProfile\"\n }`\n\n\nIf you do not pass the communicationProfileId, notification service will be automatically added to the 'Default Profile'.\n\nIf you want to associate the notification definition with multiple communication profiles,  use the `communicationProfileIds` field, which overrides this field.\n"},"communicationProfileIds":{"type":"array","items":{"type":"string"},"description":"List of communication profile IDs that the notification definition is associated with.\n\nThis field overrides the `communicationProfileId` field.\n"},"description":{"type":"string","maxLength":255,"description":"The description of the notification definition."},"emailActive":{"type":"boolean","default":false,"description":"The status of the email action. The default value is `false`."},"emailTemplateId":{"type":"string","format":"uuid","description":"The ID of the email template. If `emailActive` is `true`, an email template is required. And EventType of the email template MUST be the same as the eventType."},"eventCategory":{"type":"number","format":"double","description":"The event category code for a standard event, on which the notification definition is created.\n\nThis field is required when creating notification definitions for standard events.\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"},"eventTypeName":{"type":"string","minLength":1,"description":"The name of the event that the notification definition is based on.\n\nThis field is required when creating notification definitions for Zuora custom events, custom events, or custom scheduled events.\n\nIf this field is provided, you can specify the event namespace in the `eventTypeNamespace` field. \n"},"eventTypeNamespace":{"$ref":"#/components/schemas/PostPublicNotificationDefinitionRequestEventTypeNamespace","default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a notification definition on the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n"},"filterRule":{"$ref":"#/components/schemas/PostPublicNotificationDefinitionRequestFilterRule"},"filterRuleParams":{"$ref":"#/components/schemas/FilterRuleParameterValues"},"name":{"type":"string","maxLength":255,"description":"The name of the notification definition, unique per communication profile."}},"required":["name"],"title":"POSTPublicNotificationDefinitionRequest"},"PutPublicNotificationDefinitionCalloutCommonHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PutPublicNotificationDefinitionCalloutCommonHttpMethod"},"PUTPublicNotificationDefinitionCalloutCommon":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default value is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with 'https://'.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"calloutParams":{"$ref":"#/components/schemas/CalloutMergeFields"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"description":{"type":"string","maxLength":255,"description":"Description for the callout."},"httpMethod":{"$ref":"#/components/schemas/PutPublicNotificationDefinitionCalloutCommonHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template that will be created. It must be unique across all callout templates."}},"description":"Common information for callout notifications.\n","title":"PUTPublicNotificationDefinitionCalloutCommon"},"PutPublicNotificationDefinitionCalloutBasicAuthenticationHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PutPublicNotificationDefinitionCalloutBasicAuthenticationHttpMethod"},"PUTPublicNotificationDefinitionCalloutBasicAuthentication":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default value is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with 'https://'.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"calloutParams":{"$ref":"#/components/schemas/CalloutMergeFields"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"description":{"type":"string","maxLength":255,"description":"Description for the callout."},"httpMethod":{"$ref":"#/components/schemas/PutPublicNotificationDefinitionCalloutBasicAuthenticationHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template that will be created. It must be unique across all callout templates."},"requiredAuth":{"type":"boolean","description":"Indicates whether Basic authentication is enabled for the callout.\n"},"calloutAuth":{"$ref":"#/components/schemas/CalloutAuth"}},"description":"The Basic Authentication information for callout notifications.\n","title":"PUTPublicNotificationDefinitionCalloutBasicAuthentication"},"PutPublicNotificationDefinitionCalloutOauth2AuthenticationHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PutPublicNotificationDefinitionCalloutOauth2AuthenticationHttpMethod"},"PUTPublicNotificationDefinitionCalloutOauth2Authentication":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default value is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with 'https://'.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"calloutParams":{"$ref":"#/components/schemas/CalloutMergeFields"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"description":{"type":"string","maxLength":255,"description":"Description for the callout."},"httpMethod":{"$ref":"#/components/schemas/PutPublicNotificationDefinitionCalloutOauth2AuthenticationHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template that will be created. It must be unique across all callout templates."},"requiredOauth2":{"type":"boolean","description":"Indicates whether OAuth 2.0 authentication is enabled for the callout.\n"},"oauth2ProviderId":{"description":"The ID of the OAuth 2.0 provider in your tenant that provides access tokens for the callout.\n\nFor more information about how to get the ID of an OAuth 2.0 provider, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Tenant_Management/A_Administrator_Settings/Add_an_OAuth_2.0_Provider#Retrieve_the_ID_of_an_OAuth_2.0_provider\" target=\"_blank\">Retrieve the ID of an OAuth 2.0 provider</a>.\n"}},"description":"The OAuth 2.0 Authentication information for callout notifications.\n","title":"PUTPublicNotificationDefinitionCalloutOauth2Authentication"},"PutPublicNotificationDefinitionRequestCallout":{"oneOf":[{"$ref":"#/components/schemas/PUTPublicNotificationDefinitionCalloutCommon"},{"$ref":"#/components/schemas/PUTPublicNotificationDefinitionCalloutBasicAuthentication"},{"$ref":"#/components/schemas/PUTPublicNotificationDefinitionCalloutOauth2Authentication"}],"description":"If this field is specified, Zuora will create a new callout template when creating the notification definition and associate the template with the notification definition.\n\nYou cannot specify the `calloutTemplateIds` and `callout` fields at the same time.\n\nFor more information about callout templates, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Events_and_Notifications/AF_Manage_email_and_callout_templates/B_Manage_callout_templates\" target=\"_blank\">Manage callout templates</a>.\n","title":"PutPublicNotificationDefinitionRequestCallout"},"PutPublicNotificationDefinitionRequestFilterRule":{"type":"object","properties":{"condition":{"type":"string","description":"The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/).\nThe rule might contain event context merge fields and data source merge fields. Data source merge fields must be from [the base object of the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects). Notifications with invalid merge fields will fail to evaluate, thus will not be invoked. For example, to trigger an event when an invoice is posted with the amount over 1000, you would define the following condition on the `Invoice` object:\n\n```changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000.0```\n\nThere are conventions and keywords you need to be aware of. For example:\n\n* `changeType` is a keyword to specify what kind of change happened to the object. Allowed values are `INSERT`, `UPDATE` or `DELETE`.\n\n* `Invoice.Status` refers to field `Status` of the Zuora object `Invoice`.\n\n* A variable with the `_old` suffix means it’s a previous value of the corresponding object field. The \"_old\" fields are only available on the base objects.\n"},"description":{"type":"string","maxLength":255,"description":"The description of the filter rule."},"parameters":{"$ref":"#/components/schemas/FilterRuleParameterDefinitions"}},"required":["condition","parameters"],"title":"PutPublicNotificationDefinitionRequestFilterRule"},"PUTPublicNotificationDefinitionRequest":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the notification definition. The default value is `true`."},"associatedAccount":{"type":"string","description":"The account on which the histories of this notification will be displayed. The associated account does not enforce where the merge fields come from.\nAvailable values are as follows:\n* `Account.Id`: ID of the primary customer account related to the notification. It is also the default value.\n* `ParentAccount.Id`: this option is available only if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Customer_Accounts/A_Customer_Account_Introduction#Customer_Hierarchy\" target=\"_blank\">Customer Hierarchy</a> enabled for your tenant.\n* `SubscriptionOwnerAccount.Id`: this option is available if the base object of the notification is Order Action.\n\n**Note:** before specifying this field, we recommend that you use [Data Source](https://knowledgecenter.zuora.com/Billing/Reporting/D_Data_Sources_and_Exports/C_Data_Source_Reference) to check the available types of accounts for the current notification.  \n"},"callout":{"$ref":"#/components/schemas/PutPublicNotificationDefinitionRequestCallout","description":"If this field is specified, Zuora will create a new callout template when creating the notification definition and associate the template with the notification definition.\n\nYou cannot specify the `calloutTemplateIds` and `callout` fields at the same time.\n\nFor more information about callout templates, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Events_and_Notifications/AF_Manage_email_and_callout_templates/B_Manage_callout_templates\" target=\"_blank\">Manage callout templates</a>.\n"},"calloutActive":{"type":"boolean","default":false,"description":"The status of the callout action. The default value is `false`."},"calloutTemplateIds":{"type":"array","items":{"type":"string"},"description":"List of callout template IDs that the notification definition is associated with.\n\nYou cannot specify the `calloutTemplateIds` and `callout` fields at the same time.\n\nFor more information about callout templates, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Events_and_Notifications/AF_Manage_email_and_callout_templates/B_Manage_callout_templates\" target=\"_blank\">Manage callout templates</a>.\n"},"communicationProfileId":{"type":"string","format":"uuid","description":"The profile that notification definition belongs to. \n\nIf you want to associate the notification definition with multiple communication profiles, use the `communicationProfileIds` field, which overrides this field.\n"},"communicationProfileIds":{"type":"array","items":{"type":"string"},"description":"List of communication profile IDs that the notification definition is associated with.\n\nThis field overrides the `communicationProfileId` field.\n"},"description":{"type":"string","maxLength":255,"description":"The description of the notification definition."},"emailActive":{"type":"boolean","default":false,"description":"The status of the email action. The default value is `false`."},"emailTemplateId":{"type":"string","format":"uuid","description":"The ID of the email template. If emailActive is updated from\nfalse to true, an email template is required, and the EventType of\nthe email template MUST be the same as the EventType of the notification definition.\n"},"filterRule":{"$ref":"#/components/schemas/PutPublicNotificationDefinitionRequestFilterRule"},"filterRuleParams":{"$ref":"#/components/schemas/FilterRuleParameterValues"},"name":{"type":"string","maxLength":255,"description":"The name of the notification definition, which is unique in the profile."}},"title":"PUTPublicNotificationDefinitionRequest"},"PostCreateOrUpdateEmailTemplateRequestFormatCcEmailType":{"type":"string","enum":["BillToContact","SoldToContact","ShipToContact","SpecificEmails","TenantAdmin","BillToAndSoldToContacts","RunOwner","AllContacts","InvoiceOwnerBillToContact","InvoiceOwnerSoldToContact","InvoiceOwnerShipToContact","InvoiceOwnerBillToAndSoldToContacts","InvoiceOwnerAllContacts"],"default":"SpecificEmails","description":"Email CC type.\n\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails\n","title":"PostCreateOrUpdateEmailTemplateRequestFormatCcEmailType"},"PostCreateOrUpdateEmailTemplateRequestFormatEncodingType":{"type":"string","enum":["UTF8","Shift_JIS","ISO_2022_JP","EUC_JP","X_SJIS_0213"],"default":"UTF8","description":"The endcode type of the email body.","title":"PostCreateOrUpdateEmailTemplateRequestFormatEncodingType"},"PostCreateOrUpdateEmailTemplateRequestFormatFromEmailType":{"type":"string","enum":["TenantEmail","RunOwner","SpecificEmail"],"description":"The type of the email.","title":"PostCreateOrUpdateEmailTemplateRequestFormatFromEmailType"},"PostCreateOrUpdateEmailTemplateRequestFormatReplyToEmailType":{"type":"string","enum":["TenantEmail","RunOwner","SpecificEmail"],"description":"Type of the replyTo email.","title":"PostCreateOrUpdateEmailTemplateRequestFormatReplyToEmailType"},"PostCreateOrUpdateEmailTemplateRequestFormatToEmailType":{"type":"string","enum":["BillToContact","SoldToContact","ShipToContact","SpecificEmails","TenantAdmin","BillToAndSoldToContacts","RunOwner","AllContacts","InvoiceOwnerBillToContact","InvoiceOwnerSoldToContact","InvoiceOwnerShipToContact","InvoiceOwnerBillToAndSoldToContacts","InvoiceOwnerAllContacts"],"description":"Email receive type.\n\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails\n","title":"PostCreateOrUpdateEmailTemplateRequestFormatToEmailType"},"POSTCreateOrUpdateEmailTemplateRequestFormat":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the email template. The default value is `true`."},"bccEmailAddress":{"type":"string","format":"email","description":"The email bcc address."},"ccEmailAddress":{"type":"string","description":"The email CC address."},"ccEmailType":{"$ref":"#/components/schemas/PostCreateOrUpdateEmailTemplateRequestFormatCcEmailType","default":"SpecificEmails","description":"Email CC type.\n\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails\n"},"description":{"type":"string","maxLength":255,"description":"The description of the email template."},"emailBody":{"type":"string","description":"The email body. You can add merge fields in the email body using angle brackets or double curly brackets. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email templates</a>. \n\nYou can also embed HTML tags if `isHtml` is `true`.\n"},"emailHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom email headers. Each custom email header consists of a header name and a header value.\n"},"emailSubject":{"type":"string","description":"The email subject. You can add merge fields in the email subject using angle brackets or double curly brackets. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email templates</a>.\n"},"encodingType":{"$ref":"#/components/schemas/PostCreateOrUpdateEmailTemplateRequestFormatEncodingType","default":"UTF8","description":"The endcode type of the email body."},"eventCategory":{"type":"number","format":"double","description":"If you specify this 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"},"eventTypeName":{"type":"string","description":"The name of the custom event or custom scheduled event. If you specify this field, the email template is created based on the corresponding custom event or custom scheduled event.\n"},"eventTypeNamespace":{"type":"string","description":"The namespace of the `eventTypeName` field. The `eventTypeName` has the `user.notification` namespace by default. \n\nNote that if the `eventTypeName` is a standard event type, you must specify the `com.zuora.notification` namespace; otherwise, you will get an error.\n\nFor example, if you want to create an email template on the `OrderActionProcessed` event, you must specify `com.zuora.notification` for this field.         \n"},"fromEmailAddress":{"type":"string","description":"If fromEmailType is SpecificEmail, this field is required."},"fromEmailType":{"$ref":"#/components/schemas/PostCreateOrUpdateEmailTemplateRequestFormatFromEmailType","description":"The type of the email."},"fromName":{"type":"string","description":"The name of the email sender."},"id":{"type":"string","description":"ID of an existing email template. Specify this field if you want to update an existing email template.\n"},"isHtml":{"type":"boolean","default":false,"description":"Indicates whether the style of email body is HTML. The default value is `false`."},"name":{"type":"string","maxLength":255,"description":"The name of the email template, a unique name in a tenant."},"replyToEmailAddress":{"type":"string","description":"If `replyToEmailType` is `SpecificEmail`, this field is required."},"replyToEmailType":{"$ref":"#/components/schemas/PostCreateOrUpdateEmailTemplateRequestFormatReplyToEmailType","description":"Type of the replyTo email."},"toEmailAddress":{"type":"string","description":"If toEmailType is SpecificEmail, this field is required."},"toEmailType":{"$ref":"#/components/schemas/PostCreateOrUpdateEmailTemplateRequestFormatToEmailType","description":"Email receive type.\n\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails\n"}},"required":["emailBody","emailSubject","fromEmailType","name","toEmailType"],"title":"POSTCreateOrUpdateEmailTemplateRequestFormat"},"POSTCreateOrUpdateEmailTemplateRequest":{"type":"object","properties":{"allowPartialSuccess":{"type":"boolean","description":"When set to `false`, the call will fail if one or multiple instances fail to import, and a `200` response is returned if all email templates have been successfully updated.\nWhen set to `true`, a success (`200`) response is returned if one or more instances have imported successfully. All failed instances are also returned in the response.\n"},"emailTemplates":{"type":"array","items":{"$ref":"#/components/schemas/POSTCreateOrUpdateEmailTemplateRequestFormat"},"description":"A container for email templates.\n"}},"title":"POSTCreateOrUpdateEmailTemplateRequest"},"CreateOrUpdateEmailTemplatesResponse":{"type":"object","properties":{"reasons":{"type":"array","items":{"type":"string"},"description":"Returns an empty array if the request succeeds.\n"}},"title":"CreateOrUpdateEmailTemplatesResponse"},"GetPublicEmailTemplateResponseCcEmailType":{"type":"string","enum":["BillToContact","SoldToContact","ShipToContact","SpecificEmails","TenantAdmin","BillToAndSoldToContacts","RunOwner","AllContacts","InvoiceOwnerBillToContact","InvoiceOwnerSoldToContact","InvoiceOwnerShipToContact","InvoiceOwnerBillToAndSoldToContacts","InvoiceOwnerAllContacts"],"default":"SpecificEmails","description":"Email cc type.","title":"GetPublicEmailTemplateResponseCcEmailType"},"GetPublicEmailTemplateResponseEncodingType":{"type":"string","enum":["UTF8","Shift_JIS","ISO_2022_JP","EUC_JP","X_SJIS_0213"],"description":"The endcode type of the email body.","title":"GetPublicEmailTemplateResponseEncodingType"},"GetPublicEmailTemplateResponseFromEmailType":{"type":"string","enum":["TenantEmail","RunOwner","SpecificEmail"],"description":"The from email type.","title":"GetPublicEmailTemplateResponseFromEmailType"},"GetPublicEmailTemplateResponseReplyToEmailType":{"type":"string","enum":["TenantEmail","RunOwner","SpecificEmail"],"description":"The reply email type.","title":"GetPublicEmailTemplateResponseReplyToEmailType"},"GetPublicEmailTemplateResponseToEmailType":{"type":"string","enum":["BillToContact","SoldToContact","ShipToContact","SpecificEmails","TenantAdmin","BillToAndSoldToContacts","RunOwner","AllContacts","InvoiceOwnerBillToContact","InvoiceOwnerSoldToContact","InvoiceOwnerShipToContact","InvoiceOwnerBillToAndSoldToContacts","InvoiceOwnerAllContacts"],"description":"Email receive type.","title":"GetPublicEmailTemplateResponseToEmailType"},"GETPublicEmailTemplateResponse":{"type":"object","properties":{"active":{"type":"boolean","description":"The status of the email template."},"bccEmailAddress":{"type":"string","format":"email","description":"Email BCC address."},"ccEmailAddress":{"type":"string","description":"Email CC address."},"ccEmailType":{"$ref":"#/components/schemas/GetPublicEmailTemplateResponseCcEmailType","default":"SpecificEmails","description":"Email cc type."},"createdBy":{"type":"string","format":"uuid","description":"The ID of the user who created the email template."},"createdOn":{"type":"string","format":"date-time","description":"The time when the email template was created. Specified in the UTC timezone in the ISO860 format (YYYY-MM-DDThh:mm:ss.sTZD). E.g. 1997-07-16T19:20:30.45+00:00"},"description":{"type":"string","maxLength":255,"description":"The description of the email template."},"emailBody":{"type":"string","description":"The email body. You can add merge fields in the email body using angle brackets or double curly brackets. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email templates</a>. \n\nUser can also embed html tags if `isHtml` is `true`.\n"},"emailHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom email headers. Each custom email header consists of a header name and a header value.\n"},"emailSubject":{"type":"string","description":"The email subject. You can add merge fields in the email subject using angle brackets or double curly brackets. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email templates</a>.\n"},"encodingType":{"$ref":"#/components/schemas/GetPublicEmailTemplateResponseEncodingType","description":"The endcode type of the email body."},"eventCategory":{"type":"number","format":"double","description":"The event category code for 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 event category codes."},"eventTypeName":{"type":"string","minLength":1,"description":"The name of the custom event or custom scheduled event."},"eventTypeNamespace":{"type":"string","description":"The namespace of the `eventTypeName` field for custom events and custom scheduled events. \n"},"fromEmailAddress":{"type":"string","description":"If formEmailType is SpecificEmail, this field is required."},"fromEmailType":{"$ref":"#/components/schemas/GetPublicEmailTemplateResponseFromEmailType","description":"The from email type."},"fromName":{"type":"string","maxLength":50,"description":"The name of email sender."},"id":{"type":"string","format":"uuid","description":"The email template ID."},"isHtml":{"type":"boolean","description":"Indicates whether the style of email body is HTML."},"name":{"type":"string","maxLength":255,"description":"The name of the email template."},"replyToEmailAddress":{"type":"string","description":"If replyToEmailType is SpecificEmail, this field is required"},"replyToEmailType":{"$ref":"#/components/schemas/GetPublicEmailTemplateResponseReplyToEmailType","description":"The reply email type."},"toEmailAddress":{"type":"string","description":"If `toEmailType` is `SpecificEmail`, this field is required."},"toEmailType":{"$ref":"#/components/schemas/GetPublicEmailTemplateResponseToEmailType","description":"Email receive type."},"updatedBy":{"type":"string","format":"uuid","description":"The ID of the user who updated the email template."},"updatedOn":{"type":"string","format":"date-time","description":"The time when the email template was updated. Specified in the UTC timezone in the ISO860 format (YYYY-MM-DDThh:mm:ss.sTZD). E.g. 1997-07-16T19:20:30.45+00:00"}},"title":"GETPublicEmailTemplateResponse"},"Notifications_GET_Query_Email_Templates_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETPublicEmailTemplateResponse"}},"next":{"type":"string","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."}},"title":"Notifications_GET_Query_Email_Templates_Response_200"},"PostPublicEmailTemplateRequestCcEmailType":{"type":"string","enum":["BillToContact","SoldToContact","ShipToContact","SpecificEmails","TenantAdmin","BillToAndSoldToContacts","RunOwner","AllContacts","InvoiceOwnerBillToContact","InvoiceOwnerSoldToContact","InvoiceOwnerShipToContact","InvoiceOwnerBillToAndSoldToContacts","InvoiceOwnerAllContacts"],"default":"SpecificEmails","description":"Email CC type.\n\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails\n","title":"PostPublicEmailTemplateRequestCcEmailType"},"PostPublicEmailTemplateRequestEncodingType":{"type":"string","enum":["UTF8","Shift_JIS","ISO_2022_JP","EUC_JP","X_SJIS_0213"],"default":"UTF8","description":"The endcode type of the email body.","title":"PostPublicEmailTemplateRequestEncodingType"},"PostPublicEmailTemplateRequestFromEmailType":{"type":"string","enum":["TenantEmail","RunOwner","SpecificEmail"],"description":"The type of the email.","title":"PostPublicEmailTemplateRequestFromEmailType"},"PostPublicEmailTemplateRequestReplyToEmailType":{"type":"string","enum":["TenantEmail","RunOwner","SpecificEmail"],"description":"Type of the replyTo email.","title":"PostPublicEmailTemplateRequestReplyToEmailType"},"PostPublicEmailTemplateRequestToEmailType":{"type":"string","enum":["BillToContact","SoldToContact","ShipToContact","SpecificEmails","TenantAdmin","BillToAndSoldToContacts","RunOwner","AllContacts","InvoiceOwnerBillToContact","InvoiceOwnerSoldToContact","InvoiceOwnerShipToContact","InvoiceOwnerBillToAndSoldToContacts","InvoiceOwnerAllContacts"],"description":"Email receive type.\n\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails\n","title":"PostPublicEmailTemplateRequestToEmailType"},"POSTPublicEmailTemplateRequest":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the email template. The default value is `true`."},"bccEmailAddress":{"type":"string","format":"email","description":"The email bcc address."},"ccEmailAddress":{"type":"string","description":"The email CC address."},"ccEmailType":{"$ref":"#/components/schemas/PostPublicEmailTemplateRequestCcEmailType","default":"SpecificEmails","description":"Email CC type.\n\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails\n"},"description":{"type":"string","maxLength":255,"description":"The description of the email template."},"emailBody":{"type":"string","description":"The email body. You can add merge fields in the email body using angle brackets or double curly brackets. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email templates</a>.\n\nYou can also embed HTML tags if `isHtml` is `true`.\n"},"emailHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom email headers. Each custom email header consists of a header name and a header value.\n"},"emailSubject":{"type":"string","description":"The email subject. You can add merge fields in the email subject using angle brackets or double curly brackets. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email templates</a>.\n"},"encodingType":{"$ref":"#/components/schemas/PostPublicEmailTemplateRequestEncodingType","default":"UTF8","description":"The endcode type of the email body."},"eventCategory":{"type":"number","format":"double","description":"If you specify this 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"},"eventTypeName":{"type":"string","description":"The name of the custom event or custom scheduled event. If you specify this field, the email template is created based on the corresponding custom event or custom scheduled event.\n"},"eventTypeNamespace":{"type":"string","description":"The namespace of the `eventTypeName` field. The `eventTypeName` has the `user.notification` namespace by default. \n\nNote that if the `eventTypeName` is a standard event type, you must specify the `com.zuora.notification` namespace; otherwise, you will get an error.\n\nFor example, if you want to create an email template on the `OrderActionProcessed` event, you must specify `com.zuora.notification` for this field.         \n"},"fromEmailAddress":{"type":"string","description":"If fromEmailType is SpecificEmail, this field is required."},"fromEmailType":{"$ref":"#/components/schemas/PostPublicEmailTemplateRequestFromEmailType","description":"The type of the email."},"fromName":{"type":"string","description":"The name of the email sender."},"isHtml":{"type":"boolean","default":false,"description":"Indicates whether the style of email body is HTML. The default value is `false`."},"name":{"type":"string","maxLength":255,"description":"The name of the email template, a unique name in a tenant."},"replyToEmailAddress":{"type":"string","description":"If replyToEmailType is SpecificEmail, this field is required."},"replyToEmailType":{"$ref":"#/components/schemas/PostPublicEmailTemplateRequestReplyToEmailType","description":"Type of the replyTo email."},"toEmailAddress":{"type":"string","description":"If toEmailType is SpecificEmail, this field is required."},"toEmailType":{"$ref":"#/components/schemas/PostPublicEmailTemplateRequestToEmailType","description":"Email receive type.\n\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails\n"}},"required":["emailBody","emailSubject","fromEmailType","name","toEmailType"],"title":"POSTPublicEmailTemplateRequest"},"PutPublicEmailTemplateRequestCcEmailType":{"type":"string","enum":["BillToContact","SoldToContact","ShipToContact","SpecificEmails","TenantAdmin","BillToAndSoldToContacts","RunOwner","AllContacts","InvoiceOwnerBillToContact","InvoiceOwnerSoldToContact","InvoiceOwnerShipToContact","InvoiceOwnerBillToAndSoldToContacts","InvoiceOwnerAllContacts"],"default":"SpecificEmails","description":"Email CC type.\n\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails\n","title":"PutPublicEmailTemplateRequestCcEmailType"},"PutPublicEmailTemplateRequestEncodingType":{"type":"string","enum":["UTF8","Shift_JIS","ISO_2022_JP","EUC_JP","X_SJIS_0213"],"description":"The endcode type of the email body.","title":"PutPublicEmailTemplateRequestEncodingType"},"PutPublicEmailTemplateRequestFromEmailType":{"type":"string","enum":["TenantEmail","RunOwner","SpecificEmail"],"description":"The type of fromEmail.","title":"PutPublicEmailTemplateRequestFromEmailType"},"PutPublicEmailTemplateRequestReplyToEmailType":{"type":"string","enum":["TenantEmail","RunOwner","SpecificEmail"],"description":"The type of the reply email.","title":"PutPublicEmailTemplateRequestReplyToEmailType"},"PutPublicEmailTemplateRequestToEmailType":{"type":"string","enum":["BillToContact","SoldToContact","ShipToContact","SpecificEmails","TenantAdmin","BillToAndSoldToContacts","RunOwner","AllContacts","InvoiceOwnerBillToContact","InvoiceOwnerSoldToContact","InvoiceOwnerShipToContact","InvoiceOwnerBillToAndSoldToContacts","InvoiceOwnerAllContacts"],"description":"Email receive type.\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails","title":"PutPublicEmailTemplateRequestToEmailType"},"PUTPublicEmailTemplateRequest":{"type":"object","properties":{"active":{"type":"boolean","description":"The status of the email template."},"bccEmailAddress":{"type":"string","format":"email","description":"Email bcc address."},"ccEmailAddress":{"type":"string","description":"Email cc address."},"ccEmailType":{"$ref":"#/components/schemas/PutPublicEmailTemplateRequestCcEmailType","default":"SpecificEmails","description":"Email CC type.\n\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails\n"},"description":{"type":"string","maxLength":255,"description":"The description of the email template."},"emailBody":{"type":"string","description":"The email body. You can add merge fields in the email body using angle brackets or double curly brackets. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email templates</a>. \n\nUser can also embed html tags if `isHtml` is `true`.\n"},"emailHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom email headers. Each custom email header consists of a header name and a header value.\n"},"emailSubject":{"type":"string","description":"The email subject. You can add merge fields in the email subject using angle brackets or double curly brackets. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email templates</a>.\n"},"encodingType":{"$ref":"#/components/schemas/PutPublicEmailTemplateRequestEncodingType","description":"The endcode type of the email body."},"fromEmailAddress":{"type":"string","description":"If fromEmailType is SpecificEmail, this field is required"},"fromEmailType":{"$ref":"#/components/schemas/PutPublicEmailTemplateRequestFromEmailType","description":"The type of fromEmail."},"fromName":{"type":"string","description":"The name of email sender."},"isHtml":{"type":"boolean","description":"Indicates whether the style of email body is HTML."},"name":{"type":"string","maxLength":255,"description":"The name of the email template."},"replyToEmailAddress":{"type":"string","description":"If replyToEmailType is SpecificEmail, this field is required."},"replyToEmailType":{"$ref":"#/components/schemas/PutPublicEmailTemplateRequestReplyToEmailType","description":"The type of the reply email."},"toEmailAddress":{"type":"string","description":"If toEmailType is SpecificEmail, this field is required."},"toEmailType":{"$ref":"#/components/schemas/PutPublicEmailTemplateRequestToEmailType","description":"Email receive type.\n- When the related event is account-level and associated with the Subscription object, such as Subscription Created, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n  - InvoiceOwnerBillToContact\n  - InvoiceOwnerSoldToContact\n  - InvoiceOwnerShipToContact\n  - InvoiceOwnerBillToAndSoldToContacts\n  - InvoiceOwnerAllContacts\n- When the related event is account-level and not associated with the Subscription object, such as Payment Processed, you can use the following values:\n  - BillToContact\n  - SoldToContact\n  - ShipToContact\n  - BillToAndSoldToContacts\n  - AllContacts\n  - SpecificEmails\n- When the related event is tenant-level, such as Bill Run Completion, you can use the following values:\n  - TenantAdmin\n  - RunOwner\n  - SpecificEmails"}},"title":"PUTPublicEmailTemplateRequest"},"PostCreateOrUpdateCalloutTemplateRequestCommonEventTypeNamespace":{"type":"string","enum":["user.notification","com.zuora.notification"],"default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n","title":"PostCreateOrUpdateCalloutTemplateRequestCommonEventTypeNamespace"},"PostCreateOrUpdateCalloutTemplateRequestCommonHmacAlgorithm":{"type":"string","enum":["MD5","SHA-1","SHA-224","SHA-256","SHA-384","SHA-512"],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n","title":"PostCreateOrUpdateCalloutTemplateRequestCommonHmacAlgorithm"},"PostCreateOrUpdateCalloutTemplateRequestCommonHmacOutputFormat":{"type":"string","enum":["BASE64","HEX"],"description":"The format of the signed data for HMAC authentication.\n","title":"PostCreateOrUpdateCalloutTemplateRequestCommonHmacOutputFormat"},"PostCreateOrUpdateCalloutTemplateRequestCommonHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PostCreateOrUpdateCalloutTemplateRequestCommonHttpMethod"},"POSTCreateOrUpdateCalloutTemplateRequestCommon":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with `https://`.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\nYou can add merge fields in the callout URL. For example, `https://mywebsite.com/zuora/{{DataSource.Account.Id}}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"calloutHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom callout headers. Each custom callout header consists of a header name and a header value.\n"},"calloutParams":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.\n"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"certificate":{"type":"string","description":"The SSL certificate for the domain of the callout receiver server specified in `calloutBaseurl`.\n\nThe value must be in PEM format, which typically starts with `-----BEGIN CERTIFICATE-----` and ends with `-----END CERTIFICATE-----`.\n\nSpecifying the SSL certificate can eliminate SSL certificate errors (HTTP status code 495) for callout notifications.\n"},"confirmSuccessFromResponseContent":{"type":"boolean","default":false,"description":"Indicates how Zuora determines whether callout notifications to your system succeed or fail:\n\n* If `false`, Zuora determines the result based solely on the HTTP response status code. This is the default value.\n\n* If `true`, and the HTTP response status code is 200, Zuora evaluates the callout response and considers the notification successful only if the `Content-Type` header is set to `application/json`, and the response body contains a `success` field set to `true`.\n"},"customRequestBody":{"type":"string","description":"Customized request body. This field is available only for callouts whose Content-Type in the request body is `application/json`. The value must be in JSON format and double quotes in the value must be escaped.\n\nYou can add merge fields to the request body. For example, `{\\\"AccountNumber\\\": \\\"{{DataSource.Account.AccountNumber}}\\\",\\\"AccountId\\\": \\\"{{DataSource.Account.Id}}\\\"}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nYou must set `useCustomRequestBody` to `true` if you want to customize the callout request body with this field. Alternatively, you can use the `calloutParams` field.\n"},"description":{"type":"string","maxLength":255,"description":"Description for the callout template."},"eventCategory":{"type":"number","format":"double","description":"The event category code for a standard event that the callout template relates to.\n\nThis field is required when creating callout templates for standard events.\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"},"eventTypeName":{"type":"string","minLength":1,"description":"The name of a custom event that the callout template relates to.\n\nThis field is required when creating callout templates for Zuora custom events, custom events, or custom scheduled events.\n\nIf this field is provided, you can specify the event namespace in the `eventTypeNamespace` field. \n"},"eventTypeNamespace":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestCommonEventTypeNamespace","default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n"},"hmacAlgorithm":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestCommonHmacAlgorithm","description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacData":{"type":"string","description":"The message to be authenticated for HMAC authentication.\n\nYou can use merge fields in this value:\n\n- `{{Request.Headers.<header_name>}}`: Refers to the value of a particular request header. For example, `{{Request.Headers.Date}}` refers to the value of the request header called `Date`.\n- `{{Request.Body}}`: Refers to the request body.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"hmacKey":{"type":"string","description":"The header key that Zuora uses to send the header value for HMAC authentication. The header value is specified in the `hmacValue` field and typically contains the signed data.\n"},"hmacOutputFormat":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestCommonHmacOutputFormat","description":"The format of the signed data for HMAC authentication.\n"},"hmacSecret":{"type":"string","description":"The shared secret key that Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacValue":{"type":"string","description":"The header value for HMAC authentication. The header key is specified in the `hmacKey` field.\n\nYou can use merge fields in this value:\n\n- `{{Request.HMAC.Signed}}`: Refers to the signed data.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nThe following is a header value example: `The algorithm is SHA-256 and the signed data is {{Request.HMAC.Signed}}`.\n"},"httpMethod":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestCommonHttpMethod","description":"The HTTP method of the callout."},"id":{"type":"string","description":"ID of an existing callout template. Specify this field if you want to update an existing callout template.\n"},"name":{"type":"string","maxLength":255,"description":"The name of the callout template. It must be unique across all callout templates."},"useCustomRequestBody":{"type":"boolean","description":"Indicates whether to enable the customized request body configured in the `customRequestBody` field.\n"}},"required":["calloutBaseurl","httpMethod","name"],"description":"Common information for callout templates.\n","title":"POSTCreateOrUpdateCalloutTemplateRequestCommon"},"PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationEventTypeNamespace":{"type":"string","enum":["user.notification","com.zuora.notification"],"default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n","title":"PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationEventTypeNamespace"},"PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationHmacAlgorithm":{"type":"string","enum":["MD5","SHA-1","SHA-224","SHA-256","SHA-384","SHA-512"],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n","title":"PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationHmacAlgorithm"},"PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationHmacOutputFormat":{"type":"string","enum":["BASE64","HEX"],"description":"The format of the signed data for HMAC authentication.\n","title":"PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationHmacOutputFormat"},"PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationHttpMethod"},"POSTCreateOrUpdateCalloutTemplateRequestBasicAuthentication":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with `https://`.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\nYou can add merge fields in the callout URL. For example, `https://mywebsite.com/zuora/{{DataSource.Account.Id}}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"calloutHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom callout headers. Each custom callout header consists of a header name and a header value.\n"},"calloutParams":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.\n"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"certificate":{"type":"string","description":"The SSL certificate for the domain of the callout receiver server specified in `calloutBaseurl`.\n\nThe value must be in PEM format, which typically starts with `-----BEGIN CERTIFICATE-----` and ends with `-----END CERTIFICATE-----`.\n\nSpecifying the SSL certificate can eliminate SSL certificate errors (HTTP status code 495) for callout notifications.\n"},"confirmSuccessFromResponseContent":{"type":"boolean","default":false,"description":"Indicates how Zuora determines whether callout notifications to your system succeed or fail:\n\n* If `false`, Zuora determines the result based solely on the HTTP response status code. This is the default value.\n\n* If `true`, and the HTTP response status code is 200, Zuora evaluates the callout response and considers the notification successful only if the `Content-Type` header is set to `application/json`, and the response body contains a `success` field set to `true`.\n"},"customRequestBody":{"type":"string","description":"Customized request body. This field is available only for callouts whose Content-Type in the request body is `application/json`. The value must be in JSON format and double quotes in the value must be escaped.\n\nYou can add merge fields to the request body. For example, `{\\\"AccountNumber\\\": \\\"{{DataSource.Account.AccountNumber}}\\\",\\\"AccountId\\\": \\\"{{DataSource.Account.Id}}\\\"}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nYou must set `useCustomRequestBody` to `true` if you want to customize the callout request body with this field. Alternatively, you can use the `calloutParams` field.\n"},"description":{"type":"string","maxLength":255,"description":"Description for the callout template."},"eventCategory":{"type":"number","format":"double","description":"The event category code for a standard event that the callout template relates to.\n\nThis field is required when creating callout templates for standard events.\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"},"eventTypeName":{"type":"string","minLength":1,"description":"The name of a custom event that the callout template relates to.\n\nThis field is required when creating callout templates for Zuora custom events, custom events, or custom scheduled events.\n\nIf this field is provided, you can specify the event namespace in the `eventTypeNamespace` field. \n"},"eventTypeNamespace":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationEventTypeNamespace","default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n"},"hmacAlgorithm":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationHmacAlgorithm","description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacData":{"type":"string","description":"The message to be authenticated for HMAC authentication.\n\nYou can use merge fields in this value:\n\n- `{{Request.Headers.<header_name>}}`: Refers to the value of a particular request header. For example, `{{Request.Headers.Date}}` refers to the value of the request header called `Date`.\n- `{{Request.Body}}`: Refers to the request body.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"hmacKey":{"type":"string","description":"The header key that Zuora uses to send the header value for HMAC authentication. The header value is specified in the `hmacValue` field and typically contains the signed data.\n"},"hmacOutputFormat":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationHmacOutputFormat","description":"The format of the signed data for HMAC authentication.\n"},"hmacSecret":{"type":"string","description":"The shared secret key that Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacValue":{"type":"string","description":"The header value for HMAC authentication. The header key is specified in the `hmacKey` field.\n\nYou can use merge fields in this value:\n\n- `{{Request.HMAC.Signed}}`: Refers to the signed data.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nThe following is a header value example: `The algorithm is SHA-256 and the signed data is {{Request.HMAC.Signed}}`.\n"},"httpMethod":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestBasicAuthenticationHttpMethod","description":"The HTTP method of the callout."},"id":{"type":"string","description":"ID of an existing callout template. Specify this field if you want to update an existing callout template.\n"},"name":{"type":"string","maxLength":255,"description":"The name of the callout template. It must be unique across all callout templates."},"useCustomRequestBody":{"type":"boolean","description":"Indicates whether to enable the customized request body configured in the `customRequestBody` field.\n"},"requiredAuth":{"type":"boolean","description":"Indicates whether Basic authentication is enabled for the callout.\n\nWhen creating callout notifications with Basic authentication enabled, you must set this field to `true` and specify the username and password in `calloutAuth`.\n"},"calloutAuth":{"$ref":"#/components/schemas/CalloutAuth"}},"required":["calloutBaseurl","httpMethod","name"],"description":"The Basic Authentication information for callout notifications.\n","title":"POSTCreateOrUpdateCalloutTemplateRequestBasicAuthentication"},"PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationEventTypeNamespace":{"type":"string","enum":["user.notification","com.zuora.notification"],"default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n","title":"PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationEventTypeNamespace"},"PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationHmacAlgorithm":{"type":"string","enum":["MD5","SHA-1","SHA-224","SHA-256","SHA-384","SHA-512"],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n","title":"PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationHmacAlgorithm"},"PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationHmacOutputFormat":{"type":"string","enum":["BASE64","HEX"],"description":"The format of the signed data for HMAC authentication.\n","title":"PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationHmacOutputFormat"},"PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationHttpMethod"},"POSTCreateOrUpdateCalloutTemplateRequestOauth2Authentication":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with `https://`.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\nYou can add merge fields in the callout URL. For example, `https://mywebsite.com/zuora/{{DataSource.Account.Id}}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"calloutHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom callout headers. Each custom callout header consists of a header name and a header value.\n"},"calloutParams":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.\n"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"certificate":{"type":"string","description":"The SSL certificate for the domain of the callout receiver server specified in `calloutBaseurl`.\n\nThe value must be in PEM format, which typically starts with `-----BEGIN CERTIFICATE-----` and ends with `-----END CERTIFICATE-----`.\n\nSpecifying the SSL certificate can eliminate SSL certificate errors (HTTP status code 495) for callout notifications.\n"},"confirmSuccessFromResponseContent":{"type":"boolean","default":false,"description":"Indicates how Zuora determines whether callout notifications to your system succeed or fail:\n\n* If `false`, Zuora determines the result based solely on the HTTP response status code. This is the default value.\n\n* If `true`, and the HTTP response status code is 200, Zuora evaluates the callout response and considers the notification successful only if the `Content-Type` header is set to `application/json`, and the response body contains a `success` field set to `true`.\n"},"customRequestBody":{"type":"string","description":"Customized request body. This field is available only for callouts whose Content-Type in the request body is `application/json`. The value must be in JSON format and double quotes in the value must be escaped.\n\nYou can add merge fields to the request body. For example, `{\\\"AccountNumber\\\": \\\"{{DataSource.Account.AccountNumber}}\\\",\\\"AccountId\\\": \\\"{{DataSource.Account.Id}}\\\"}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nYou must set `useCustomRequestBody` to `true` if you want to customize the callout request body with this field. Alternatively, you can use the `calloutParams` field.\n"},"description":{"type":"string","maxLength":255,"description":"Description for the callout template."},"eventCategory":{"type":"number","format":"double","description":"The event category code for a standard event that the callout template relates to.\n\nThis field is required when creating callout templates for standard events.\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"},"eventTypeName":{"type":"string","minLength":1,"description":"The name of a custom event that the callout template relates to.\n\nThis field is required when creating callout templates for Zuora custom events, custom events, or custom scheduled events.\n\nIf this field is provided, you can specify the event namespace in the `eventTypeNamespace` field. \n"},"eventTypeNamespace":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationEventTypeNamespace","default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n"},"hmacAlgorithm":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationHmacAlgorithm","description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacData":{"type":"string","description":"The message to be authenticated for HMAC authentication.\n\nYou can use merge fields in this value:\n\n- `{{Request.Headers.<header_name>}}`: Refers to the value of a particular request header. For example, `{{Request.Headers.Date}}` refers to the value of the request header called `Date`.\n- `{{Request.Body}}`: Refers to the request body.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"hmacKey":{"type":"string","description":"The header key that Zuora uses to send the header value for HMAC authentication. The header value is specified in the `hmacValue` field and typically contains the signed data.\n"},"hmacOutputFormat":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationHmacOutputFormat","description":"The format of the signed data for HMAC authentication.\n"},"hmacSecret":{"type":"string","description":"The shared secret key that Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacValue":{"type":"string","description":"The header value for HMAC authentication. The header key is specified in the `hmacKey` field.\n\nYou can use merge fields in this value:\n\n- `{{Request.HMAC.Signed}}`: Refers to the signed data.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nThe following is a header value example: `The algorithm is SHA-256 and the signed data is {{Request.HMAC.Signed}}`.\n"},"httpMethod":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestOauth2AuthenticationHttpMethod","description":"The HTTP method of the callout."},"id":{"type":"string","description":"ID of an existing callout template. Specify this field if you want to update an existing callout template.\n"},"name":{"type":"string","maxLength":255,"description":"The name of the callout template. It must be unique across all callout templates."},"useCustomRequestBody":{"type":"boolean","description":"Indicates whether to enable the customized request body configured in the `customRequestBody` field.\n"},"requiredOauth2":{"type":"boolean","description":"Indicates whether OAuth 2.0 authentication is enabled for the callout.\n\nWhen creating callout notifications with OAuth 2.0 authentication enabled, you must set this field to `true` and specify the OAuth 2.0 provider ID in `oauth2ProviderId`.\n"},"oauth2ProviderId":{"description":"The ID of the OAuth 2.0 provider in your tenant that provides access tokens for the callout. This field is required if `requiredOauth2` is `true`.\n\nFor more information about how to get the ID of an OAuth 2.0 provider, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Tenant_Management/A_Administrator_Settings/Add_an_OAuth_2.0_Provider#Retrieve_the_ID_of_an_OAuth_2.0_provider\" target=\"_blank\">Retrieve the ID of an OAuth 2.0 provider</a>.\n"}},"required":["calloutBaseurl","httpMethod","name"],"description":"The OAuth 2.0 Authentication information for callout notifications.\n","title":"POSTCreateOrUpdateCalloutTemplateRequestOauth2Authentication"},"PostCreateOrUpdateCalloutTemplateRequestCalloutTemplatesItems":{"oneOf":[{"$ref":"#/components/schemas/POSTCreateOrUpdateCalloutTemplateRequestCommon"},{"$ref":"#/components/schemas/POSTCreateOrUpdateCalloutTemplateRequestBasicAuthentication"},{"$ref":"#/components/schemas/POSTCreateOrUpdateCalloutTemplateRequestOauth2Authentication"}],"title":"PostCreateOrUpdateCalloutTemplateRequestCalloutTemplatesItems"},"POSTCreateOrUpdateCalloutTemplateRequest":{"type":"object","properties":{"allowPartialSuccess":{"type":"boolean","description":"When set to `false`, the call will fail if one or multiple instances fail to import, and a `200` response is returned if all callout templates have been successfully updated.\nWhen set to `true`, a success (`200`) response is returned if one or more instances have imported successfully. All failed instances are also returned in the response.\n"},"calloutTemplates":{"type":"array","items":{"$ref":"#/components/schemas/PostCreateOrUpdateCalloutTemplateRequestCalloutTemplatesItems"},"description":"A container for callout templates.\n"}},"title":"POSTCreateOrUpdateCalloutTemplateRequest"},"GetPublicCalloutTemplateResponseEventTypeNamespace":{"type":"string","enum":["user.notification","com.zuora.notification"],"description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nThis field is available only if the related event of this callout template is a Zuora custom event, custom event, or custom scheduled event.\n","title":"GetPublicCalloutTemplateResponseEventTypeNamespace"},"GetPublicCalloutTemplateResponseHmacAlgorithm":{"type":"string","enum":["MD5","SHA-1","SHA-224","SHA-256","SHA-384","SHA-512"],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n","title":"GetPublicCalloutTemplateResponseHmacAlgorithm"},"GetPublicCalloutTemplateResponseHmacOutputFormat":{"type":"string","enum":["BASE64","HEX"],"description":"The format of the signed data for HMAC authentication.\n","title":"GetPublicCalloutTemplateResponseHmacOutputFormat"},"GetPublicCalloutTemplateResponseHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"GetPublicCalloutTemplateResponseHttpMethod"},"GETPublicCalloutTemplateResponse":{"type":"object","properties":{"active":{"type":"boolean","description":"The status of the callout template."},"calloutAuth":{"$ref":"#/components/schemas/CalloutAuth"},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL."},"calloutHeaders":{"type":["object","null"],"additionalProperties":{"type":"string"},"description":"Container for custom callout headers. Each custom callout header consists of a header name and a header value.\n"},"calloutParams":{"type":["object","null"],"additionalProperties":{"type":"string"},"description":"Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.\n"},"calloutRetry":{"type":"boolean","description":"Indicates whether to retry the callout when the callout fails."},"certificate":{"type":["string","null"],"description":"The SSL certificate for the domain of the callout receiver server specified in `calloutBaseurl`.\n"},"confirmSuccessFromResponseContent":{"type":"boolean","description":"Indicates how Zuora determines whether callout notifications to your system succeed or fail:\n\n* If `false`, Zuora determines the result based solely on the HTTP response status code. This is the default value.\n\n* If `true`, and the HTTP response status code is 200, Zuora evaluates the callout response and considers the notification successful only if the `Content-Type` header is set to `application/json`, and the response body contains a `success` field set to `true`.\n"},"contentType":{"type":"string","description":"The callout body format."},"createdBy":{"type":"string","format":"uuid","description":"The ID of the user who created the callout template."},"createdOn":{"type":"string","format":"date-time","description":"The time when the callout template was created. Specified in the UTC timezone in the ISO860 format (YYYY-MM-DDThh:mm:ss.sTZD). E.g. 1997-07-16T19:20:30.45+00:00"},"customRequestBody":{"type":["string","null"],"description":"Customized request body.\n"},"description":{"type":"string","maxLength":255,"description":"Description for the callout template."},"eventCategory":{"type":"number","format":"double","description":"The event category code for the standard event that the callout template relates to.\n\nThis field is available only if the related event of this callout template is a standard event.\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"},"eventTypeName":{"type":"string","minLength":1,"description":"The name of the custom event that the callout template relates to.\n\nThis field is available only if the related event of this callout template is a Zuora custom event, custom event, or custom scheduled event.\n"},"eventTypeNamespace":{"$ref":"#/components/schemas/GetPublicCalloutTemplateResponseEventTypeNamespace","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nThis field is available only if the related event of this callout template is a Zuora custom event, custom event, or custom scheduled event.\n"},"hmacAlgorithm":{"oneOf":[{"$ref":"#/components/schemas/GetPublicCalloutTemplateResponseHmacAlgorithm"},{"type":"null"}],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacData":{"type":["string","null"],"description":"The message to be authenticated for HMAC authentication.\n"},"hmacKey":{"type":["string","null"],"description":"The header key that Zuora uses to send the header value for HMAC authentication. The header value is specified in the `hmacValue` field and typically contains the signed data.\n"},"hmacOutputFormat":{"oneOf":[{"$ref":"#/components/schemas/GetPublicCalloutTemplateResponseHmacOutputFormat"},{"type":"null"}],"description":"The format of the signed data for HMAC authentication.\n"},"hmacSecret":{"type":["string","null"],"description":"The shared secret key that Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacValue":{"type":["string","null"],"description":"The header value for HMAC authentication. The header key is specified in the `hmacKey` field.\n"},"httpMethod":{"$ref":"#/components/schemas/GetPublicCalloutTemplateResponseHttpMethod","description":"The HTTP method of the callout."},"id":{"type":"string","format":"uuid","description":"The ID of the callout template.\n"},"name":{"type":"string","maxLength":255,"description":"The name of the callout template."},"oauth2ProviderId":{"type":["string","null"],"description":"The ID of the OAuth 2.0 provider in your tenant that provides access tokens for the callout."},"requiredAuth":{"type":"boolean","description":"Indicates whether Basic authentication is enabled for the callout."},"requiredOauth2":{"type":"boolean","description":"Indicates whether OAuth 2.0 authentication is enabled for the callout."},"updatedBy":{"type":"string","format":"uuid","description":"The ID of the user who updated the callout template."},"updatedOn":{"type":"string","format":"date-time","description":"The time when the callout template was updated. Specified in the UTC timezone in the ISO860 format (YYYY-MM-DDThh:mm:ss.sTZD). E.g. 1997-07-16T19:20:30.45+00:00"},"useCustomRequestBody":{"type":"boolean","description":"Indicates whether to enable the customized request body configured in the `customRequestBody` field.\n"}},"title":"GETPublicCalloutTemplateResponse"},"Notifications_GetCalloutTemplates_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GETPublicCalloutTemplateResponse"}},"next":{"type":"string","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"}},"title":"Notifications_GetCalloutTemplates_Response_200"},"PostPublicCalloutTemplateRequestCommonEventTypeNamespace":{"type":"string","enum":["user.notification","com.zuora.notification"],"default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n","title":"PostPublicCalloutTemplateRequestCommonEventTypeNamespace"},"PostPublicCalloutTemplateRequestCommonHmacAlgorithm":{"type":"string","enum":["MD5","SHA-1","SHA-224","SHA-256","SHA-384","SHA-512"],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n","title":"PostPublicCalloutTemplateRequestCommonHmacAlgorithm"},"PostPublicCalloutTemplateRequestCommonHmacOutputFormat":{"type":"string","enum":["BASE64","HEX"],"description":"The format of the signed data for HMAC authentication.\n","title":"PostPublicCalloutTemplateRequestCommonHmacOutputFormat"},"PostPublicCalloutTemplateRequestCommonHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PostPublicCalloutTemplateRequestCommonHttpMethod"},"POSTPublicCalloutTemplateRequestCommon":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with `https://`.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\nYou can add merge fields in the callout URL. For example, `https://mywebsite.com/zuora/{{DataSource.Account.Id}}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"calloutHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom callout headers. Each custom callout header consists of a header name and a header value.\n"},"calloutParams":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.\n"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"certificate":{"type":"string","description":"The SSL certificate for the domain of the callout receiver server specified in `calloutBaseurl`.\n\nThe value must be in PEM format, which typically starts with `-----BEGIN CERTIFICATE-----` and ends with `-----END CERTIFICATE-----`.\n\nSpecifying the SSL certificate can eliminate SSL certificate errors (HTTP status code 495) for callout notifications.\n"},"confirmSuccessFromResponseContent":{"type":"boolean","default":false,"description":"Indicates how Zuora determines whether callout notifications to your system succeed or fail:\n\n* If `false`, Zuora determines the result based solely on the HTTP response status code. This is the default value.\n\n* If `true`, and the HTTP response status code is 200, Zuora evaluates the callout response and considers the notification successful only if the `Content-Type` header is set to `application/json`, and the response body contains a `success` field set to `true`.\n"},"customRequestBody":{"type":"string","description":"Customized request body. This field is available only for callouts whose Content-Type in the request body is `application/json`. The value must be in JSON format and double quotes in the value must be escaped.\n\nYou can add merge fields to the request body. For example, `{\\\"AccountNumber\\\": \\\"{{DataSource.Account.AccountNumber}}\\\",\\\"AccountId\\\": \\\"{{DataSource.Account.Id}}\\\"}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nYou must set `useCustomRequestBody` to `true` if you want to customize the callout request body with this field. Alternatively, you can use the `calloutParams` field.\n"},"description":{"type":"string","maxLength":255,"description":"Description for the callout template."},"eventCategory":{"type":"number","format":"double","description":"The event category code for a standard event that the callout template relates to.\n\nThis field is required when creating callout templates for standard events.\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"},"eventTypeName":{"type":"string","minLength":1,"description":"The name of a custom event that the callout template relates to.\n\nThis field is required when creating callout templates for Zuora custom events, custom events, or custom scheduled events.\n\nIf this field is provided, you can specify the event namespace in the `eventTypeNamespace` field. \n"},"eventTypeNamespace":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestCommonEventTypeNamespace","default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n"},"hmacAlgorithm":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestCommonHmacAlgorithm","description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacData":{"type":"string","description":"The message to be authenticated for HMAC authentication.\n\nYou can use merge fields in this value:\n\n- `{{Request.Headers.<header_name>}}`: Refers to the value of a particular request header. For example, `{{Request.Headers.Date}}` refers to the value of the request header called `Date`.\n- `{{Request.Body}}`: Refers to the request body.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"hmacKey":{"type":"string","description":"The header key that Zuora uses to send the header value for HMAC authentication. The header value is specified in the `hmacValue` field and typically contains the signed data.\n"},"hmacOutputFormat":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestCommonHmacOutputFormat","description":"The format of the signed data for HMAC authentication.\n"},"hmacSecret":{"type":"string","description":"The shared secret key that Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacValue":{"type":"string","description":"The header value for HMAC authentication. The header key is specified in the `hmacKey` field.\n\nYou can use merge fields in this value:\n\n- `{{Request.HMAC.Signed}}`: Refers to the signed data.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nThe following is a header value example: `The algorithm is SHA-256 and the signed data is {{Request.HMAC.Signed}}`.\n"},"httpMethod":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestCommonHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template. It must be unique across all callout templates."},"useCustomRequestBody":{"type":"boolean","description":"Indicates whether to enable the customized request body configured in the `customRequestBody` field.\n"}},"required":["calloutBaseurl","httpMethod","name"],"description":"Common information for callout templates.\n","title":"POSTPublicCalloutTemplateRequestCommon"},"PostPublicCalloutTemplateRequestBasicAuthenticationEventTypeNamespace":{"type":"string","enum":["user.notification","com.zuora.notification"],"default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n","title":"PostPublicCalloutTemplateRequestBasicAuthenticationEventTypeNamespace"},"PostPublicCalloutTemplateRequestBasicAuthenticationHmacAlgorithm":{"type":"string","enum":["MD5","SHA-1","SHA-224","SHA-256","SHA-384","SHA-512"],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n","title":"PostPublicCalloutTemplateRequestBasicAuthenticationHmacAlgorithm"},"PostPublicCalloutTemplateRequestBasicAuthenticationHmacOutputFormat":{"type":"string","enum":["BASE64","HEX"],"description":"The format of the signed data for HMAC authentication.\n","title":"PostPublicCalloutTemplateRequestBasicAuthenticationHmacOutputFormat"},"PostPublicCalloutTemplateRequestBasicAuthenticationHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PostPublicCalloutTemplateRequestBasicAuthenticationHttpMethod"},"POSTPublicCalloutTemplateRequestBasicAuthentication":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with `https://`.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\nYou can add merge fields in the callout URL. For example, `https://mywebsite.com/zuora/{{DataSource.Account.Id}}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"calloutHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom callout headers. Each custom callout header consists of a header name and a header value.\n"},"calloutParams":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.\n"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"certificate":{"type":"string","description":"The SSL certificate for the domain of the callout receiver server specified in `calloutBaseurl`.\n\nThe value must be in PEM format, which typically starts with `-----BEGIN CERTIFICATE-----` and ends with `-----END CERTIFICATE-----`.\n\nSpecifying the SSL certificate can eliminate SSL certificate errors (HTTP status code 495) for callout notifications.\n"},"confirmSuccessFromResponseContent":{"type":"boolean","default":false,"description":"Indicates how Zuora determines whether callout notifications to your system succeed or fail:\n\n* If `false`, Zuora determines the result based solely on the HTTP response status code. This is the default value.\n\n* If `true`, and the HTTP response status code is 200, Zuora evaluates the callout response and considers the notification successful only if the `Content-Type` header is set to `application/json`, and the response body contains a `success` field set to `true`.\n"},"customRequestBody":{"type":"string","description":"Customized request body. This field is available only for callouts whose Content-Type in the request body is `application/json`. The value must be in JSON format and double quotes in the value must be escaped.\n\nYou can add merge fields to the request body. For example, `{\\\"AccountNumber\\\": \\\"{{DataSource.Account.AccountNumber}}\\\",\\\"AccountId\\\": \\\"{{DataSource.Account.Id}}\\\"}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nYou must set `useCustomRequestBody` to `true` if you want to customize the callout request body with this field. Alternatively, you can use the `calloutParams` field.\n"},"description":{"type":"string","maxLength":255,"description":"Description for the callout template."},"eventCategory":{"type":"number","format":"double","description":"The event category code for a standard event that the callout template relates to.\n\nThis field is required when creating callout templates for standard events.\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"},"eventTypeName":{"type":"string","minLength":1,"description":"The name of a custom event that the callout template relates to.\n\nThis field is required when creating callout templates for Zuora custom events, custom events, or custom scheduled events.\n\nIf this field is provided, you can specify the event namespace in the `eventTypeNamespace` field. \n"},"eventTypeNamespace":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestBasicAuthenticationEventTypeNamespace","default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n"},"hmacAlgorithm":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestBasicAuthenticationHmacAlgorithm","description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacData":{"type":"string","description":"The message to be authenticated for HMAC authentication.\n\nYou can use merge fields in this value:\n\n- `{{Request.Headers.<header_name>}}`: Refers to the value of a particular request header. For example, `{{Request.Headers.Date}}` refers to the value of the request header called `Date`.\n- `{{Request.Body}}`: Refers to the request body.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"hmacKey":{"type":"string","description":"The header key that Zuora uses to send the header value for HMAC authentication. The header value is specified in the `hmacValue` field and typically contains the signed data.\n"},"hmacOutputFormat":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestBasicAuthenticationHmacOutputFormat","description":"The format of the signed data for HMAC authentication.\n"},"hmacSecret":{"type":"string","description":"The shared secret key that Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacValue":{"type":"string","description":"The header value for HMAC authentication. The header key is specified in the `hmacKey` field.\n\nYou can use merge fields in this value:\n\n- `{{Request.HMAC.Signed}}`: Refers to the signed data.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nThe following is a header value example: `The algorithm is SHA-256 and the signed data is {{Request.HMAC.Signed}}`.\n"},"httpMethod":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestBasicAuthenticationHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template. It must be unique across all callout templates."},"useCustomRequestBody":{"type":"boolean","description":"Indicates whether to enable the customized request body configured in the `customRequestBody` field.\n"},"requiredAuth":{"type":"boolean","description":"Indicates whether Basic authentication is enabled for the callout.\n\nWhen creating callout templates with Basic authentication enabled, you must set this field to `true` and specify the username and password in `calloutAuth`.\n"},"calloutAuth":{"$ref":"#/components/schemas/CalloutAuth"}},"required":["calloutBaseurl","httpMethod","name","requiredAuth"],"description":"The Basic Authentication information for callout templates.\n","title":"POSTPublicCalloutTemplateRequestBasicAuthentication"},"PostPublicCalloutTemplateRequestOauth2AuthenticationEventTypeNamespace":{"type":"string","enum":["user.notification","com.zuora.notification"],"default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n","title":"PostPublicCalloutTemplateRequestOauth2AuthenticationEventTypeNamespace"},"PostPublicCalloutTemplateRequestOauth2AuthenticationHmacAlgorithm":{"type":"string","enum":["MD5","SHA-1","SHA-224","SHA-256","SHA-384","SHA-512"],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n","title":"PostPublicCalloutTemplateRequestOauth2AuthenticationHmacAlgorithm"},"PostPublicCalloutTemplateRequestOauth2AuthenticationHmacOutputFormat":{"type":"string","enum":["BASE64","HEX"],"description":"The format of the signed data for HMAC authentication.\n","title":"PostPublicCalloutTemplateRequestOauth2AuthenticationHmacOutputFormat"},"PostPublicCalloutTemplateRequestOauth2AuthenticationHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PostPublicCalloutTemplateRequestOauth2AuthenticationHttpMethod"},"POSTPublicCalloutTemplateRequestOauth2Authentication":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout. The default is `true`."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with `https://`.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\nYou can add merge fields in the callout URL. For example, `https://mywebsite.com/zuora/{{DataSource.Account.Id}}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"calloutHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom callout headers. Each custom callout header consists of a header name and a header value.\n"},"calloutParams":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.\n"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"certificate":{"type":"string","description":"The SSL certificate for the domain of the callout receiver server specified in `calloutBaseurl`.\n\nThe value must be in PEM format, which typically starts with `-----BEGIN CERTIFICATE-----` and ends with `-----END CERTIFICATE-----`.\n\nSpecifying the SSL certificate can eliminate SSL certificate errors (HTTP status code 495) for callout notifications.\n"},"confirmSuccessFromResponseContent":{"type":"boolean","default":false,"description":"Indicates how Zuora determines whether callout notifications to your system succeed or fail:\n\n* If `false`, Zuora determines the result based solely on the HTTP response status code. This is the default value.\n\n* If `true`, and the HTTP response status code is 200, Zuora evaluates the callout response and considers the notification successful only if the `Content-Type` header is set to `application/json`, and the response body contains a `success` field set to `true`.\n"},"customRequestBody":{"type":"string","description":"Customized request body. This field is available only for callouts whose Content-Type in the request body is `application/json`. The value must be in JSON format and double quotes in the value must be escaped.\n\nYou can add merge fields to the request body. For example, `{\\\"AccountNumber\\\": \\\"{{DataSource.Account.AccountNumber}}\\\",\\\"AccountId\\\": \\\"{{DataSource.Account.Id}}\\\"}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nYou must set `useCustomRequestBody` to `true` if you want to customize the callout request body with this field. Alternatively, you can use the `calloutParams` field.\n"},"description":{"type":"string","maxLength":255,"description":"Description for the callout template."},"eventCategory":{"type":"number","format":"double","description":"The event category code for a standard event that the callout template relates to.\n\nThis field is required when creating callout templates for standard events.\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"},"eventTypeName":{"type":"string","minLength":1,"description":"The name of a custom event that the callout template relates to.\n\nThis field is required when creating callout templates for Zuora custom events, custom events, or custom scheduled events.\n\nIf this field is provided, you can specify the event namespace in the `eventTypeNamespace` field. \n"},"eventTypeNamespace":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestOauth2AuthenticationEventTypeNamespace","default":"user.notification","description":"The namespace of the `eventTypeName` field. It indicates who created the event and which namespace the event is assigned to.\n\nSupported values are as follows:\n\n- `com.zuora.notification`: events that are created by Zuora. This value applies to Zuora custom events.\n- `user.notification`: events that are created by tenant users. This value applies to custom events and custom scheduled events. This is the default value. \n          \nFor example, if you want to create a callout template that relates to the `OrderActionProcessed` event, which is a Zuora custom event, you must specify `com.zuora.notification` for this field.\n"},"hmacAlgorithm":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestOauth2AuthenticationHmacAlgorithm","description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacData":{"type":"string","description":"The message to be authenticated for HMAC authentication.\n\nYou can use merge fields in this value:\n\n- `{{Request.Headers.<header_name>}}`: Refers to the value of a particular request header. For example, `{{Request.Headers.Date}}` refers to the value of the request header called `Date`.\n- `{{Request.Body}}`: Refers to the request body.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"hmacKey":{"type":"string","description":"The header key that Zuora uses to send the header value for HMAC authentication. The header value is specified in the `hmacValue` field and typically contains the signed data.\n"},"hmacOutputFormat":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestOauth2AuthenticationHmacOutputFormat","description":"The format of the signed data for HMAC authentication.\n"},"hmacSecret":{"type":"string","description":"The shared secret key that Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacValue":{"type":"string","description":"The header value for HMAC authentication. The header key is specified in the `hmacKey` field.\n\nYou can use merge fields in this value:\n\n- `{{Request.HMAC.Signed}}`: Refers to the signed data.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nThe following is a header value example: `The algorithm is SHA-256 and the signed data is {{Request.HMAC.Signed}}`.\n"},"httpMethod":{"$ref":"#/components/schemas/PostPublicCalloutTemplateRequestOauth2AuthenticationHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template. It must be unique across all callout templates."},"useCustomRequestBody":{"type":"boolean","description":"Indicates whether to enable the customized request body configured in the `customRequestBody` field.\n"},"requiredOauth2":{"type":"boolean","description":"Indicates whether OAuth 2.0 authentication is enabled for the callout.\n\nWhen creating callout templates with OAuth 2.0 authentication enabled, you must set this field to `true` and specify the OAuth 2.0 provider ID in `oauth2ProviderId`.\n"},"oauth2ProviderId":{"description":"The ID of the OAuth 2.0 provider in your tenant that provides access tokens for the callout. This field is required if `requiredOauth2` is `true`.\n\nFor more information about how to get the ID of an OAuth 2.0 provider, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Tenant_Management/A_Administrator_Settings/Add_an_OAuth_2.0_Provider#Retrieve_the_ID_of_an_OAuth_2.0_provider\" target=\"_blank\">Retrieve the ID of an OAuth 2.0 provider</a>.\n"}},"required":["calloutBaseurl","httpMethod","name","requiredOauth2"],"description":"The OAuth 2.0 Authentication information for callout templates.\n","title":"POSTPublicCalloutTemplateRequestOauth2Authentication"},"POSTPublicCalloutTemplateRequest":{"oneOf":[{"$ref":"#/components/schemas/POSTPublicCalloutTemplateRequestCommon"},{"$ref":"#/components/schemas/POSTPublicCalloutTemplateRequestBasicAuthentication"},{"$ref":"#/components/schemas/POSTPublicCalloutTemplateRequestOauth2Authentication"}],"title":"POSTPublicCalloutTemplateRequest"},"PutPublicCalloutTemplateRequestCommonHmacAlgorithm":{"type":"string","enum":["MD5","SHA-1","SHA-224","SHA-256","SHA-384","SHA-512"],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n","title":"PutPublicCalloutTemplateRequestCommonHmacAlgorithm"},"PutPublicCalloutTemplateRequestCommonHmacOutputFormat":{"type":"string","enum":["BASE64","HEX"],"description":"The format of the signed data for HMAC authentication.\n","title":"PutPublicCalloutTemplateRequestCommonHmacOutputFormat"},"PutPublicCalloutTemplateRequestCommonHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PutPublicCalloutTemplateRequestCommonHttpMethod"},"PUTPublicCalloutTemplateRequestCommon":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with `https://`.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\nYou can add merge fields in the callout URL. For example, `https://mywebsite.com/zuora/{{DataSource.Account.Id}}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"calloutHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom callout headers. Each custom callout header consists of a header name and a header value.\n"},"calloutParams":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.\n"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"certificate":{"type":"string","description":"The SSL certificate for the domain of the callout receiver server specified in `calloutBaseurl`.\n\nThe value must be in PEM format, which typically starts with `-----BEGIN CERTIFICATE-----` and ends with `-----END CERTIFICATE-----`.\n\nSpecifying the SSL certificate can eliminate SSL certificate errors (HTTP status code 495) for callout notifications.\n"},"confirmSuccessFromResponseContent":{"type":"boolean","default":false,"description":"Indicates how Zuora determines whether callout notifications to your system succeed or fail:\n\n* If `false`, Zuora determines the result based solely on the HTTP response status code. This is the default value.\n\n* If `true`, and the HTTP response status code is 200, Zuora evaluates the callout response and considers the notification successful only if the `Content-Type` header is set to `application/json`, and the response body contains a `success` field set to `true`.\n"},"customRequestBody":{"type":"string","description":"Customized request body. This field is available only for callouts whose Content-Type in the request body is `application/json`. The value must be in JSON format and double quotes in the value must be escaped.\n\nYou can add merge fields to the request body. For example, `{\\\"AccountNumber\\\": \\\"{{DataSource.Account.AccountNumber}}\\\",\\\"AccountId\\\": \\\"{{DataSource.Account.Id}}\\\"}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nYou must set `useCustomRequestBody` to `true` if you want to customize the callout request body with this field. Alternatively, you can use the `calloutParams` field.\n"},"description":{"type":"string","maxLength":255,"description":"Description for the callout template."},"hmacAlgorithm":{"$ref":"#/components/schemas/PutPublicCalloutTemplateRequestCommonHmacAlgorithm","description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacData":{"type":"string","description":"The message to be authenticated for HMAC authentication.\n\nYou can use merge fields in this value:\n\n- `{{Request.Headers.<header_name>}}`: Refers to the value of a particular request header. For example, `{{Request.Headers.Date}}` refers to the value of the request header called `Date`.\n- `{{Request.Body}}`: Refers to the request body.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"hmacKey":{"type":"string","description":"The header key that Zuora uses to send the header value for HMAC authentication. The header value is specified in the `hmacValue` field and typically contains the signed data.\n"},"hmacOutputFormat":{"$ref":"#/components/schemas/PutPublicCalloutTemplateRequestCommonHmacOutputFormat","description":"The format of the signed data for HMAC authentication.\n"},"hmacSecret":{"type":"string","description":"The shared secret key that Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacValue":{"type":"string","description":"The header value for HMAC authentication. The header key is specified in the `hmacKey` field.\n\nYou can use merge fields in this value:\n\n- `{{Request.HMAC.Signed}}`: Refers to the signed data.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nThe following is a header value example: `The algorithm is SHA-256 and the signed data is {{Request.HMAC.Signed}}`.\n"},"httpMethod":{"$ref":"#/components/schemas/PutPublicCalloutTemplateRequestCommonHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template. It must be unique across all callout templates."},"useCustomRequestBody":{"type":"boolean","description":"Indicates whether to enable the customized request body configured in the `customRequestBody` field.\n"}},"description":"Common information for callout templates.\n","title":"PUTPublicCalloutTemplateRequestCommon"},"PutPublicCalloutTemplateRequestBasicAuthenticationHmacAlgorithm":{"type":"string","enum":["MD5","SHA-1","SHA-224","SHA-256","SHA-384","SHA-512"],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n","title":"PutPublicCalloutTemplateRequestBasicAuthenticationHmacAlgorithm"},"PutPublicCalloutTemplateRequestBasicAuthenticationHmacOutputFormat":{"type":"string","enum":["BASE64","HEX"],"description":"The format of the signed data for HMAC authentication.\n","title":"PutPublicCalloutTemplateRequestBasicAuthenticationHmacOutputFormat"},"PutPublicCalloutTemplateRequestBasicAuthenticationHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PutPublicCalloutTemplateRequestBasicAuthenticationHttpMethod"},"PUTPublicCalloutTemplateRequestBasicAuthentication":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with `https://`.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\nYou can add merge fields in the callout URL. For example, `https://mywebsite.com/zuora/{{DataSource.Account.Id}}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"calloutHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom callout headers. Each custom callout header consists of a header name and a header value.\n"},"calloutParams":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.\n"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"certificate":{"type":"string","description":"The SSL certificate for the domain of the callout receiver server specified in `calloutBaseurl`.\n\nThe value must be in PEM format, which typically starts with `-----BEGIN CERTIFICATE-----` and ends with `-----END CERTIFICATE-----`.\n\nSpecifying the SSL certificate can eliminate SSL certificate errors (HTTP status code 495) for callout notifications.\n"},"confirmSuccessFromResponseContent":{"type":"boolean","default":false,"description":"Indicates how Zuora determines whether callout notifications to your system succeed or fail:\n\n* If `false`, Zuora determines the result based solely on the HTTP response status code. This is the default value.\n\n* If `true`, and the HTTP response status code is 200, Zuora evaluates the callout response and considers the notification successful only if the `Content-Type` header is set to `application/json`, and the response body contains a `success` field set to `true`.\n"},"customRequestBody":{"type":"string","description":"Customized request body. This field is available only for callouts whose Content-Type in the request body is `application/json`. The value must be in JSON format and double quotes in the value must be escaped.\n\nYou can add merge fields to the request body. For example, `{\\\"AccountNumber\\\": \\\"{{DataSource.Account.AccountNumber}}\\\",\\\"AccountId\\\": \\\"{{DataSource.Account.Id}}\\\"}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nYou must set `useCustomRequestBody` to `true` if you want to customize the callout request body with this field. Alternatively, you can use the `calloutParams` field.\n"},"description":{"type":"string","maxLength":255,"description":"Description for the callout template."},"hmacAlgorithm":{"$ref":"#/components/schemas/PutPublicCalloutTemplateRequestBasicAuthenticationHmacAlgorithm","description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacData":{"type":"string","description":"The message to be authenticated for HMAC authentication.\n\nYou can use merge fields in this value:\n\n- `{{Request.Headers.<header_name>}}`: Refers to the value of a particular request header. For example, `{{Request.Headers.Date}}` refers to the value of the request header called `Date`.\n- `{{Request.Body}}`: Refers to the request body.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"hmacKey":{"type":"string","description":"The header key that Zuora uses to send the header value for HMAC authentication. The header value is specified in the `hmacValue` field and typically contains the signed data.\n"},"hmacOutputFormat":{"$ref":"#/components/schemas/PutPublicCalloutTemplateRequestBasicAuthenticationHmacOutputFormat","description":"The format of the signed data for HMAC authentication.\n"},"hmacSecret":{"type":"string","description":"The shared secret key that Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacValue":{"type":"string","description":"The header value for HMAC authentication. The header key is specified in the `hmacKey` field.\n\nYou can use merge fields in this value:\n\n- `{{Request.HMAC.Signed}}`: Refers to the signed data.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nThe following is a header value example: `The algorithm is SHA-256 and the signed data is {{Request.HMAC.Signed}}`.\n"},"httpMethod":{"$ref":"#/components/schemas/PutPublicCalloutTemplateRequestBasicAuthenticationHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template. It must be unique across all callout templates."},"useCustomRequestBody":{"type":"boolean","description":"Indicates whether to enable the customized request body configured in the `customRequestBody` field.\n"},"requiredAuth":{"type":"boolean","description":"Indicates whether Basic authentication is enabled for the callout.\n"},"calloutAuth":{"$ref":"#/components/schemas/CalloutAuth"}},"description":"The Basic Authentication information for callout templates.\n","title":"PUTPublicCalloutTemplateRequestBasicAuthentication"},"PutPublicCalloutTemplateRequestOauth2AuthenticationHmacAlgorithm":{"type":"string","enum":["MD5","SHA-1","SHA-224","SHA-256","SHA-384","SHA-512"],"description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n","title":"PutPublicCalloutTemplateRequestOauth2AuthenticationHmacAlgorithm"},"PutPublicCalloutTemplateRequestOauth2AuthenticationHmacOutputFormat":{"type":"string","enum":["BASE64","HEX"],"description":"The format of the signed data for HMAC authentication.\n","title":"PutPublicCalloutTemplateRequestOauth2AuthenticationHmacOutputFormat"},"PutPublicCalloutTemplateRequestOauth2AuthenticationHttpMethod":{"type":"string","enum":["POST","GET","PUT","PATCH","DELETE"],"description":"The HTTP method of the callout.","title":"PutPublicCalloutTemplateRequestOauth2AuthenticationHttpMethod"},"PUTPublicCalloutTemplateRequestOauth2Authentication":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the callout."},"calloutBaseurl":{"type":"string","format":"url","minLength":10,"description":"The callout URL. It must start with `https://`.\n\nZuora uses port 443 to send callout notifications by default. If you want to use other ports, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n\nYou can add merge fields in the callout URL. For example, `https://mywebsite.com/zuora/{{DataSource.Account.Id}}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"calloutHeaders":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for custom callout headers. Each custom callout header consists of a header name and a header value.\n"},"calloutParams":{"type":"object","additionalProperties":{"type":"string"},"description":"Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.\n"},"calloutRetry":{"type":"boolean","default":true,"description":"Specified whether to retry the callout when the callout fails. The default value is `true`."},"certificate":{"type":"string","description":"The SSL certificate for the domain of the callout receiver server specified in `calloutBaseurl`.\n\nThe value must be in PEM format, which typically starts with `-----BEGIN CERTIFICATE-----` and ends with `-----END CERTIFICATE-----`.\n\nSpecifying the SSL certificate can eliminate SSL certificate errors (HTTP status code 495) for callout notifications.\n"},"confirmSuccessFromResponseContent":{"type":"boolean","default":false,"description":"Indicates how Zuora determines whether callout notifications to your system succeed or fail:\n\n* If `false`, Zuora determines the result based solely on the HTTP response status code. This is the default value.\n\n* If `true`, and the HTTP response status code is 200, Zuora evaluates the callout response and considers the notification successful only if the `Content-Type` header is set to `application/json`, and the response body contains a `success` field set to `true`.\n"},"customRequestBody":{"type":"string","description":"Customized request body. This field is available only for callouts whose Content-Type in the request body is `application/json`. The value must be in JSON format and double quotes in the value must be escaped.\n\nYou can add merge fields to the request body. For example, `{\\\"AccountNumber\\\": \\\"{{DataSource.Account.AccountNumber}}\\\",\\\"AccountId\\\": \\\"{{DataSource.Account.Id}}\\\"}`. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/Create_Email_Templates/A_Merge_field_syntax_for_email_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nYou must set `useCustomRequestBody` to `true` if you want to customize the callout request body with this field. Alternatively, you can use the `calloutParams` field.\n"},"description":{"type":"string","maxLength":255,"description":"Description for the callout template."},"hmacAlgorithm":{"$ref":"#/components/schemas/PutPublicCalloutTemplateRequestOauth2AuthenticationHmacAlgorithm","description":"The hash function Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacData":{"type":"string","description":"The message to be authenticated for HMAC authentication.\n\nYou can use merge fields in this value:\n\n- `{{Request.Headers.<header_name>}}`: Refers to the value of a particular request header. For example, `{{Request.Headers.Date}}` refers to the value of the request header called `Date`.\n- `{{Request.Body}}`: Refers to the request body.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n"},"hmacKey":{"type":"string","description":"The header key that Zuora uses to send the header value for HMAC authentication. The header value is specified in the `hmacValue` field and typically contains the signed data.\n"},"hmacOutputFormat":{"$ref":"#/components/schemas/PutPublicCalloutTemplateRequestOauth2AuthenticationHmacOutputFormat","description":"The format of the signed data for HMAC authentication.\n"},"hmacSecret":{"type":"string","description":"The shared secret key that Zuora uses to generate the signed data for HMAC authentication.\n"},"hmacValue":{"type":"string","description":"The header value for HMAC authentication. The header key is specified in the `hmacKey` field.\n\nYou can use merge fields in this value:\n\n- `{{Request.HMAC.Signed}}`: Refers to the signed data.\n- Other merge fields: See <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Extensibility/Events_and_Notifications/AF_Manage_email_and_callout_templates/C_Merge_field_syntax_for_email_and_callout_templates\" target=\"_blank\">Merge field syntax for email and callout templates</a>.\n\nThe following is a header value example: `The algorithm is SHA-256 and the signed data is {{Request.HMAC.Signed}}`.\n"},"httpMethod":{"$ref":"#/components/schemas/PutPublicCalloutTemplateRequestOauth2AuthenticationHttpMethod","description":"The HTTP method of the callout."},"name":{"type":"string","maxLength":255,"description":"The name of the callout template. It must be unique across all callout templates."},"useCustomRequestBody":{"type":"boolean","description":"Indicates whether to enable the customized request body configured in the `customRequestBody` field.\n"},"requiredOauth2":{"type":"boolean","description":"Indicates whether OAuth 2.0 authentication is enabled for the callout.\n"},"oauth2ProviderId":{"description":"The ID of the OAuth 2.0 provider in your tenant that provides access tokens for the callout.\n\nFor more information about how to get the ID of an OAuth 2.0 provider, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Tenant_Management/A_Administrator_Settings/Add_an_OAuth_2.0_Provider#Retrieve_the_ID_of_an_OAuth_2.0_provider\" target=\"_blank\">Retrieve the ID of an OAuth 2.0 provider</a>.\n"}},"description":"The OAuth 2.0 Authentication information for callout templates.\n","title":"PUTPublicCalloutTemplateRequestOauth2Authentication"},"PUTPublicCalloutTemplateRequest":{"oneOf":[{"$ref":"#/components/schemas/PUTPublicCalloutTemplateRequestCommon"},{"$ref":"#/components/schemas/PUTPublicCalloutTemplateRequestBasicAuthentication"},{"$ref":"#/components/schemas/PUTPublicCalloutTemplateRequestOauth2Authentication"}],"title":"PUTPublicCalloutTemplateRequest"},"CreateOrUpdateReusableBlockFormatCategory":{"type":"string","enum":["Headers","Footers","Other"],"description":"The category of the reusable block. You can filter blocks by category when editing email templates in the UI.\n","title":"CreateOrUpdateReusableBlockFormatCategory"},"CreateOrUpdateReusableBlockFormat":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the reusable block. Only active blocks can be embedded into email templates.\n"},"category":{"$ref":"#/components/schemas/CreateOrUpdateReusableBlockFormatCategory","description":"The category of the reusable block. You can filter blocks by category when editing email templates in the UI.\n"},"content":{"type":"string","description":"The content of the reusable block, which is automatically inserted into email templates when sending email notifications.\n"},"id":{"type":"string","description":"ID of an existing reusable block. Specify this field if you want to update an existing reusable block. You must provide all fields when updating an existing reusable block.\n"},"name":{"type":"string","description":"The name of the reusable block. The value must be unique across all blocks.\n"},"number":{"type":"string","description":"The number of the reusable block. The value must be unique across all blocks.\n\nIf not specified, a unique value will be provided by default.\n"},"tags":{"type":"array","items":{"type":"string"},"description":"List of tags that help you quickly locate reusable blocks when editing email templates in the UI by using the tag filter.\n"}},"required":["category","content","name"],"title":"CreateOrUpdateReusableBlockFormat"},"CreateOrUpdateReusableBlockRequest":{"type":"object","properties":{"allowPartialSuccess":{"type":"boolean","description":"When set to false, the call will fail if one or multiple instances fail to import, and a 200 response is returned if all reusable blocks have been successfully updated. \nWhen set to true, a success (200) response is returned if one or more instances have imported successfully. All failed instances are also returned in the response.\n"},"reusableBlocks":{"type":"array","items":{"$ref":"#/components/schemas/CreateOrUpdateReusableBlockFormat"},"description":"A container for reusable blocks.\n"}},"title":"CreateOrUpdateReusableBlockRequest"},"CreateOrUpdateReusableBlockResponse":{"type":"object","properties":{"reasons":{"type":"array","items":{"type":"string"},"description":"Returns an empty array if the request succeeds.\n"}},"title":"CreateOrUpdateReusableBlockResponse"},"NotificationsReusableBlocksGetParametersCategory":{"type":"string","enum":["Headers","Footers","Other"],"title":"NotificationsReusableBlocksGetParametersCategory"},"GetPublicReusableBlockResponseCategory":{"type":"string","enum":["Headers","Footers","Other"],"description":"The category of the reusable block. You can filter blocks by category when editing email templates in the UI.\n","title":"GetPublicReusableBlockResponseCategory"},"GetPublicReusableBlockResponse":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the reusable block. Only active blocks can be embedded into email templates.\n"},"category":{"$ref":"#/components/schemas/GetPublicReusableBlockResponseCategory","description":"The category of the reusable block. You can filter blocks by category when editing email templates in the UI.\n"},"content":{"type":"string","description":"The content of the reusable block, which is automatically inserted into email templates when sending email notifications.\n"},"createdBy":{"type":"string","format":"uuid","description":"The ID of the user who created the reusable block.\n"},"createdOn":{"type":"string","format":"date-time","description":"The time when the reusable block was created.\n"},"id":{"type":"string","format":"uuid","description":"The ID of the reusable block.\n"},"name":{"type":"string","description":"The name of the reusable block. The value must be unique across all blocks.\n"},"number":{"type":"string","description":"The number of the reusable block. The value must be unique across all blocks.\n\nIf not specified, a unique value will be provided by default.\n"},"tags":{"type":"array","items":{"type":"string"},"description":"List of tags that help you quickly locate reusable blocks when editing email templates in the UI by using the tag filter.\n"},"updatedBy":{"type":"string","format":"uuid","description":"The ID of the user who updated the reusable block.\n"},"updatedOn":{"type":"string","format":"date-time","description":"TThe time when the reusable block was updated.\n"}},"title":"GetPublicReusableBlockResponse"},"Notifications_getReusableBlocks_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GetPublicReusableBlockResponse"}},"next":{"type":"string","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"}},"title":"Notifications_getReusableBlocks_Response_200"},"CreatePublicReusableBlockRequestCategory":{"type":"string","enum":["Headers","Footers","Other"],"description":"The category of the reusable block. You can filter blocks by category when editing email templates in the UI.\n","title":"CreatePublicReusableBlockRequestCategory"},"CreatePublicReusableBlockRequest":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the reusable block. Only active blocks can be embedded into email templates.\n"},"category":{"$ref":"#/components/schemas/CreatePublicReusableBlockRequestCategory","description":"The category of the reusable block. You can filter blocks by category when editing email templates in the UI.\n"},"content":{"type":"string","description":"The content of the reusable block, which is automatically inserted into email templates when sending email notifications.\n"},"name":{"type":"string","description":"The name of the reusable block. The value must be unique across all blocks.\n"},"number":{"type":"string","description":"The number of the reusable block. The value must be unique across all blocks.\n\nIf not specified, a unique value will be provided by default.\n"},"tags":{"type":"array","items":{"type":"string"},"description":"List of tags that help you quickly locate reusable blocks when editing email templates in the UI by using the tag filter.\n"}},"required":["category","content","name"],"title":"CreatePublicReusableBlockRequest"},"UpdatePublicReusableBlockRequestCategory":{"type":"string","enum":["Headers","Footers","Other"],"description":"The category of the reusable block. You can filter blocks by category when editing email templates in the UI.\n","title":"UpdatePublicReusableBlockRequestCategory"},"UpdatePublicReusableBlockRequest":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the reusable block. Only active blocks can be embedded into email templates.\n"},"category":{"$ref":"#/components/schemas/UpdatePublicReusableBlockRequestCategory","description":"The category of the reusable block. You can filter blocks by category when editing email templates in the UI.\n"},"content":{"type":"string","description":"The content of the reusable block, which is automatically inserted into email templates when sending email notifications.\n"},"name":{"type":"string","description":"The name of the reusable block. The value must be unique across all blocks.\n"},"number":{"type":"string","description":"The number of the reusable block. The value must be unique across all blocks.\n"},"tags":{"type":"array","items":{"type":"string"},"description":"List of tags that help you quickly locate reusable blocks when editing email templates in the UI by using the tag filter.\n"}},"title":"UpdatePublicReusableBlockRequest"},"UpdatePublicReusableBlockResponseCategory":{"type":"string","enum":["Headers","Footers","Other"],"description":"The category of the reusable block. You can filter blocks by category when editing email templates in the UI.\n","title":"UpdatePublicReusableBlockResponseCategory"},"UpdatePublicReusableBlockResponse":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"The status of the reusable block. Only active blocks can be embedded into email templates.\n"},"category":{"$ref":"#/components/schemas/UpdatePublicReusableBlockResponseCategory","description":"The category of the reusable block. You can filter blocks by category when editing email templates in the UI.\n"},"content":{"type":"string","description":"The content of the reusable block, which is automatically inserted into email templates when sending email notifications.\n"},"createdBy":{"type":"string","format":"uuid","description":"The ID of the user who created the reusable block.\n"},"createdOn":{"type":"string","format":"date-time","description":"The time when the reusable block was created.\n"},"id":{"type":"string","format":"uuid","description":"The ID of the reusable block.\n"},"name":{"type":"string","description":"The name of the reusable block. The value must be unique across all blocks.\n"},"number":{"type":"string","description":"The number of the reusable block. The value must be unique across all blocks.\n\nIf not specified, a unique value will be provided by default.\n"},"tags":{"type":"array","items":{"type":"string"},"description":"List of tags that help you quickly locate reusable blocks when editing email templates in the UI by using the tag filter.\n"},"updatedBy":{"type":"string","format":"uuid","description":"The ID of the user who updated the reusable block.\n"},"updatedOn":{"type":"string","format":"date-time","description":"TThe time when the reusable block was updated.\n"}},"title":"UpdatePublicReusableBlockResponse"},"NotificationsHistoryDeletionTaskResponseStatus":{"type":"string","enum":["RUNNING","FINISHED","FAILED"],"description":"The status of the notification history deletion task.","title":"NotificationsHistoryDeletionTaskResponseStatus"},"NotificationsHistoryDeletionTaskResponse":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","description":"The ID of the account whose notification histories are deleted by the current deletion task."},"createdBy":{"type":"string","format":"uuid","description":"The ID of the user who submits the notification history deletion task."},"createdOn":{"type":"integer","description":"The timestamp when the notification history deletion task is created."},"id":{"type":"string","format":"uuid","description":"The ID of the notification history deletion task."},"status":{"$ref":"#/components/schemas/NotificationsHistoryDeletionTaskResponseStatus","description":"The status of the notification history deletion task."},"tenantId":{"type":"string","description":"The ID of the tenant where the notification history deletion task runs."}},"description":"The notification history deletion task information.","title":"NotificationsHistoryDeletionTaskResponse"},"POSTResendCalloutNotifications":{"type":"array","items":{"type":"string"},"title":"POSTResendCalloutNotifications"},"ResendCalloutNotificationsFailedResponse":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response"}},"description":"The ID of a fail-to-resend callout notification history object, containing an object with the error code and message.\n\n**Note:** Multiple records of this field are allowed in the response. Each of them represents a fail-to-resend callout notification history.\n","title":"ResendCalloutNotificationsFailedResponse"},"POSTResendEmailNotifications":{"type":"array","items":{"type":"string"},"title":"POSTResendEmailNotifications"},"ResendEmailNotificationsFailedResponse":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response"}},"description":"The ID of a fail-to-resend email notification history object, containing an object with the error code and message.\n\n**Note:** Multiple records of this field are allowed in the response. Each of them represents a fail-to-resend email notification history.\n","title":"ResendEmailNotificationsFailedResponse"},"GETCalloutHistoryVOType":{"type":"object","properties":{"attemptedNum":{"type":"string","description":"The number of times the callout was retried.\n"},"createTime":{"type":"string","description":"The time that the calloutHistory record was made.\n"},"eventCategory":{"type":"string","description":"The event category for the callout.\n"},"eventContext":{"type":"string","description":"The context of the callout event.\n"},"notification":{"type":"string","description":"The name of the notification.\n"},"requestMethod":{"type":"string","description":"The request method set in notifications settings.\n"},"requestUrl":{"type":"string","description":"The base url set in notifications settings.\n"},"responseCode":{"type":"string","description":"The responseCode of the request.\n"},"responseContent":{"type":"string"}},"title":"GETCalloutHistoryVOType"},"GETCalloutHistoryVOsType":{"type":"object","properties":{"calloutHistories":{"type":"array","items":{"$ref":"#/components/schemas/GETCalloutHistoryVOType"},"description":"A container for callout histories.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETCalloutHistoryVOsType"},"GETEmailHistoryVOType":{"type":"object","properties":{"accountId":{"type":"string","description":"ID of an account.\n"},"bcc":{"type":"string","description":"Blind carbon copy recipients of the email.\n"},"cc":{"type":"string","description":"Carbon Copy recipients of the email.\n"},"errorMessage":{"type":"string","description":"null if the content of result is \"OK\". A description of the error if the content of result is not \"OK\".\n"},"eventCategory":{"type":"string","description":"The event category of the email.\n"},"fromEmail":{"type":"string","description":"The sender of the email.\n"},"notification":{"type":"string","description":"The name of the notification.\n"},"replyTo":{"type":"string","description":"The reply-to address as configured in the email template.\n"},"result":{"type":"string","description":"The result from the mail server of sending the email.\n"},"sendTime":{"type":"string","description":"The date and time the email was sent.\n"},"subject":{"type":"string","description":"The subject of the email.\n"},"toEmail":{"type":"string","description":"The intended recipient of the email.\n"}},"title":"GETEmailHistoryVOType"},"GETEmailHistoryVOsType":{"type":"object","properties":{"emailHistories":{"type":"array","items":{"$ref":"#/components/schemas/GETEmailHistoryVOType"},"description":"A container for email histories.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETEmailHistoryVOsType"},"EventType":{"type":"object","properties":{"description":{"type":"string","maxLength":1000,"description":"The description of the event type."},"displayName":{"type":"string","minLength":1,"maxLength":500,"description":"The display name for the event type."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"The name of the event. Should be unique, contain no space, and be in the pattern: ^[A-Za-z]{1,}[\\\\w\\\\-]*$"}},"required":["displayName","name"],"title":"EventType"},"EventTrigger":{"type":"object","properties":{"active":{"type":"boolean","description":"The status of the trigger."},"baseObject":{"type":"string","minLength":1,"maxLength":100,"description":"The base object that the trigger rule 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"},"condition":{"type":"string","minLength":1,"maxLength":5000,"description":"The JEXL expression to be evaluated against object changes. See above for more information and an example."},"description":{"type":"string","maxLength":1000,"description":"The description of the trigger."},"eventType":{"$ref":"#/components/schemas/EventType"},"id":{"type":"string","format":"uuid"}},"title":"EventTrigger"},"Custom_Event_Triggers_GET_EventTriggers_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EventTrigger"}},"next":{"type":"string","description":"The link to the next page. No value if it is last page."}},"title":"Custom Event Triggers_GET_EventTriggers_Response_200"},"PostEventTriggerRequest":{"type":"object","properties":{"active":{"type":"boolean","description":"The status of the event trigger."},"baseObject":{"type":"string","minLength":1,"maxLength":100,"description":"The base object that the trigger rule 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"},"condition":{"type":"string","minLength":1,"maxLength":5000,"description":"The JEXL expression to be evaluated against object changes. See above for more information and an example."},"description":{"type":"string","maxLength":1000,"description":"The description of the event trigger."},"eventType":{"$ref":"#/components/schemas/EventType"}},"required":["active","baseObject","condition","eventType"],"title":"PostEventTriggerRequest"},"PutEventTriggerRequestEventType":{"type":"object","properties":{"description":{"type":"string","maxLength":1000,"description":"The description for the event type."},"displayName":{"type":"string","minLength":1,"maxLength":500,"description":"The display name for the event type."}},"description":"The type of events to be triggered.","title":"PutEventTriggerRequestEventType"},"PutEventTriggerRequest":{"type":"object","properties":{"active":{"type":"boolean","description":"The status of the trigger."},"condition":{"type":"string","minLength":1,"maxLength":5000,"description":"The JEXL expression to be evaluated against object changes. See above for more information and an example."},"description":{"type":"string","maxLength":1000,"description":"The description of the trigger."},"eventType":{"$ref":"#/components/schemas/PutEventTriggerRequestEventType","description":"The type of events to be triggered."}},"title":"PutEventTriggerRequest"},"GetScheduledEventResponseParameters":{"type":"object","properties":{"description":{"type":"string","maxLength":255,"description":"The description of the parameter."},"displayName":{"type":"string","maxLength":255,"description":"The display name of the parameter."},"options":{"type":"array","items":{"type":"string"},"description":"The option values of the parameter."},"valueType":{"type":"string","description":"The type of the value."}},"description":"Definition of a filter rule parameter.","title":"GetScheduledEventResponseParameters"},"GetScheduledEventResponse":{"type":"object","properties":{"active":{"type":"boolean","description":"Indicate whether the scheduled event is active or inactive"},"apiField":{"type":"string","description":"The base field of the base object in the `apiObject` field, should be in date or timestamp format. The scheduled event notifications are triggered based on this date and the event parameters (before or after a specified number of days) from notification definitions. Should be specified in the pattern: ^[A-Z][\\\\w\\\\-]*$"},"apiObject":{"type":"string","description":"The base object that the scheduled event is defined upon. The base object should contain a date or timestamp format field. Should be specified in the pattern: ^[A-Z][\\\\w\\\\-]*$"},"condition":{"type":"string","description":"The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/). The scheduled event is triggered only if the condition is evaluated as true.\nThe rule might contain event context merge fields and data source merge fields. Data source merge fields must be from [the base object of the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects).\nScheduled events with invalid merge fields will fail to evaluate, thus will not be triggered. For example, to trigger an invoice due date scheduled event to only invoices with an amount over 1000, you would define the following condition:\n\n```Invoice.Amount > 1000.0```\n\n`Invoice.Amount` refers to the `Amount` field of the Zuora object `Invoice`.\n"},"cronExpression":{"type":"string","description":"The cron expression defines the time when scheduled event notifications will be sent."},"description":{"type":"string","description":"The description of the scheduled event."},"displayName":{"type":"string","description":"The display name of the scheduled event."},"id":{"type":"string","format":"uuid","description":"Scheduled event ID."},"name":{"type":"string","description":"The name of the scheduled event."},"namespace":{"type":"string","description":"The namespace of the scheduled event name in the `name` field."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/GetScheduledEventResponseParameters"},"description":"The parameter definitions of the filter rule. The names of the parameters must match with the filter rule and can't be duplicated. You should specify all the parameters when creating scheduled event notifications."}},"title":"GetScheduledEventResponse"},"Custom_Scheduled_Events_GET_ScheduledEvents_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GetScheduledEventResponse"}},"next":{"type":"string","description":"The link to the next page. No value if it is last page."}},"title":"Custom Scheduled Events_GET_ScheduledEvents_Response_200"},"PostScheduledEventRequestParametersValueType":{"type":"string","enum":["STRING","BYTE","SHORT","CHARACTER","INTEGER","LONG","FLOAT","DOUBLE","BOOLEAN","BIG_INTEGER","BIG_DECIMAL","LOCAL_DATE","LOCAL_DATE_TIME","TIMESTAMP","BYTE_ARRAY","SHORT_ARRAY","CHARACTER_ARRAY","INTEGER_ARRAY","FLOAT_ARRAY","DOUBLE_ARRAY","BOOLEAN_ARRAY","STRING_ARRAY","BIG_INTEGER_ARRAY","BIG_DECIMAL_ARRAY","LOCAL_DATE_ARRAY","LOCAL_DATE_TIME_ARRAY","TIMESTAMP_ARRAY"],"description":"The type of the value.","title":"PostScheduledEventRequestParametersValueType"},"PostScheduledEventRequestParameters":{"type":"object","properties":{"description":{"type":"string","maxLength":255,"description":"The description of the parameter."},"displayName":{"type":"string","maxLength":255,"description":"The display name of the parameter."},"options":{"type":"array","items":{"type":"string"},"description":"The option values of the parameter."},"valueType":{"$ref":"#/components/schemas/PostScheduledEventRequestParametersValueType","description":"The type of the value."}},"description":"Definition of a filter rule parameter.","title":"PostScheduledEventRequestParameters"},"PostScheduledEventRequest":{"type":"object","properties":{"active":{"type":"boolean","default":true,"description":"Indicate whether the scheduled event is active or inactive."},"apiField":{"type":"string","description":"The base field of the base object in the `apiObject` field, should be in date or timestamp format. The scheduled event notifications are triggered based on this date and the event parameters (before or after a specified number of days) from notification definitions. Should be specified in the pattern: ^[A-Z][\\\\w\\\\-]*$\n \nSee [Custom Scheduled Events](https://knowledgecenter.zuora.com/Central_Platform/Events_and_Notifications/A_Z_Custom_Scheduled_Events) for all available base fields.\n"},"apiObject":{"type":"string","description":"The base object that the scheduled event is defined upon. The base object should contain a date or timestamp format field. Should be specified in the pattern: ^[A-Z][\\\\w\\\\-]*$\n           \nSee [Custom Scheduled Events](https://knowledgecenter.zuora.com/Central_Platform/Events_and_Notifications/A_Z_Custom_Scheduled_Events) for all available base objects.\n"},"condition":{"type":"string","maxLength":65535,"description":"The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/). The scheduled event is triggered only if the condition is evaluated as true.\nThe rule might contain event context merge fields and data source merge fields. Data source merge fields must be from [the base object of the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects).\nScheduled events with invalid merge fields will fail to evaluate, thus will not be triggered. For example, to trigger an invoice due date scheduled event to only invoices with an amount over 1000, you would define the following condition:\n\n```Invoice.Amount > 1000.0```\n\n`Invoice.Amount` refers to the `Amount` field of the Zuora object `Invoice`.\n"},"description":{"type":"string","maxLength":1000,"description":"The description of the scheduled event."},"displayName":{"type":"string","minLength":1,"maxLength":500,"description":"The display name of the scheduled event."},"hours":{"type":"integer","minimum":0,"maximum":23,"description":"The scheduled time (hour) that the scheduled event notifications are sent. This time is based on the localized timezone of your tenant."},"minutes":{"type":"integer","minimum":0,"maximum":59,"description":"The scheduled time (minute) that the scheduled event notifications are sent. This time is based on the localized timezone of your tenant."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"The name of the scheduled event. Should be unique, contain no space, and be in the pattern: ^[A-Za-z]{1,}[\\\\w\\\\-]*$"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PostScheduledEventRequestParameters"},"description":"The parameter definitions of the filter rule. The names of the parameters must match with the filter rule and can't be duplicated. You should specify all the parameters when creating scheduled event notifications."}},"required":["apiField","apiObject","displayName","hours","minutes","name"],"description":"namespace.name pair should be unique universally","title":"PostScheduledEventRequest"},"PutScheduledEventRequestParametersValueType":{"type":"string","enum":["STRING","BYTE","SHORT","CHARACTER","INTEGER","LONG","FLOAT","DOUBLE","BOOLEAN","BIG_INTEGER","BIG_DECIMAL","LOCAL_DATE","LOCAL_DATE_TIME","TIMESTAMP","BYTE_ARRAY","SHORT_ARRAY","CHARACTER_ARRAY","INTEGER_ARRAY","FLOAT_ARRAY","DOUBLE_ARRAY","BOOLEAN_ARRAY","STRING_ARRAY","BIG_INTEGER_ARRAY","BIG_DECIMAL_ARRAY","LOCAL_DATE_ARRAY","LOCAL_DATE_TIME_ARRAY","TIMESTAMP_ARRAY"],"description":"The type of the value.","title":"PutScheduledEventRequestParametersValueType"},"PutScheduledEventRequestParameters":{"type":"object","properties":{"description":{"type":"string","maxLength":255,"description":"The description of the parameter."},"displayName":{"type":"string","maxLength":255,"description":"The display name of the parameter."},"options":{"type":"array","items":{"type":"string"},"description":"The option values of the parameter."},"valueType":{"$ref":"#/components/schemas/PutScheduledEventRequestParametersValueType","description":"The type of the value."}},"description":"Definition of a filter rule parameter.","title":"PutScheduledEventRequestParameters"},"PutScheduledEventRequest":{"type":"object","properties":{"active":{"type":"boolean","description":"Indicate whether the scheduled event is active or inactive"},"condition":{"type":"string","maxLength":65535,"description":"The filter rule conditions, written in [JEXL](http://commons.apache.org/proper/commons-jexl/). The scheduled event is triggered only if the condition is evaluated as true.\nThe rule might contain event context merge fields and data source merge fields. Data source merge fields must be from [the base object of the event or from the joined objects of the base object](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL#Data_Sources_and_Objects).\nScheduled events with invalid merge fields will fail to evaluate, thus will not be triggered. For example, to trigger an invoice due date scheduled event to only invoices with an amount over 1000, you would define the following condition:\n\n```Invoice.Amount > 1000.0```\n\n`Invoice.Amount` refers to the `Amount` field of the Zuora object `Invoice`.\n"},"description":{"type":"string","maxLength":1000,"description":"The description of the scheduled event."},"displayName":{"type":"string","minLength":1,"maxLength":500,"description":"The display name of the scheduled event."},"hours":{"type":"integer","minimum":0,"maximum":23,"description":"The scheduled time (hour) that the scheduled event notifications are sent. This time is based on the localized timezone of your tenant."},"minutes":{"type":"integer","minimum":0,"maximum":59,"description":"The scheduled time (minute) that the scheduled event notifications are sent. This time is based on the localized timezone of your tenant."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PutScheduledEventRequestParameters"},"description":"The parameters of the filter rule. The names of the parameters must match with the filter rule and can't be duplicated."}},"title":"PutScheduledEventRequest"},"ObjectsDefinitionsDefaultGetParametersSelect":{"type":"string","enum":["type"],"title":"ObjectsDefinitionsDefaultGetParametersSelect"},"CustomObjectAllFieldsDefinitionCreatedByIdFormat":{"type":"string","enum":["uuid"],"description":"The field data format","title":"CustomObjectAllFieldsDefinitionCreatedByIdFormat"},"CustomObjectAllFieldsDefinitionCreatedByIdOrigin":{"type":"string","enum":["system"],"description":"Specifies whether the field is a system field or a custom field","title":"CustomObjectAllFieldsDefinitionCreatedByIdOrigin"},"CustomObjectAllFieldsDefinitionCreatedByIdType":{"type":"string","enum":["string"],"description":"The field data type","title":"CustomObjectAllFieldsDefinitionCreatedByIdType"},"CustomObjectAllFieldsDefinitionCreatedById":{"type":"object","properties":{"format":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionCreatedByIdFormat","description":"The field data format"},"label":{"type":"string","description":"The UI name of the field"},"origin":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionCreatedByIdOrigin","description":"Specifies whether the field is a system field or a custom field"},"type":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionCreatedByIdType","description":"The field data type"}},"description":"The `CreatedById` field definition","title":"CustomObjectAllFieldsDefinitionCreatedById"},"CustomObjectAllFieldsDefinitionCreatedDateFormat":{"type":"string","enum":["date-time"],"description":"The field data format","title":"CustomObjectAllFieldsDefinitionCreatedDateFormat"},"CustomObjectAllFieldsDefinitionCreatedDateOrigin":{"type":"string","enum":["system"],"description":"Specifies the field is a system field","title":"CustomObjectAllFieldsDefinitionCreatedDateOrigin"},"CustomObjectAllFieldsDefinitionCreatedDateType":{"type":"string","enum":["string"],"description":"The field data type","title":"CustomObjectAllFieldsDefinitionCreatedDateType"},"CustomObjectAllFieldsDefinitionCreatedDate":{"type":"object","properties":{"format":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionCreatedDateFormat","description":"The field data format"},"origin":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionCreatedDateOrigin","description":"Specifies the field is a system field"},"type":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionCreatedDateType","description":"The field data type"}},"description":"The `CreatedDate` field definition","title":"CustomObjectAllFieldsDefinitionCreatedDate"},"CustomObjectAllFieldsDefinitionIdFormat":{"type":"string","enum":["uuid"],"description":"The field data format","title":"CustomObjectAllFieldsDefinitionIdFormat"},"CustomObjectAllFieldsDefinitionIdOrigin":{"type":"string","enum":["system"],"description":"Specifies whether the field is a system field or a custom field","title":"CustomObjectAllFieldsDefinitionIdOrigin"},"CustomObjectAllFieldsDefinitionIdType":{"type":"string","enum":["string"],"description":"The field data type","title":"CustomObjectAllFieldsDefinitionIdType"},"CustomObjectAllFieldsDefinitionId":{"type":"object","properties":{"format":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionIdFormat","description":"The field data format"},"label":{"type":"string","description":"The UI name of the field"},"origin":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionIdOrigin","description":"Specifies whether the field is a system field or a custom field"},"type":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionIdType","description":"The field data type"}},"description":"The `Id` field definition","title":"CustomObjectAllFieldsDefinitionId"},"CustomObjectAllFieldsDefinitionUpdatedByIdFormat":{"type":"string","enum":["uuid"],"description":"The field data format","title":"CustomObjectAllFieldsDefinitionUpdatedByIdFormat"},"CustomObjectAllFieldsDefinitionUpdatedByIdOrigin":{"type":"string","enum":["system"],"description":"Specifies whether the field is a system field or a custom field","title":"CustomObjectAllFieldsDefinitionUpdatedByIdOrigin"},"CustomObjectAllFieldsDefinitionUpdatedByIdType":{"type":"string","enum":["string"],"description":"The field data type","title":"CustomObjectAllFieldsDefinitionUpdatedByIdType"},"CustomObjectAllFieldsDefinitionUpdatedById":{"type":"object","properties":{"format":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionUpdatedByIdFormat","description":"The field data format"},"label":{"type":"string","description":"The UI name of the field"},"origin":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionUpdatedByIdOrigin","description":"Specifies whether the field is a system field or a custom field"},"type":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionUpdatedByIdType","description":"The field data type"}},"description":"The `UpdatedById` field definition","title":"CustomObjectAllFieldsDefinitionUpdatedById"},"CustomObjectAllFieldsDefinitionUpdatedDateFormat":{"type":"string","enum":["date-time"],"description":"The field data format","title":"CustomObjectAllFieldsDefinitionUpdatedDateFormat"},"CustomObjectAllFieldsDefinitionUpdatedDateOrigin":{"type":"string","enum":["system"],"description":"Specifies the field is a system field","title":"CustomObjectAllFieldsDefinitionUpdatedDateOrigin"},"CustomObjectAllFieldsDefinitionUpdatedDateType":{"type":"string","enum":["string"],"description":"The field data type","title":"CustomObjectAllFieldsDefinitionUpdatedDateType"},"CustomObjectAllFieldsDefinitionUpdatedDate":{"type":"object","properties":{"format":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionUpdatedDateFormat","description":"The field data format"},"origin":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionUpdatedDateOrigin","description":"Specifies the field is a system field"},"type":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionUpdatedDateType","description":"The field data type"}},"description":"The `UpdatedDate` field definition","title":"CustomObjectAllFieldsDefinitionUpdatedDate"},"CustomObjectAllFieldsDefinition":{"type":"object","properties":{"CreatedById":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionCreatedById","description":"The `CreatedById` field definition"},"CreatedDate":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionCreatedDate","description":"The `CreatedDate` field definition"},"Id":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionId","description":"The `Id` field definition"},"UpdatedById":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionUpdatedById","description":"The `UpdatedById` field definition"},"UpdatedDate":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinitionUpdatedDate","description":"The `UpdatedDate` field definition"}},"description":"The definitions of all the fields in the custom object definition","title":"CustomObjectAllFieldsDefinition"},"CustomObjectDefinitionSchemaRelationshipsItemsCardinality":{"type":"string","enum":["manyToOne","oneToMany"],"default":"manyToOne","description":"The cardinality of the relationship from this object to another object.\n\nA `manyToOne` relationship means this object is the child object (the \"many\" side), and the referenced object (the \"one\" side) is the parent.\n\nA `oneToMany` relationship means this object is the parent object (the \"one\" side), and the referenced object (the \"many\" side) is the child.\n","title":"CustomObjectDefinitionSchemaRelationshipsItemsCardinality"},"FieldsAdditionalProperties":{"type":"object","additionalProperties":{"type":"string"},"description":"Field mappings in the form of `<this-object-field-name>`: `<other-object-field-name>`.\n","title":"FieldsAdditionalProperties"},"CustomObjectDefinitionSchemaRelationshipsItemsRecordConstraintsCreate":{"type":"object","properties":{"enforceValidMapping":{"type":"boolean","description":"Specifies whether Zuora validates the values of mapped fields\nin custom object records.\n"}},"title":"CustomObjectDefinitionSchemaRelationshipsItemsRecordConstraintsCreate"},"CustomObjectDefinitionSchemaRelationshipsItemsRecordConstraints":{"type":"object","properties":{"create":{"$ref":"#/components/schemas/CustomObjectDefinitionSchemaRelationshipsItemsRecordConstraintsCreate"}},"description":"Specifies contraints to apply to custom object records.\n","title":"CustomObjectDefinitionSchemaRelationshipsItemsRecordConstraints"},"CustomObjectDefinitionSchemaRelationshipsItems":{"type":"object","properties":{"cardinality":{"$ref":"#/components/schemas/CustomObjectDefinitionSchemaRelationshipsItemsCardinality","default":"manyToOne","description":"The cardinality of the relationship from this object to another object.\n\nA `manyToOne` relationship means this object is the child object (the \"many\" side), and the referenced object (the \"one\" side) is the parent.\n\nA `oneToMany` relationship means this object is the parent object (the \"one\" side), and the referenced object (the \"many\" side) is the child.\n"},"fields":{"$ref":"#/components/schemas/FieldsAdditionalProperties"},"namespace":{"type":"string","description":"The namespace where the related object is located"},"object":{"type":"string","description":"The API name of the related object"},"recordConstraints":{"$ref":"#/components/schemas/CustomObjectDefinitionSchemaRelationshipsItemsRecordConstraints","description":"Specifies contraints to apply to custom object records.\n"}},"title":"CustomObjectDefinitionSchemaRelationshipsItems"},"CustomObjectDefinitionSchemaType":{"type":"string","enum":["object"],"description":"The custom object definition type. Can only be `object` currently.","title":"CustomObjectDefinitionSchemaType"},"CustomObjectDefinitionSchema":{"type":"object","properties":{"auditable":{"type":"array","items":{"type":"string"},"description":"The set of fields which Audit Trail tracks and records changes of."},"enableCreateRecordAuditing":{"type":"boolean","description":"Indicates whether to audit the creation of custom object records of this custom object definition."},"enableDeleteRecordAuditing":{"type":"boolean","description":"Indicates whether to audit the deletion of custom object records of this custom object definition."},"filterable":{"type":"array","items":{"type":"string"},"description":"The set of fields that are allowed to be queried on. Queries on non-filterable fields will be rejected. You can not change a non-filterable field to filterable."},"label":{"type":"string","description":"A label for the custom object"},"object":{"type":"string","description":"The API name of the custom object"},"properties":{"$ref":"#/components/schemas/CustomObjectAllFieldsDefinition"},"relationships":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectDefinitionSchemaRelationshipsItems"},"description":"An array of relationships with Zuora objects or other custom objects"},"required":{"type":"array","items":{"type":"string"},"description":"The required fields of the custom object definition. You can change required fields to optional. However, you can only change optional fields to required on the custom objects with no records."},"type":{"$ref":"#/components/schemas/CustomObjectDefinitionSchemaType","description":"The custom object definition type. Can only be `object` currently."},"unique":{"type":"array","items":{"type":"string"},"description":"The fields with unique constraints."}},"description":"The schema of the custom object definition","title":"CustomObjectDefinitionSchema"},"CustomObjectDefinition":{"type":"object","properties":{"CreatedById":{"type":"string","format":"uuid","description":"The creator's Id"},"CreatedDate":{"type":"string","format":"date-time","description":"The creation time of the custom object definition in date-time format."},"Id":{"type":"string","format":"uuid","description":"The unique Id of the custom object definition"},"UpdatedById":{"type":"string","format":"uuid","description":"The modifier's Id"},"UpdatedDate":{"type":"string","format":"date-time","description":"The update time of the custom object definition in date-time format."},"schema":{"$ref":"#/components/schemas/CustomObjectDefinitionSchema","description":"The schema of the custom object definition"},"type":{"type":"string","description":"The API name of the custom object"}},"title":"CustomObjectDefinition"},"CustomObjectDefinitions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CustomObjectDefinition"},"description":"The custom object definitions. This object maps types to custom object definitions.","title":"CustomObjectDefinitions"},"GETAllCustomObjectDefinitionsInNamespaceResponse":{"type":"object","properties":{"count":{"type":"integer","description":"The number of objects in the `definitions` object. The value of this field is the number of custom object definitions in the namespace."},"definitions":{"$ref":"#/components/schemas/CustomObjectDefinitions"}},"title":"GETAllCustomObjectDefinitionsInNamespaceResponse"},"PostCustomObjectDefinitionFieldDefinitionRequest":{"type":"object","properties":{"displayName":{"type":"boolean","description":"Indicates whether to use this field as the display name of the custom object when being linked to another custom object.\n\nThis field applies only to the Text custom field type:\n\n- The `type` field is `string`.\n- The `enum` field is not specified.\n"},"format":{"type":"string","description":"The data format of the custom field"},"label":{"type":"string","description":"The UI label of the custom field"},"maxLength":{"type":"integer","description":"The maximum length of string that can be stored in the custom field.\n\nThis field applies only to the following custom field types:\n\n- Text:\n  - The `type` field is `string`.\n  - The `format` field is not specified or is `url`.\n  - The `enum` field is not specified.\n- Long Text:\n  - The `type` field is `string`.\n  - The `format` field is `long-text`.\n- Picklist:\n  - The `type` field is `string`.\n  - The `enum` field is specified.\n  - The `multiselect` field is not specified or is `false`.\n- Multiselect:\n  - The `type` field is `string`.\n  - The `enum` field is specified.\n  - The `multiselect` field is `true`.\n"},"multiselect":{"type":"boolean","description":"Indicates whether this is a multiselect custom field.\n\nThis field applies only to the Picklist or Multiselect custom field types:\n\n- The `type` field is `string`.\n- The `maxLength` field is specified.\n- The `enum` field is specified.\n"},"type":{"type":"string","description":"The data type of the custom field"}},"required":["label","type"],"title":"PostCustomObjectDefinitionFieldDefinitionRequest"},"PostCustomObjectDefinitionFieldsDefinitionRequest":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PostCustomObjectDefinitionFieldDefinitionRequest"},"title":"PostCustomObjectDefinitionFieldsDefinitionRequest"},"PostCustomObjectDefinitionsRequestDefinitionRelationshipsItemsCardinality":{"type":"string","enum":["manyToOne"],"description":"The cardinality of the relationship from this object to another object.\n\nOnly the `manyToOne` cardinality can be used when creating relationships.  A relationship with `oneToMany` cardinality is created implicitly when a `manyToOne` relationship is created.\n\nA custom object definition can have a maximum of 2 `manyToOne` relationships.\n","title":"PostCustomObjectDefinitionsRequestDefinitionRelationshipsItemsCardinality"},"FieldsAdditionalPropertiesForPostDefinition":{"type":"object","additionalProperties":{"type":"string"},"description":"Field mappings in the form of `<this-object-field-name>`: `<other-object-field-name>`. Usually the `<other-object-field-name>` can only be the `Id` field of the related object. Two exceptions are Subscription Name and Rate Plan Charge Number as both of them are unique.\n","title":"FieldsAdditionalPropertiesForPostDefinition"},"PostCustomObjectDefinitionsRequestDefinitionRelationshipsItemsRecordConstraintsCreate":{"type":"object","properties":{"enforceValidMapping":{"type":"boolean","default":true,"description":"Specifies whether Zuora validates the values of mapped fields\nin custom object records.\n\nBy default, Zuora validates the values of mapped fields\nin custom object records. For example, if the\ncustom object definition has a field called `AccountId__c`\nthat is mapped to the `Id` field of the `account` object,\nZuora verifies that the value of `AccountId__c` is a valid\naccount ID when a custom object record is created.\nIf the value of `AccountId__c` is not a valid account ID,\nthe operation fails.\n"}},"title":"PostCustomObjectDefinitionsRequestDefinitionRelationshipsItemsRecordConstraintsCreate"},"PostCustomObjectDefinitionsRequestDefinitionRelationshipsItemsRecordConstraints":{"type":"object","properties":{"create":{"$ref":"#/components/schemas/PostCustomObjectDefinitionsRequestDefinitionRelationshipsItemsRecordConstraintsCreate"}},"description":"Specifies contraints to apply to custom object records.\n","title":"PostCustomObjectDefinitionsRequestDefinitionRelationshipsItemsRecordConstraints"},"PostCustomObjectDefinitionsRequestDefinitionRelationshipsItems":{"type":"object","properties":{"cardinality":{"$ref":"#/components/schemas/PostCustomObjectDefinitionsRequestDefinitionRelationshipsItemsCardinality","description":"The cardinality of the relationship from this object to another object.\n\nOnly the `manyToOne` cardinality can be used when creating relationships.  A relationship with `oneToMany` cardinality is created implicitly when a `manyToOne` relationship is created.\n\nA custom object definition can have a maximum of 2 `manyToOne` relationships.\n"},"fields":{"$ref":"#/components/schemas/FieldsAdditionalPropertiesForPostDefinition"},"namespace":{"type":"string","description":"The namespace where the related object is located"},"object":{"type":"string","description":"The API name of the related object"},"recordConstraints":{"$ref":"#/components/schemas/PostCustomObjectDefinitionsRequestDefinitionRelationshipsItemsRecordConstraints","description":"Specifies contraints to apply to custom object records.\n"}},"required":["fields","namespace","object"],"title":"PostCustomObjectDefinitionsRequestDefinitionRelationshipsItems"},"PostCustomObjectDefinitionsRequestDefinition":{"type":"object","properties":{"auditable":{"type":"array","items":{"type":"string"},"description":"The set of fields which Audit Trail tracks and records changes of. You can change auditable fields to non-auditable, and vice versa. One custom object can have a maximum of five auditable fields."},"enableCreateRecordAuditing":{"type":"boolean","default":false,"description":"Indicates whether to audit the creation of custom object records of this custom object definition.\n\nNote that you must enable the **Custom Object Definition** audit trail setting in your Zuora tenant before auditing custom object record creation. For more information, see <a href=\"https://docs.zuora.com/en/zuora-platform/system-management/administrator-settings/manage-audit-trail-settings\" target=\"_blank\">Manage audit trail settings</a>.\n"},"enableDeleteRecordAuditing":{"type":"boolean","default":false,"description":"Indicates whether to audit the deletion of custom object records of this custom object definition.\n\nNote that you must enable the **Custom Object Definition** audit trail setting in your Zuora tenant before auditing custom object record deletion. For more information, see <a href=\"https://docs.zuora.com/en/zuora-platform/system-management/administrator-settings/manage-audit-trail-settings\" target=\"_blank\">Manage audit trail settings</a>.\n"},"filterable":{"type":"array","items":{"type":"string"},"description":"The set of fields that are allowed to be queried on. Queries on non-filterable fields will be rejected. You can not change a non-filterable field to filterable."},"label":{"type":"string","description":"A UI label for the custom object"},"object":{"type":"string","description":"The API name of the custom object"},"properties":{"$ref":"#/components/schemas/PostCustomObjectDefinitionFieldsDefinitionRequest"},"relationships":{"type":"array","items":{"$ref":"#/components/schemas/PostCustomObjectDefinitionsRequestDefinitionRelationshipsItems"},"description":"An array of relationships with Zuora objects or other custom objects. You can add at most 2 `manyToOne` relationships when creating a custom field definition."},"required":{"type":"array","items":{"type":"string"},"description":"The required fields of the custom object. You can change required fields to optional. However, you can only change optional fields to required on the custom objects with no records."},"unique":{"type":"array","items":{"type":"string"},"description":"The fields with unique constraints. You can remove the unique constraint on a field. However, you can only add a unique constraint to a filterable field if the custom object contains no record. One custom object can have a maximum of five fields with unique constraints."}},"required":["label","object"],"title":"PostCustomObjectDefinitionsRequestDefinition"},"PostCustomObjectDefinitionsRequestDefinitions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PostCustomObjectDefinitionsRequestDefinition"},"description":"The custom object definitions. This object maps types to custom object definitions.\n","title":"PostCustomObjectDefinitionsRequestDefinitions"},"PostCustomObjectDefinitionsRequest":{"type":"object","properties":{"definitions":{"$ref":"#/components/schemas/PostCustomObjectDefinitionsRequestDefinitions"}},"title":"PostCustomObjectDefinitionsRequest"},"CustomObjectCustomFieldDefinitionUpdateOrigin":{"type":"string","enum":["custom"],"description":"Specifies that this is a custom field","title":"CustomObjectCustomFieldDefinitionUpdateOrigin"},"CustomObjectCustomFieldDefinitionUpdate":{"type":"object","properties":{"default":{"type":"string","description":"Applicable if the `type` of the action is  `updateField`"},"description":{"type":"string","description":"Applicable if the `type` of the action is  `updateField`"},"displayName":{"type":"boolean","description":"Indicates whether to use this field as the display name of the custom object when being linked to another custom object.\n\nThis field applies only to the Text custom field type:\n\n- The `type` field is `string`.\n- The `enum` field is not specified.\n"},"format":{"type":"string","description":"The data format of the custom field"},"label":{"type":"string","description":"The UI label of the custom field"},"maxLength":{"type":"integer","description":"The maximum length of string that can be stored in the custom field.\n\nThis field applies only to the following custom field types:\n\n- Text:\n  - The `type` field is `string`.\n  - The `format` field is not specified or is `url`.\n  - The `enum` field is not specified.\n- Long Text:\n  - The `type` field is `string`.\n  - The `format` field is `long-text`.\n- Picklist:\n  - The `type` field is `string`.\n  - The `enum` field is specified.\n  - The `multiselect` field is not specified or is `false`.\n- Multiselect:\n  - The `type` field is `string`.\n  - The `enum` field is specified.\n  - The `multiselect` field is `true`.\n"},"multiselect":{"type":"boolean","description":"Indicates whether this is a multiselect custom field.\n\nThis field applies only to the creation of Picklist or Multiselect custom fields:\n\n- The action `type` field is `addField`.\n- The definition `type` field is `string`.\n- The `maxLength` field is specified.\n- The `enum` field is specified.\n"},"origin":{"$ref":"#/components/schemas/CustomObjectCustomFieldDefinitionUpdateOrigin","description":"Specifies that this is a custom field"},"type":{"type":"string","description":"The data type of the custom field"}},"description":"The custom field definition in the custom object","title":"CustomObjectCustomFieldDefinitionUpdate"},"UpdateCustomObjectCusotmField":{"type":"object","properties":{"auditable":{"type":"boolean","description":"Indicates whether Audit Trail will record changes of this custom field. You can change auditable fields to non-auditable, and vice versa. One custom object can have a maximum of five auditable fields.\n"},"definition":{"$ref":"#/components/schemas/CustomObjectCustomFieldDefinitionUpdate"},"filterable":{"type":"boolean","description":"Indicates whether the field is filterable or not. Applicable to `addField` and `updateField` actions.\n\nYou can change a filterable field to non-filterable and vice versa. You can also add a filterable field. One custom object can have a maximum of 10 filterable fields.\n\nNote that changing filterable fields triggers reindexing. It will take 12-24 hours before all your data are reindexed and available to query.\n"},"name":{"type":"string","description":"The name of the custom field to be updated"},"required":{"type":"boolean","description":"Indicates whether the field is required or optional.\n\nYou can update a required field to optional. On the other hand, you can only update an optional field to required on the custom object with no records.\n\nYou can only add a required field to the custom object with no records.\n"},"targetName":{"type":"string","description":"Required if the `type` of the action is `renameField`"},"unique":{"type":"boolean","description":"Indicates whether to specify a unique constraint to the field. You can remove the unique constraint on the field. However, you can only add a unique constraint to a filterable field if the custom object contains no record. One custom object can have a maximum of five fields with unique constraints.\n"}},"description":"A reference to a field.","title":"UpdateCustomObjectCusotmField"},"CustomObjectDefinitionUpdateActionRequestRelationshipCardinality":{"type":"string","enum":["manyToOne"],"description":"The cardinality of the relationship from this object to another object.\n\nOnly the `manyToOne` cardinality can be used when creating relationships.  A relationship with `oneToMany` cardinality is created implicitly when a `manyToOne` relationship is created.\n\nA custom object definition can have a maximum of 2 `manyToOne` relationships.\n","title":"CustomObjectDefinitionUpdateActionRequestRelationshipCardinality"},"CustomObjectDefinitionUpdateActionRequestRelationshipRecordConstraintsCreate":{"type":"object","properties":{"enforceValidMapping":{"type":"boolean","default":true,"description":"Specifies whether Zuora validates the values of mapped fields\nin custom object records.\n\nBy default, Zuora validates the values of mapped fields\nin custom object records. For example, if the\ncustom object definition has a field called `AccountId__c`\nthat is mapped to the `Id` field of the `account` object,\nZuora verifies that the value of `AccountId__c` is a valid\naccount ID when a custom object record is created.\nIf the value of `AccountId__c` is not a valid account ID,\nthe operation fails.\n"}},"title":"CustomObjectDefinitionUpdateActionRequestRelationshipRecordConstraintsCreate"},"CustomObjectDefinitionUpdateActionRequestRelationshipRecordConstraints":{"type":"object","properties":{"create":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionRequestRelationshipRecordConstraintsCreate"}},"description":"Specifies contraints to apply to custom object records.\n","title":"CustomObjectDefinitionUpdateActionRequestRelationshipRecordConstraints"},"CustomObjectDefinitionUpdateActionRequestRelationship":{"type":"object","properties":{"cardinality":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionRequestRelationshipCardinality","description":"The cardinality of the relationship from this object to another object.\n\nOnly the `manyToOne` cardinality can be used when creating relationships.  A relationship with `oneToMany` cardinality is created implicitly when a `manyToOne` relationship is created.\n\nA custom object definition can have a maximum of 2 `manyToOne` relationships.\n"},"fields":{"$ref":"#/components/schemas/FieldsAdditionalProperties"},"namespace":{"type":"string","description":"The namespace where the related object is located"},"object":{"type":"string","description":"The API name of the related object"},"recordConstraints":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionRequestRelationshipRecordConstraints","description":"Specifies contraints to apply to custom object records.\n"}},"required":["fields","namespace","object"],"title":"CustomObjectDefinitionUpdateActionRequestRelationship"},"CustomObjectDefinitionUpdateActionRequestType":{"type":"string","enum":["addField","deleteField","updateField","updateObject","renameField","addRelationship","deleteRelationship"],"description":"The type of the updating action on a custom object definition","title":"CustomObjectDefinitionUpdateActionRequestType"},"CustomObjectDefinitionUpdateActionRequest":{"type":"object","properties":{"description":{"type":"string","description":"Optional property for `updateObject` action"},"enableCreateRecordAuditing":{"type":"boolean","description":"Optional property for `updateObject` action.\n\nIndicates whether to audit the creation of custom object records of this custom object definition.\n\nNote that you must enable the **Custom Object Definition** audit trail setting in your Zuora tenant before auditing custom object record creation. For more information, see <a href=\"https://docs.zuora.com/en/zuora-platform/system-management/administrator-settings/manage-audit-trail-settings\" target=\"_blank\">Manage audit trail settings</a>.\n"},"enableDeleteRecordAuditing":{"type":"boolean","description":"Optional property for `updateObject` action.\n\nIndicates whether to audit the deletion of custom object records of this custom object definition.\n\nNote that you must enable the **Custom Object Definition** audit trail setting in your Zuora tenant before auditing custom object record deletion. For more information, see <a href=\"https://docs.zuora.com/en/zuora-platform/system-management/administrator-settings/manage-audit-trail-settings\" target=\"_blank\">Manage audit trail settings</a>.\n"},"field":{"$ref":"#/components/schemas/UpdateCustomObjectCusotmField"},"label":{"type":"string","description":"Optional property for `updateObject` action"},"namespace":{"type":"string","description":"The namespace of the custom object definition to be updated"},"object":{"type":"string","description":"The API name of the custom object definition to be updated"},"relationship":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionRequestRelationship"},"type":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionRequestType","description":"The type of the updating action on a custom object definition"}},"required":["namespace","object","type"],"title":"CustomObjectDefinitionUpdateActionRequest"},"MigrationUpdateCustomObjectDefinitionsRequest":{"type":"object","properties":{"actions":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionRequest"},"description":"The actions of updating custom object definitions, to be performed as parts of the migration.  Currently only one action per migration is supported."}},"required":["actions"],"title":"MigrationUpdateCustomObjectDefinitionsRequest"},"CustomObjectDefinitionUpdateActionResponseRelationshipCardinality":{"type":"string","enum":["manyToOne","oneToMany"],"default":"manyToOne","description":"The cardinality of the relationship from this object to another object.\n\nA `manyToOne` relationship means this object is the child object (the \"many\" side), and the referenced object (the \"one\" side) is the parent.\n\nA `oneToMany` relationship means this object is the parent object (the \"one\" side), and the referenced object (the \"many\" side) is the child.\n","title":"CustomObjectDefinitionUpdateActionResponseRelationshipCardinality"},"CustomObjectDefinitionUpdateActionResponseRelationshipRecordConstraintsCreate":{"type":"object","properties":{"enforceValidMapping":{"type":"boolean","default":true,"description":"Specifies whether Zuora validates the values of mapped fields\nin custom object records.\n"}},"title":"CustomObjectDefinitionUpdateActionResponseRelationshipRecordConstraintsCreate"},"CustomObjectDefinitionUpdateActionResponseRelationshipRecordConstraints":{"type":"object","properties":{"create":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionResponseRelationshipRecordConstraintsCreate"}},"description":"Specifies contraints to apply to custom object records.\n","title":"CustomObjectDefinitionUpdateActionResponseRelationshipRecordConstraints"},"CustomObjectDefinitionUpdateActionResponseRelationship":{"type":"object","properties":{"cardinality":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionResponseRelationshipCardinality","default":"manyToOne","description":"The cardinality of the relationship from this object to another object.\n\nA `manyToOne` relationship means this object is the child object (the \"many\" side), and the referenced object (the \"one\" side) is the parent.\n\nA `oneToMany` relationship means this object is the parent object (the \"one\" side), and the referenced object (the \"many\" side) is the child.\n"},"fields":{"$ref":"#/components/schemas/FieldsAdditionalProperties"},"namespace":{"type":"string","description":"The namespace where the related object is located"},"object":{"type":"string","description":"The API name of the related object"},"recordConstraints":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionResponseRelationshipRecordConstraints","description":"Specifies contraints to apply to custom object records.\n"}},"title":"CustomObjectDefinitionUpdateActionResponseRelationship"},"CustomObjectDefinitionUpdateActionResponseType":{"type":"string","enum":["addField","deleteField","updateField","updateObject","renameField","addRelationship","deleteRelationship"],"description":"The type of the updating action on a custom object definition","title":"CustomObjectDefinitionUpdateActionResponseType"},"CustomObjectDefinitionUpdateActionResponse":{"type":"object","properties":{"description":{"type":"string","description":"Optional property for `updateObject` action"},"enableCreateRecordAuditing":{"type":"boolean","description":"Indicates whether to audit the creation of custom object records of this custom object definition."},"enableDeleteRecordAuditing":{"type":"boolean","description":"Indicates whether to audit the deletion of custom object records of this custom object definition."},"field":{"$ref":"#/components/schemas/UpdateCustomObjectCusotmField"},"label":{"type":"string","description":"Optional property for `updateObject` action"},"namespace":{"type":"string","description":"The namespace of the custom object definition to be updated"},"object":{"type":"string","description":"The API name of the custom object definition to be updated"},"relationship":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionResponseRelationship"},"type":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionResponseType","description":"The type of the updating action on a custom object definition"}},"title":"CustomObjectDefinitionUpdateActionResponse"},"MigrationUpdateCustomObjectDefinitionsResponse":{"type":"object","properties":{"actions":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectDefinitionUpdateActionResponse"},"description":"The actions of updating custom object definitions, to be performed as parts of the migration.  Currently only one action per migration is supported."},"jobId":{"type":"string","format":"uuid","description":"The ID of the asynchronous job. It is available only when updating custom object definitions or advanced custom field definitions.\n\nUse the “Retrieve a custom object bulk job” operation to check whether the asynchronous job is completed.\n"}},"title":"MigrationUpdateCustomObjectDefinitionsResponse"},"CustomObjectRecordWithAllFields":{"type":"object","properties":{"CreatedById":{"type":"string","description":"The creator's Id"},"CreatedDate":{"type":"string","format":"date-time","description":"The record creation time in the date-time format"},"Id":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"The unique Id of the custom object record"},"UpdatedById":{"type":"string","description":"The modifier's Id"},"UpdatedDate":{"type":"string","format":"date-time","description":"The record modification time in the date-time format"},"type":{"type":"string","description":"The type of the custom object record. It is the API name of the custom object definition."}},"description":"Record data from an object","title":"CustomObjectRecordWithAllFields"},"QueryCustomObjectRecordsResponse":{"type":"object","properties":{"count":{"type":"integer","description":"The record count of the given custom object type"},"records":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectRecordWithAllFields"}}},"required":["count","records"],"title":"QueryCustomObjectRecordsResponse"},"CustomObjectRecordWithOnlyCustomFields":{"type":"object","properties":{},"title":"CustomObjectRecordWithOnlyCustomFields"},"PostCustomObjectRecordsRequest":{"type":"object","properties":{"allowPartialSuccess":{"type":"boolean","default":false,"description":"Indicates whether the records that pass the schema validation should be created when not all records in the request pass the schema validation."},"records":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectRecordWithOnlyCustomFields"},"description":"A list of custom object records to be created"}},"required":["records"],"title":"PostCustomObjectRecordsRequest"},"CustomObjectRecordsWithErrorCode":{"type":"string","enum":["71012520","71012521","71012522","71012523","71012524","71012525","71012526","71012530"],"description":"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","title":"CustomObjectRecordsWithErrorCode"},"CustomObjectRecordsWithError":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/CustomObjectRecordsWithErrorCode","description":"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"},"message":{"type":"string"},"record":{"$ref":"#/components/schemas/CustomObjectRecordWithAllFields"}},"title":"CustomObjectRecordsWithError"},"CustomObjectRecordsErrorResponse":{"type":"object","properties":{"code":{"type":"integer"},"details":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectRecordsWithError"}},"message":{"type":"string"}},"title":"CustomObjectRecordsErrorResponse"},"PostCustomObjectRecordsResponse":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/CustomObjectRecordsErrorResponse"},"records":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectRecordWithAllFields"},"description":"The custom object records that are succesfully created and stored"}},"title":"PostCustomObjectRecordsResponse"},"Error401":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string"}},"title":"Error401"},"ErrorResponse401Record":{"type":"object","properties":{"code":{"type":"integer"},"details":{"type":"array","items":{"$ref":"#/components/schemas/Error401"}},"message":{"type":"string"}},"title":"ErrorResponse401Record"},"CustomObjectRecordsThrottledResponse":{"type":"object","properties":{"code":{"type":"integer"},"details":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectRecordsWithError"}},"message":{"type":"string"}},"title":"CustomObjectRecordsThrottledResponse"},"CustomObjectRecordBatchUpdateMapping":{"type":"object","properties":{},"description":"Map of object Id and associated custom fields data to be updated","title":"CustomObjectRecordBatchUpdateMapping"},"CustomObjectRecordBatchActionType":{"type":"string","enum":["delete","update"],"description":"The type of the batch action","title":"CustomObjectRecordBatchActionType"},"CustomObjectRecordBatchAction":{"type":"object","properties":{"allowPartialSuccess":{"type":"boolean","default":false,"description":"Indicates whether the records that pass the schema validation should be updated when not all records in the request pass the schema validation.\n\nOnly applicable when `type` is `update`.\n"},"ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Ids of the custom object records that you want to delete. Each ID must be a string of 36 characters. Only applicable when `type` is `delete`."},"records":{"$ref":"#/components/schemas/CustomObjectRecordBatchUpdateMapping"},"type":{"$ref":"#/components/schemas/CustomObjectRecordBatchActionType","description":"The type of the batch action"}},"required":["type"],"description":"The batch action on custom object records","title":"CustomObjectRecordBatchAction"},"CustomObjectRecordBatchRequest":{"type":"object","properties":{"action":{"$ref":"#/components/schemas/CustomObjectRecordBatchAction"}},"required":["action"],"description":"Request of processing custom object records in batch.","title":"CustomObjectRecordBatchRequest"},"CustomObjectRecordsBatchUpdatePartialSuccessResponse":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/CustomObjectRecordsErrorResponse"}},"title":"CustomObjectRecordsBatchUpdatePartialSuccessResponse"},"ObjectsJobsGetParametersStatus":{"type":"string","enum":["pending","accepted","in_progress","completed","failed","cancelled"],"title":"ObjectsJobsGetParametersStatus"},"CustomObjectBulkJobResponseError":{"type":"object","properties":{"code":{"type":"integer","description":"The error code."},"message":{"type":"string","description":"The error message."}},"title":"CustomObjectBulkJobResponseError"},"CustomObjectBulkJobResponseNamespace":{"type":"string","enum":["default","com_zuora"],"description":"The namespace of the object. Custom objects belong to the `default` namespace. Zuora standard objects belong to the `com_zuora` namespace. Bulk job operations on the following Zuora standard objects are supported:\n* SavedQuery\n","title":"CustomObjectBulkJobResponseNamespace"},"CustomObjectBulkJobResponseOperation":{"type":"string","enum":["delete","create","update"],"description":"The operation that the bulk job performs. Only the users that have the \"Delete Custom Objects\" permission can submit a `delete` bulk job request. Only the users that have the \"Edit Custom Objects\" permission can submit a `create` or `update` bulk job request. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions) for more information.\n","title":"CustomObjectBulkJobResponseOperation"},"CustomObjectBulkJobResponseStatus":{"type":"string","enum":["accepted","pending","in_progress","completed","failed","cancelled"],"description":"The status of the bulk job:\n\n- `accepted` - The job has been accepted and is ready to process.\n- `pending` - The job is waiting for your input. You can use [Upload a file for a custom object bulk job](https://developer.zuora.com/api-references/api/operation/POST_UploadFileForCustomObjectBulkJob) to upload a file so that the job can start creating records.\n- `in_progress` - The job is processing.\n- `completed` - The job has completed.\n- `failed` - The job was unable to complete. You can use [List all errors for a custom object bulk job](https://developer.zuora.com/api-references/api/operation/GET_CustomObjectBulkJobErrors) to list the errors.\n- `cancelled` - The job was cancelled by the server.\n","title":"CustomObjectBulkJobResponseStatus"},"CustomObjectBulkJobResponse":{"type":"object","properties":{"CreatedById":{"type":"string","format":"uuid","description":"The ID of the user who creates the job."},"CreatedDate":{"type":"string","format":"date-time","description":"The time when the bulk job is created."},"Id":{"type":"string","format":"uuid","description":"The custom object bulk job ID."},"UpdatedById":{"type":"string","format":"uuid","description":"The ID of the user who updates the job."},"UpdatedDate":{"type":"string","format":"date-time","description":"The time when the bulk job is updated."},"error":{"$ref":"#/components/schemas/CustomObjectBulkJobResponseError"},"namespace":{"$ref":"#/components/schemas/CustomObjectBulkJobResponseNamespace","description":"The namespace of the object. Custom objects belong to the `default` namespace. Zuora standard objects belong to the `com_zuora` namespace. Bulk job operations on the following Zuora standard objects are supported:\n* SavedQuery\n"},"object":{"type":"string","description":"The object to that the bulk operation performs on."},"operation":{"$ref":"#/components/schemas/CustomObjectBulkJobResponseOperation","description":"The operation that the bulk job performs. Only the users that have the \"Delete Custom Objects\" permission can submit a `delete` bulk job request. Only the users that have the \"Edit Custom Objects\" permission can submit a `create` or `update` bulk job request. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions) for more information.\n"},"processingTime":{"type":"integer","description":"The amount of time elapsed, in milliseconds, from the submission to the completion of the bulk job."},"recordsProcessed":{"type":"integer","description":"The number of object records processed by the bulk job."},"status":{"$ref":"#/components/schemas/CustomObjectBulkJobResponseStatus","description":"The status of the bulk job:\n\n- `accepted` - The job has been accepted and is ready to process.\n- `pending` - The job is waiting for your input. You can use [Upload a file for a custom object bulk job](https://developer.zuora.com/api-references/api/operation/POST_UploadFileForCustomObjectBulkJob) to upload a file so that the job can start creating records.\n- `in_progress` - The job is processing.\n- `completed` - The job has completed.\n- `failed` - The job was unable to complete. You can use [List all errors for a custom object bulk job](https://developer.zuora.com/api-references/api/operation/GET_CustomObjectBulkJobErrors) to list the errors.\n- `cancelled` - The job was cancelled by the server.\n"}},"title":"CustomObjectBulkJobResponse"},"CustomObjectBulkJobResponseCollection":{"type":"object","properties":{"count":{"type":"integer","description":"The number of custom object bulk jobs returned in the result page set."},"cursor":{"type":"string","description":"The `cursor` points to the last job record of the current page."},"jobs":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectBulkJobResponse"},"description":"All custom object bulk jobs returned in the result page set."}},"required":["jobs"],"title":"CustomObjectBulkJobResponseCollection"},"CustomObjectBulkDeleteFilterConditionOperator":{"type":"string","enum":["EQ","GT","LT","GE","LE"],"title":"CustomObjectBulkDeleteFilterConditionOperator"},"CustomObjectBulkDeleteFilterCondition":{"type":"object","properties":{"field":{"type":"string","description":"The object field that is evaluated. Only filterable fields can be evaluated in the filter."},"operator":{"$ref":"#/components/schemas/CustomObjectBulkDeleteFilterConditionOperator"},"value":{"description":"The value that the filterable `field` is evaluated against in the filter. The data type of `value` is consistent with that of the `field`."}},"required":["field","operator","value"],"description":"Condition evaluated on a single object field","title":"CustomObjectBulkDeleteFilterCondition"},"CustomObjectBulkDeleteFilter":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectBulkDeleteFilterCondition"},"description":"Group of field filter conditions that are evaluated in conjunction with each other using the AND operator. The minimum number of conditions is 1 and the maximum is 2."}},"required":["conditions"],"description":"Filters to determine which records to be deleted in the bulk delete operation.","title":"CustomObjectBulkDeleteFilter"},"CustomObjectBulkJobRequestNamespace":{"type":"string","enum":["default","com_zuora"],"description":"The namespace of the object. Custom objects belong to the `default` namespace. Zuora standard objects belong to the `com_zuora` namespace. Bulk job operations on the following Zuora standard objects are supported:\n* SavedQuery\n","title":"CustomObjectBulkJobRequestNamespace"},"CustomObjectBulkJobRequestOperation":{"type":"string","enum":["delete","create","update"],"description":"The operation that the bulk job performs. Only the users that have the \"Delete Custom Objects\" permission can submit a `delete` bulk job request. Only the users that have the \"Edit Custom Objects\" permission can submit a `create` or `update` bulk job request. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions) for more information.","title":"CustomObjectBulkJobRequestOperation"},"CustomObjectBulkJobRequest":{"type":"object","properties":{"filter":{"$ref":"#/components/schemas/CustomObjectBulkDeleteFilter"},"namespace":{"$ref":"#/components/schemas/CustomObjectBulkJobRequestNamespace","description":"The namespace of the object. Custom objects belong to the `default` namespace. Zuora standard objects belong to the `com_zuora` namespace. Bulk job operations on the following Zuora standard objects are supported:\n* SavedQuery\n"},"object":{"type":"string","description":"The object that the bulk operation performs on."},"operation":{"$ref":"#/components/schemas/CustomObjectBulkJobRequestOperation","description":"The operation that the bulk job performs. Only the users that have the \"Delete Custom Objects\" permission can submit a `delete` bulk job request. Only the users that have the \"Edit Custom Objects\" permission can submit a `create` or `update` bulk job request. See [Platform Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/h_Platform_Roles#Platform_Permissions) for more information."}},"required":["namespace","object","operation"],"title":"CustomObjectBulkJobRequest"},"CustomObjectBulkJobErrorResponse":{"type":"object","properties":{"code":{"type":"integer","description":"The error code."},"message":{"type":"string","description":"The error message."},"record":{"$ref":"#/components/schemas/CustomObjectRecordWithAllFields"},"row":{"type":"integer","description":"The CSV record row number. The custom object record data starts at the second row because the first row is the CSV header."}},"title":"CustomObjectBulkJobErrorResponse"},"CustomObjectBulkJobErrorResponseCollection":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectBulkJobErrorResponse"},"description":"All errors for a custom object bulk job."}},"required":["errors"],"title":"CustomObjectBulkJobErrorResponseCollection"},"ApiVolumeSummaryRecord":{"type":"object","properties":{"api":{"type":"string","description":"The API path name.\n"},"error":{"type":"integer","description":"The count of failed API requests of above `api` and `httpMethod`.\n"},"httpMethod":{"type":"string","description":"The http method.\n"},"success":{"type":"integer","description":"The count of successful API requests of above `api` and `httpMethod`.\n"},"total":{"type":"integer","description":"The count of total API requests of above `api` and `httpMethod`."}},"description":"A volume summary record.\n","title":"ApiVolumeSummaryRecord"},"GetApiVolumeSummaryResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiVolumeSummaryRecord"},"description":"List of API volume summary records. The records are grouped and ordered by API path name and http method.      \n"}},"title":"GetApiVolumeSummaryResponse"},"SystemHealthErrorResponse":{"type":"object","properties":{"error":{"type":"string","description":"Error status text.\n"},"message":{"type":"string","description":"The associated reason.\n"},"path":{"type":"string","description":"The system health api path having error.\n"},"status":{"type":"integer","description":"Error status code.\n"},"timestamp":{"type":"string","format":"date-time","description":"The time when error happens.\n"}},"title":"SystemHealthErrorResponse"},"ApiFailureRecordStatus":{"type":"string","enum":["Error"],"description":"The status of the request.\n","title":"ApiFailureRecordStatus"},"ApiFailureRecord":{"type":"object","properties":{"tracing_identifier":{"type":["string","null"],"description":"A unique identifier for tracing the request.\n"},"latency":{"type":"integer","description":"The time taken to process the request in milliseconds.\n"},"ip":{"type":"string","description":"The IP address from which the request originated.\n"},"response_body":{"type":"string","description":"The body of the response returned by the API.\n"},"request_body":{"type":"string","description":"The body of the request sent to the API.\n"},"user_id":{"type":"string","description":"The ID of the user making the request.\n"},"track_id":{"type":["string","null"],"description":"A tracking identifier for the request.\n"},"request_path":{"type":"string","description":"The complete path of the API request triggered by the user.\n"},"http_status":{"type":"string","description":"The HTTP status code returned by the API.\n"},"zuora_response_code":{"type":"string","description":"The response code returned by Zuora.\n"},"api":{"type":"string","description":"The path of the API request.\n"},"request_id":{"type":"string","description":"A unique identifier for the API request.\n"},"user_agent":{"type":"string","description":"The user agent string of the client making the request.\n"},"timestamp":{"type":"string","format":"date-time","description":"The timestamp when the request was made.\n"},"status":{"$ref":"#/components/schemas/ApiFailureRecordStatus","description":"The status of the request.\n"},"http_method":{"type":"string","description":"Type of request method performed for the API endpoint.\n"}},"description":"A list of failure records including additional details about the request and response.\n","title":"ApiFailureRecord"},"GetApiFailureRecordResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiFailureRecord"},"description":"List of Failed API records      \n"},"nextPage":{"type":"string","format":"url","description":"URL to the next page of results for pagination.\n"}},"title":"GetApiFailureRecordResponse"},"ApiPerformanceDetailStatus":{"type":"string","enum":["Error","Success"],"description":"The status of the request.\n","title":"ApiPerformanceDetailStatus"},"ApiPerformanceDetail":{"type":"object","properties":{"tracing_identifier":{"type":["string","null"],"description":"A unique identifier for tracing the request.\n"},"latency":{"type":"integer","description":"The time taken to process the request in milliseconds.\n"},"ip":{"type":["string","null"],"description":"The IP address from which the request originated.\n"},"response_body":{"type":["string","null"],"description":"The body of the response returned by the API.\n"},"request_body":{"type":["string","null"],"description":"The body of the request sent to the API.\n"},"user_id":{"type":"string","description":"The ID of the user making the request.\n"},"track_id":{"type":["string","null"],"description":"A tracking identifier for the request.\n"},"request_path":{"type":"string","description":"The complete path of the API request triggered by the user.\n"},"http_status":{"type":"string","description":"The HTTP status code returned by the API.\n"},"zuora_response_code":{"type":"string","description":"The response code returned by Zuora.\n"},"api":{"type":"string","description":"The path of the API request.\n"},"request_id":{"type":"string","description":"A unique identifier for the API request.\n"},"user_agent":{"type":"string","description":"The user agent string of the client making the request.\n"},"timestamp":{"type":"string","format":"date-time","description":"The timestamp when the request was made.\n"},"status":{"$ref":"#/components/schemas/ApiPerformanceDetailStatus","description":"The status of the request.\n"},"http_method":{"type":"string","description":"Type of request method performed for the API endpoint.\n"}},"description":"A list of failure records including additional details about the request and response.\n","title":"ApiPerformanceDetail"},"GetApiPerformanceDetailResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiPerformanceDetail"},"description":"List of API Records in detail.\n"},"nextPage":{"type":"string","format":"url","description":"URL to the next page of results for pagination.\n"}},"title":"GetApiPerformanceDetailResponse"},"BillingDocVolumeSummaryRecord":{"type":"object","properties":{"totalFailedAccounts":{"type":"integer","description":"The count of total accounts who have failed records."},"totalGeneratedCreditMemos":{"type":"integer","description":"The count of total generated credit memos.\n"},"totalGeneratedInvoices":{"type":"integer","description":"The count of total generated invoices.\n"}},"description":"A volume summary record.\n","title":"BillingDocVolumeSummaryRecord"},"GetBillingDocVolumeSummaryResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BillingDocVolumeSummaryRecord"},"description":"List of billing documents summary, including total generated invoices and credit memos, also a total number of accounts that failed to process.\n"}},"title":"GetBillingDocVolumeSummaryResponse"},"PaymentVolumeSummaryRecord":{"type":"object","properties":{"error":{"type":"integer","description":"The count of failed payments of above `paymentGatewayType` and `paymentMethodType`.\n"},"paymentGatewayType":{"type":"string","description":"The payment gateway type.\n"},"paymentMethodType":{"type":"string","description":"The payment method type.\n"},"success":{"type":"integer","description":"The count of successful payments of above `paymentGatewayType` and `paymentMethodType`.\n"},"total":{"type":"integer","description":"The count of total payments of above `paymentGatewayType` and `paymentMethodType`.      "}},"description":"A volume summary record.\n","title":"PaymentVolumeSummaryRecord"},"GetPaymentVolumeSummaryResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PaymentVolumeSummaryRecord"},"description":"List of electronic payments summary.\n"}},"title":"GetPaymentVolumeSummaryResponse"},"PaymentRecordsDetailsPaymentStatus":{"type":"string","enum":["Success","Error"],"description":"The current status of the payment transaction.\n","title":"PaymentRecordsDetailsPaymentStatus"},"PaymentRecordsDetails":{"type":"object","properties":{"payment_method_type":{"type":"string","description":"The type of payment method used for the transaction, such as credit card or bank transfer.\n"},"amount":{"type":"number","format":"double","description":"The total amount of the transaction.\n"},"payment_status":{"$ref":"#/components/schemas/PaymentRecordsDetailsPaymentStatus","description":"The current status of the payment transaction.\n"},"source_type":{"type":"string","description":"The source from which the payment transaction originated, such as a payment run or manual entry.\n"},"payment_gateway_response_code":{"type":"string","description":"The response code returned by the payment gateway.\n"},"payment_gateway_response_msg":{"type":"string","description":"The response message returned by the payment gateway, providing additional details about the transaction status.\n"},"request_duration":{"type":"integer","description":"The time taken to process the payment request, in milliseconds.\n"},"payment_number":{"type":"string","description":"A unique identifier for the payment transaction.\n"},"payment_id":{"type":"string","description":"A unique identifier assigned to the payment in the system.\n"},"zuora_response_code":{"type":"string","description":"The response code returned by Zuora, indicating the status of the transaction.\n"},"currency":{"type":"string","description":"The currency in which the transaction was processed.\n"},"source_id":{"type":"string","description":"A unique identifier for the source entity that initiated the payment.\n"},"payment_gateway_type":{"type":"string","description":"The type of payment gateway used to process the transaction.\n"},"payment_date":{"type":"string","format":"date","description":"The date the payment transaction was processed.\n"}},"description":"A payment record that includes additional details about the transaction and its processing.\n","title":"PaymentRecordsDetails"},"GetPaymentRecordsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PaymentRecordsDetails"},"description":"List of Electronic Payment Records\n"},"nextPage":{"type":"string","format":"url","description":"URL to the next page of results for pagination.\n"}},"title":"GetPaymentRecordsResponse"},"TaxHealthDetailsRecordsStatus":{"type":"string","enum":["success","error"],"description":"The current status of the event or transaction.\n","title":"TaxHealthDetailsRecordsStatus"},"TaxHealthDetailsRecords":{"type":"object","properties":{"error_message":{"type":"string","description":"A detailed error message, if any, associated with the transaction or event.\n"},"document_number":{"type":"string","description":"The document number associated with the transaction, such as an invoice number.\n"},"vendor_name":{"type":"string","description":"The name of the vendor involved in the transaction.\n"},"event_source":{"type":"string","description":"The source of the event, such as a third-party service or system.\n"},"error_category":{"type":"string","description":"The main category of the error, if applicable.\n"},"account_id":{"type":"string","description":"The unique identifier for the account involved in the event or transaction.\n"},"event_type":{"type":"string","description":"The type of event, such as tax generation or another action.\n"},"total_duration":{"type":"integer","description":"The total time taken to process the event or transaction, in milliseconds.\n"},"zuora_request_id":{"type":"string","description":"A unique identifier for the request to the Zuora system.\n"},"account_name":{"type":"string","description":"The name of the account associated with the event or transaction.\n"},"vendor_duration":{"type":"number","format":"double","description":"The time taken by the vendor to process the request, in milliseconds.\n"},"sub_error_category":{"type":"string","description":"A more specific subcategory of the error, if applicable.\n"},"status":{"$ref":"#/components/schemas/TaxHealthDetailsRecordsStatus","description":"The current status of the event or transaction.\n"},"timestamp":{"type":"string","format":"date-time","description":"The timestamp of the event or transaction in ISO 8601 format.\n"}},"description":"A detailed record of an event or transaction, including error details, processing durations, and associated account information.\n","title":"TaxHealthDetailsRecords"},"GetTaxRecordsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TaxHealthDetailsRecords"},"description":"List of tax record details.\n"},"nextPage":{"type":"string","format":"url","description":"URL to the next page of results for pagination.\n"}},"title":"GetTaxRecordsResponse"},"DeleteWorkflowSuccess":{"type":"object","properties":{"id":{"type":"string","description":"The id of the deleted workflow"},"success":{"type":"boolean","description":"The indicator for whether the deletion was a success"}},"title":"DeleteWorkflowSuccess"},"DeleteWorkflowError":{"type":"object","properties":{"Errors":{"type":"array","items":{"type":"string"},"description":"The error messages"}},"title":"DeleteWorkflowError"},"WorkflowDefinitionAndVersionsActiveVersionType":{"type":"string","enum":["Workflow::Setup","Workflow::Instance"],"description":"The type of the active version. Currently the only valid value is 'Workflow::Setup'.\n","title":"WorkflowDefinitionAndVersionsActiveVersionType"},"WorkflowDefinitionAndVersionsActiveVersion":{"type":"object","properties":{"description":{"type":"string","description":"The description of the active version.\n"},"id":{"type":"integer","description":"The unique ID of the active version.\n"},"status":{"type":"string","description":"The status of the active version.\n"},"type":{"$ref":"#/components/schemas/WorkflowDefinitionAndVersionsActiveVersionType","description":"The type of the active version. Currently the only valid value is 'Workflow::Setup'.\n"},"version":{"type":"string","description":"The version number of the active version.\n"}},"description":"Information of the active version. \n","title":"WorkflowDefinitionAndVersionsActiveVersion"},"WorkflowType":{"type":"string","enum":["Workflow::Setup","Workflow::Instance"],"description":"The type of the workflow. Currently the only valid value is 'Workflow::Setup'.\n","title":"WorkflowType"},"Workflow":{"type":"object","properties":{"calloutTrigger":{"type":"boolean","description":"Indicates whether the callout trigger is enabled for the retrieved workflow.\n"},"createdAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is created, in the `YYYY-MM-DD HH:MM:SS` format.\n"},"description":{"type":"string","description":"The description of the workflow.\n"},"id":{"type":"integer","description":"The unique ID of the workflow.\n"},"interval":{"type":"string","description":"The schedule of the workflow, in a CRON expression. Returns null if the schedued trigger is disabled.\n"},"name":{"type":"string","description":"The name of the workflow.\n"},"ondemandTrigger":{"type":"boolean","description":"Indicates whether the ondemand trigger is enabled for the workflow.\n"},"scheduledTrigger":{"type":"boolean","description":"Indicates whether the scheduled trigger is enabled for the workflow.\n"},"timezone":{"type":"string","description":"The timezone that is configured for the scheduler of the workflow. Returns null if the scheduled trigger is disabled.\n"},"type":{"$ref":"#/components/schemas/WorkflowType","description":"The type of the workflow. Currently the only valid value is 'Workflow::Setup'.\n"},"updatedAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is updated the last time, in the `YYYY-MM-DD HH:MM:SS` format.\n"},"version":{"type":"string","description":"The version number of the workflow. \n"}},"description":"A workflow.\n","title":"Workflow"},"WorkflowDefinitionAndVersions":{"type":"object","properties":{"active_version":{"$ref":"#/components/schemas/WorkflowDefinitionAndVersionsActiveVersion","description":"Information of the active version. \n"},"calloutTrigger":{"type":"boolean","description":"Indicates whether the callout trigger is enabled for the retrieved workflow.\n"},"createdAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is created, in the `YYYY-MM-DD HH:MM:SS` format.\n"},"description":{"type":"string","description":"The description of the workflow definition.\n"},"id":{"type":"integer","description":"The unique ID of the workflow definition.\n"},"interval":{"type":"string","description":"The schedule of the workflow, in a CRON expression. Returns null if the schedued trigger is disabled.\n"},"latest_inactive_verisons":{"type":"array","items":{"$ref":"#/components/schemas/Workflow"},"description":"The list of inactive workflow versions retrieved. Maximum number of versions retrieved is 10.  \n"},"name":{"type":"string","description":"The name of the workflow definition.\n"},"ondemandTrigger":{"type":"boolean","description":"Indicates whether the ondemand trigger is enabled for the workflow.\n"},"scheduledTrigger":{"type":"boolean","description":"Indicates whether the scheduled trigger is enabled for the workflow.\n"},"status":{"type":"string","description":"The status of the workflow definition.\n"},"timezone":{"type":"string","description":"The timezone that is configured for the scheduler of the workflow. Returns null if the scheduled trigger is disabled.\n"},"updatedAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is updated the last time, in the `YYYY-MM-DD HH:MM:SS` format.\n"}},"description":"A workflow.\n","title":"WorkflowDefinitionAndVersions"},"GetWorkflowsResponsePagination":{"type":"object","properties":{"next_page":{"type":"string","description":"A string containing the URL where the next page of data can be retrieved.\n"},"page":{"type":"integer","description":"An integer denoting the current page number.\n"},"page_length":{"type":"integer","description":"An integer denoting the number of workflows in this response. The maximum value is 50.\n"}},"description":"An object containing pagination information for the list of workflows returned by the api\n","title":"GetWorkflowsResponsePagination"},"GetWorkflowsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDefinitionAndVersions"},"description":"The list of workflows retrieved. \n"},"pagination":{"$ref":"#/components/schemas/GetWorkflowsResponsePagination","description":"An object containing pagination information for the list of workflows returned by the api\n"}},"title":"GetWorkflowsResponse"},"LinkageLinkageType":{"type":"string","enum":["Start","Success","Failure","Iterate","True","False","Approve","Reject"],"title":"LinkageLinkageType"},"Linkage":{"type":"object","properties":{"linkage_type":{"$ref":"#/components/schemas/LinkageLinkageType"},"source_task_id":{"type":"integer","description":"the task that spawned the target task"},"source_workflow_id":{"type":"integer","description":"the workflow the target task is associated with"},"target_task_id":{"type":"integer","description":"the task that the source task is linked to."}},"description":"Used to represent the relationship between workflow tasks","title":"Linkage"},"TaskActionType":{"type":"string","enum":["Approval","Attachment","Billing::BillRun","Billing::CurrencyConversion","Billing::CustomInvoice","Callout","Cancel","Create","CustomObject::Create","CustomObject::Delete","CustomObject::Query","CustomObject::Update","Data::BillingPreviewRun","Data::Link","Delay","Delete","Download::SFTP","Email","Export","File::CustomPDF::CustomDocument","If","InvoiceGenerate","Iterate","Logic::CSVTranslator","Logic::Case","Logic::CustomCode","Logic::JSONTransform","Logic::Lambda","Logic::ResponseFormatter","Logic::XMLTransform","NewProduct","Notifications::GoogleCloudPrint","Notifications::PhoneCall","Notifications::SMS","Payment::GatewayReconciliation","Payment::PaymentRun","Query","RemoveProduct","Reporting::ReportData","Reporting::RunReport","Resume","Suspend","UI::Page","UI::Stop","Update","Upload::FTP","Upload::SFTP","WriteOff"],"description":"The type of the task.\n","title":"TaskActionType"},"TaskData":{"type":"object","properties":{},"description":"The data payload for the task.\n","title":"TaskData"},"TaskParameters":{"type":"object","properties":{},"description":"The configuration of the task.\n","title":"TaskParameters"},"TaskStatus":{"type":"string","enum":["Queued","Processing","Pending","Success","Stopped","Error"],"description":"If **Instance** is **true**, the status of the task instance.\n","title":"TaskStatus"},"Task":{"type":"object","properties":{"action_type":{"$ref":"#/components/schemas/TaskActionType","description":"The type of the task.\n"},"call_type":{"type":"string","description":"The type of API used.\n"},"concurrent_limit":{"type":"integer","description":"the number of concurrent tasks that are allowed to run simultaneously"},"data":{"$ref":"#/components/schemas/TaskData","description":"The data payload for the task.\n"},"end_time":{"type":"string","description":"If **Instance** is **true**, the end time of the task instance.\n"},"error":{"type":"string","description":"If **Instance** is **true** and **status** is **Error**, the error reason of the task instance failure.\n"},"error_class":{"type":"string","description":"If **Instance** is **true** and **status** is **Error**, the error class of the task instance failure.\n"},"error_details":{"type":"string","description":"If **Instance** is **true** and **status** is **Error**, the error details of the task instance failure.\n"},"id":{"type":"integer","description":"The unique ID of the task.\n"},"instance":{"type":"boolean","description":"Indicates whether this task belongs to an instance of a workflow.\n"},"name":{"type":"string","description":"The name of the task.\n"},"object":{"type":"string","description":"The selected object for the task.\n"},"object_id":{"type":"string","description":"The id of the selected object of the task.\n"},"original_task_id":{"type":"integer","description":"If **Instance** is **true**, the ID of the original task in the original workflow.\n"},"original_workflow_id":{"type":"integer","description":"If **Instance** is **true**, the ID of the original workflow.\n"},"parameters":{"$ref":"#/components/schemas/TaskParameters","description":"The configuration of the task.\n"},"start_time":{"type":"string","description":"If **Instance** is **true**, the start time of the task instance.\n"},"status":{"$ref":"#/components/schemas/TaskStatus","description":"If **Instance** is **true**, the status of the task instance.\n"},"tags":{"type":"array","items":{"type":"string"},"description":"The array of filter tags.\n"},"task_id":{"type":"integer","description":"the id of this task's parent task. Will be null if this is the first task of the workflow"},"workflow_id":{"type":"integer","description":"The ID of the workflow that the task belongs to.\n"}},"description":"A task.\n","title":"Task"},"POSTWorkflowDefinitionImportRequest":{"type":"object","properties":{"linkages":{"type":"array","items":{"$ref":"#/components/schemas/Linkage"}},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"workflow":{"$ref":"#/components/schemas/Workflow"}},"title":"POSTWorkflowDefinitionImportRequest"},"WorkflowUsageValues":{"type":"object","properties":{"taskCount":{"type":"integer","description":"The amount of task runs that have been used.\n"}},"title":"WorkflowUsageValues"},"WorkflowUsage":{"type":"object","properties":{"date":{"type":"string","description":"The date when the usage record is created.\n"},"values":{"$ref":"#/components/schemas/WorkflowUsageValues"}},"description":"The task usage of a particular day.\n","title":"WorkflowUsage"},"UsagesResponse":{"type":"object","properties":{"metrics":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowUsage"},"description":"The list of tasks retrieved.\n"}},"title":"UsagesResponse"},"TasksResponsePagination":{"type":"object","properties":{"next_page":{"type":"string","description":"A string containing the URL where the next page of data can be retrieved.\n"},"page":{"type":"integer","description":"An integer denoting the current page number.\n"},"page_length":{"type":"integer","description":"An integer denoting the number of tasks in this response. The maximum value is 100.\n"}},"description":"An object containing pagination information for the list of tasks returned by the API.\n","title":"TasksResponsePagination"},"TasksResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Task"},"description":"The list of tasks retrieved.\n"},"pagination":{"$ref":"#/components/schemas/TasksResponsePagination","description":"An object containing pagination information for the list of tasks returned by the API.\n"}},"title":"TasksResponse"},"UpdateTaskStatus":{"type":"string","enum":["Queued","Processing","Pending","Success","Stopped","Error"],"description":"The status of the task instance.\n","title":"UpdateTaskStatus"},"UpdateTask":{"type":"object","properties":{"action_type":{"type":"string","description":"The type of task.\n"},"call_type":{"type":"string","description":"The type of the API used.\n"},"concurrent_limit":{"type":"integer","minimum":1,"maximum":9999999,"description":"The maximum number of this task that can run concurrently.\n"},"id":{"type":"integer","description":"The unique ID of the task.\n"},"name":{"type":"string","description":"The name of the task.\n"},"object":{"type":"string","description":"The selected object for the task.\n"},"object_id":{"type":"string","description":"The ID of the selected object of the task.\n"},"status":{"$ref":"#/components/schemas/UpdateTaskStatus","description":"The status of the task instance.\n"},"tags":{"type":"array","items":{"type":"string"},"description":"The array of filter tags.\n"},"workflow_id":{"type":"integer","description":"The ID of the workflow the task belongs to.\n"}},"required":["id"],"description":"A task.\n","title":"UpdateTask"},"PutTasksRequest":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UpdateTask"},"description":"The list of tasks to update.\n"}},"title":"PutTasksRequest"},"BadRequestResponseErrorsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code."},"status":{"type":"string","description":"The status of the response."},"title":{"type":"string","description":"The reason for the error."}},"title":"BadRequestResponseErrorsItems"},"BadRequestResponse":{"type":"object","properties":{"Errors":{"type":"array","items":{"$ref":"#/components/schemas/BadRequestResponseErrorsItems"}}},"title":"BadRequestResponse"},"GetWorkflowResponseMessages":{"type":"object","properties":{},"description":"Messages from tasks. \n\n**Note:** This field is only returned in Production.\n","title":"GetWorkflowResponseMessages"},"GetWorkflowResponseStatus":{"type":"string","enum":["Queued","Processing","Stopping","Stopped","Finished"],"description":"The status of the workflow:\n  - Queued: The workflow is in queue for being processed.\n  - Processing: The workflow is in process.\n  - Stopping: The workflow is being stopped through Zuora UI.\n  - Stopped: The workflow is stopped through Zuora UI.\n  - Finished: The workflow is finished. When a workflow is finished, it might have tasks pending for retry or delay. Pending tasks do not block the onfinish branch of the workflow, but they block the oncomplete branch of the iterate. \n","title":"GetWorkflowResponseStatus"},"GetWorkflowResponseTasks":{"type":"object","properties":{"error":{"type":"integer","description":"The number of tasks in **Error** state.\n"},"pending":{"type":"integer","description":"The number of tasks in **Pending** state.\n"},"processing":{"type":"integer","description":"The number of tasks in **Processing** state.\n"},"queued":{"type":"integer","description":"The number of tasks in **Queued** state.\n"},"stopped":{"type":"integer","description":"The number of tasks in **Stopped** state.\n"},"success":{"type":"integer","description":"The number of tasks in **Success** state.\n"},"total":{"type":"integer","description":"The total number of tasks.\n"}},"description":"An object containing task counts.\n","title":"GetWorkflowResponseTasks"},"GetWorkflowResponse":{"type":"object","properties":{"cpuTime":{"type":"string","format":"time","description":"The overall CPU time for the execution of the workflow.\n"},"createdAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is created, in the `YYYY-MM-DD HH:MM:SS` format..\n"},"finishedAt":{"type":"string","format":"datetime","description":"The date and time when the execution of the workflow completes, in the `YYYY-MM-DD HH:MM:SS` format.\n"},"id":{"type":"integer","description":"The unique ID of the workflow.\n"},"messages":{"$ref":"#/components/schemas/GetWorkflowResponseMessages","description":"Messages from tasks. \n\n**Note:** This field is only returned in Production.\n"},"name":{"type":"string","description":"The unique run number of the workflow.\n"},"originalWorkflowId":{"type":"string","description":"The ID of the workflow setup.\n"},"runTime":{"type":"number","format":"double","description":"The execution time of the workflow including the waiting time, in seconds.\n"},"status":{"$ref":"#/components/schemas/GetWorkflowResponseStatus","description":"The status of the workflow:\n  - Queued: The workflow is in queue for being processed.\n  - Processing: The workflow is in process.\n  - Stopping: The workflow is being stopped through Zuora UI.\n  - Stopped: The workflow is stopped through Zuora UI.\n  - Finished: The workflow is finished. When a workflow is finished, it might have tasks pending for retry or delay. Pending tasks do not block the onfinish branch of the workflow, but they block the oncomplete branch of the iterate. \n"},"tasks":{"$ref":"#/components/schemas/GetWorkflowResponseTasks","description":"An object containing task counts.\n"},"type":{"type":"string","description":"The type of the current workflow. Possible values:\n  - `Workflow::Setup`: The workflow is a setup and is used for creating workflow instances.\n  - `Workflow::Instance`: The workflow is an execution that has data.\n"},"updatedAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is updated the last time, in the `YYYY-MM-DD HH:MM:SS` format.\n"}},"title":"GetWorkflowResponse"},"WorkflowDefinitionActiveVersionType":{"type":"string","enum":["Workflow::Setup","Workflow::Instance"],"description":"The type of the active version. Currently the only valid value is 'Workflow::Setup'.\n","title":"WorkflowDefinitionActiveVersionType"},"WorkflowDefinitionActiveVersion":{"type":"object","properties":{"description":{"type":"string","description":"The description of the active version.\n"},"id":{"type":"integer","description":"The unique ID of the active version.\n"},"status":{"type":"string","description":"The status of the active version.\n"},"type":{"$ref":"#/components/schemas/WorkflowDefinitionActiveVersionType","description":"The type of the active version. Currently the only valid value is 'Workflow::Setup'.\n"},"version":{"type":"string","description":"The version number of the active version.\n"}},"description":"Information of the active version. \n","title":"WorkflowDefinitionActiveVersion"},"WorkflowDefinition":{"type":"object","properties":{"active_version":{"$ref":"#/components/schemas/WorkflowDefinitionActiveVersion","description":"Information of the active version. \n"},"calloutTrigger":{"type":"boolean","description":"Indicates whether the callout trigger is enabled for the retrieved workflow.\n"},"createdAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is created, in the `YYYY-MM-DD HH:MM:SS` format.\n"},"description":{"type":"string","description":"The description of the workflow definition.\n"},"id":{"type":"integer","description":"The unique ID of the workflow definition.\n"},"interval":{"type":"string","description":"The schedule of the workflow, in a CRON expression. Returns null if the schedued trigger is disabled.\n"},"name":{"type":"string","description":"The name of the workflow definition.\n"},"ondemandTrigger":{"type":"boolean","description":"Indicates whether the ondemand trigger is enabled for the workflow.\n"},"scheduledTrigger":{"type":"boolean","description":"Indicates whether the scheduled trigger is enabled for the workflow.\n"},"status":{"type":"string","description":"The status of the workflow definition.\n"},"timezone":{"type":"string","description":"The timezone that is configured for the scheduler of the workflow. Returns null if the scheduled trigger is disabled.\n"},"updatedAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is updated the last time, in the `YYYY-MM-DD HH:MM:SS` format.\n"}},"description":"A workflow.\n","title":"WorkflowDefinition"},"ValidationReasons":{"type":"object","properties":{"fieldName":{"type":"string","description":"The name of the invalid field"},"title":{"type":"string","description":"A description why that field is invalid"}},"title":"ValidationReasons"},"ValidationErrors":{"type":"object","properties":{"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ValidationReasons"},"description":"The list of reasons that the request was unsuccessful"},"success":{"type":"boolean","description":"Returns `false` if the request was not successful."}},"title":"ValidationErrors"},"ExportWorkflowVersionResponse":{"type":"object","properties":{"linkages":{"type":"array","items":{"$ref":"#/components/schemas/Linkage"}},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"workflow":{"$ref":"#/components/schemas/Workflow"}},"title":"ExportWorkflowVersionResponse"},"WorkflowErrorCode":{"type":"string","enum":["invalid"],"description":"A short error code describing the error","title":"WorkflowErrorCode"},"WorkflowError":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/WorkflowErrorCode","description":"A short error code describing the error"},"status":{"type":"integer","description":"The http status code for this error"},"title":{"type":"string","description":"A human readable description describing the error"}},"title":"WorkflowError"},"GET_WorkflowExportRequestBadRequestError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowError"},"description":"The list of errors returned from the workflow"}},"title":"GET_WorkflowExportRequestBadRequestError"},"GET_WorkflowExportRequestNotFoundError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowError"},"description":"The list of errors returned from the workflow"}},"title":"GET_WorkflowExportRequestNotFoundError"},"WorkflowInstanceStatus":{"type":"string","enum":["Queued","Processing"],"description":"Describes the current state of this workflow instance:\n  - Queued: The workflow is in queue for being processed.\n  - Processing: The workflow is in process.\n","title":"WorkflowInstanceStatus"},"WorkflowInstance":{"type":"object","properties":{"createdAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is created, in the `YYYY-MM-DD HH:MM:SS` format.\n"},"id":{"type":"integer","description":"The unique ID of the workflow.\n"},"name":{"type":"string","description":"The run number of this workflow instance\n"},"originalWorkflowId":{"type":"integer","description":"The identifier of the workflow template that is used to create this instance.\n"},"status":{"$ref":"#/components/schemas/WorkflowInstanceStatus","description":"Describes the current state of this workflow instance:\n  - Queued: The workflow is in queue for being processed.\n  - Processing: The workflow is in process.\n"},"updatedAt":{"type":"string","format":"datetime","description":"The date and time the last time when the workflow is updated, in the `YYYY-MM-DD HH:MM:SS` format.\n"}},"description":"A instance workflow object.","title":"WorkflowInstance"},"POST_Run_WorkflowRequestBadRequestError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowError"},"description":"The list of errors returned from the workflow"}},"title":"POST_Run_WorkflowRequestBadRequestError"},"POST_Run_WorkflowRequestNotAcceptableError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowError"},"description":"The list of errors returned from the workflow"},"parameters":{"description":"The request body that was originally provided to the run API."}},"title":"POST_Run_WorkflowRequestNotAcceptableError"},"POST_Run_WorkflowRequestConflictError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowError"},"description":"The list of errors returned from the workflow"}},"title":"POST_Run_WorkflowRequestConflictError"},"GetVersionsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Workflow"},"description":"The list of workflow versions retrieved. \n"}},"title":"GetVersionsResponse"},"DetailedWorkflowType":{"type":"string","enum":["Workflow::Setup","Workflow::Instance"],"description":"The type of the workflow. Currently the only valid value is 'Workflow::Setup'.\n","title":"DetailedWorkflowType"},"DetailedWorkflow":{"type":"object","properties":{"call_type":{"type":"string","description":"The call type of the active workflow version.\n"},"calloutTrigger":{"type":"boolean","description":"Indicates whether the callout trigger is enabled for the retrieved workflow.\n"},"createdAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is created, in the `YYYY-MM-DD HH:MM:SS` format.\n"},"description":{"type":"string","description":"The description of the workflow.\n"},"finished_at":{"type":"string","format":"datetime","description":"The date and time when the instance of the workflow version finished at.\n"},"id":{"type":"integer","description":"The unique ID of the workflow.\n"},"interval":{"type":"string","description":"The schedule of the workflow, in a CRON expression. Returns null if the schedued trigger is disabled.\n"},"name":{"type":"string","description":"The name of the workflow.\n"},"ondemandTrigger":{"type":"boolean","description":"Indicates whether the ondemand trigger is enabled for the workflow.\n"},"original_workflow_id":{"type":"integer","description":"The unique ID of the original workflow version.\n"},"priority":{"type":"string","description":"The priority of the active workflow version. \n"},"scheduledTrigger":{"type":"boolean","description":"Indicates whether the scheduled trigger is enabled for the workflow.\n"},"started_at":{"type":"string","format":"datetime","description":"The date and time when the instance of the workflow version started at.\n"},"status":{"type":"integer","description":"The status of the active workflow version.\n"},"sync_trigger":{"type":"boolean","description":"Indicates whether the workflow version is enabled for the sync mode.\n"},"timezone":{"type":"string","description":"The timezone that is configured for the scheduler of the workflow. Returns null if the scheduled trigger is disabled.\n"},"type":{"$ref":"#/components/schemas/DetailedWorkflowType","description":"The type of the workflow. Currently the only valid value is 'Workflow::Setup'.\n"},"updatedAt":{"type":"string","format":"datetime","description":"The date and time when the workflow is updated the last time, in the `YYYY-MM-DD HH:MM:SS` format.\n"},"version":{"type":"string","description":"The version number of the active workflow version.            \n"}},"description":"A workflow.\n","title":"DetailedWorkflow"},"StopWorkflowRunSuccess":{"type":"object","properties":{"success":{"type":"boolean","description":"The indicator for whether the operation to stop a workflow run was a success."}},"title":"StopWorkflowRunSuccess"},"StopWorkflowRunErrorErrorsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code."},"status":{"type":"number","format":"double","description":"Status code."},"title":{"type":"string","description":"Error title."}},"title":"StopWorkflowRunErrorErrorsItems"},"StopWorkflowRunError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/StopWorkflowRunErrorErrorsItems"},"description":"The error messages"}},"title":"StopWorkflowRunError"},"QueryJobsGetParametersQueryStatus":{"type":"string","enum":["accepted","in_progress","completed","failed","cancelled"],"title":"QueryJobsGetParametersQueryStatus"},"DataQueryJobQueryStatus":{"type":"string","enum":["submitted","accepted","in_progress","completed","failed","cancelled"],"description":"Status of the query job.\n\n* `submitted` - query submitted to query service for processing\n* `accepted` - query accepted by the query service\n* `in_progress` - query executed by the query service\n* `completed` - query execution completed by the query service\n* `failed` - query unable to be processed by the query service\n* `cancelled` - query cancelled by the user\n\nIf the value of this field is `completed`, the `dataFile` field contains the location of the query results.\n\nIf the value of this field is `accepted` or `in_progress`, you can use [Cancel a data query job](#operation/DELETE_DataQueryJob) to prevent Zuora from performing the query. Zuora then sets the status of the query job to `cancelled`.\n","title":"DataQueryJobQueryStatus"},"DataQueryJob":{"type":"object","properties":{"createdBy":{"type":"string","format":"uuid","minLength":64,"maxLength":64,"description":"The query job creator's Id.\n"},"id":{"type":"string","format":"uuid","minLength":64,"maxLength":64,"description":"Internal identifier of the query job.\n"},"query":{"type":"string","description":"The query that was submitted.\n"},"remainingRetries":{"type":"integer","description":"The number of times that Zuora will retry the query if Zuora is unable to perform the query.\n"},"sourceData":{"type":"string","description":"Indicates the source that data queries run against:\n\n* `LIVE` represents the live transactional databases at Zuora (Data Query Live).\n\n* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_Warehouse/A_Zuora_Warehouse_overview\" target=\"_blank\">Zuora Warehouse</a>.\n"},"updatedOn":{"type":"string","format":"date-time","description":"Date and time when the query job was last updated, in ISO 8601 format.\n"},"useIndexJoin":{"type":"boolean","description":"Indicates whether to use Index Join. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Query/Data_Query/Best_practices_when_writing_data_queries/General_best_practices#Index_JOIN\" target=\"_blank\">Index Join</a> for more information.\n"},"dataFile":{"type":"string","format":"URL","description":"The URL of the query results. Only applicable if the value of the `queryStatus` field is `completed`.\n"},"outputRows":{"type":"integer","description":"The number of rows the query results. Only applicable if the value of the `queryStatus` field is `completed`.\n"},"processingTime":{"type":"integer","description":"Processing time of the query job, in milliseconds. Only applicable if the value of the `queryStatus` field is `completed`.\n"},"queryStatus":{"$ref":"#/components/schemas/DataQueryJobQueryStatus","description":"Status of the query job.\n\n* `submitted` - query submitted to query service for processing\n* `accepted` - query accepted by the query service\n* `in_progress` - query executed by the query service\n* `completed` - query execution completed by the query service\n* `failed` - query unable to be processed by the query service\n* `cancelled` - query cancelled by the user\n\nIf the value of this field is `completed`, the `dataFile` field contains the location of the query results.\n\nIf the value of this field is `accepted` or `in_progress`, you can use [Cancel a data query job](#operation/DELETE_DataQueryJob) to prevent Zuora from performing the query. Zuora then sets the status of the query job to `cancelled`.\n"}},"description":"A data query job.\n","title":"DataQueryJob"},"GetDataQueryJobsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DataQueryJob"},"description":"List of data query jobs. The query jobs are listed in reverse order of creation.\n"}},"title":"GetDataQueryJobsResponse"},"SubmitDataQueryRequestCompression":{"type":"string","enum":["NONE","GZIP","ZIP"],"description":"Specifies whether Zuora compresses the query results.\n","title":"SubmitDataQueryRequestCompression"},"SubmitDataQueryRequestOutputTarget":{"type":"string","enum":["S3"],"description":"Set this field to `S3`.\n","title":"SubmitDataQueryRequestOutputTarget"},"SubmitDataQueryRequestOutput":{"type":"object","properties":{"target":{"$ref":"#/components/schemas/SubmitDataQueryRequestOutputTarget","description":"Set this field to `S3`.\n"}},"required":["target"],"description":"Additional information about the query results.\n","title":"SubmitDataQueryRequestOutput"},"SubmitDataQueryRequestOutputFormat":{"type":"string","enum":["JSON","CSV","TSV","DSV"],"description":"Specifies the format of the query results.\n\n* `JSON` - Each row in the query results will be a JSON object. The format of the query result file is [JSON Lines](http://jsonlines.org/).\n* `CSV` - Each row in the query results will be a comma-separated list of values.\n* `TSV` - Each row in the query results will be a tab-separated list of values.\n* `DSV` - Pass any character as your custom delimiter into the `columnSeparator` field.\n","title":"SubmitDataQueryRequestOutputFormat"},"SubmitDataQueryRequestSourceData":{"type":"string","enum":["LIVE","WAREHOUSE"],"description":"Specify the source that data queries run against:\n\n* `LIVE` represents the live transactional databases at Zuora (Data Query Live).\n\n* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. This option is available only if you have the Zuora Warehouse feature enabled in your tenant. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_Warehouse/A_Zuora_Warehouse_overview\" target=\"_blank\">Zuora Warehouse</a>. <br>If this option is selected, you can specify warehouse size in `warehouseSize`.\n\nIf this field is not specified, the default value `LIVE` will be used.\n","title":"SubmitDataQueryRequestSourceData"},"SubmitDataQueryRequestWarehouseSize":{"type":"string","enum":["xsmall","NULL"],"description":"Specify the size of Zuora Warehouse. This field is available only if the `sourceData` is `WAREHOUSE`.\n\nIf this field is not specified or set to `NULL`, the default value `xsmall` will be used.\n","title":"SubmitDataQueryRequestWarehouseSize"},"SubmitDataQueryRequest":{"type":"object","properties":{"columnSeparator":{"type":"string","description":"The column separator. Only applicable if the `outputFormat` is `DSV`.\n"},"compression":{"$ref":"#/components/schemas/SubmitDataQueryRequestCompression","description":"Specifies whether Zuora compresses the query results.\n"},"encryptionKey":{"type":"string","format":"byte","description":"Base-64 encoded public key of an RSA key-pair. \n\nNote that Data Query only supports 1024-bit RSA keys.\n\nIf you set this field, Zuora encrypts the query results using the provided public key. You must use the corresponding private key to decrypt the query results.\n"},"output":{"$ref":"#/components/schemas/SubmitDataQueryRequestOutput","description":"Additional information about the query results.\n"},"outputFormat":{"$ref":"#/components/schemas/SubmitDataQueryRequestOutputFormat","description":"Specifies the format of the query results.\n\n* `JSON` - Each row in the query results will be a JSON object. The format of the query result file is [JSON Lines](http://jsonlines.org/).\n* `CSV` - Each row in the query results will be a comma-separated list of values.\n* `TSV` - Each row in the query results will be a tab-separated list of values.\n* `DSV` - Pass any character as your custom delimiter into the `columnSeparator` field.\n"},"query":{"type":"string","description":"The query to perform. See [SQL Queries in Data Query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query/BA_SQL_Queries_in_Data_Query) for more information.\n"},"readDeleted":{"type":"boolean","default":false,"description":"Indicates whether the query will retrieve only the deleted record. If `readDeleted` is set to `false` or it is not included in the request body, the query will retrieve only the non-deleted records. If it is set to `true`, only the deleted records will be retrieved.\n\nIf you select the `deleted` column in the `query` field, both non-deleted and deleted records will be retrieved regardless of the value in the `readDeleted` field.\n\nNote that Data Query is subject to Zuora Data Retention Policy. The retention period of deleted data is 30 days. You can only retrieve deleted data for 30 days through Data Query.\n"},"sourceData":{"$ref":"#/components/schemas/SubmitDataQueryRequestSourceData","description":"Specify the source that data queries run against:\n\n* `LIVE` represents the live transactional databases at Zuora (Data Query Live).\n\n* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. This option is available only if you have the Zuora Warehouse feature enabled in your tenant. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_Warehouse/A_Zuora_Warehouse_overview\" target=\"_blank\">Zuora Warehouse</a>. <br>If this option is selected, you can specify warehouse size in `warehouseSize`.\n\nIf this field is not specified, the default value `LIVE` will be used.\n"},"useIndexJoin":{"type":"boolean","description":"Indicates whether to use Index Join. Index join is useful when you have a specific reference value in your WHERE clause to index another large table by. See [Use Index Join](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query/Best_practices_of_Data_Query#Use_Index_Join) for more information."},"warehouseSize":{"$ref":"#/components/schemas/SubmitDataQueryRequestWarehouseSize","description":"Specify the size of Zuora Warehouse. This field is available only if the `sourceData` is `WAREHOUSE`.\n\nIf this field is not specified or set to `NULL`, the default value `xsmall` will be used.\n"}},"required":["compression","output","outputFormat","query"],"title":"SubmitDataQueryRequest"},"SubmitDataQueryResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DataQueryJob"}},"title":"SubmitDataQueryResponse"},"DataQueryErrorResponse":{"type":"object","properties":{"code":{"type":"integer","description":"Error code.\n"},"message":{"type":"string","description":"Error message.\n"}},"title":"DataQueryErrorResponse"},"GetDataQueryJobResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DataQueryJob"}},"title":"GetDataQueryJobResponse"},"DataQueryJobCancelledQueryStatus":{"type":"string","enum":["cancelled"],"description":"Status of the query job.\n","title":"DataQueryJobCancelledQueryStatus"},"DataQueryJobCancelled":{"type":"object","properties":{"createdBy":{"type":"string","format":"uuid","minLength":64,"maxLength":64,"description":"The query job creator's Id.\n"},"id":{"type":"string","format":"uuid","minLength":64,"maxLength":64,"description":"Internal identifier of the query job.\n"},"query":{"type":"string","description":"The query that was submitted.\n"},"remainingRetries":{"type":"integer","description":"The number of times that Zuora will retry the query if Zuora is unable to perform the query.\n"},"sourceData":{"type":"string","description":"Indicates the source that data queries run against:\n\n* `LIVE` represents the live transactional databases at Zuora (Data Query Live).\n\n* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_Warehouse/A_Zuora_Warehouse_overview\" target=\"_blank\">Zuora Warehouse</a>.\n"},"updatedOn":{"type":"string","format":"date-time","description":"Date and time when the query job was last updated, in ISO 8601 format.\n"},"useIndexJoin":{"type":"boolean","description":"Indicates whether to use Index Join. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Query/Data_Query/Best_practices_when_writing_data_queries/General_best_practices#Index_JOIN\" target=\"_blank\">Index Join</a> for more information.\n"},"queryStatus":{"$ref":"#/components/schemas/DataQueryJobCancelledQueryStatus","description":"Status of the query job.\n"}},"description":"A cancelled data query job.\n","title":"DataQueryJobCancelled"},"DeleteDataQueryJobResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DataQueryJobCancelled"}},"title":"DeleteDataQueryJobResponse"},"SubmitBatchQueryRequestFormat":{"type":"string","enum":["csv","zip","gzip"],"description":"The format of the query. The default value is `csv`.\n","title":"SubmitBatchQueryRequestFormat"},"BatchQueryDeletedItems":{"type":"object","properties":{"column":{"type":"string","description":"Name of the Column in the extracted file that points to the deleted records. \n"},"format":{"type":"string","description":"Can be set to either `Numeric` or `Boolean`. If set to `Numeric`, deleted records are marked as `1`. If set to `Boolean`, deleted records are marked as `true`.\n"}},"title":"BatchQueryDeletedItems"},"BatchQueryType":{"type":"string","enum":["zoql","zoqlexport"],"description":"The query type.\n","title":"BatchQueryType"},"BatchQuery":{"type":"object","properties":{"apiVersion":{"type":"string","description":"The API version for the query. If an API version is not specified, the latest version is used by default. Using the latest WSDL version is most useful for reporting use cases. For integration purposes, specify the WSDL version to ensure consistent query behavior, that is, what is supported and included in the response returned by the API.\n\n**Note**: As of API version 69 and later, Zuora changed the format of certain fields. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/G_SOAP_API/AB_Getting_started_with_the__SOAP_API/C_Date_Field_Changes_in_the_SOAP_API\" target=\"_blank\">Date Field Changes in the SOAP API</a> for more information and a list of affected fields.\n"},"convertToCurrencies":{"type":"string","description":"The currencies that you want to convert transaction amounts into. You can specify any number of currencies. Specify the currencies using their <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/D_Currencies_and_Their_3-Letter_Codes\" target=\"_blank\">ISO currency codes</a> and separate each currency with a comma, for example, \"EUR,GBP,JPY\".\n\nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Collect/Zuora_Finance/D_Finance_Settings/F_Foreign_Currency_Conversion/Foreign_Currency_Conversion_for_Data_Source_Exports#Creating_the_Data_Source_Export_Using_the_AQuA_API\" target=\"_blank\">Convert Transaction Amounts Into Any Currency</a> for more information and examples.\n\nTo use this field, you must have <a href=\"https://knowledgecenter.zuora.com/Zuora_Collect/Zuora_Finance/D_Finance_Settings/F_Foreign_Currency_Conversion\" target=\"_blank\">Foreign Currency Conversion</a> enabled and you must be using API version 78 or later.\n"},"deleted":{"type":"array","items":{"$ref":"#/components/schemas/BatchQueryDeletedItems"},"description":"This field indicates that the AQuA incremental load will retrieve deleted records.\n\nIf you want to export deleted data, this field is required.\n\n**Note**: AQuA API is subject to Zuora Data Retention Policy. The retention period of deleted data is 30 days. You can only retrieve deleted data for 30 days through AQuA.\n"},"name":{"type":"string","description":"The query name that can uniquely identify the query in this API request.\n"},"query":{"type":"string","description":"A valid ZOQL query or Export ZOQL query statement.\n"},"type":{"$ref":"#/components/schemas/BatchQueryType","description":"The query type.\n"}},"title":"BatchQuery"},"SubmitBatchQueryRequestSourceData":{"type":"string","enum":["LIVE"],"description":"Specify the source this aggregate query runs against:\n\n* `LIVE` represents the live transactional databases at Zuora (Data Query Live).\nIf this field is not specified, the default value `LIVE` will be used.\n","title":"SubmitBatchQueryRequestSourceData"},"SubmitBatchQueryRequest":{"type":"object","properties":{"dateTimeUtc":{"type":"boolean","description":"When using WSDL 69 and later you can ensure that the exported output of dateTime records are rendered according to ISO-8601 generic UTC form by setting `dateTimeUtc` to `true`.\n\nWhen `dateTimeUtc` is set to `true`, exports of dateTime data types will be rendered in the following generic format: `YYYY-MM-DDThh:mm:ss-hhmm` or `YYYY-MM-DDThh:mm:ss+hhmm`.\n\n**Note**: Regardless of what batchType query is used (`zoql` or `zoqlexport`), the query response output for datetime data types can be standardized by setting dateTimeUtc to `true`. When `true`, the results will display datetime types with the format: YYYY-MM-DDThh:mm:ss+/-hhmm.\n"},"format":{"$ref":"#/components/schemas/SubmitBatchQueryRequestFormat","description":"The format of the query. The default value is `csv`.\n"},"incrementalTime":{"type":"string","format":"dateTime","description":"Allows you to override the time from which a Stateful AQuA job incrementally retrieves records that have been created or modified, using the `incrementalTime` parameter. For example, if you set `incrementalTime` = `2015-01-21 10:30:01`, AQuA will retrieve records that have created or modified beginning at 10:30:01. If this parameter is not set, AQuA continues to use the Start Time of the last AQuA session to retrieve records incrementally.\n\nThe time zone of `incrementalTime` depends on which Zuora data center you use. For US Data Center customers, the time zone of `incrementalTime` is Pacific Time. For EU Data Center customers, the time zone of `incrementalTime` is UTC. If the time zone of your system is different from the time zone of `incrementalTime`, you will need to convert to the appropriate time zone before setting `incrementalTime`.\n\n**Note**: This field can only be used in Stateful AQuA mode.\n"},"name":{"type":"string","description":"The name of the job. 32 character limit.\n"},"notifyUrl":{"type":"string","description":"If URL is provided, the AQuA job will call this `notifyUrl` once the job has completed. The value of `notifyUrl` needs to have `${JOBID}` and `${STATUS}` placeholders. These placeholders will be replaced by the actual job ID and status when returned in the response. Status will be `Completed` after the AQuA job is done.\n\nIf you submit an AQuA query with `notifyUrl` specified, the value of `notifyUrl` will be ignored if your organization has already <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/Callout_Notification_for_Completed_AQuA_Jobs\" target=\"_blank\">configured a callout notification through the Zuora user interface</a>. \n"},"nullReplacement":{"type":"string","description":"The string used to represent null values in the query results. If you do not set this parameter, null values are represented by the empty string in the query results.\n"},"offset":{"type":"integer","default":0,"description":"This field specifies the time offset for AQuA queries in stateful mode. It is an integer in the range 0 to 3,600 seconds.\n\nFor example, if you set this field to 600 seconds and you post a query in stateful mode at 2:00 AM, it will query against data created or updated between the completion time of the previous query and 1:50 AM.\n\nThe value of this field will override the value you configured in **Settings** > **Administration** > **AQuA API Stateful Mode Time Offset**.        \n"},"partner":{"type":"string","description":"The partner field indicates the unique ID of a data integration partner. The dropdown list of this field displays partner IDs for the past thirty days.\nIt must be used together with \"project\" field to uniquely identify a data integration target.\n\nFor example, if a continuous AQuA session is to retrieve data incrementally for a Salesforce.com Org 00170000011K3Ub, you can use partner as \"Salesforce\", and \"project\" as \"00170000011K3Ub.\" \nThis field is required only if you are using AQuA in stateful mode. Otherwise, if you are using AQuA in stateless mode, partner field can be null.\n\n**Note**: Zuora highly recommends you use the stateless mode instead of the stateful mode to extract bulk data. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/Bulk_data__extraction_from_Zuora_using_AQuA\" target=\"_blank\">Bulk data extraction from Zuora using AQuA</a> for best practices.\n**Note**: Submit a request at <a href=\"http://support.zuora.com\" target=\"_blank\">Zuora Global Support</a> to obtain a partner ID.\n"},"project":{"type":"string","description":"The project field contains the unique ID of a data integration project for a particular partner. The dropdown list of this field displays project IDs for the past thirty days.\n\nThis field must be used together with partner field to uniquely identify a data integration target. \n\nThis field is required only if you are using AQuA in stateful mode. Otherwise, if you are using AQuA in stateless mode, partner field can be null.\n"},"queries":{"type":"array","items":{"$ref":"#/components/schemas/BatchQuery"},"description":"A JSON array object that contains a list of batch objects.\n"},"sourceData":{"$ref":"#/components/schemas/SubmitBatchQueryRequestSourceData","description":"Specify the source this aggregate query runs against:\n\n* `LIVE` represents the live transactional databases at Zuora (Data Query Live).\nIf this field is not specified, the default value `LIVE` will be used.\n"},"useQueryLabels":{"type":"boolean","description":"When this optional flag is set to `true` the request will use object and field API names for the CSV header output instead of the field labels. Data integration projects should set `useQueryLabels` to `true` so that API names remain the same.\n\nBy default `useQueryLabels` is `false`, so that output CSV headers display the more user-friendly object and field labels. \n"},"version":{"type":"string","title":"float","description":"The API version you want to use. \n\nThe supported versions are as follows:\n  - `1.1`. It supports both modes\n  - `1.0`. Default. It supports stateless modes only.\n\nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/BA_Stateless_and_Stateful_Modes\" target=\"_blank\">Stateless and stateful modes</a> for more information.\n"}},"title":"SubmitBatchQueryRequest"},"BatchesQueriesBatchType":{"type":"string","enum":["zoql","zoqlexport"],"description":"The kind of batch job being submitted.\n","title":"BatchesQueriesBatchType"},"BatchesQueriesDeletedItems":{"type":"object","properties":{"column":{"type":"string","description":"Name of the Column in the extracted file that points to the deleted records. \n"},"format":{"type":"string","description":"Can be set to either `Numeric` or `Boolean`. If set to `Numeric`, deleted records are marked as `1`. If set to `Boolean`, deleted records are marked as `true`.          \n"}},"title":"BatchesQueriesDeletedItems"},"BatchesQueriesStatus":{"type":"string","enum":["submitted","pending","executing","completed","aborted","deleted_notallowed"],"description":"The status of the query task:\n- submitted: The query was submitted to the query executor for processing.\n- pending: The query was waiting for being processed.\n- executing: The query is being processed.\n- completed: The query was successfully executed.\n- aborted: The query execution failed.\n- deleted_notallowed: The query execution failed because objects included in the query do not support the querying of deleted records.\n","title":"BatchesQueriesStatus"},"BatchesQueries":{"type":"object","properties":{"apiVersion":{"type":"string","description":"The API version for the query. If an API version is not specified, the latest version is used by default. Using the latest WSDL version is most useful for reporting use cases. For integration purposes, specify the WSDL version to ensure consistent query behavior, that is, what is supported and included in the response returned by the API.\n\n**Note**: As of API version 69 and later, Zuora changed the format of certain fields. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/G_SOAP_API/AB_Getting_started_with_the__SOAP_API/C_Date_Field_Changes_in_the_SOAP_API\" target=\"_blank\">Date Field Changes in the SOAP API</a> for more information and a list of affected fields.\n"},"batchId":{"type":"string","description":"A 32-character ID of the query batch.\n"},"batchType":{"$ref":"#/components/schemas/BatchesQueriesBatchType","description":"The kind of batch job being submitted.\n"},"deleted":{"type":"array","items":{"$ref":"#/components/schemas/BatchesQueriesDeletedItems"},"description":"This field indicates that the AQuA incremental load will retrieve deleted records.\n\n**Note**: AQuA API is subject to Zuora Data Retention Policy. The retention period of deleted data is 30 days. You can only retrieve deleted data for 30 days through AQuA.\n"},"full":{"type":"boolean","description":"This field indicates a full or incremental load. `True` = Full and `False` = Incremental.          \n"},"name":{"type":"string","description":"Name of the query supplied in the request.\n"},"query":{"type":"string","description":"The requested query string.\n"},"recordCount":{"type":"string","description":"The number of records included in the query output file.\n"},"status":{"$ref":"#/components/schemas/BatchesQueriesStatus","description":"The status of the query task:\n- submitted: The query was submitted to the query executor for processing.\n- pending: The query was waiting for being processed.\n- executing: The query is being processed.\n- completed: The query was successfully executed.\n- aborted: The query execution failed.\n- deleted_notallowed: The query execution failed because objects included in the query do not support the querying of deleted records.\n"}},"title":"BatchesQueries"},"SubmitBatchQueryResponseEncrypted":{"type":"string","enum":["pgp","none"],"description":"If enabled, you must supply the formatting (zip or unzip) first and decrypt it to get the actual contents.      \n","title":"SubmitBatchQueryResponseEncrypted"},"SubmitBatchQueryResponseFormat":{"type":"string","enum":["csv","zip","gzip"],"description":"The format of the query. The default value is `csv`.\n","title":"SubmitBatchQueryResponseFormat"},"SubmitBatchQueryResponseStatus":{"type":"string","enum":["submitted","executing","completed","error","aborted","cancelled"],"description":"The status of the AQuA job:\n- submitted: The AQuA job was submitted to the query executor for processing.\n- executing: The AQuA job is being processed.\n- completed: The AQuA job was successfully executed.\n- error: The AQuA job was not processed because of validation errors.\n- aborted: The AQuA job execution failed because one or more queries of this job failed.\n- cancelled: The AQuA job was cancelled.\n","title":"SubmitBatchQueryResponseStatus"},"SubmitBatchQueryResponse":{"type":"object","properties":{"batches":{"type":"array","items":{"$ref":"#/components/schemas/BatchesQueries"},"description":"A JSON array object that contains a list of batch objects.\n"},"encrypted":{"$ref":"#/components/schemas/SubmitBatchQueryResponseEncrypted","description":"If enabled, you must supply the formatting (zip or unzip) first and decrypt it to get the actual contents.      \n"},"format":{"$ref":"#/components/schemas/SubmitBatchQueryResponseFormat","description":"The format of the query. The default value is `csv`.\n"},"id":{"type":"string","description":"The job ID created for the AQuA API request. The job ID can be used for querying for the query status. \n\nThe ID exists only if the JSON request can be parsed and validated successfully. Otherwise, the job ID is null.\n"},"incrementalTime":{"type":"string","format":"dateTime","description":"Allows you to override the time from which a Stateful AQuA job incrementally retrieves records that have been created or modified, using the `incrementalTime` parameter. For example, if you set `incrementalTime` = `2015-01-21 10:30:01`, AQuA will retrieve records that have created or modified beginning at 10:30:01. If this parameter is not set, AQuA continues to use the Start Time of the last AQuA session to retrieve records incrementally.\n\nThe time zone of `incrementalTime` depends on which Zuora data center you use. For US Data Center customers, the time zone of `incrementalTime` is Pacific Time. For EU Data Center customers, the time zone of `incrementalTime` is UTC. If the time zone of your system is different from the time zone of `incrementalTime`, you will need to convert to the appropriate time zone before setting `incrementalTime`.\n\n**Note**: This field can only be used in Stateful AQuA mode.    \n"},"name":{"type":"string","description":"The name of the job. 32 character limit.\n"},"notifyUrl":{"type":"string","description":"If URL is provided, the AQuA job will call this `notifyUrl` once the job has completed. The value of `notifyUrl` needs to have `${JOBID}` and `${STATUS}` placeholders. These placeholders will be replaced by the actual job ID and status when returned in the response. Status will be `Completed` after the AQuA job is done.\n\nIf you submit an AQuA query with `notifyUrl` specified, the value of `notifyUrl` will be ignored if your organization has already <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/Callout_Notification_for_Completed_AQuA_Jobs\" target=\"_blank\">configured a callout notification through the Zuora user interface</a>.           \n"},"offset":{"type":"integer","default":0,"description":"This field specifies the time offset for AQuA queries in stateful mode. It is an integer in the range 0 to 3,600 seconds.\n\nFor example, if you set this field to 600 seconds and you post a query in stateful mode at 2:00 AM, it will query against data created or updated between the completion time of the previous query and 1:50 AM.\n\nThe value of this field will override the value you configured in **Settings** > **Administration** > **AQuA API Stateful Mode Time Offset**.    \n"},"partner":{"type":"string","description":"The partner field indicates the unique ID of a data integration partner. The dropdown list of this field displays partner IDs for the past thirty days.\n\nIt must be used together with \"project\" field to uniquely identify a data integration target.\n\nFor example, if a continuous AQuA session is to retrieve data incrementally for a Salesforce.com Org 00170000011K3Ub, you can use partner as \"Salesforce\", and \"project\" as \"00170000011K3Ub.\" \n\nThis field is required only if you are using AQuA in stateful mode. Otherwise, if you are using AQuA in stateless mode, partner field can be null.\n\n**Note**: Zuora highly recommends you use the stateless mode instead of the stateful mode to extract bulk data. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/Bulk_data__extraction_from_Zuora_using_AQuA\" target=\"_blank\">Bulk data extraction from Zuora using AQuA</a> for best practices.\n\n**Note**: Submit a request at <a href=\"http://support.zuora.com\" target=\"_blank\">Zuora Global Support</a> to obtain a partner ID.\n"},"project":{"type":"string","description":"The project field contains the unique ID of a data integration project for a particular partner. The dropdown list of this field displays project IDs for the past thirty days.\n\nThis field must be used together with partner field to uniquely identify a data integration target. \n\nThis field is required only if you are using AQuA in stateful mode. Otherwise, if you are using AQuA in stateless mode, partner field can be null.\n"},"sourceData":{"type":"string","description":"Indicates the source this aggregate query runs against:\n\n* `LIVE` represents the live transactional databases at Zuora (Data Query Live).\n"},"status":{"$ref":"#/components/schemas/SubmitBatchQueryResponseStatus","description":"The status of the AQuA job:\n- submitted: The AQuA job was submitted to the query executor for processing.\n- executing: The AQuA job is being processed.\n- completed: The AQuA job was successfully executed.\n- error: The AQuA job was not processed because of validation errors.\n- aborted: The AQuA job execution failed because one or more queries of this job failed.\n- cancelled: The AQuA job was cancelled.\n"},"useLastCompletedJobQueries":{"type":"boolean","description":"If this flag is set to `true`, then all the previous queries are merged with existing queries.\n\nIf the flag is set to `false`, then the previous queries are ignored, and only the new query is executed.\n"},"version":{"type":"string","title":"float","description":"The API version you want to use. \n\nThe supported versions are as follows:\n  - `1.1`. It supports both modes\n  - `1.0`. Default. It supports stateless modes only.\n\nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/BA_Stateless_and_Stateful_Modes\" target=\"_blank\">Stateless and stateful modes</a> for more information.\n"}},"title":"SubmitBatchQueryResponse"},"BatchesQueriesByIdBatchType":{"type":"string","enum":["zoql","zoqlexport"],"description":"The kind of batch job being submitted.\n","title":"BatchesQueriesByIdBatchType"},"BatchesQueriesByIdStatus":{"type":"string","enum":["submitted","pending","executing","completed","aborted","deleted_notallowed"],"description":"The status of the query task:\n- submitted: The query was submitted to the query executor for processing.\n- pending: The query was waiting for being processed.\n- executing: The query is being processed.\n- completed: The query was successfully executed.\n- aborted: The query execution failed.\n- deleted_notallowed: The query execution failed because objects included in the query do not support the querying of deleted records.\n","title":"BatchesQueriesByIdStatus"},"BatchesQueriesById":{"type":"object","properties":{"apiVersion":{"type":"string","description":"The API version for the query. If an API version is not specified, the latest version is used by default. Using the latest WSDL version is most useful for reporting use cases. For integration purposes, specify the WSDL version to ensure consistent query behavior, that is, what is supported and included in the response returned by the API.\n\n**Note**: As of API version 69 and later, Zuora changed the format of certain fields. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/G_SOAP_API/AB_Getting_started_with_the__SOAP_API/C_Date_Field_Changes_in_the_SOAP_API\" target=\"_blank\">Date Field Changes in the SOAP API</a> for more information and a list of affected fields.\n"},"batchId":{"type":"string","description":"A 32-character ID of the query batch.\n"},"batchType":{"$ref":"#/components/schemas/BatchesQueriesByIdBatchType","description":"The kind of batch job being submitted.\n"},"fileId":{"type":"string","description":"The ID of the query results file.\n\nUse Get Results Files to download the query results file. The query results file is formatted as requested in the batch job. Supported formats are CSV, GZIP, and ZIP.\n"},"full":{"type":"boolean","description":"This field indicates a full or incremental load. `True` = Full and `False` = Incremental.\n"},"message":{"type":"string","description":"The error message.\n"},"name":{"type":"string","description":"Name of the query supplied in the request.\n"},"query":{"type":"string","description":"The requested query string.\n"},"recordCount":{"type":"string","description":"The number of records included in the query output file.\n"},"segments":{"type":"array","items":{"description":"Any type"},"description":"Array of IDs of query results files. Replaces fileId for full data loads in stateful mode if <a href = \"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/G_File_Segmentation\" target=\"_blank\">File Segmentation</a> is enabled.\n\nUse Get Results Files to download each query results file. Each query results file contains at most 500,000 records and is formatted as requested in the batch job. Supported formats are CSV, GZIP, and ZIP.\n"},"status":{"$ref":"#/components/schemas/BatchesQueriesByIdStatus","description":"The status of the query task:\n- submitted: The query was submitted to the query executor for processing.\n- pending: The query was waiting for being processed.\n- executing: The query is being processed.\n- completed: The query was successfully executed.\n- aborted: The query execution failed.\n- deleted_notallowed: The query execution failed because objects included in the query do not support the querying of deleted records.\n"}},"title":"BatchesQueriesById"},"GetAggregateQueryJobResponseEncrypted":{"type":"string","enum":["pgp","none"],"description":"If enabled, you must supply the formatting (zip or unzip) first and decrypt it to get the actual contents.\n","title":"GetAggregateQueryJobResponseEncrypted"},"GetAggregateQueryJobResponseFormat":{"type":"string","enum":["csv","zip","gzip"],"description":"The format of the query. The default value is `csv`.\n","title":"GetAggregateQueryJobResponseFormat"},"GetAggregateQueryJobResponseStatus":{"type":"string","enum":["submitted","executing","completed","error","aborted","cancelled"],"description":"The status of the AQuA job:\n- submitted: The AQuA job was submitted to the query executor for processing.\n- executing: The AQuA job is being processed.\n- completed: The AQuA job was successfully executed.\n- error: The AQuA job was not processed because of validation errors.\n- aborted: The AQuA job execution failed because one or more queries of this job failed.\n- cancelled: The AQuA job was cancelled.\n","title":"GetAggregateQueryJobResponseStatus"},"GetAggregateQueryJobResponse":{"type":"object","properties":{"batches":{"type":"array","items":{"$ref":"#/components/schemas/BatchesQueriesById"},"description":"A JSON array object that contains a list of batch objects.\n"},"encrypted":{"$ref":"#/components/schemas/GetAggregateQueryJobResponseEncrypted","description":"If enabled, you must supply the formatting (zip or unzip) first and decrypt it to get the actual contents.\n"},"format":{"$ref":"#/components/schemas/GetAggregateQueryJobResponseFormat","description":"The format of the query. The default value is `csv`.\n"},"id":{"type":"string","description":"The job ID created for the AQuA API request. The job ID can be used for querying for the query status. \n\nThe ID exists only if the JSON request can be parsed and validated successfully. Otherwise, the job ID is null.\n"},"name":{"type":"string","description":"The name of the job. 32 character limit.\n"},"partner":{"type":"string","description":"The partner field indicates the unique ID of a data integration partner. The dropdown list of this field displays partner IDs for the past thirty days.\n\nIt must be used together with \"project\" field to uniquely identify a data integration target.\n\nFor example, if a continuous AQuA session is to retrieve data incrementally for a Salesforce.com Org 00170000011K3Ub, you can use partner as \"Salesforce\", and \"project\" as \"00170000011K3Ub.\" \n\nThis field is required only if you are using AQuA in stateful mode. Otherwise, if you are using AQuA in stateless mode, partner field can be null.\n\n**Note**: Zuora highly recommends you use the stateless mode instead of the stateful mode to extract bulk data. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/Bulk_data__extraction_from_Zuora_using_AQuA\" target=\"_blank\">Bulk data extraction from Zuora using AQuA</a> for best practices.\n\n**Note**: Submit a request at <a href=\"http://support.zuora.com\" target=\"_blank\">Zuora Global Support</a> to obtain a partner ID.\n"},"project":{"type":"string","description":"The project field contains the unique ID of a data integration project for a particular partner. The dropdown list of this field displays project IDs for the past thirty days.\n\nThis field must be used together with partner field to uniquely identify a data integration target. \n\nThis field is required only if you are using AQuA in stateful mode. Otherwise, if you are using AQuA in stateless mode, partner field can be null.\n"},"sourceData":{"type":"string","description":"Indicates the source this aggregate query runs against:\n\n* `LIVE` represents the live transactional databases at Zuora (Data Query Live).\n\n* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_Warehouse/A_Zuora_Warehouse_overview\" target=\"_blank\">Zuora Warehouse</a>.\n"},"startTime":{"type":"string","description":"The start time of the query. \n"},"status":{"$ref":"#/components/schemas/GetAggregateQueryJobResponseStatus","description":"The status of the AQuA job:\n- submitted: The AQuA job was submitted to the query executor for processing.\n- executing: The AQuA job is being processed.\n- completed: The AQuA job was successfully executed.\n- error: The AQuA job was not processed because of validation errors.\n- aborted: The AQuA job execution failed because one or more queries of this job failed.\n- cancelled: The AQuA job was cancelled.\n"},"version":{"type":"string","title":"float","description":"The API version you want to use. \n\nThe supported versions are as follows:\n  - `1.1`. It supports both modes\n  - `1.0`. Default. It supports stateless modes only.\n\nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/BA_Stateless_and_Stateful_Modes\" target=\"_blank\">Stateless and stateful modes</a> for more information.\n"}},"title":"GetAggregateQueryJobResponse"},"BatchQueriesBatchType":{"type":"string","enum":["zoql","zoqlexport"],"description":"The kind of batch job being submitted.              \n","title":"BatchQueriesBatchType"},"BatchQueriesStatus":{"type":"string","enum":["submitted","pending","executing","completed","aborted","deleted_notallowed"],"description":"The status of the query task:\n- submitted: The query was submitted to the query executor for processing.\n- pending: The query was waiting for being processed.\n- executing: The query is being processed.\n- completed: The query was successfully executed.\n- aborted: The query execution failed.\n- deleted_notallowed: The query execution failed because objects included in the query do not support the querying of deleted records.\n","title":"BatchQueriesStatus"},"BatchQueries":{"type":"object","properties":{"batchId":{"type":"string","description":"A 32-character ID of the query batch.\n"},"batchType":{"$ref":"#/components/schemas/BatchQueriesBatchType","description":"The kind of batch job being submitted.              \n"},"fileId":{"type":"string","description":"The ID of the query results file.\n\nUse Get Results Files to download the query results file. The query results file is formatted as requested in the batch job. Supported formats are CSV, GZIP, and ZIP.\n"},"message":{"type":"string","description":"The error message.\n"},"name":{"type":"string","description":"Name of the query supplied in the request.\n"},"query":{"type":"string","description":"The requested query string.\n"},"recordCount":{"type":"string","description":"The number of records included in the query output file.\n"},"segments":{"type":"array","items":{"description":"Any type"},"description":"Array of IDs of query results files. Replaces fileId for full data loads in stateful mode if <a href = \"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/G_File_Segmentation\" target=\"_blank\">File Segmentation</a> is enabled.\n\nUse Get Results Files to download each query results file. Each query results file contains at most 500,000 records and is formatted as requested in the batch job. Supported formats are CSV, GZIP, and ZIP.\n"},"status":{"$ref":"#/components/schemas/BatchQueriesStatus","description":"The status of the query task:\n- submitted: The query was submitted to the query executor for processing.\n- pending: The query was waiting for being processed.\n- executing: The query is being processed.\n- completed: The query was successfully executed.\n- aborted: The query execution failed.\n- deleted_notallowed: The query execution failed because objects included in the query do not support the querying of deleted records.\n"}},"title":"BatchQueries"},"DeleteBatchQueryJobResponseFormat":{"type":"string","enum":["csv","zip","gzip"],"description":"The format of the query. The default value is `csv`.\n","title":"DeleteBatchQueryJobResponseFormat"},"DeleteBatchQueryJobResponseStatus":{"type":"string","enum":["submitted","executing","completed","error","aborted","cancelled"],"description":"The status of the AQuA job:\n- submitted: The AQuA job was submitted to the query executor for processing.\n- executing: The AQuA job is being processed.\n- completed: The AQuA job was successfully executed.\n- error: The AQuA job was not processed because of validation errors.\n- aborted: The AQuA job execution failed because one or more queries of this job failed.\n- cancelled: The AQuA job was cancelled.\n","title":"DeleteBatchQueryJobResponseStatus"},"DeleteBatchQueryJobResponse":{"type":"object","properties":{"batches":{"type":"array","items":{"$ref":"#/components/schemas/BatchQueries"},"description":"A JSON array object that contains a list of batch objects.\n"},"format":{"$ref":"#/components/schemas/DeleteBatchQueryJobResponseFormat","description":"The format of the query. The default value is `csv`.\n"},"id":{"type":"string","description":"The job ID created for the AQuA API request. The job ID can be used for querying for the query status. \n\nThe ID exists only if the JSON request can be parsed and validated successfully. Otherwise, the job ID is null.\n"},"name":{"type":"string","description":"The name of the job. 32 character limit.\n"},"sourceData":{"type":"string","description":"Indicates the source this aggregate query runs against:\n\n* `LIVE` represents the live transactional databases at Zuora (Data Query Live).\n\n* `WAREHOUSE` represents Zuora Warehouse, which has better performance and fewer limitations than the live transactional database. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_Warehouse/A_Zuora_Warehouse_overview\" target=\"_blank\">Zuora Warehouse</a>.\n"},"status":{"$ref":"#/components/schemas/DeleteBatchQueryJobResponseStatus","description":"The status of the AQuA job:\n- submitted: The AQuA job was submitted to the query executor for processing.\n- executing: The AQuA job is being processed.\n- completed: The AQuA job was successfully executed.\n- error: The AQuA job was not processed because of validation errors.\n- aborted: The AQuA job execution failed because one or more queries of this job failed.\n- cancelled: The AQuA job was cancelled.\n"},"version":{"type":"string","title":"float","description":"The API version you want to use. \n\nThe supported versions are as follows:\n  - `1.1`. It supports both modes\n  - `1.0`. Default. It supports stateless modes only.\n\nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/BA_Stateless_and_Stateful_Modes\" target=\"_blank\">Stateless and stateful modes</a> for more information.\n"}},"title":"DeleteBatchQueryJobResponse"},"JsonNode":{"type":"object","properties":{},"description":"Json node object contains metadata.","title":"JsonNode"},"ConfigTemplateErrorResponseReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"A detailed description of the error response."}},"title":"ConfigTemplateErrorResponseReasonsItems"},"ConfigTemplateErrorResponse":{"type":"object","properties":{"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ConfigTemplateErrorResponseReasonsItems"}}},"title":"ConfigTemplateErrorResponse"},"MigrationComponentContent":{"type":"object","properties":{"attribute":{"type":"string"},"componentType":{"type":"string","description":"Type of selected components to be migrated."},"currentTargetResponse":{"$ref":"#/components/schemas/JsonNode"},"description":{"type":"string"},"disabled":{"type":"string"},"errorMessage":{"type":"string","description":"Error information."},"httpMethods":{"type":"string"},"id":{"type":"string"},"key":{"type":"string"},"migratedOn":{"type":"string","format":"date-time","description":"It is the time when migration is triggered."},"migrationId":{"type":"string","description":"Migration ID. It is generated at the time of triggering deployment."},"pathPattern":{"type":"string","description":"PathPattern of component."},"previousTargetResponse":{"$ref":"#/components/schemas/JsonNode"},"result":{"type":"string","description":"Returns the result details of Components."},"segregationKey":{"type":"string","description":"Displays the differences between components."},"sourceResponse":{"$ref":"#/components/schemas/JsonNode"},"status":{"type":"string","description":"Returns the status of each component."},"updateStatus":{"type":"string","description":"Updated Status."}},"description":"When a comparison is made between a source and target tenant, it sends a response to the user interface.","title":"MigrationComponentContent"},"CompareSchemaKeyValue":{"type":"object","properties":{"difference":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Returns the different components list."},"response":{"type":"array","items":{"$ref":"#/components/schemas/MigrationComponentContent"},"description":"Provides the total reponse of the components."},"segregationKeys":{"type":"array","items":{"type":"string"},"description":"Provides separation of components."}},"description":"When a comparison is made between a source and target tenant, it sends a response to the user interface.","title":"CompareSchemaKeyValue"},"CompareSchemaInfoResponse":{"type":"object","properties":{"customFields":{"type":"array","items":{"$ref":"#/components/schemas/CompareSchemaKeyValue"}},"customObjects":{"type":"array","items":{"$ref":"#/components/schemas/CompareSchemaKeyValue"}},"dataAccessControl":{"type":"array","items":{"$ref":"#/components/schemas/CompareSchemaKeyValue"}},"metaData":{"$ref":"#/components/schemas/JsonNode"},"notifications":{"type":"array","items":{"$ref":"#/components/schemas/CompareSchemaKeyValue"}},"productCatalog":{"type":"array","items":{"$ref":"#/components/schemas/CompareSchemaKeyValue"}},"settings":{"type":"array","items":{"$ref":"#/components/schemas/CompareSchemaKeyValue"}},"workflows":{"type":"array","items":{"$ref":"#/components/schemas/CompareSchemaKeyValue"}}},"description":"When Tenant's Compare API returns a result, this object is used to send the response to UI.","title":"CompareSchemaInfoResponse"},"TemplateMigrationClientRequest":{"type":"object","properties":{"comments":{"type":"string"},"description":{"type":"string","description":"Description of the migration."},"emailIds":{"type":"string","description":"List of Emails with comma separator."},"entityUuid":{"type":"string","description":"Entity UUID"},"metaData":{"$ref":"#/components/schemas/JsonNode"},"name":{"type":"string","description":"Name of the migration."},"request":{"type":"array","items":{"$ref":"#/components/schemas/MigrationComponentContent"},"description":"List of settings need to be migrated."},"sendEmail":{"type":"boolean","description":"Flag determines whether or not to send an email."}},"required":["description","entityUuid","name","sendEmail"],"description":"Request to add a new Template migration.\nTemplateMigrationClientRequest object contains request details of target tenant, source tenant, and template information needed for migration.\n","title":"TemplateMigrationClientRequest"},"MigrationClientResponse":{"type":"object","properties":{"emailIds":{"type":"string","description":"List of Emails with comma separator "},"environment":{"type":"string","description":"Environment information"},"id":{"type":"string","description":"Variable to hold the job ID."},"migratedBy":{"type":"string","description":"User responsible for migration."},"migrationDescription":{"type":"string","description":"Description of the migration."},"migrationEnd":{"type":"string","description":"Timestamp when migration ended."},"migrationName":{"type":"string","description":"Name of the migration."},"migrationStart":{"type":"string","description":"Timestamp when migration started."},"response":{"type":"array","items":{"$ref":"#/components/schemas/MigrationComponentContent"}},"sourceTenantDescription":{"type":"string","description":"Source Tenant Description."},"sourceTenantName":{"type":"string","description":"Source Tenant Name."},"status":{"type":"string","description":"Status of the Migration Job."},"type":{"type":"string"}},"required":["id","migratedBy","migrationDescription","migrationEnd","migrationName","migrationStart","sourceTenantDescription","sourceTenantName","status"],"description":"Response after migration is added.","title":"MigrationClientResponse"},"ConfigurationTemplateContent":{"type":"object","properties":{"componentType":{"type":"string","description":"Type of Component."},"error":{"type":"string","description":"Error Information."},"id":{"type":"string","description":"Id of Each component."},"key":{"type":"string","description":"Key value of fields inside component."},"method":{"type":"string","description":"Http method which is used to retrieve the particular component."},"payload":{"$ref":"#/components/schemas/JsonNode"},"result":{"type":"string","description":"Contains the response of details fetched regarding selected component."},"segregationKey":{"type":"string","description":"Gives the difference between components and sub components."},"templateId":{"type":"string","description":"Id of the Template."},"url":{"type":"string","description":"Metadata is retrieved from this URL."}},"description":"It contains information about template schemas with segregation keys.","title":"ConfigurationTemplateContent"},"SettingComponentKeyValue":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"string"}},"originalPayload":{"$ref":"#/components/schemas/JsonNode"},"response":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationTemplateContent"}},"segregationKeys":{"type":"array","items":{"type":"string"}}},"description":"Provides details about the individual components that need to be compared and deployed.","title":"SettingComponentKeyValue"},"SettingSourceComponentResponse":{"type":"object","properties":{"customFields":{"type":"array","items":{"$ref":"#/components/schemas/SettingComponentKeyValue"}},"customObjects":{"type":"array","items":{"$ref":"#/components/schemas/SettingComponentKeyValue"}},"dataAccessControl":{"type":"array","items":{"$ref":"#/components/schemas/SettingComponentKeyValue"}},"dataQuery":{"type":"array","items":{"$ref":"#/components/schemas/SettingComponentKeyValue"}},"multiOrg":{"type":"array","items":{"$ref":"#/components/schemas/SettingComponentKeyValue"}},"notifications":{"type":"array","items":{"$ref":"#/components/schemas/SettingComponentKeyValue"}},"organizationHierarchy":{"type":"array","items":{"$ref":"#/components/schemas/SettingComponentKeyValue"}},"productCatalog":{"type":"array","items":{"$ref":"#/components/schemas/SettingComponentKeyValue"}},"settings":{"type":"array","items":{"$ref":"#/components/schemas/SettingComponentKeyValue"}},"workflows":{"type":"array","items":{"$ref":"#/components/schemas/SettingComponentKeyValue"}}},"description":"Provides details about the different components that need to be compared and deployed.","title":"SettingSourceComponentResponse"},"TemplateDetailResponse":{"type":"object","properties":{"active":{"type":"boolean","description":"Whether or not the template is active."},"content":{"$ref":"#/components/schemas/SettingSourceComponentResponse"},"createdBy":{"type":"string","description":"Information about the user who created it."},"createdOn":{"type":"string","description":"When it is created."},"description":{"type":"string","description":"Template description which contains the information about the created template."},"entityName":{"type":"string","description":"Name of the Entity"},"environment":{"type":"string","description":"Details of the environment in which the template was created."},"errors":{"type":"string","description":"Error information."},"id":{"type":"string","description":"Id of the template."},"name":{"type":"string","description":"Name of the template."},"status":{"type":"string","description":"The status of the template creation, such as whether it is in progress, completed, or failed."},"tenantName":{"type":"string","description":"Tenant's name for whom the template is created."}},"description":"Contains all template details.","title":"TemplateDetailResponse"},"TemplateResponse":{"type":"object","properties":{"templates":{"type":"array","items":{"$ref":"#/components/schemas/TemplateDetailResponse"},"description":"Contains list of template details."}},"description":"It contains a collection of all the templates that have been created.","title":"TemplateResponse"},"CreateTemplateRequestContent":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/SettingSourceComponentResponse"},"customFields":{"type":"boolean","description":"Selected custom fields component or not."},"customObjects":{"type":"boolean","description":"Selected custom objects component or not."},"description":{"type":"string","description":"Creates template description."},"name":{"type":"string","description":"Name of the Template."},"notifications":{"type":"boolean","description":"Selected Notification component or not."},"selectedComponents":{"type":"array","items":{"$ref":"#/components/schemas/ConfigurationTemplateContent"},"description":"ConfigurationTemplateContent object contains the selected meta data information."},"settings":{"type":"boolean","description":"Selected Settings component or not."},"templateTenant":{"type":"string","description":"ID of the template tenant."},"workflows":{"type":"boolean","description":"Selected Workflow component or not."}},"required":["description","name","templateTenant"],"description":"CreateTemplateRequestContent object contains information for creating template.\n","title":"CreateTemplateRequestContent"},"Configuration_Templates_DELETE_DeploymentTemplate_Response_200":{"type":"object","properties":{},"description":"Empty response body","title":"Configuration Templates_DELETE_DeploymentTemplate_Response_200"},"DeploymentManagerResponseStatus":{"type":"string","enum":["DEPLOYING","REVERTING","PARTIALLY-REVERTED","FAILED","ROLLBACK-FAILED","REVERTED","COMPARING","SUBMITTED","SKIPPED","IDENTICAL","COMPARE-DONE","COMPARE-FAILED","CANCELLED"],"description":"Status of the Deployment Manager migration process","title":"DeploymentManagerResponseStatus"},"DeploymentManagerResponse":{"type":"object","properties":{"id":{"type":"string","description":"ID of the Deployment Manager migration process"},"status":{"$ref":"#/components/schemas/DeploymentManagerResponseStatus","description":"Status of the Deployment Manager migration process"}},"title":"DeploymentManagerResponse"},"DeploymentManagerDeploymentsMigrationIdRevertPostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["DEPLOYING","REVERTING","PARTIALLY-REVERTED","FAILED","ROLLBACK-FAILED","REVERTED","COMPARING","SUBMITTED","SKIPPED","IDENTICAL","COMPARE-DONE","COMPARE-FAILED","CANCELLED"],"description":"Status of the Deployment Manager migration process.","title":"DeploymentManagerDeploymentsMigrationIdRevertPostResponsesContentApplicationJsonSchemaStatus"},"Metadata_Deployment_RevertDeployment_Response_200":{"type":"object","properties":{"id":{"type":"string","description":"ID of the Deployment Manager migration process."},"name":{"type":"string","description":"Name of the Deployment Manager migration process."},"description":{"type":"string","description":"Description of the Deployment Manager migration process."},"sourceTenantName":{"type":"string","description":"Name of the source Tenant."},"sourceTenantDescription":{"type":"string","description":"Description of the source Tenant."},"status":{"$ref":"#/components/schemas/DeploymentManagerDeploymentsMigrationIdRevertPostResponsesContentApplicationJsonSchemaStatus","description":"Status of the Deployment Manager migration process."},"startTime":{"type":"string","description":"start timestamp of the Deployment Manager migration process."},"endTime":{"type":"string","description":"end timestamp of the Deployment Manager migration process."},"migratedBy":{"type":"string","description":"User who initiated the Deployment Manager migration process."},"type":{"type":"string","description":"Type of the Deployment Manager migration process."},"environment":{"type":"string","description":"Environment of the Deployment Manager migration process."},"emailIds":{"type":"string","description":"emailIds notified of the Deployment Manager migration process."},"productCatalog":{"type":"boolean","description":"Boolean flag specifies if the migration process includes product catalog module."},"errors":{"type":"string","description":"Errors of the Deployment Manager migration process."}},"title":"Metadata Deployment_RevertDeployment_Response_200"},"DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaTargetTenant":{"type":"object","properties":{"id":{"type":"string","description":"Target tenant id."},"name":{"type":"string","description":"Target tenant name."},"environment":{"type":"string","description":"Target tenant description."}},"title":"DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaTargetTenant"},"DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaSucceededItems":{"type":"object","properties":{"component":{"type":"string","description":"Component name."},"subComponent":{"type":"string","description":"Subcomponent name."},"key":{"type":"string","description":"Key to identify a particular migration data."}},"title":"DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaSucceededItems"},"DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaFailedItems":{"type":"object","properties":{"component":{"type":"string","description":"Component name."},"subComponent":{"type":"string","description":"Subcomponent name."},"key":{"type":"string","description":"Key to identify a particular migration data."},"errorInfo":{"type":"string","description":"Error details of the migration."}},"title":"DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaFailedItems"},"DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaSkippedItems":{"type":"object","properties":{"component":{"type":"string","description":"Component name."},"subComponent":{"type":"string","description":"Subcomponent name."},"key":{"type":"string","description":"Key to identify a particular migration data."},"reason":{"type":"string","description":"The rationale behind the non-migration of specific data."}},"title":"DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaSkippedItems"},"Metadata_Deployment_FetchDeploymentLogs_Response_200":{"type":"object","properties":{"id":{"type":"string","description":"ID of the migration process."},"name":{"type":"string","description":"Name of the migration."},"description":{"type":"string","description":"Description of the migration."},"status":{"type":"string","description":"Migration status."},"targetTenant":{"$ref":"#/components/schemas/DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaTargetTenant"},"deploymentDate":{"type":"string","description":"Deployment timestamp."},"runBy":{"type":"string","description":"Name of the user who executed the migration."},"succeeded":{"type":"array","items":{"$ref":"#/components/schemas/DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaSucceededItems"}},"failed":{"type":"array","items":{"$ref":"#/components/schemas/DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaFailedItems"}},"skipped":{"type":"array","items":{"$ref":"#/components/schemas/DeploymentManagerDeploymentsMigrationIdGetResponsesContentApplicationJsonSchemaSkippedItems"}}},"title":"Metadata Deployment_FetchDeploymentLogs_Response_200"},"DeploymentManagerDeploymentsTenantProductCatalogPostRequestBodyContentMultipartFormDataSchemaCompareField":{"type":"string","enum":["name","sku"],"description":"Specifies the compare field to be using during migration.","title":"DeploymentManagerDeploymentsTenantProductCatalogPostRequestBodyContentMultipartFormDataSchemaCompareField"},"DeploymentManagerDeploymentsTemplateProductCatalogPostRequestBodyContentMultipartFormDataSchemaCompareField":{"type":"string","enum":["name","sku"],"description":"Specifies the compare field to be using during migration.","title":"DeploymentManagerDeploymentsTemplateProductCatalogPostRequestBodyContentMultipartFormDataSchemaCompareField"},"BulkJobRequestMappingsItemsType":{"type":"string","enum":["array","string","number","boolean"],"description":"Field type","title":"BulkJobRequestMappingsItemsType"},"BulkJobRequestMappingsItemsArrayType":{"type":"string","enum":["string","number","boolean"],"description":"Type of objects in the array if the field is an array type","title":"BulkJobRequestMappingsItemsArrayType"},"BulkJobRequestMappingsItems":{"type":"object","properties":{"source":{"type":"string","description":"Source field name"},"target":{"type":"string","description":"Target field name. \n\n**Note**: The `target` field must not contain spaces, dots (`.`), underscores (`_`), or asterisks (`*`).\n"},"type":{"$ref":"#/components/schemas/BulkJobRequestMappingsItemsType","description":"Field type"},"arrayType":{"$ref":"#/components/schemas/BulkJobRequestMappingsItemsArrayType","description":"Type of objects in the array if the field is an array type"}},"required":["source","target"],"title":"BulkJobRequestMappingsItems"},"BulkJobRequestFileType":{"type":"string","enum":["csv","jsonl"],"description":"Type of the source file. Supported values: csv, jsonl \nDefault is csv, which means delimited file where the delimiter can be comma but can also be one of the other supported delimiters","title":"BulkJobRequestFileType"},"BulkJobRequestJobType":{"type":"string","enum":["Import","Delete","Update","Cancel"],"description":"Type of the bulk job being created. Default is IMPORT","title":"BulkJobRequestJobType"},"BulkJobRequestDataSourceType":{"type":"string","enum":["UserUpload","Salesforce","Chargebee","Stripe"],"description":"The data source type of the job","title":"BulkJobRequestDataSourceType"},"BulkJobRequestSystemType":{"type":"string","enum":["BILLING"],"description":"The system type for the job","title":"BulkJobRequestSystemType"},"BulkJobRequest":{"type":"object","properties":{"name":{"type":"string","description":"Name of the job. Max length is 255 characters"},"objectType":{"type":"string","description":"Type of the object. Supported object types:   \n- `account`\n- `accountingcode`\n- `accountingperiod`\n- `amendment`\n- `bill-run`\n- `bill-run-batches`\n- `bill-run-filters`\n- `contact`\n- `credit-memo`\n- `credit-memo-from-charge`\n- `credit-memo-from-invoice`\n- `debit-memo`\n- `debit-memo-from-charge`\n- `debit-memo-from-invoice`\n- `invoice`\n- `journal-entry`\n- `journal-run`\n- `offer`\n- `omni-channel-subscription`\n- `order`\n- `order-create-order-line-item`\n- `order-create-subscription-existing-account`\n- `order-create-subscription-existing-account-with-volume-charge`\n- `order-create-subscription-with-new-account`\n- `order-remove-product`\n- `order-update-subscription-add-product`\n- `order-update-subscription-change-plan`\n- `order-update-subscription-price-quantity-change`\n- `payment`\n- `payment-profile`\n- `payment-schedule`\n- `payment-schedule-item`\n- `payments-simple`\n- `payments-unapply`\n- `price-book-item`\n- `product`\n- `product-charge-definition`\n- `product-rate-plan`\n- `product-rate-plan-charge`\n- `product-rate-plan-charge-tier`\n- `product-rate-plan-definition`\n- `refund`\n- `revenue-accounting-code`\n- `subscription`\n- `subscription-add-rate-plan`\n- `subscription-change-rate-plan`\n- `subscription-remove-rate-plan`\n- `subscription-update-rate-plan`\n- `taxation-item`\n- `unitofmeasure`\n- `usage`"},"description":{"type":"string","description":"Short description of the job. Max length is 255 characters"},"mappings":{"type":"array","items":{"$ref":"#/components/schemas/BulkJobRequestMappingsItems"},"description":"List of mappings. Each mapping maps a source field to a target field in the object. If the field is an array, the type and arrayType must be specified."},"headers":{"type":"array","items":{"type":"string"},"description":"List of headers in the source file. Required if the source file does not have a header row."},"rowIdHeader":{"type":"string","description":"Header in the source file that contains the row id."},"delimiter":{"type":"string","description":"Delimiter used in the source file. Default is comma.\n  Supported values: comma, tab, pipe, semicolon, colon, caret, tilde, dot/period"},"hasHeaders":{"type":"boolean","description":"Indicates if the source file has a header row. Default is false"},"fileType":{"$ref":"#/components/schemas/BulkJobRequestFileType","description":"Type of the source file. Supported values: csv, jsonl \nDefault is csv, which means delimited file where the delimiter can be comma but can also be one of the other supported delimiters"},"jobType":{"$ref":"#/components/schemas/BulkJobRequestJobType","description":"Type of the bulk job being created. Default is IMPORT"},"isCustomObject":{"type":"boolean","description":"Indicates if the object type is a custom object. Default is false"},"customObjectNamespace":{"type":"string","description":"Namespace of the custom object. Applicable only when isCustomObject is true. Default namespace is 'default'."},"dataSourceType":{"$ref":"#/components/schemas/BulkJobRequestDataSourceType","description":"The data source type of the job"},"systemType":{"$ref":"#/components/schemas/BulkJobRequestSystemType","description":"The system type for the job"}},"required":["name","objectType"],"title":"BulkJobRequest"},"CreateResponseUploadRequest":{"type":"object","properties":{"uri":{"type":"string","format":"uri","description":"URL to which the file must be uploaded."},"fields":{"type":"object","additionalProperties":{"type":"string"},"description":"Form fields required to complete the S3 file upload."}},"title":"CreateResponseUploadRequest"},"CreateResponseStatus":{"type":"string","enum":["Created","Submitted","In Progress","Aborting","Completed","Failed","Aborted","Cancelled","Downloading"],"description":"Status of the job","title":"CreateResponseStatus"},"CreateResponseJobType":{"type":"string","enum":["Import","Delete","Update","Cancel"],"description":"Type of the job","title":"CreateResponseJobType"},"CreateResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the job"},"uploadUrl":{"type":"string","description":"URL to upload the file. This is the URL to which the file should be uploaded using a PUT request."},"uploadRequest":{"$ref":"#/components/schemas/CreateResponseUploadRequest"},"status":{"$ref":"#/components/schemas/CreateResponseStatus","description":"Status of the job"},"jobType":{"$ref":"#/components/schemas/CreateResponseJobType","description":"Type of the job"}},"title":"CreateResponse"},"UploadRequest":{"type":"object","properties":{"uri":{"type":"string","format":"uri","description":"URL to which the file must be uploaded."},"fields":{"type":"object","additionalProperties":{"type":"string"},"description":"Form fields to include in the upload request."}},"description":"Information required to upload the file to S3.","title":"UploadRequest"},"SubmitBulkJobResponseStatus":{"type":"string","enum":["Created","Submitted","In Progress","Aborting","Completed","Failed","Aborted","Cancelled","Downloading"],"description":"Status of the job","title":"SubmitBulkJobResponseStatus"},"SubmitBulkJobResponseJobType":{"type":"string","enum":["Import","Delete","Update","Cancel"],"description":"Type of the job","title":"SubmitBulkJobResponseJobType"},"SubmitBulkJobResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the job"},"uploadUrl":{"type":"string","description":"URL to upload the file. This is the URL to which the file should be uploaded using a PUT request."},"uploadRequest":{"$ref":"#/components/schemas/UploadRequest"},"status":{"$ref":"#/components/schemas/SubmitBulkJobResponseStatus","description":"Status of the job"},"jobType":{"$ref":"#/components/schemas/SubmitBulkJobResponseJobType","description":"Type of the job"}},"title":"SubmitBulkJobResponse"},"QueryJobSummaryResponseStatus":{"type":"string","enum":["Created","Submitted","In Progress","Aborting","Completed","Failed","Aborted","Cancelled","Downloading"],"description":"Status of the job","title":"QueryJobSummaryResponseStatus"},"QueryJobSummaryResponseJobType":{"type":"string","enum":["Import","Delete","Update","Cancel"],"description":"Type of job","title":"QueryJobSummaryResponseJobType"},"QueryJobSummaryResponseDataSourceType":{"type":"string","enum":["UserUpload","Salesforce","Chargebee","Stripe"],"description":"Type of data source the job is for","title":"QueryJobSummaryResponseDataSourceType"},"QueryJobSummaryResponseSystemType":{"type":"string","enum":["BILLING"],"description":"Type of system the job is for","title":"QueryJobSummaryResponseSystemType"},"QueryJobSummaryResponseFileType":{"type":"string","enum":["csv","jsonl"],"description":"Type of the source file","title":"QueryJobSummaryResponseFileType"},"QueryJobSummaryResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the job"},"name":{"type":"string","description":"Name of the job"},"description":{"type":"string","description":"Description of the job"},"createdAt":{"type":"integer","format":"int64","description":"Time the job was created"},"createdBy":{"type":"string","description":"User who created the job"},"status":{"$ref":"#/components/schemas/QueryJobSummaryResponseStatus","description":"Status of the job"},"rowCount":{"type":"integer","description":"Number of rows in the job"},"rowsSucceeded":{"type":"integer","description":"Number of rows that succeeded in the job"},"rowsFailed":{"type":"integer","description":"Number of rows that failed in the job"},"lastUpdatedAt":{"type":"integer","format":"int64","description":"Time the job was last updated"},"failureReason":{"type":"string","description":"Reason the job failed"},"objectType":{"type":"string","description":"Type of object the job is for"},"jobType":{"$ref":"#/components/schemas/QueryJobSummaryResponseJobType","description":"Type of job"},"isCustomObject":{"type":"boolean","description":"Whether the job is for a custom object"},"customObjectNamespace":{"type":"string","description":"Namespace of the custom object the job is for"},"dataSourceType":{"$ref":"#/components/schemas/QueryJobSummaryResponseDataSourceType","description":"Type of data source the job is for"},"systemType":{"$ref":"#/components/schemas/QueryJobSummaryResponseSystemType","description":"Type of system the job is for"},"fileType":{"$ref":"#/components/schemas/QueryJobSummaryResponseFileType","description":"Type of the source file"}},"title":"QueryJobSummaryResponse"},"IdStatusResponseStatus":{"type":"string","enum":["Created","Submitted","In Progress","Aborting","Completed","Failed","Aborted","Cancelled","Downloading"],"description":"Status of the job","title":"IdStatusResponseStatus"},"IdStatusResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the job"},"status":{"$ref":"#/components/schemas/IdStatusResponseStatus","description":"Status of the job"}},"title":"IdStatusResponse"},"DownloadsResponseStatus":{"type":"string","enum":["Created","Submitted","In Progress","Aborting","Completed","Failed","Aborted","Cancelled","Downloading"],"description":"Status of the job.","title":"DownloadsResponseStatus"},"DownloadsResponse":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","description":"Unique identifier for the job."},"status":{"$ref":"#/components/schemas/DownloadsResponseStatus","description":"Status of the job."},"sourceFile":{"type":"string","description":"Source file URL."},"errorRowsFile":{"type":"string","description":"URL for the file containing rows that failed."},"successRowsFile":{"type":"string","description":"URL for the file containing successfully processed rows."},"delimiter":{"type":"string","description":"Delimiter used in the source file (e.g., comma or pipe)."}},"title":"DownloadsResponse"},"BulkDataBulkJobsSummariesGetParametersStatus":{"type":"string","enum":["Created","Submitted","In Progress","Aborting","Completed","Failed","Aborted","Cancelled","Downloading"],"title":"BulkDataBulkJobsSummariesGetParametersStatus"},"GetSummariesResponseDataItemsStatus":{"type":"string","enum":["Created","Submitted","In Progress","Aborting","Completed","Failed","Aborted","Cancelled","Downloading"],"description":"Status of the job","title":"GetSummariesResponseDataItemsStatus"},"GetSummariesResponseDataItemsJobType":{"type":"string","enum":["Import","Delete","Update","Cancel"],"description":"Type of job","title":"GetSummariesResponseDataItemsJobType"},"GetSummariesResponseDataItemsDataSourceType":{"type":"string","enum":["UserUpload","Salesforce","Chargebee","Stripe"],"description":"Type of data source the job is for","title":"GetSummariesResponseDataItemsDataSourceType"},"GetSummariesResponseDataItemsSystemType":{"type":"string","enum":["BILLING"],"description":"Type of system the job is for","title":"GetSummariesResponseDataItemsSystemType"},"GetSummariesResponseDataItemsFileType":{"type":"string","enum":["csv","jsonl"],"title":"GetSummariesResponseDataItemsFileType"},"GetSummariesResponseDataItems":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the job"},"name":{"type":"string","description":"Name of the job"},"status":{"$ref":"#/components/schemas/GetSummariesResponseDataItemsStatus","description":"Status of the job"},"description":{"type":"string","description":"Description of the job"},"createdAt":{"type":"integer","format":"int64","description":"Time the job was created"},"createdBy":{"type":"string","description":"User who created the job"},"submittedAt":{"type":"integer","format":"int64","description":"Time the job was submitted"},"submittedBy":{"type":"string","description":"User who submitted the job"},"rowCount":{"type":"integer","description":"Number of rows in the job"},"rowsSucceeded":{"type":"integer","description":"Number of rows that succeeded in the job"},"rowsFailed":{"type":"integer","description":"Number of rows that failed in the job"},"lastUpdatedAt":{"type":"integer","format":"int64","description":"Time the job was last updated"},"failureReason":{"type":"string","description":"Reason the job failed"},"objectType":{"type":"string","description":"Type of object the job is for"},"jobType":{"$ref":"#/components/schemas/GetSummariesResponseDataItemsJobType","description":"Type of job"},"isCustomObject":{"type":"boolean","description":"Whether the job is for a custom object"},"customObjectNamespace":{"type":"string","description":"Namespace of the custom object the job is for"},"dataSourceType":{"$ref":"#/components/schemas/GetSummariesResponseDataItemsDataSourceType","description":"Type of data source the job is for"},"systemType":{"$ref":"#/components/schemas/GetSummariesResponseDataItemsSystemType","description":"Type of system the job is for"},"fileType":{"$ref":"#/components/schemas/GetSummariesResponseDataItemsFileType"}},"title":"GetSummariesResponseDataItems"},"GetSummariesResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GetSummariesResponseDataItems"},"description":"List of job summaries"},"nextPageCursor":{"type":"string","description":"Cursor for the next page of results"}},"title":"GetSummariesResponse"},"BulkDataBulkJobsIdMappingsGetResponsesContentApplicationJsonSchemaMappingsItems":{"type":"object","properties":{"field":{"type":"string"},"column":{"type":"string"}},"title":"BulkDataBulkJobsIdMappingsGetResponsesContentApplicationJsonSchemaMappingsItems"},"Bulk_Data_getMappingsForJob_Response_200":{"type":"object","properties":{"mappings":{"type":"array","items":{"$ref":"#/components/schemas/BulkDataBulkJobsIdMappingsGetResponsesContentApplicationJsonSchemaMappingsItems"}}},"title":"Bulk Data_getMappingsForJob_Response_200"},"ScimV2GroupsGetResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{},"title":"ScimV2GroupsGetResponsesContentApplicationJsonSchemaMeta"},"ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItemsMembersItems":{"type":"object","properties":{"value":{"type":"string"}},"title":"ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItemsMembersItems"},"ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"organizationId":{"type":"string"},"active":{"type":"boolean"}},"title":"ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItemsMeta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"title":"ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"displayName":{"type":"string"},"members":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItemsMembersItems"}},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension"},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItemsMeta"},{"type":"null"}]}},"title":"ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItems"},"SCIM_getListGroups_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":["string","null"]},"externalId":{"type":["string","null"]},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2GroupsGetResponsesContentApplicationJsonSchemaMeta"},{"type":"null"}]},"totalResults":{"type":"integer","description":"Total numbers of groups present.\n"},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsGetResponsesContentApplicationJsonSchemaResourcesItems"}}},"title":"SCIM_getListGroups_Response_200"},"ScimV2GroupsGetResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}},"title":"ScimV2GroupsGetResponsesContentApplicationJsonSchemaReasonsItems"},"GetListGroupsRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsGetResponsesContentApplicationJsonSchemaReasonsItems"}}},"title":"GetListGroupsRequestUnauthorizedError"},"GetListGroupsRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","description":"The timestamp when the response was generated.\n"},"status":{"type":"string","description":"Indicates whether the call succeeded.\n"},"error":{"type":"string","description":"A brief description of the error that occurred.\n"},"message":{"type":"string","description":"A detailed message providing additional context about the error or issue. This can be used for debugging or informational purposes.\n"},"path":{"type":"string","description":"The API endpoint path that was accessed when the error occurred. This helps to identify which part of the API was involved.\n"}},"title":"GetListGroupsRequestForbiddenError"},"GetListGroupsRequestNotFoundError":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the format of the group resource."},"status":{"type":"string","description":"The HTTP status code indicating the error type."},"detail":{"type":"string","description":"A brief explanation of the error, providing context about the resource issue."}},"title":"GetListGroupsRequestNotFoundError"},"ScimV2GroupsPostRequestBodyContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of URNs for the extension schemas."},"description":{"type":"string","description":"Description of the group."},"organizationId":{"type":"string","description":"Identifier for the associated organization."}},"title":"ScimV2GroupsPostRequestBodyContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsPostResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the format of the group resource."},"description":{"type":"string","description":"Description of the group."},"organizationId":{"type":"string","description":"Identifier for the associated organization."},"active":{"type":"boolean","description":"Indicates if the group is active."}},"description":"Custom extension schema with additional group attributes.","title":"ScimV2GroupsPostResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsPostResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of the resource."},"location":{"type":"string","description":"URL of the group resource."}},"description":"Metadata about the resource.","title":"ScimV2GroupsPostResponsesContentApplicationJsonSchemaMeta"},"SCIM_createANewGroup_Response_201":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string","description":"Unique identifier for the group."},"displayName":{"type":"string","description":"Name of the group."},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsPostResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension","description":"Custom extension schema with additional group attributes."},"meta":{"$ref":"#/components/schemas/ScimV2GroupsPostResponsesContentApplicationJsonSchemaMeta","description":"Metadata about the resource."}},"title":"SCIM_createANewGroup_Response_201"},"ScimV2GroupsPostResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"Error message."},"code":{"type":"string","description":"Error code."}},"title":"ScimV2GroupsPostResponsesContentApplicationJsonSchemaReasonsItems"},"CreateANewGroupRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates if the request was successful (false for errors)."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsPostResponsesContentApplicationJsonSchemaReasonsItems"},"description":"List of reasons for the unauthorized error."}},"title":"CreateANewGroupRequestUnauthorizedError"},"CreateANewGroupRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","description":"Time when the error occurred."},"status":{"type":"integer","description":"HTTP status code."},"error":{"type":"string","description":"Error type."},"message":{"type":"string","description":"Details about the access denial."},"path":{"type":"string","description":"Endpoint path where the error occurred."}},"title":"CreateANewGroupRequestForbiddenError"},"CreateANewGroupRequestNotFoundError":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the format of the group resource."},"status":{"type":"string","description":"HTTP status code."},"detail":{"type":"string","description":"Reason for the resource not being found."}},"title":"CreateANewGroupRequestNotFoundError"},"ScimV2GroupsBulkPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of URNs for the extension schemas."},"description":{"type":"string","description":"Description of the group."},"organizationId":{"type":"string","description":"Identifier for the associated organization."},"active":{"type":"boolean","description":"Indicates whether the group is active."}},"description":"Custom extension schema with additional attributes for the group.","title":"ScimV2GroupsBulkPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsBulkPostRequestBodyContentApplicationJsonSchemaItemsMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of the resource (e.g., Group)."}},"description":"Metadata about the group resource.","title":"ScimV2GroupsBulkPostRequestBodyContentApplicationJsonSchemaItemsMeta"},"ScimV2GroupsBulkPostRequestBodyContentApplicationJsonSchemaItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema URNs defining the structure of the group resource."},"displayName":{"type":"string","description":"Name of the group."},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsBulkPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10GroupExtension","description":"Custom extension schema with additional attributes for the group."},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2GroupsBulkPostRequestBodyContentApplicationJsonSchemaItemsMeta"},{"type":"null"}],"description":"Metadata about the group resource."}},"required":["schemas","displayName","urn:zuora:scim:schemas:1.0:GroupExtension","meta"],"title":"ScimV2GroupsBulkPostRequestBodyContentApplicationJsonSchemaItems"},"ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of URNs for the extension schemas."},"description":{"type":"string","description":"Description of the group."},"organizationId":{"type":"string","description":"Identifier for the associated organization."},"active":{"type":"boolean","description":"Indicates whether the group is active."}},"description":"Custom extension schema with additional attributes for the group.","title":"ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaResourcesItemsMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of the resource (e.g., Group)."},"location":{"type":"string","description":"URL to access the group resource."}},"description":"Metadata about the group resource.","title":"ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the format of the group resource."},"id":{"type":"string","description":"Unique identifier for the group."},"displayName":{"type":"string","description":"Name of the group."},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension","description":"Custom extension schema with additional attributes for the group."},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaResourcesItemsMeta"},{"type":"null"}],"description":"Metadata about the group resource."}},"title":"ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaResourcesItems"},"SCIM_postBulkCreateGroups_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema URNs defining the structure of the response."},"totalResults":{"type":"integer","description":"Total number of user groups returned in the response."},"id":{"type":["string","null"]},"externalId":{"type":["string","null"]},"meta":{"type":["string","null"]},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaResourcesItems"},"description":"List of group resources returned by the query."},"startIndex":{"type":"integer"},"itemsPerPage":{"type":"integer"}},"title":"SCIM_postBulkCreateGroups_Response_200"},"ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"Error message indicating the reason for unauthorized access."},"code":{"type":"string","description":"Error code associated with the unauthorized error."}},"title":"ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaReasonsItems"},"PostBulkCreateGroupsRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful (false for errors)."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsBulkPostResponsesContentApplicationJsonSchemaReasonsItems"},"description":"List of reasons for the unauthorized error."}},"title":"PostBulkCreateGroupsRequestUnauthorizedError"},"PostBulkCreateGroupsRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","description":"Time when the error occurred."},"status":{"type":"integer","description":"HTTP status code indicating the forbidden error."},"error":{"type":"string","description":"Type of error indicating a forbidden action."},"message":{"type":"string","description":"Description of why the action is forbidden."},"path":{"type":"string","description":"Endpoint path where the error occurred."}},"title":"PostBulkCreateGroupsRequestForbiddenError"},"PostBulkCreateGroupsRequestNotFoundError":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema URNs defining the structure of the error response."},"status":{"type":"string","description":"HTTP status code indicating that the resource was not found."},"detail":{"type":"string","description":"Details explaining why the resource was not found."}},"title":"PostBulkCreateGroupsRequestNotFoundError"},"ScimV2GroupsBulkPatchRequestBodyContentApplicationJsonSchemaOperationsItemsOp":{"type":"string","enum":["add","remove"],"description":"Operation to be performed. Can be 'add' to add a new item or 'remove' to delete an item.","title":"ScimV2GroupsBulkPatchRequestBodyContentApplicationJsonSchemaOperationsItemsOp"},"ScimV2GroupsBulkPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems":{"type":"object","properties":{"value":{"type":"string","description":"The value to be added or removed."}},"title":"ScimV2GroupsBulkPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems"},"ScimV2GroupsBulkPatchRequestBodyContentApplicationJsonSchemaOperationsItems":{"type":"object","properties":{"op":{"$ref":"#/components/schemas/ScimV2GroupsBulkPatchRequestBodyContentApplicationJsonSchemaOperationsItemsOp","description":"Operation to be performed. Can be 'add' to add a new item or 'remove' to delete an item."},"path":{"type":"string","description":"Path to the item or property to be modified."},"value":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsBulkPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems"},"description":"List of values associated with the operation."}},"required":["op","path","value"],"title":"ScimV2GroupsBulkPatchRequestBodyContentApplicationJsonSchemaOperationsItems"},"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of resource, which is 'Group' for this object."},"location":{"type":"string"}},"description":"Metadata about the group.","title":"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaMeta"},"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsMembersItems":{"type":"object","properties":{"value":{"type":"string","description":"Identifier for a member of the group."},"display":{"type":"string"}},"title":"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsMembersItems"},"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers specific to the extension."},"description":{"type":"string","description":"Additional description for the group."},"organizationId":{"type":"string","description":"Identifier for the organization associated with the group."},"active":{"type":"boolean","description":"Indicates if the group is active."}},"description":"Custom attributes for the group defined by the extension schema.","title":"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of resource, which is 'Group' for this object."},"location":{"type":"string"}},"description":"Metadata about the group.","title":"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that describe the format of the group."},"id":{"type":"string","description":"Unique identifier for the group."},"displayName":{"type":"string","description":"Name of the group."},"members":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsMembersItems"},"description":"List of members associated with the group."},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension","description":"Custom attributes for the group defined by the extension schema."},"meta":{"$ref":"#/components/schemas/ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsMeta","description":"Metadata about the group."}},"title":"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItems"},"SCIM_patchBulkPatchGroups_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the structure of the response."},"id":{"type":["string","null"]},"externalId":{"type":["string","null"]},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaMeta"},{"type":"null"}],"description":"Metadata about the group."},"totalResults":{"type":"integer","description":"Total number of groups returned in the response."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaResourcesItems"},"description":"List of groups included in the response."},"startIndex":{"type":"integer"},"itemsPerPage":{"type":"integer"}},"title":"SCIM_patchBulkPatchGroups_Response_200"},"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"Error message explaining why the request is unauthorized."},"code":{"type":"string","description":"Error code representing the unauthorized access issue."}},"title":"ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaReasonsItems"},"PatchBulkPatchGroupsRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful (false in this case)."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsBulkPatchResponsesContentApplicationJsonSchemaReasonsItems"},"description":"List of reasons for the unauthorized error."}},"title":"PatchBulkPatchGroupsRequestUnauthorizedError"},"PatchBulkPatchGroupsRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","description":"Timestamp when the error occurred."},"status":{"type":"integer","description":"HTTP status code indicating the request is forbidden."},"error":{"type":"string","description":"Type of error indicating that access is forbidden."},"message":{"type":"string","description":"Description of why the request is forbidden."},"path":{"type":"string","description":"Endpoint path where the forbidden error occurred."}},"title":"PatchBulkPatchGroupsRequestForbiddenError"},"ScimV2GroupsDeletePostRequestBodyContentApplicationJsonSchemaOperationsItemsOp":{"type":"string","enum":["add","remove","replace"],"title":"ScimV2GroupsDeletePostRequestBodyContentApplicationJsonSchemaOperationsItemsOp"},"ScimV2GroupsDeletePostRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems":{"type":"object","properties":{"value":{"type":"string"}},"title":"ScimV2GroupsDeletePostRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems"},"ScimV2GroupsDeletePostRequestBodyContentApplicationJsonSchemaOperationsItems":{"type":"object","properties":{"op":{"$ref":"#/components/schemas/ScimV2GroupsDeletePostRequestBodyContentApplicationJsonSchemaOperationsItemsOp"},"path":{"type":"string"},"value":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsDeletePostRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems"}}},"title":"ScimV2GroupsDeletePostRequestBodyContentApplicationJsonSchemaOperationsItems"},"ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of resource, which is 'Group' for this object."},"location":{"type":"string"}},"description":"Metadata about the group resource.","title":"ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaMeta"},"ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"description":{"type":"string","description":"Additional description for the group."},"organizationId":{"type":"string","description":"Identifier for the organization associated with the group."},"active":{"type":"boolean","description":"Indicates whether the group is active."}},"description":"Custom attributes for the group defined by the extension schema.","title":"ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaResourcesItemsMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of resource, which is 'Group' for this object."},"location":{"type":"string"}},"description":"Metadata about the group resource.","title":"ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the format of the group resource."},"id":{"type":"string","description":"Unique identifier for the group."},"externalId":{"type":["string","null"],"description":"An external identifier for the resource, often used for integration with external systems."},"displayName":{"type":"string","description":"Name of the group."},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10GroupExtension","description":"Custom attributes for the group defined by the extension schema."},"meta":{"$ref":"#/components/schemas/ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaResourcesItemsMeta","description":"Metadata about the group resource."}},"title":"ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaResourcesItems"},"SCIM_postBulkDeleteGroups_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the structure of the response."},"id":{"type":["string","null"]},"externalId":{"type":["string","null"],"description":"An external identifier for the resource, often used for integration with external systems."},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaMeta"},{"type":"null"}],"description":"Metadata about the group resource."},"totalResults":{"type":"integer","description":"Total number of groups returned in the response."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaResourcesItems"},"description":"List of group resources included in the response."},"startIndex":{"type":"integer"},"itemsPerPage":{"type":"integer"}},"title":"SCIM_postBulkDeleteGroups_Response_200"},"ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"Message explaining why the request is unauthorized."},"code":{"type":"string","description":"Error code representing the unauthorized access issue."}},"title":"ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaReasonsItems"},"PostBulkDeleteGroupsRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful (false in this case)."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsDeletePostResponsesContentApplicationJsonSchemaReasonsItems"},"description":"List of reasons for the unauthorized error."}},"title":"PostBulkDeleteGroupsRequestUnauthorizedError"},"PostBulkDeleteGroupsRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","description":"The time at which the error occurred."},"status":{"type":"integer","description":"HTTP status code indicating that the request is forbidden."},"error":{"type":"string","description":"Type of error indicating that access is forbidden."},"message":{"type":"string","description":"Description of why the request is forbidden."},"path":{"type":"string","description":"Endpoint path where the forbidden error occurred."}},"title":"PostBulkDeleteGroupsRequestForbiddenError"},"PostBulkDeleteGroupsRequestNotFoundError":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the structure of the error response."},"status":{"type":"string","description":"HTTP status code indicating that the resource was not found."},"detail":{"type":"string","description":"Description of the error detailing why the resource was not found."}},"title":"PostBulkDeleteGroupsRequestNotFoundError"},"ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaMembersItems":{"type":"object","properties":{"value":{"type":"string","description":"Identifier for a member of the group."},"display":{"type":"string"}},"title":"ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaMembersItems"},"ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the format of the custom attributes."},"description":{"type":"string","description":"Additional description for the group."},"organizationId":{"type":"string","description":"Identifier for the organization associated with the group."},"active":{"type":"boolean","description":"Indicates whether the group is active."}},"description":"Custom attributes specific to the group defined by the extension schema.","title":"ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaMetaResourceType":{"type":"string","enum":["Group"],"description":"Type of resource, which is 'Group' for this object.","title":"ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaMetaResourceType"},"ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"$ref":"#/components/schemas/ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaMetaResourceType","description":"Type of resource, which is 'Group' for this object."},"location":{"type":"string","description":"URL where the group resource can be accessed."}},"description":"Metadata about the group resource.","title":"ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaMeta"},"SCIM_getASpecificGroup_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string","description":"Unique identifier for the group."},"displayName":{"type":"string","description":"Name of the group."},"members":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaMembersItems"},"description":"List of members associated with the group."},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension","description":"Custom attributes specific to the group defined by the extension schema."},"meta":{"$ref":"#/components/schemas/ScimV2GroupsIdGetResponsesContentApplicationJsonSchemaMeta","description":"Metadata about the group resource."}},"title":"SCIM_getASpecificGroup_Response_200"},"ScimV2GroupsIdPutRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems":{"type":"object","properties":{"value":{"type":"string","description":"The value to be added."}},"required":["value"],"title":"ScimV2GroupsIdPutRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems"},"ScimV2GroupsIdPutRequestBodyContentApplicationJsonSchemaOperationsItems":{"type":"object","properties":{"op":{"type":"string","description":"The operation to perform (e.g., add, remove, replace)."},"path":{"type":"string","description":"The path to the attribute that is being modified."},"value":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsIdPutRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems"}}},"required":["op","path","value"],"title":"ScimV2GroupsIdPutRequestBodyContentApplicationJsonSchemaOperationsItems"},"ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaMembersItems":{"type":"object","properties":{"value":{"type":"string","description":"Unique identifier of a member within the group."},"display":{"type":"string"}},"title":"ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaMembersItems"},"ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the format of the custom attributes."},"description":{"type":"string","description":"Additional description or notes about the group."},"organizationId":{"type":"string","description":"Identifier for the organization to which the group belongs."},"active":{"type":"boolean","description":"Indicates whether the group is currently active."}},"description":"Custom attributes specific to the group defined by the extension schema.","title":"ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaMetaResourceType":{"type":"string","enum":["Group"],"description":"Type of the resource, which is 'Group' for this object.","title":"ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaMetaResourceType"},"ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"$ref":"#/components/schemas/ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaMetaResourceType","description":"Type of the resource, which is 'Group' for this object."},"location":{"type":"string","description":"URL where the group resource can be accessed."}},"description":"Metadata related to the group resource.","title":"ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaMeta"},"SCIM_updateASpecificGroup_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the structure of the group resource."},"id":{"type":"string","description":"Unique identifier assigned to the group."},"displayName":{"type":"string","description":"Name of the group."},"members":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaMembersItems"},"description":"List of members associated with the group."},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension","description":"Custom attributes specific to the group defined by the extension schema."},"meta":{"$ref":"#/components/schemas/ScimV2GroupsIdPutResponsesContentApplicationJsonSchemaMeta","description":"Metadata related to the group resource."}},"title":"SCIM_updateASpecificGroup_Response_200"},"ScimV2GroupsIdDeleteResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"organizationId":{"type":"string"},"active":{"type":"boolean"}},"title":"ScimV2GroupsIdDeleteResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsIdDeleteResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string"},"location":{"type":"string"}},"title":"ScimV2GroupsIdDeleteResponsesContentApplicationJsonSchemaMeta"},"SCIM_deleteASpecificGroup_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"displayName":{"type":"string"},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsIdDeleteResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension"},"meta":{"$ref":"#/components/schemas/ScimV2GroupsIdDeleteResponsesContentApplicationJsonSchemaMeta"}},"title":"SCIM_deleteASpecificGroup_Response_200"},"ScimV2GroupsIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsOp":{"type":"string","enum":["add","remove","replace"],"title":"ScimV2GroupsIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsOp"},"ScimV2GroupsIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems":{"type":"object","properties":{"value":{"type":"string"}},"title":"ScimV2GroupsIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems"},"ScimV2GroupsIdPatchRequestBodyContentApplicationJsonSchemaOperationsItems":{"type":"object","properties":{"op":{"$ref":"#/components/schemas/ScimV2GroupsIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsOp"},"path":{"type":"string"},"value":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueItems"}}},"title":"ScimV2GroupsIdPatchRequestBodyContentApplicationJsonSchemaOperationsItems"},"ScimV2GroupsIdPatchResponsesContentApplicationJsonSchemaMembersItems":{"type":"object","properties":{"value":{"type":"string","description":"Unique identifier of a member within the group."},"display":{"type":"string"}},"title":"ScimV2GroupsIdPatchResponsesContentApplicationJsonSchemaMembersItems"},"ScimV2GroupsIdPatchResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the format of the custom attributes."},"description":{"type":"string","description":"Additional description or notes about the group."},"organizationId":{"type":"string","description":"Identifier for the organization to which the group belongs."},"active":{"type":"boolean","description":"Indicates whether the group is currently active."}},"description":"Custom attributes specific to the group defined by the extension schema.","title":"ScimV2GroupsIdPatchResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension"},"ScimV2GroupsIdPatchResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of the resource, which is 'Group' for this object."},"location":{"type":"string","description":"URL where the group resource can be accessed."}},"description":"Metadata related to the group resource.","title":"ScimV2GroupsIdPatchResponsesContentApplicationJsonSchemaMeta"},"SCIM_partiallyUpdateAspecificGroup_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the structure of the group resource."},"id":{"type":"string","description":"Unique identifier assigned to the group."},"displayName":{"type":"string","description":"Name of the group."},"members":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2GroupsIdPatchResponsesContentApplicationJsonSchemaMembersItems"},"description":"List of members associated with the group."},"urn:zuora:scim:schemas:1.0:GroupExtension":{"$ref":"#/components/schemas/ScimV2GroupsIdPatchResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10GroupExtension","description":"Custom attributes specific to the group defined by the extension schema."},"meta":{"$ref":"#/components/schemas/ScimV2GroupsIdPatchResponsesContentApplicationJsonSchemaMeta","description":"Metadata related to the group resource."}},"title":"SCIM_partiallyUpdateAspecificGroup_Response_200"},"ScimV2ResourceTypesGetResponsesContentApplicationJsonSchemaResourcesItemsSchemaExtensionsItems":{"type":"object","properties":{"schema":{"type":"string","description":"Schema identifier for the extension."},"required":{"type":"boolean","description":"Indicates if the schema extension is required."}},"title":"ScimV2ResourceTypesGetResponsesContentApplicationJsonSchemaResourcesItemsSchemaExtensionsItems"},"ScimV2ResourceTypesGetResponsesContentApplicationJsonSchemaResourcesItemsMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of the resource, which is 'ResourceType' for this object."},"location":{"type":"string","description":"URL where the resource type can be accessed."}},"description":"Metadata about the resource type.","title":"ScimV2ResourceTypesGetResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"ScimV2ResourceTypesGetResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the structure of the resource type."},"id":{"type":"string","description":"Unique identifier of the resource type."},"name":{"type":"string","description":"Name of the resource type."},"description":{"type":"string","description":"Detailed description of the resource type."},"endpoint":{"type":"string","description":"API endpoint for accessing the resource type."},"schema":{"type":"string","description":"Schema identifier defining the structure of the resource type."},"schemaExtensions":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2ResourceTypesGetResponsesContentApplicationJsonSchemaResourcesItemsSchemaExtensionsItems"},"description":"List of schema extensions applied to the resource type."},"meta":{"$ref":"#/components/schemas/ScimV2ResourceTypesGetResponsesContentApplicationJsonSchemaResourcesItemsMeta","description":"Metadata about the resource type."}},"title":"ScimV2ResourceTypesGetResponsesContentApplicationJsonSchemaResourcesItems"},"SCIM_getTheRessourceType_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the structure of the response."},"totalResults":{"type":"integer","description":"Total number of resource types available."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2ResourceTypesGetResponsesContentApplicationJsonSchemaResourcesItems"},"description":"List of resource types available."},"startIndex":{"type":"integer","description":"Index of the first item in the current page of results."},"itemsPerPage":{"type":"integer","description":"Number of items returned per page."}},"title":"SCIM_getTheRessourceType_Response_200"},"ScimV2ResourceTypesIdGetResponsesContentApplicationJsonSchemaSchemaExtensionsItems":{"type":"object","properties":{"schema":{"type":"string","description":"The URN of the schema extension that adds additional attributes to the resource type. This extends the base schema with extra fields or constraints."},"required":{"type":"boolean","description":"Indicates whether the schema extension is required for the resource type. If true, the extension must be included in resource data."}},"title":"ScimV2ResourceTypesIdGetResponsesContentApplicationJsonSchemaSchemaExtensionsItems"},"ScimV2ResourceTypesIdGetResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"The type of resource represented by this schema. This helps identify the nature of the resource (e.g., 'ResourceType')."},"location":{"type":"string","description":"The URI where the resource type's details can be accessed. This is useful for retrieving information about the resource type."}},"title":"ScimV2ResourceTypesIdGetResponsesContentApplicationJsonSchemaMeta"},"SCIM_getASpecificResourceType_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of URNs that specify the schemas applied to this resource. These URNs define the structure and constraints for the resource's data."},"id":{"type":"string","description":"A unique identifier for the resource type. This ID is used to reference the resource type in API requests."},"name":{"type":"string","description":"The name of the resource type. This is a human-readable identifier for the resource."},"description":{"type":"string","description":"A brief description of the resource type. This provides context or additional information about the resource's purpose and usage."},"endpoint":{"type":"string","description":"The URI path where the resource type can be accessed. This endpoint is used to interact with the resource type through the API."},"schema":{"type":"string","description":"The URN of the schema that defines the structure and attributes of the resource type. This schema provides the format and constraints for the resource's data."},"schemaExtensions":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2ResourceTypesIdGetResponsesContentApplicationJsonSchemaSchemaExtensionsItems"},"description":"A list of schema extensions that provide additional attributes for the resource type. Each extension adds new fields or constraints to the resource."},"meta":{"$ref":"#/components/schemas/ScimV2ResourceTypesIdGetResponsesContentApplicationJsonSchemaMeta"}},"title":"SCIM_getASpecificResourceType_Response_200"},"ScimV2SchemasGetResponsesContentApplicationJsonSchemaPatch":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates if patch operations are supported."}},"description":"Information about support for patch operations.","title":"ScimV2SchemasGetResponsesContentApplicationJsonSchemaPatch"},"ScimV2SchemasGetResponsesContentApplicationJsonSchemaBulk":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates if bulk operations are supported."},"maxOperations":{"type":"integer","description":"Maximum number of operations allowed in a single bulk request."},"maxPayloadSize":{"type":"integer","description":"Maximum size (in bytes) of the payload allowed for a bulk request."}},"description":"Information about support for bulk operations.","title":"ScimV2SchemasGetResponsesContentApplicationJsonSchemaBulk"},"ScimV2SchemasGetResponsesContentApplicationJsonSchemaFilter":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates if filtering is supported."},"maxResults":{"type":"integer","description":"Maximum number of results that can be returned by a single filter query."}},"description":"Information about support for filtering.","title":"ScimV2SchemasGetResponsesContentApplicationJsonSchemaFilter"},"ScimV2SchemasGetResponsesContentApplicationJsonSchemaChangePassword":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates if password change operations are supported."}},"description":"Information about support for password change operations.","title":"ScimV2SchemasGetResponsesContentApplicationJsonSchemaChangePassword"},"ScimV2SchemasGetResponsesContentApplicationJsonSchemaSort":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates if sorting is supported."}},"description":"Information about support for sorting.","title":"ScimV2SchemasGetResponsesContentApplicationJsonSchemaSort"},"ScimV2SchemasGetResponsesContentApplicationJsonSchemaEtag":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates if ETag operations are supported."}},"description":"Information about support for ETag operations.","title":"ScimV2SchemasGetResponsesContentApplicationJsonSchemaEtag"},"ScimV2SchemasGetResponsesContentApplicationJsonSchemaAuthenticationSchemesItems":{"type":"object","properties":{"name":{"type":"string","description":"Name of the authentication scheme."},"description":{"type":"string","description":"Description of the authentication scheme."},"specUri":{"type":"string","description":"URI for the specification of the authentication scheme."},"type":{"type":"string","description":"Type of the authentication scheme (e.g., OAuth, Basic)."},"primary":{"type":"boolean","description":"Indicates if this is the primary authentication scheme."}},"title":"ScimV2SchemasGetResponsesContentApplicationJsonSchemaAuthenticationSchemesItems"},"ScimV2SchemasGetResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of the resource (e.g., ResourceType)."},"location":{"type":"string","description":"URL where the resource type can be accessed."}},"description":"Metadata about the resource type.","title":"ScimV2SchemasGetResponsesContentApplicationJsonSchemaMeta"},"ScimV2SchemasGetResponsesContentApplicationJsonSchemaResourcesItemsAttributesItems":{"type":"object","properties":{"name":{"type":"string","description":"Name of the attribute."},"type":{"type":"string","description":"Data type of the attribute (e.g., string, boolean)."},"multiValued":{"type":"boolean","description":"Indicates if the attribute can hold multiple values."},"description":{"type":"string","description":"Description of the attribute."},"required":{"type":"boolean","description":"Indicates if the attribute is required."},"caseExact":{"type":"boolean","description":"Indicates if the attribute value is case-sensitive."},"mutability":{"type":"string","description":"Specifies the mutability of the attribute (e.g., readOnly, readWrite)."},"returned":{"type":"string","description":"Specifies when the attribute is returned in responses (e.g., always, never)."},"uniqueness":{"type":"string","description":"Specifies the uniqueness of the attribute values (e.g., none, server)."}},"title":"ScimV2SchemasGetResponsesContentApplicationJsonSchemaResourcesItemsAttributesItems"},"ScimV2SchemasGetResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers that define the structure of the resource type."},"id":{"type":"string","description":"Unique identifier of the resource type."},"name":{"type":"string","description":"Name of the resource type."},"description":{"type":"string","description":"Detailed description of the resource type."},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2SchemasGetResponsesContentApplicationJsonSchemaResourcesItemsAttributesItems"},"description":"List of attributes defined by the schema."}},"title":"ScimV2SchemasGetResponsesContentApplicationJsonSchemaResourcesItems"},"SCIM_getSchemaOfSCIM_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema identifiers defining the structure of the response."},"patch":{"$ref":"#/components/schemas/ScimV2SchemasGetResponsesContentApplicationJsonSchemaPatch","description":"Information about support for patch operations."},"bulk":{"$ref":"#/components/schemas/ScimV2SchemasGetResponsesContentApplicationJsonSchemaBulk","description":"Information about support for bulk operations."},"filter":{"$ref":"#/components/schemas/ScimV2SchemasGetResponsesContentApplicationJsonSchemaFilter","description":"Information about support for filtering."},"changePassword":{"$ref":"#/components/schemas/ScimV2SchemasGetResponsesContentApplicationJsonSchemaChangePassword","description":"Information about support for password change operations."},"sort":{"$ref":"#/components/schemas/ScimV2SchemasGetResponsesContentApplicationJsonSchemaSort","description":"Information about support for sorting."},"etag":{"$ref":"#/components/schemas/ScimV2SchemasGetResponsesContentApplicationJsonSchemaEtag","description":"Information about support for ETag operations."},"authenticationSchemes":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2SchemasGetResponsesContentApplicationJsonSchemaAuthenticationSchemesItems"},"description":"List of supported authentication schemes."},"id":{"type":["string","null"]},"externalId":{"type":["string","null"]},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2SchemasGetResponsesContentApplicationJsonSchemaMeta"},{"type":"null"}],"description":"Metadata about the resource type."},"totalResults":{"type":"integer","description":"Total number of user groups returned in the response."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2SchemasGetResponsesContentApplicationJsonSchemaResourcesItems"},"description":"List of resource types available."}},"title":"SCIM_getSchemaOfSCIM_Response_200"},"ScimV2SchemasIdGetResponsesContentApplicationJsonSchemaAttributesItems":{"type":"object","properties":{"name":{"type":"string","description":"Name of the attribute."},"type":{"type":"string","description":"Data type of the attribute (e.g., string, boolean)."},"multiValued":{"type":"boolean","description":"Indicates if the attribute can hold multiple values."},"description":{"type":"string","description":"Description of the attribute."},"required":{"type":"boolean","description":"Indicates if the attribute is required."},"caseExact":{"type":"boolean","description":"Indicates if the attribute value is case-sensitive."},"mutability":{"type":"string","description":"Specifies the mutability of the attribute (e.g., readOnly, readWrite)."},"returned":{"type":"string","description":"Specifies when the attribute is returned in responses (e.g., always, never)."},"uniqueness":{"type":"string","description":"Specifies the uniqueness of the attribute values (e.g., none, server)."}},"title":"ScimV2SchemasIdGetResponsesContentApplicationJsonSchemaAttributesItems"},"ScimV2SchemasIdGetResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of the resource (e.g., Schema)."},"location":{"type":"string","description":"URL where the schema can be accessed."}},"description":"Metadata about the schema.","title":"ScimV2SchemasIdGetResponsesContentApplicationJsonSchemaMeta"},"SCIM_getTheSchemaOfSpecificSCIM_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema URNs defining the structure of the response."},"id":{"type":"string","description":"Unique identifier of the schema."},"name":{"type":"string","description":"Name of the schema."},"description":{"type":"string","description":"Description of the schema."},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2SchemasIdGetResponsesContentApplicationJsonSchemaAttributesItems"},"description":"List of attributes defined by the schema."},"meta":{"$ref":"#/components/schemas/ScimV2SchemasIdGetResponsesContentApplicationJsonSchemaMeta","description":"Metadata about the schema."}},"title":"SCIM_getTheSchemaOfSpecificSCIM_Response_200"},"ScimV2SchemasIdGetResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"A message providing details about the unauthorized error."},"code":{"type":"string","description":"A code representing the specific unauthorized error."}},"title":"ScimV2SchemasIdGetResponsesContentApplicationJsonSchemaReasonsItems"},"GetTheSchemaOfSpecificSCIMRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful (false for unauthorized errors)."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2SchemasIdGetResponsesContentApplicationJsonSchemaReasonsItems"},"description":"List of reasons explaining why the request was unauthorized."}},"title":"GetTheSchemaOfSpecificSCIMRequestUnauthorizedError"},"GetTheSchemaOfSpecificSCIMRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time","description":"The timestamp when the error occurred."},"status":{"type":"integer","description":"HTTP status code indicating that the request is forbidden."},"error":{"type":"string","description":"Error type describing the forbidden access."},"message":{"type":"string","description":"A message detailing why the access was forbidden."},"path":{"type":"string","description":"The request path that caused the forbidden error."}},"title":"GetTheSchemaOfSpecificSCIMRequestForbiddenError"},"GetTheSchemaOfSpecificSCIMRequestNotFoundError":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema URNs describing the structure of the error response."},"status":{"type":"string","description":"HTTP status code indicating that the resource was not found."},"detail":{"type":"string","description":"Detailed message explaining that the resource was not found."}},"title":"GetTheSchemaOfSpecificSCIMRequestNotFoundError"},"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaPatch":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates whether the PATCH method is supported."}},"description":"Details about support for the PATCH method.","title":"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaPatch"},"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaBulk":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates whether bulk operations are supported."},"maxOperations":{"type":"integer","description":"The maximum number of operations that can be performed in a single bulk request."},"maxPayloadSize":{"type":"integer","description":"The maximum size of the payload for a single bulk request, in bytes."}},"description":"Details about support for bulk operations.","title":"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaBulk"},"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaFilter":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates whether filtering is supported."},"maxResults":{"type":"integer","description":"The maximum number of results that can be returned in a single request when using filters."}},"description":"Details about support for filtering resources.","title":"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaFilter"},"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaChangePassword":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates whether password change operations are supported."}},"description":"Details about support for password change operations.","title":"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaChangePassword"},"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaSort":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates whether sorting is supported."}},"description":"Details about support for sorting resources.","title":"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaSort"},"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaEtag":{"type":"object","properties":{"supported":{"type":"boolean","description":"Indicates whether ETag headers are supported."}},"description":"Details about support for ETag headers.","title":"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaEtag"},"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaAuthenticationSchemesItems":{"type":"object","properties":{"name":{"type":"string","description":"The name of the authentication scheme."},"description":{"type":"string","description":"A description of how the authentication scheme works."},"specUri":{"type":"string","description":"A URI to the specification of the authentication scheme."},"type":{"type":"string","description":"The type of the authentication scheme (e.g., OAuth2)."},"primary":{"type":"boolean","description":"Indicates whether this is the primary authentication scheme."}},"title":"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaAuthenticationSchemesItems"},"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"Type of the resource returned (e.g., ServiceProviderConfig)."},"location":{"type":"string","description":"URI of the resource."}},"description":"Metadata about the service provider configuration.","title":"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaMeta"},"SCIM_getTheServiceProviderConfig_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema URNs that define the structure of the response."},"patch":{"$ref":"#/components/schemas/ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaPatch","description":"Details about support for the PATCH method."},"bulk":{"$ref":"#/components/schemas/ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaBulk","description":"Details about support for bulk operations."},"filter":{"$ref":"#/components/schemas/ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaFilter","description":"Details about support for filtering resources."},"changePassword":{"$ref":"#/components/schemas/ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaChangePassword","description":"Details about support for password change operations."},"sort":{"$ref":"#/components/schemas/ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaSort","description":"Details about support for sorting resources."},"etag":{"$ref":"#/components/schemas/ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaEtag","description":"Details about support for ETag headers."},"authenticationSchemes":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaAuthenticationSchemesItems"},"description":"List of authentication schemes supported by the service provider."},"meta":{"$ref":"#/components/schemas/ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaMeta","description":"Metadata about the service provider configuration."}},"title":"SCIM_getTheServiceProviderConfig_Response_200"},"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"A message describing the reason for the unauthorized error."},"code":{"type":"string","description":"An error code associated with the unauthorized error."}},"title":"ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaReasonsItems"},"GetTheServiceProviderConfigRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation was successful or not."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2ServiceProviderConfigGetResponsesContentApplicationJsonSchemaReasonsItems"},"description":"A list of reasons explaining why the request was unauthorized."}},"title":"GetTheServiceProviderConfigRequestUnauthorizedError"},"GetTheServiceProviderConfigRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time","description":"The timestamp when the error occurred."},"status":{"type":"integer","description":"HTTP status code representing the error."},"error":{"type":"string","description":"A brief description of the error."},"message":{"type":"string","description":"A message explaining why access was forbidden."},"path":{"type":"string","description":"The path of the request that caused the error."}},"title":"GetTheServiceProviderConfigRequestForbiddenError"},"GetTheServiceProviderConfigRequestNotFoundError":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that describe the structure of the error response."},"status":{"type":"string","description":"HTTP status code representing the error."},"detail":{"type":"string","description":"A detailed message explaining the resource not found error."}},"title":"GetTheServiceProviderConfigRequestNotFoundError"},"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsMeta":{"type":"object","properties":{"created":{"type":"string","format":"date-time","description":"The timestamp when the user resource was created."},"resourceType":{"type":"string","description":"The type of resource, in this case, 'User'."},"location":{"type":"string","description":"The URI of the user resource."}},"title":"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsName":{"type":"object","properties":{"formatted":{"type":"string","description":"The full name of the user, formatted for display."},"familyName":{"type":"string","description":"The user's family (last) name."},"givenName":{"type":"string","description":"The user's given (first) name."}},"title":"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsName"},"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"The email address of the user."},"display":{"type":"string","description":"The display name associated with the email address."},"type":{"type":"string","description":"The type of email address (e.g., work, home)."},"primary":{"type":"boolean","description":"Indicates whether this email address is the primary one for the user."}},"title":"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems"},"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsRolesItems":{"type":"object","properties":{"value":{"type":"string","description":"The role identifier associated with the user."},"display":{"type":"string","description":"The display name of the role."}},"title":"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsRolesItems"},"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsGroupsItems":{"type":"object","properties":{"value":{"type":"string","description":"The group identifier to which the user belongs."},"display":{"type":"string","description":"The display name of the group."}},"title":"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsGroupsItems"},"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs specific to the UserExtension."},"organizationId":{"type":"string","description":"The identifier of the organization to which the user belongs."},"status":{"type":"string","description":"The current status of the user account (e.g., ACTIVE, PENDING_ACTIVATION)."},"ssoEnabled":{"type":"boolean","description":"Indicates whether Single Sign-On (SSO) is enabled for the user."},"region":{"type":"string","description":"The region where the user is located."}},"title":"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension"},"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that describe the structure of the user resource."},"id":{"type":"string","description":"The unique identifier for the user resource."},"meta":{"$ref":"#/components/schemas/ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"userName":{"type":"string","description":"The username associated with the user account."},"name":{"$ref":"#/components/schemas/ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsName"},"displayName":{"type":"string","description":"The display name of the user."},"preferredLanguage":{"type":"string","description":"The preferred language of the user."},"locale":{"type":"string","description":"The locale of the user."},"active":{"type":"boolean","description":"Indicates whether the user account is active."},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsRolesItems"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsGroupsItems"}},"urn:zuora:scim:schemas:1.0:UserExtension":{"$ref":"#/components/schemas/ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension"}},"title":"ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItems"},"SCIM_getListOfUsers_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that describe the structure of the response."},"totalResults":{"type":"integer","description":"The total number of results matching the query."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersGetResponsesContentApplicationJsonSchemaResourcesItems"}},"startIndex":{"type":"integer","description":"The index of the first result in the current page."},"itemsPerPage":{"type":"integer","description":"The number of items per page in the response."}},"title":"SCIM_getListOfUsers_Response_200"},"ScimV2UsersGetResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"A brief description of the reason for the unauthorized access. Provides context for the failure."},"code":{"type":"string","description":"A code representing the error. Used for programmatic identification of the error."}},"title":"ScimV2UsersGetResponsesContentApplicationJsonSchemaReasonsItems"},"GetListOfUsersRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful or not. In this case, it will be `false` due to unauthorized access."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersGetResponsesContentApplicationJsonSchemaReasonsItems"}}},"title":"GetListOfUsersRequestUnauthorizedError"},"GetListOfUsersRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time","description":"The timestamp when the error occurred. Provides context for when the error happened."},"status":{"type":"integer","description":"The HTTP status code for the error. Indicates that the server understood the request but refuses to authorize it."},"error":{"type":"string","description":"A brief description of the error. Indicates that access is forbidden."},"message":{"type":"string","description":"A detailed message about the error, usually describing why the request was forbidden."},"path":{"type":"string","description":"The URI path of the request that caused the error. Helps in identifying the resource involved in the error."}},"title":"GetListOfUsersRequestForbiddenError"},"GetListOfUsersRequestNotFoundError":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs related to the error response. Provides information about the error response structure."},"status":{"type":"string","description":"The HTTP status code for the error. Indicates that the requested resource could not be found."},"detail":{"type":"string","description":"A description of the error. Provides details about why the resource was not found."}},"title":"GetListOfUsersRequestNotFoundError"},"ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsName":{"type":"object","properties":{"givenName":{"type":"string","description":"User's first name."},"familyName":{"type":"string","description":"User's last name."},"formatted":{"type":"string","description":"Formatted full name."}},"description":"Name details of the user.","title":"ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsName"},"ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"Email address."},"type":{"type":"string","description":"Type of email (e.g., work, personal)."},"primary":{"type":"boolean","description":"Indicates if this is the primary email."}},"title":"ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsEmailsItems"},"ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsRolesItems":{"type":"object","properties":{"value":{"type":"string","description":"Role value (e.g., ADMIN)."}},"title":"ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsRolesItems"},"ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of URNs for the extension schemas."},"organizationId":{"type":"string","description":"Identifier for the associated organization."}},"description":"Custom extension schema with additional attributes for the user.","title":"ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension"},"ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"List of schema URNs defining the structure of the user resource."},"name":{"$ref":"#/components/schemas/ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsName","description":"Name details of the user."},"active":{"type":"boolean","description":"Indicates whether the user is active."},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsEmailsItems"},"description":"List of email addresses associated with the user."},"roles":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsRolesItems"},"description":"Roles assigned to the user."},"externalId":{"type":"string","description":"External identifier for the user."},"userName":{"type":"string","description":"Unique username for the user."},"preferredLanguage":{"type":"string","description":"User's preferred language."},"locale":{"type":"string","description":"User's locale."},"urn:zuora:scim:schemas:1.0:UserExtension":{"$ref":"#/components/schemas/ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension","description":"Custom extension schema with additional attributes for the user."}},"required":["schemas","name","active","emails","roles","externalId","userName","preferredLanguage","locale","urn:zuora:scim:schemas:1.0:UserExtension"],"title":"ScimV2UsersPostRequestBodyContentApplicationJsonSchemaItems"},"ScimV2UsersPostResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"created":{"type":"string","format":"date-time","description":"The timestamp when the user resource was created. Provides information about the creation time of the resource."},"resourceType":{"type":"string","description":"The type of resource, in this case, it will be 'User'. Helps identify the type of the resource."},"location":{"type":"string","description":"The URL to access the newly created user resource. Provides the URI of the user resource for future references or operations."}},"title":"ScimV2UsersPostResponsesContentApplicationJsonSchemaMeta"},"ScimV2UsersPostResponsesContentApplicationJsonSchemaName":{"type":"object","properties":{"formatted":{"type":"string","description":"The full name of the user as a single formatted string. Useful for display purposes."},"familyName":{"type":"string","description":"The family name (surname) of the user. Used for sorting and identifying users."},"givenName":{"type":"string","description":"The given name (first name) of the user. Helps in personalizing interactions and communications."}},"title":"ScimV2UsersPostResponsesContentApplicationJsonSchemaName"},"ScimV2UsersPostResponsesContentApplicationJsonSchemaEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"The email address of the user. Used for communication and login purposes."},"display":{"type":"string","description":"A human-readable email address, often the same as `value`, but can be formatted differently."},"type":{"type":"string","description":"The type of email address (e.g., work, home). Helps categorize different types of email addresses."},"primary":{"type":"boolean","description":"Indicates whether this email address is the primary one for the user. Useful for identifying the main contact address."}},"title":"ScimV2UsersPostResponsesContentApplicationJsonSchemaEmailsItems"},"ScimV2UsersPostResponsesContentApplicationJsonSchemaRolesItems":{"type":"object","properties":{"value":{"type":"string","description":"The role assigned to the user. Represents the user's role within the system (e.g., admin, user)."},"display":{"type":"string","description":"The display name of the role. Provides a human-readable label for the user's role."}},"title":"ScimV2UsersPostResponsesContentApplicationJsonSchemaRolesItems"},"ScimV2UsersPostResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs specific to the user extension. Defines additional properties or custom attributes for the user resource."},"organizationId":{"type":"string","description":"The unique identifier for the organization to which the user belongs. Useful for organizational management and reporting."},"status":{"type":"string","description":"The current status of the user account (e.g., ACTIVE, PENDING_ACTIVATION). Helps in tracking the user’s state."},"ssoEnabled":{"type":"boolean","description":"Indicates whether Single Sign-On (SSO) is enabled for the user. Useful for authentication and access management."},"region":{"type":"string","description":"The geographical region of the user. Helps in regional data management and compliance."}},"title":"ScimV2UsersPostResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension"},"SCIM_createAUser_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string","description":"Unique identifier for the user."},"externalId":{"type":"string","description":"External identifier for the user."},"meta":{"$ref":"#/components/schemas/ScimV2UsersPostResponsesContentApplicationJsonSchemaMeta"},"userName":{"type":"string","description":"Unique username for the user."},"name":{"$ref":"#/components/schemas/ScimV2UsersPostResponsesContentApplicationJsonSchemaName"},"displayName":{"type":"string","description":"Display name of the user."},"preferredLanguage":{"type":"string","description":"User's preferred language."},"locale":{"type":"string","description":"User's locale."},"active":{"type":"boolean","description":"Indicates whether the user is active."},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersPostResponsesContentApplicationJsonSchemaEmailsItems"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersPostResponsesContentApplicationJsonSchemaRolesItems"}},"urn:zuora:scim:schemas:1.0:UserExtension":{"$ref":"#/components/schemas/ScimV2UsersPostResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension"}},"title":"SCIM_createAUser_Response_200"},"ScimV2UsersPostResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"A message describing the reason for the unauthorized error. Provides more context about the failure."},"code":{"type":"string","description":"An application-specific error code that provides additional details about the unauthorized error."}},"title":"ScimV2UsersPostResponsesContentApplicationJsonSchemaReasonsItems"},"CreateAUserRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful. For a 401 error, this will always be false."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersPostResponsesContentApplicationJsonSchemaReasonsItems"}}},"title":"CreateAUserRequestUnauthorizedError"},"CreateAUserRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time","description":"The timestamp when the error occurred. Useful for debugging and tracking when the error happened."},"status":{"type":"integer","description":"The HTTP status code representing the error. For forbidden errors, this will always be 403."},"error":{"type":"string","description":"A brief description of the error type. In this case, it indicates a 'Forbidden' error."},"message":{"type":"string","description":"A message providing more details about the specific error that occurred. Describes why access was denied."},"path":{"type":"string","description":"The URI path of the resource that caused the error. Helps in identifying which resource or endpoint triggered the error."}},"title":"CreateAUserRequestForbiddenError"},"CreateAUserRequestNotFoundError":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that are relevant to the error response. Usually includes a standard error schema."},"status":{"type":"string","description":"The HTTP status code representing the error. For not found errors, this will always be '404'."},"detail":{"type":"string","description":"A message providing details about the resource that was not found. Helps in understanding what was missing or incorrectly requested."}},"title":"CreateAUserRequestNotFoundError"},"ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsName":{"type":"object","properties":{"givenName":{"type":"string","description":"The given (or first) name of the user."},"familyName":{"type":"string","description":"The family (or last) name of the user."},"formatted":{"type":"string","description":"The full name of the user in a formatted string. Typically includes given name and family name."}},"title":"ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsName"},"ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"The email address of the user."},"type":{"type":"string","description":"The type of email address (e.g., 'work', 'home')."},"primary":{"type":"boolean","description":"Indicates whether this email address is the user's primary email."}},"title":"ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsEmailsItems"},"ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsRolesItems":{"type":"object","properties":{"value":{"type":"string","description":"The role assigned to the user, typically represented by an identifier."},"display":{"type":["string","null"]}},"title":"ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsRolesItems"},"ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that describe additional extensions or custom schemas applied to the user resource."},"organizationId":{"type":"string","description":"An identifier for the organization to which the user belongs. This may be used for organizational or grouping purposes."}},"title":"ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension"},"ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that describe the structure of the user resource. These URNs indicate the schemas that are applicable to the user data."},"name":{"$ref":"#/components/schemas/ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsName"},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsEmailsItems"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsRolesItems"}},"userName":{"type":"string","description":"The username or login name of the user."},"preferredLanguage":{"type":"string","description":"The preferred language of the user, typically represented by a locale code (e.g., 'en', 'fr')."},"locale":{"type":"string","description":"The locale of the user, typically represented by a locale code (e.g., 'en-US', 'fr-FR')."},"urn:zuora:scim:schemas:1.0:UserExtension":{"$ref":"#/components/schemas/ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension"}},"title":"ScimV2UsersBulkPostRequestBodyContentApplicationJsonSchemaItems"},"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsMeta":{"type":"object","properties":{"created":{"type":"string","format":"date-time","description":"The date and time when the user resource was created, in ISO 8601 format."},"resourceType":{"type":"string","description":"The type of the resource, typically 'User' for user resources."},"location":{"type":"string","description":"The URL where the user resource can be accessed."}},"title":"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsName":{"type":"object","properties":{"formatted":{"type":"string","description":"The full name of the user, formatted as a single string."},"familyName":{"type":"string","description":"The family (or last) name of the user."},"givenName":{"type":"string","description":"The given (or first) name of the user."}},"title":"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsName"},"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"The email address of the user."},"display":{"type":"string","description":"A display name or description for the email address."},"type":{"type":"string","description":"The type of email address (e.g., 'work', 'home')."},"primary":{"type":"boolean","description":"Indicates whether this email address is the primary one for the user."}},"title":"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems"},"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsRolesItems":{"type":"object","properties":{"value":{"type":"string","description":"The role assigned to the user, often represented by an identifier."},"display":{"type":["string","null"]}},"title":"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsRolesItems"},"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that describe additional extensions or custom schemas applied to the user resource."},"organizationId":{"type":"string","format":"uuid","description":"An identifier for the organization to which the user belongs. This may be used for organizational or grouping purposes."},"status":{"type":"string","description":"The current status of the user. Example values might include 'NEW', 'ACTIVE', 'INACTIVE', etc."},"ssoEnabled":{"type":"boolean","description":"Indicates whether Single Sign-On (SSO) is enabled for the user."},"region":{"type":"string"}},"title":"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension"},"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that describe the structure of the individual user resource. These URNs indicate the schemas applicable to the user data."},"id":{"type":["string","null"],"description":"A unique identifier for the user resource."},"externalId":{"type":["string","null"],"description":"An external identifier for the resource, often used for integration with external systems."},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsMeta"},{"type":"null"}]},"userName":{"type":"string","description":"The username or login name for the user."},"name":{"$ref":"#/components/schemas/ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsName"},"displayName":{"type":"string","description":"The display name of the user, typically used for user identification."},"preferredLanguage":{"type":"string","description":"The user's preferred language, typically represented by a locale code (e.g., 'en', 'fr')."},"locale":{"type":"string","description":"The user's locale, typically represented as a locale code (e.g., 'en-US', 'fr-FR')."},"active":{"type":"boolean","description":"Indicates whether the user is currently active or not."},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsRolesItems"}},"urn:zuora:scim:schemas:1.0:UserExtension":{"$ref":"#/components/schemas/ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension"}},"title":"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItems"},"SCIM_bulkCreateUsers_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that describe the structure of the response. These URNs indicate the schemas that are applicable to the data."},"id":{"type":["string","null"],"description":"A unique identifier for the response object, often used for referencing or tracking."},"externalId":{"type":["string","null"],"description":"An external identifier for the resource, often used for integration with external systems."},"totalResults":{"type":"integer","description":"The total number of user resources available in the response, irrespective of pagination."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaResourcesItems"}},"startIndex":{"type":"integer"},"itemsPerPage":{"type":"integer"}},"title":"SCIM_bulkCreateUsers_Response_200"},"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"A brief description of the reason for the unauthorized access. This message typically explains why the request is unauthorized, such as missing or invalid authentication credentials."},"code":{"type":"string","description":"An error code that provides a more specific identification of the issue. This code can be used for debugging or logging purposes."}},"title":"ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaReasonsItems"},"BulkCreateUsersRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the operation was successful or not. For a 401 Unauthorized error, this will be `false`."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPostResponsesContentApplicationJsonSchemaReasonsItems"}}},"title":"BulkCreateUsersRequestUnauthorizedError"},"BulkCreateUsersRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time","description":"The date and time when the error occurred, in ISO 8601 format."},"status":{"type":"integer","description":"The HTTP status code for the response, which is 403 in this case, indicating that access to the resource is forbidden."},"error":{"type":"string","description":"A short, descriptive string representing the error type. For a 403 response, this is typically 'Forbidden'."},"message":{"type":"string","description":"A human-readable message providing additional details about the error. This message typically explains why access is denied."},"path":{"type":"string","description":"The URI path of the resource where the error occurred."}},"title":"BulkCreateUsersRequestForbiddenError"},"BulkCreateUsersRequestNotFoundError":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that describe the structure of the error response. This helps in understanding the error context."},"status":{"type":"string","description":"The HTTP status code for the response, which is 404 in this case, indicating that the requested resource could not be found."},"detail":{"type":"string","description":"A human-readable message providing additional information about the error. This typically explains what resource was not found."}},"title":"BulkCreateUsersRequestNotFoundError"},"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsMeta":{"type":"object","properties":{"created":{"type":"string","format":"date-time","description":"The date and time when the resource was created, in ISO 8601 format."},"resourceType":{"type":"string","description":"The type of resource (e.g., User) this metadata pertains to."},"location":{"type":"string","description":"The URL where the resource can be accessed or retrieved."}},"title":"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsMeta"},"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsName":{"type":"object","properties":{"formatted":{"type":"string","description":"The full name of the user in a formatted string (e.g., 'John Doe')."},"familyName":{"type":"string","description":"The family name (or surname) of the user."},"givenName":{"type":"string","description":"The given name (or first name) of the user."}},"title":"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsName"},"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"The email address of the user."},"display":{"type":"string","description":"A display name for the email address, often the same as the email address itself."},"type":{"type":"string","description":"The type of email address (e.g., 'work', 'home')."},"primary":{"type":"boolean","description":"Indicates whether this email address is the primary one for the user. A value of `true` means it is the primary email."}},"title":"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsEmailsItems"},"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsRolesItems":{"type":"object","properties":{"value":{"type":"string","description":"The role assigned to the user (e.g., 'ADMIN', 'USER')."},"display":{"type":["string","null"]}},"title":"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsRolesItems"},"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs specific to the user extension, indicating additional attributes."},"organizationId":{"type":"string","description":"An identifier for the organization associated with the user, often used for organizational contexts."},"status":{"type":"string","description":"The current status of the user within the system (e.g., 'ACTIVE', 'PENDING')."},"ssoEnabled":{"type":"boolean","description":"Indicates whether Single Sign-On (SSO) is enabled for the user. A value of `true` means SSO is enabled."},"region":{"type":"string"}},"title":"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension"},"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that apply to this resource, indicating the structure and attributes of the resource."},"id":{"type":"string","description":"A unique identifier for the resource within the system."},"externalId":{"type":"string","description":"An external identifier for the resource, often used for integration with external systems."},"meta":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsMeta"},"userName":{"type":"string","description":"The username of the user. This is typically a unique identifier for the user within the system."},"name":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsName"},"displayName":{"type":"string","description":"A name that is suitable for display to end-users, which may be different from the username or full name."},"preferredLanguage":{"type":"string","description":"The preferred language of the user for communication and content."},"locale":{"type":"string","description":"The locale of the user, typically used to determine regional settings (e.g., 'en-US' for English, United States)."},"active":{"type":"boolean","description":"Indicates whether the user account is currently active. A value of `true` means the account is active, and `false` means it is inactive."},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsEmailsItems"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsRolesItems"}},"urn:zuora:scim:schemas:1.0:UserExtension":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItemsUrnZuoraScimSchemas10UserExtension"}},"title":"ScimV2UsersBulkPatchRequestBodyContentApplicationJsonSchemaItems"},"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"created":{"type":"string","format":"date-time","description":"The date and time when the user resource was created, in ISO 8601 format."},"resourceType":{"type":"string","description":"The type of resource (e.g., 'User')."},"location":{"type":"string","description":"The URL where the user resource can be accessed or retrieved."}},"title":"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaMeta"},"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsMeta":{"type":"object","properties":{"created":{"type":"string","format":"date-time","description":"The date and time when the user resource was created, in ISO 8601 format."},"resourceType":{"type":"string","description":"The type of resource (e.g., 'User')."},"location":{"type":"string","description":"The URL where the user resource can be accessed or retrieved."}},"title":"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsName":{"type":"object","properties":{"formatted":{"type":"string","description":"The full name of the user formatted as a single string (e.g., 'John Doe')."},"familyName":{"type":"string","description":"The user's family name (surname)."},"givenName":{"type":"string","description":"The user's given name (first name)."}},"title":"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsName"},"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"The email address of the user."},"display":{"type":"string","description":"A display name for the email address, often the same as the email address itself."},"type":{"type":"string","description":"The type of email address (e.g., 'work', 'home')."},"primary":{"type":"boolean","description":"Indicates whether this email address is the primary one for the user. `true` means primary."}},"title":"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems"},"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsRolesItems":{"type":"object","properties":{"value":{"type":"string","description":"The role assigned to the user (e.g., 'ADMIN')."},"display":{"type":["string","null"]}},"title":"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsRolesItems"},"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs specific to the user extension, detailing additional attributes."},"organizationId":{"type":"string","format":"uuid","description":"An identifier for the organization associated with the user."},"status":{"type":"string","description":"The current status of the user (e.g., 'ACTIVE', 'NEW')."},"ssoEnabled":{"type":"boolean","description":"Indicates whether Single Sign-On (SSO) is enabled for the user. `true` means SSO is enabled."},"region":{"type":"string"}},"title":"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension"},"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that define the structure and attributes of the user resource."},"id":{"type":["string","null"],"description":"A unique identifier for the user resource."},"externalId":{"type":["string","null"],"description":"An external identifier for the resource, often used for integration with external systems."},"meta":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"userName":{"type":"string","description":"The username of the user, typically used as a unique identifier."},"name":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsName"},"displayName":{"type":"string","description":"A display name for the user, which may differ from the username or full name."},"preferredLanguage":{"type":"string","description":"The user's preferred language for communication and content."},"locale":{"type":"string","description":"The user's locale, which typically indicates regional settings (e.g., 'en-US')."},"active":{"type":"boolean","description":"Indicates whether the user account is currently active. `true` means active, `false` means inactive."},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsEmailsItems"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsRolesItems"}},"urn:zuora:scim:schemas:1.0:UserExtension":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItemsUrnZuoraScimSchemas10UserExtension"}},"title":"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItems"},"SCIM_bulkUpdateUsers_Response_200":{"type":"object","properties":{"itemsPerPage":{"type":"integer","description":"The items that are allowed on each page.\n"},"startIndex":{"type":"integer"},"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that apply to this resource, indicating the structure and attributes of the response."},"id":{"type":["string","null"],"description":"A unique identifier for the response resource, typically the ID of the user or group."},"externalId":{"type":["string","null"],"description":"An external identifier for the resource, often used for integration with external systems."},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaMeta"},{"type":"null"}]},"totalResults":{"type":"integer","description":"The total number of results returned by the request. This helps in pagination and determining the total size of the dataset."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaResourcesItems"}}},"title":"SCIM_bulkUpdateUsers_Response_200"},"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"A description of why the request is unauthorized (e.g., 'Invalid credentials')."},"code":{"type":"string","description":"A code representing the specific reason for the unauthorized access (e.g., '90000011')."}},"title":"ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaReasonsItems"},"BulkUpdateUsersRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful. For unauthorized requests, this will be `false`."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersBulkPatchResponsesContentApplicationJsonSchemaReasonsItems"}}},"title":"BulkUpdateUsersRequestUnauthorizedError"},"BulkUpdateUsersRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time","description":"The timestamp when the error occurred, in ISO 8601 format."},"status":{"type":"integer","description":"The HTTP status code for the error, which will be `403` for Forbidden."},"error":{"type":"string","description":"A short description of the error (e.g., 'Forbidden')."},"message":{"type":"string","description":"A detailed message explaining why access was denied (e.g., 'Admin access denied')."},"path":{"type":"string","description":"The API endpoint path where the error occurred (e.g., '/scim/v2/Users')."}},"title":"BulkUpdateUsersRequestForbiddenError"},"ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaResourcesItemsMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"The type of resource (e.g., 'User')."},"location":{"type":"string","description":"The URL where the resource can be accessed."},"created":{"type":"string","format":"dateTime","description":"The creation date and time when the resource was created.\n"}},"title":"ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaResourcesItemsMeta"},"ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"externalId":{"type":["string","null"],"description":"An external identifier associated with the resource, if available."},"id":{"type":["string","null"],"description":"The unique identifier assigned to the resource."},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaResourcesItemsMeta"},{"type":"null"}]},"schemaUrns":{"type":"array","items":{"type":"string"},"description":"A list of URNs for SCIM schemas that this resource conforms to."}},"title":"ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaResourcesItems"},"ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"created":{"type":"string","format":"date-time","description":"The date and time when the resource was created."},"resourceType":{"type":"string","description":"The type of the resource (e.g., 'User')."},"location":{"type":"string","description":"The URL where the resource can be accessed."}},"title":"ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaMeta"},"SCIM_deleteAListOfUsers_Response_200":{"type":"object","properties":{"resources":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaResourcesItems"}},"externalId":{"type":["string","null"],"description":"An external identifier associated with the collection of resources, if available."},"id":{"type":["string","null"],"description":"The unique identifier for the collection of resources."},"itemsPerPage":{"type":"integer","description":"The number of items returned per page in the response."},"meta":{"oneOf":[{"$ref":"#/components/schemas/ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaMeta"},{"type":"null"}]},"schemas":{"type":"array","items":{"type":"string"},"description":"A list of URNs for SCIM schemas applicable to the collection of resources."},"startIndex":{"type":"integer","description":"The index of the first item in the current page of results."},"totalResults":{"type":"integer","format":"int64","description":"The total number of results available across all pages."}},"title":"SCIM_deleteAListOfUsers_Response_200"},"ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable message describing the error or reason for the failure."},"code":{"type":"string","description":"A specific error code representing the type of error. This code can be used for programmatic error handling."}},"title":"ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaReasonsItems"},"DeleteAListOfUsersRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful. A value of `false` indicates that an error occurred."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaReasonsItems"}}},"title":"DeleteAListOfUsersRequestUnauthorizedError"},"DeleteAListOfUsersRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time","description":"The date and time when the error occurred, formatted according to ISO 8601."},"status":{"type":"integer","description":"The HTTP status code associated with the error response. Indicates the type of error that occurred."},"error":{"type":"string","description":"A short, descriptive name for the error. Often corresponds to the HTTP status code."},"message":{"type":"string","description":"A detailed message describing the error that occurred. This message is intended to help the client understand the nature of the problem."},"path":{"type":"string","description":"The URI path of the request that resulted in the error. This can help identify which resource or endpoint caused the issue."}},"title":"DeleteAListOfUsersRequestForbiddenError"},"ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaSchemasItems":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:Error"],"title":"ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaSchemasItems"},"DeleteAListOfUsersRequestNotFoundError":{"type":"object","properties":{"schemas":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersDeletePostResponsesContentApplicationJsonSchemaSchemasItems"},"description":"A list of URNs indicating the schemas that describe the structure of the error response. This provides information on the format and content of the error message."},"status":{"type":"string","description":"A string representation of the HTTP status code indicating the error. This helps in identifying the type of error that occurred."},"detail":{"type":"string","description":"A detailed message providing additional context or explanation about the error. This helps in understanding the specific issue or reason for the error."}},"title":"DeleteAListOfUsersRequestNotFoundError"},"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"created":{"type":"string","format":"date-time","description":"The date and time when the user resource was created."},"resourceType":{"type":"string","description":"The type of resource (e.g., 'User')."},"location":{"type":"string","description":"The URL where the user resource can be accessed or retrieved."}},"title":"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaMeta"},"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaName":{"type":"object","properties":{"formatted":{"type":"string","description":"The full name of the user, including both given and family names."},"familyName":{"type":"string","description":"The family name (surname) of the user."},"givenName":{"type":"string","description":"The given name (first name) of the user."}},"title":"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaName"},"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"The email address of the user."},"display":{"type":"string","description":"The email address displayed in the user interface."},"type":{"type":"string","description":"The type of email address (e.g., 'work', 'home')."},"primary":{"type":"boolean","description":"Indicates whether this email address is the primary email for the user."}},"title":"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaEmailsItems"},"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaGroupsItems":{"type":"object","properties":{"value":{"type":"string","description":"The identifier of the group to which the user belongs."},"display":{"type":"string","description":"The display name of the group."}},"title":"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaGroupsItems"},"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaRolesItems":{"type":"object","properties":{"value":{"type":"string","description":"The role assigned to the user."},"display":{"type":"string","description":"The display name of the role."}},"title":"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaRolesItems"},"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs specific to Zuora’s user extension schema."},"organizationId":{"type":"string","description":"The identifier for the organization to which the user belongs."},"status":{"type":"string","description":"The status of the user account (e.g., 'ACTIVE')."},"ssoEnabled":{"type":"boolean","description":"Indicates whether Single Sign-On (SSO) is enabled for the user."},"region":{"type":"string","description":"The region associated with the user (e.g., 'EU')."}},"title":"ScimV2UsersIdGetResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension"},"SCIM_getASpecificUser_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"},"description":"A list of schema URNs that define the structure and attributes of the user resource."},"id":{"type":"string","description":"The unique identifier for the user resource."},"meta":{"$ref":"#/components/schemas/ScimV2UsersIdGetResponsesContentApplicationJsonSchemaMeta"},"userName":{"type":"string","description":"The user’s unique username."},"name":{"$ref":"#/components/schemas/ScimV2UsersIdGetResponsesContentApplicationJsonSchemaName"},"displayName":{"type":"string","description":"The display name of the user, used for user interface purposes."},"preferredLanguage":{"type":"string","description":"The preferred language for the user, specified using a language code (e.g., 'en')."},"locale":{"type":"string","description":"The locale of the user, specified using a locale code (e.g., 'en-US')."},"active":{"type":"boolean","description":"Indicates whether the user account is active."},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdGetResponsesContentApplicationJsonSchemaEmailsItems"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdGetResponsesContentApplicationJsonSchemaGroupsItems"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdGetResponsesContentApplicationJsonSchemaRolesItems"}},"urn:zuora:scim:schemas:1.0:UserExtension":{"$ref":"#/components/schemas/ScimV2UsersIdGetResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension"}},"title":"SCIM_getASpecificUser_Response_200"},"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaMeta":{"type":"object","properties":{"created":{"type":"string","format":"date-time"},"resourceType":{"type":"string"},"location":{"type":"string"}},"title":"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaMeta"},"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaName":{"type":"object","properties":{"formatted":{"type":"string"},"familyName":{"type":"string"},"givenName":{"type":"string"}},"title":"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaName"},"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaEmailsItems":{"type":"object","properties":{"value":{"type":"string"}},"title":"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaEmailsItems"},"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaGroupsItems":{"type":"object","properties":{"value":{"type":"string"},"display":{"type":"string"}},"title":"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaGroupsItems"},"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaRolesItems":{"type":"object","properties":{"value":{"type":"string"},"display":{"type":"string"}},"title":"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaRolesItems"},"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"organizationId":{"type":"string"},"status":{"type":"string"},"ssoEnabled":{"type":"boolean"},"region":{"type":"string"}},"title":"ScimV2UsersIdPutRequestBodyContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension"},"ScimV2UsersIdPutResponsesContentApplicationJsonSchemaEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"The email address of the user."},"primary":{"type":"boolean","description":"Indicates whether this email address is the primary email for the user."}},"title":"ScimV2UsersIdPutResponsesContentApplicationJsonSchemaEmailsItems"},"ScimV2UsersIdPutResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"The type of resource, e.g., 'User'."},"created":{"type":"string","format":"date-time","description":"The date and time when the user resource was created."},"lastModified":{"type":"string","format":"date-time","description":"The date and time when the user resource was last modified."}},"title":"ScimV2UsersIdPutResponsesContentApplicationJsonSchemaMeta"},"SCIM_updateASpecificUser_Response_200":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the user resource."},"userName":{"type":"string","description":"The user’s unique username."},"displayName":{"type":"string","description":"The display name of the user, typically used in user interfaces."},"active":{"type":"boolean","description":"Indicates whether the user account is currently active."},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPutResponsesContentApplicationJsonSchemaEmailsItems"}},"meta":{"$ref":"#/components/schemas/ScimV2UsersIdPutResponsesContentApplicationJsonSchemaMeta"}},"title":"SCIM_updateASpecificUser_Response_200"},"ScimV2UsersIdDeleteResponsesContentApplicationJsonSchemaEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"The email address associated with the user."},"primary":{"type":"boolean","description":"Indicates whether this email address is the primary one for the user."}},"title":"ScimV2UsersIdDeleteResponsesContentApplicationJsonSchemaEmailsItems"},"ScimV2UsersIdDeleteResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"resourceType":{"type":"string","description":"The type of the resource, e.g., 'User'."},"created":{"type":"string","format":"date-time","description":"The date and time when the user resource was created."},"lastModified":{"type":"string","format":"date-time","description":"The date and time when the user resource was last modified."}},"title":"ScimV2UsersIdDeleteResponsesContentApplicationJsonSchemaMeta"},"SCIM_deleteASpecificUser_Response_200":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the user resource."},"userName":{"type":"string","description":"The unique username of the user."},"displayName":{"type":"string","description":"The display name of the user, used for user interfaces and profile views."},"active":{"type":"boolean","description":"Indicates whether the user account is active (true) or inactive (false)."},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdDeleteResponsesContentApplicationJsonSchemaEmailsItems"}},"meta":{"$ref":"#/components/schemas/ScimV2UsersIdDeleteResponsesContentApplicationJsonSchemaMeta"}},"title":"SCIM_deleteASpecificUser_Response_200"},"ScimV2UsersIdDeleteResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"A message describing the reason for the authorization failure."},"code":{"type":"string","description":"An application-specific error code indicating the nature of the authorization issue."}},"title":"ScimV2UsersIdDeleteResponsesContentApplicationJsonSchemaReasonsItems"},"DeleteASpecificUserRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful. For a 401 Unauthorized response, this will be false."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdDeleteResponsesContentApplicationJsonSchemaReasonsItems"}}},"title":"DeleteASpecificUserRequestUnauthorizedError"},"DeleteASpecificUserRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time","description":"The date and time when the error occurred, in ISO 8601 format."},"status":{"type":"integer","description":"The HTTP status code for the response. For a 403 Forbidden response, this will be 403."},"error":{"type":"string","description":"A short, general description of the error."},"message":{"type":"string","description":"A detailed message explaining why access is forbidden, such as lack of permissions."},"path":{"type":"string","description":"The request path that triggered the error."}},"title":"DeleteASpecificUserRequestForbiddenError"},"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaSchemasItems":{"type":"string","enum":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"title":"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaSchemasItems"},"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsOp":{"type":"string","enum":["replace","add","remove","copy","move","test"],"title":"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsOp"},"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueEmailsItemsType":{"type":"string","enum":["work","home","other"],"title":"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueEmailsItemsType"},"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueEmailsItems":{"type":"object","properties":{"value":{"type":"string","format":"email"},"display":{"type":"string"},"type":{"$ref":"#/components/schemas/ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueEmailsItemsType"},"primary":{"type":"boolean"}},"title":"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueEmailsItems"},"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValue":{"type":"object","properties":{"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValueEmailsItems"}}},"title":"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValue"},"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItems":{"type":"object","properties":{"op":{"$ref":"#/components/schemas/ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsOp"},"path":{"type":"string"},"value":{"$ref":"#/components/schemas/ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItemsValue"}},"title":"ScimV2UsersIdPatchRequestBodyContentApplicationJsonSchemaOperationsItems"},"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaSchemasItems":{"type":"string","enum":["urn:zuora:scim:schemas:1.0:UserExtension","urn:ietf:params:scim:schemas:core:2.0:User"],"title":"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaSchemasItems"},"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"created":{"type":"string","format":"date-time","description":"The timestamp when the user resource was created, in ISO 8601 format."},"resourceType":{"type":"string","description":"The type of the resource, in this case, it is always 'User' for user resources."},"location":{"type":"string","description":"The URL where the full representation of the user resource can be retrieved."}},"title":"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaMeta"},"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaName":{"type":"object","properties":{"formatted":{"type":"string","description":"The full name of the user formatted as a single string (e.g., 'John Doe')."},"familyName":{"type":"string","description":"The family name (or surname) of the user."},"givenName":{"type":"string","description":"The given name (or first name) of the user."}},"title":"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaName"},"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaEmailsItems":{"type":"object","properties":{"value":{"type":"string","description":"The email address of the user."},"display":{"type":"string","description":"A display name for the email address, typically the same as the email value."},"type":{"type":"string","description":"The type of the email address (e.g., 'work', 'home')."},"primary":{"type":"boolean","description":"Indicates whether this email address is the primary address for the user."}},"title":"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaEmailsItems"},"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaGroupsItems":{"type":"object","properties":{"value":{"type":"string","description":"The unique identifier for the group the user belongs to."},"display":{"type":"string","description":"The display name of the group."}},"title":"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaGroupsItems"},"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaRolesItems":{"type":"object","properties":{"value":{"type":"string","description":"The role assigned to the user."},"display":{"type":"string","description":"A display name for the role."}},"title":"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaRolesItems"},"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtensionSchemasItems":{"type":"string","enum":["urn:zuora:scim:schemas:1.0:UserExtension"],"title":"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtensionSchemasItems"},"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension":{"type":"object","properties":{"schemas":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtensionSchemasItems"},"description":"A list of schema URNs that are specific to Zuora's extended user schema."},"organizationId":{"type":"string","description":"The unique identifier for the organization to which the user belongs."},"status":{"type":"string","description":"The current status of the user (e.g., ACTIVE, INACTIVE)."},"ssoEnabled":{"type":"boolean","description":"Indicates whether Single Sign-On (SSO) is enabled for this user."},"region":{"type":"string"}},"title":"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension"},"SCIM_partialUpdateASpecificUser_Response_200":{"type":"object","properties":{"schemas":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaSchemasItems"},"description":"A list of schema URNs that are applicable to the user resource. This helps to identify the structure and format of the returned data."},"id":{"type":"string","description":"The unique identifier for the user resource."},"meta":{"$ref":"#/components/schemas/ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaMeta"},"userName":{"type":"string","description":"The username for the user. This is a unique identifier for the user in the system."},"name":{"$ref":"#/components/schemas/ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaName"},"displayName":{"type":"string","description":"The display name of the user, which may be used in UIs."},"preferredLanguage":{"type":"string","description":"The preferred language of the user for communication."},"locale":{"type":"string","description":"The locale of the user, typically a language code combined with a region (e.g., 'en-US')."},"active":{"type":"boolean","description":"Indicates whether the user account is active or not."},"emails":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaEmailsItems"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaGroupsItems"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaRolesItems"}},"urn:zuora:scim:schemas:1.0:UserExtension":{"$ref":"#/components/schemas/ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaUrnZuoraScimSchemas10UserExtension"}},"title":"SCIM_partialUpdateASpecificUser_Response_200"},"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"A human-readable message explaining the reason for the unauthorized response."},"code":{"type":"string","description":"A specific error code associated with the unauthorized response. This code can be used for programmatic handling of the error."}},"title":"ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaReasonsItems"},"PartialUpdateASpecificUserRequestUnauthorizedError":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful. For unauthorized responses, this is always false."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ScimV2UsersIdPatchResponsesContentApplicationJsonSchemaReasonsItems"}}},"title":"PartialUpdateASpecificUserRequestUnauthorizedError"},"PartialUpdateASpecificUserRequestForbiddenError":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time","description":"The date and time when the error occurred, in ISO 8601 format."},"status":{"type":"integer","description":"The HTTP status code of the response, which is 403 for forbidden errors."},"error":{"type":"string","description":"A short description of the error type. For forbidden errors, this is always 'Forbidden'."},"message":{"type":"string","description":"A detailed message explaining why the request was forbidden. This might include additional context about access control issues."},"path":{"type":"string","description":"The path of the request that resulted in the error. This helps identify which resource or endpoint was being accessed when the error occurred."}},"title":"PartialUpdateASpecificUserRequestForbiddenError"},"SubmitDataLabelingJobRequestQueryType":{"type":"string","enum":["ByZoql","ById"],"description":"Specifies the type of query that the data labeling job will run to fetch the data to be labeled.\n\n* `ByZoql` - The data labeling job will run a ZOQL query which is specified in the `query` field to fetch the data to be labeled.\n* `ById` - The data labeling job will fetch the data to be labeled by the IDs specified in the `ids` field.\n","title":"SubmitDataLabelingJobRequestQueryType"},"SubmitDataLabelingJobRequest":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the objects to be labeled, only required if the `queryType` is `ById`.\n\nThere is a 4MB limit of the JSON payload, so in case of a large number of IDs, please make sure the payload is less than 4MB.\n"},"objectType":{"type":"string","description":"The object type of the data labeling job.\n\nCurrently, the following objects are supported:\n  * `User`\n  * `Account` \n\n    All the associated transaction objects of the account being labeled will automatically inherit the org label of the account.\n  * `Product`\n\n    You have to label the Account object first, make sure all accounts have been labeled, then you can proceed with the Product object. \n\n    You can get all the unlabeled accounts by running a Data Source export job, with the following query:\n    ``` sql\n    SELECT Id, Name FROM Account WHERE Organization.Id IS NULL\n    ```              \n    \n    All the ProductRatePlanS of the product will be automatically labeled with the same `orgs`.\n    \n    When labeling products, you can omit the `orgs` parameter, i.e, leave it empty, the system will find all the subscriptions that include the product and get the org list of those subscriptions, then label the product with those `orgs`, aka, the `derived orgs`.\n    \n    You can also explicitly specify the orgs parameter, in that case, you will need to provide a super set of the `derived orgs`.  \n  * `BillRun`\n\n    You don't need to specify the `orgs` parameter, we will label the `BillRun` with all the orgs because existing runs could pick up all accounts. You can definitely create new bill run with certain `orgs` to operate separately by `orgs`.\n  * `PaymentRun`\n\n    Same as BillRun.\n  * `ForecastRun`\n"},"orgIds":{"type":"array","items":{"type":"string","format":"uuid","minLength":36,"maxLength":36},"description":"The IDs of the organizations that the data labeling job will associate with the data to be labeled. Either the `orgIds` or `orgs` field is required.\n\nFor `Account` object, one and only one org Id is required.\n\nFor configuration objects, `null` and `[]` are treated differently, use `null` to unlabel the object, `[]` to label it with all orgs.\n"},"orgs":{"type":"array","items":{"type":"string"},"description":"The names of the organizations that the data labeling job will associate with the data to be labeled. Either the `orgIds` or `orgs` field is required.\n\nFor `Account` object, one and only one org name is required.\n\nFor configuration objects, `null` and `[]` are treated differently, use `null` to unlabel the object, `[]` to label it with all orgs.\n"},"query":{"type":"string","description":"The query that the data labeling job will run to fetch the data to be labeled, only required if the `queryType` is `ByZoql`.\n"},"queryType":{"$ref":"#/components/schemas/SubmitDataLabelingJobRequestQueryType","description":"Specifies the type of query that the data labeling job will run to fetch the data to be labeled.\n\n* `ByZoql` - The data labeling job will run a ZOQL query which is specified in the `query` field to fetch the data to be labeled.\n* `ById` - The data labeling job will fetch the data to be labeled by the IDs specified in the `ids` field.\n"}},"required":["objectType","queryType"],"title":"SubmitDataLabelingJobRequest"},"SubmitDataLabelingJobResponseJobStatus":{"type":"string","enum":["Accepted","Dispatched","Completed"],"description":"Status of the data labeling job.\n\n* `Accepted` - The data labeling job has been accepted by the system.\n* `Dispatched` - The data labeling job is dispatched to the data labeling service.\n* `Completed` - The data labeling job has completed. Please note that `Completed` simply means the data labeling job has completed, but it does not mean the data labeling job has labeled all the data. You can check the `progress` field to see how many data have been `labeled`, `failed` or `timeout`.\n","title":"SubmitDataLabelingJobResponseJobStatus"},"SubmitDataLabelingJobResponse":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","minLength":32,"maxLength":32,"description":"Identifier of the data labeling job.\n"},"jobStatus":{"$ref":"#/components/schemas/SubmitDataLabelingJobResponseJobStatus","description":"Status of the data labeling job.\n\n* `Accepted` - The data labeling job has been accepted by the system.\n* `Dispatched` - The data labeling job is dispatched to the data labeling service.\n* `Completed` - The data labeling job has completed. Please note that `Completed` simply means the data labeling job has completed, but it does not mean the data labeling job has labeled all the data. You can check the `progress` field to see how many data have been `labeled`, `failed` or `timeout`.\n"},"success":{"type":"boolean","description":"Indicates whether the job was submitted successfully.\n"}},"title":"SubmitDataLabelingJobResponse"},"GetDataLabelingJobResponseJobStatus":{"type":"string","enum":["Accepted","Dispatched","Completed"],"description":"Status of the data labeling job.\n\n* `Accepted` - The data labeling job has been accepted by the system.\n* `Dispatched` - The data labeling job is dispatched to the data labeling service.\n* `Completed` - The data labeling job has completed. Please note that `Completed` simply means the data labeling job has completed, but it does not mean the data labeling job has labeled all the data. You can check the `progress` field to see how many data have been `labeled`, `failed` or `timeout`.\n","title":"GetDataLabelingJobResponseJobStatus"},"GetDataLabelingJobResponseProgress":{"type":"object","properties":{"failed":{"type":"integer","description":"The number of objects that have failed to be labeled.\n"},"labeled":{"type":"integer","description":"The number of objects that have been labeled.\n"},"timeout":{"type":"integer","description":"The number of objects that have timed out to be labeled.          \n"}},"title":"GetDataLabelingJobResponseProgress"},"GetDataLabelingJobResponse":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","minLength":32,"maxLength":32,"description":"Identifier of the data labeling job.\n"},"jobStatus":{"$ref":"#/components/schemas/GetDataLabelingJobResponseJobStatus","description":"Status of the data labeling job.\n\n* `Accepted` - The data labeling job has been accepted by the system.\n* `Dispatched` - The data labeling job is dispatched to the data labeling service.\n* `Completed` - The data labeling job has completed. Please note that `Completed` simply means the data labeling job has completed, but it does not mean the data labeling job has labeled all the data. You can check the `progress` field to see how many data have been `labeled`, `failed` or `timeout`.\n"},"objectType":{"type":"string","description":"The object type of the data labeling job.\n"},"progress":{"$ref":"#/components/schemas/GetDataLabelingJobResponseProgress"},"success":{"type":"boolean","description":"Indicates whether the job was submitted successfully.\n"},"totalObject":{"type":"integer","description":"The total number of objects to be labeled.\n"}},"title":"GetDataLabelingJobResponse"},"V1UnoDataBackfillBookingdateJobsGetResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"V1UnoDataBackfillBookingdateJobsGetResponsesContentApplicationJsonSchemaReasonsItems"},"GetAutoBackfillJobResponseStatus":{"type":"string","enum":["ACCEPTED","PROCESSING","COMPLETED","FAILED","STOPPED"],"description":"The status of the booking date backfill job\n","title":"GetAutoBackfillJobResponseStatus"},"GetAutoBackfillJobResponseType":{"type":"string","enum":["BookingDate","RatePlanCharge","OrderLineItem"],"description":"The type of the auto backfill job\n","title":"GetAutoBackfillJobResponseType"},"GETAutoBackfillJobResponse":{"type":"object","properties":{"id":{"type":"string","description":"Job ID"},"createdOn":{"type":"integer","format":"int64","description":"The created-on date in the `int64` format\n"},"createdOnReadable":{"type":"string","format":"datetime","description":"The created-on date in the `datetime` format\n"},"updatedOn":{"type":"integer","format":"int64","description":"The updated-on date in the `int64` format\n"},"updatedOnReadable":{"type":"string","format":"datetime","description":"The updated-on date in the `datetime` format\n"},"updatedByUsername":{"type":"string","description":"The user who performs the booking date backfill job\n"},"status":{"$ref":"#/components/schemas/GetAutoBackfillJobResponseStatus","description":"The status of the booking date backfill job\n"},"type":{"$ref":"#/components/schemas/GetAutoBackfillJobResponseType","description":"The type of the auto backfill job\n"},"batchSentCount":{"type":"integer","description":"The batch count sent for execution\n"},"batchFinishedCount":{"type":"integer","description":"The finished batch count\n"},"errorCount":{"type":"integer","description":"The failed record count\n"},"progress":{"type":"string","description":"The progress of the booking date backfill job\n"}},"title":"GETAutoBackfillJobResponse"},"Data_Backfill_GET_ListBookingDateBackfillJobs_Response_200":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/V1UnoDataBackfillBookingdateJobsGetResponsesContentApplicationJsonSchemaReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"jobs":{"type":"array","items":{"$ref":"#/components/schemas/GETAutoBackfillJobResponse"}}},"title":"Data Backfill_GET_ListBookingDateBackfillJobs_Response_200"},"V1UnoDataBackfillBookingdateJobsPostResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"V1UnoDataBackfillBookingdateJobsPostResponsesContentApplicationJsonSchemaReasonsItems"},"Data_Backfill_POST_CreateBookingDateBackfillJob_Response_200":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/V1UnoDataBackfillBookingdateJobsPostResponsesContentApplicationJsonSchemaReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"jobId":{"type":"string","description":"String of 32 characters that identifies the booking date backfill job. \nThe id is generated before the backfill job is processed. \nYou can use the id to get the booking date backfill job result.\n"}},"title":"Data Backfill_POST_CreateBookingDateBackfillJob_Response_200"},"V1UnoDataBackfillBookingdateJobsJobIdGetResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"V1UnoDataBackfillBookingdateJobsJobIdGetResponsesContentApplicationJsonSchemaReasonsItems"},"Data_Backfill_GET_BookingDateBackfillJobById_Response_200":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/V1UnoDataBackfillBookingdateJobsJobIdGetResponsesContentApplicationJsonSchemaReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"job":{"$ref":"#/components/schemas/GETAutoBackfillJobResponse"}},"title":"Data Backfill_GET_BookingDateBackfillJobById_Response_200"},"V1UnoDataBackfillBookingdateJobsJobIdPutRequestBodyContentApplicationJsonSchemaStatus":{"type":"string","enum":["Stopping"],"description":"`Stopping` is currently the only allowed value.\n","title":"V1UnoDataBackfillBookingdateJobsJobIdPutRequestBodyContentApplicationJsonSchemaStatus"},"DataBackfillJobType":{"type":"string","enum":["ProductRatePlanCharge","RatePlanCharge","InvoiceDetail","MemoDetail","InvoiceItemAdjustment"],"description":"The data backfill job type","title":"DataBackfillJobType"},"DataBackfillJobStatus":{"type":"string","enum":["Pending","Processing","Completed","Canceled","Failed","Stopping","Stopped"],"description":"The status of the data backfill job","title":"DataBackfillJobStatus"},"DataBackfillJob":{"type":"object","properties":{"id":{"type":"string","description":"Job ID"},"importType":{"$ref":"#/components/schemas/DataBackfillJobType"},"uploadedFileId":{"type":"string","description":"ID of the uploaded file"},"uploadedFileName":{"type":"string","description":"Name of the uploaded file"},"uploadedFileUrl":{"type":"string","description":"URL of the uploaded file. You can download the uploaded file via this url."},"uploadedFileSize":{"type":"string","description":"Size of the uploaded file"},"inputFileSize":{"type":"integer","format":"int64","description":"Size of the uploaded file, in the `int64` format"},"outputSize":{"type":"string","description":"Size of the output file. \n"},"outputType":{"type":"string","description":"Type of the output file."},"outputFileSize":{"type":"integer","format":"int64","description":"Size of the output file, in the `int64` format. \n"},"resultFileId":{"type":"string","description":"ID of the output result file that you can download when a data backfill job is completed. \n"},"resultFileName":{"type":"string","description":"Name of the result file that you can download when a data backfill job is completed\n"},"resultFileUrl":{"type":"string","description":"URL of the result file that you can download when a data backfill job is completed. You can download the result file via this URL. In the result file, you can see the data that you uploaded and the result for each record in the `Success` column of the file. For the record that fails to be updated, you can see the reason for failure in the `Error Message` column of the file.\n"},"uploadedBy":{"type":"string","description":"The user who uploads the file\n"},"uploadedOn":{"type":"string","format":"date-time","description":"The date and time when the file is uploaded\n"},"completedOn":{"type":"string","format":"date-time","description":"The date and time when the data backfill action is completed\n"},"startedProcessingOn":{"type":"string","format":"date-time","description":"The date and time when the data backfill action is started\n"},"totalCount":{"type":"integer","description":"The total count of the data records to backfill\n"},"failedCount":{"type":"integer","description":"The count of the data records that failed to be backfilled\n"},"status":{"$ref":"#/components/schemas/DataBackfillJobStatus"},"failureMessage":{"type":"string","description":"Message for the failure\n"},"processedCount":{"type":"integer","format":"int64","description":"The count of the data records that are being processed\n"},"successCount":{"type":"integer","format":"int64","description":"The count of the data records that are successfully backfilled\n"},"remainingTime":{"type":"integer","format":"int64","description":"The remaining time for the data backfill job, in the `int64` format\n"},"remainingTimeText":{"type":"string","description":"The remaining time for the data backfill job, in the text format\n"},"completedPercentage":{"type":"integer","description":"The percentage of the completed data records\n"}},"title":"DataBackfillJob"},"V1UnoDataBackfillJobsPostResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"V1UnoDataBackfillJobsPostResponsesContentApplicationJsonSchemaReasonsItems"},"Data_Backfill_POST_CreateDataBackfillJob_Response_200":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/V1UnoDataBackfillJobsPostResponsesContentApplicationJsonSchemaReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"jobId":{"type":"string","description":"String of 32 characters that identifies the data backfill job. The id is generated before the job is processed. You can use the id to retrieve the data backfill job result.\n"}},"title":"Data Backfill_POST_CreateDataBackfillJob_Response_200"},"V1UnoDataBackfillJobsJobIdGetResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"V1UnoDataBackfillJobsJobIdGetResponsesContentApplicationJsonSchemaReasonsItems"},"Data_Backfill_GET_DataBackfillJobById_Response_200":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/V1UnoDataBackfillJobsJobIdGetResponsesContentApplicationJsonSchemaReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"job":{"$ref":"#/components/schemas/DataBackfillJob"}},"title":"Data Backfill_GET_DataBackfillJobById_Response_200"},"V1UnoDataBackfillJobsJobIdPutRequestBodyContentApplicationJsonSchemaStatus":{"type":"string","enum":["Stopping"],"description":"`Stopping` is currently the only allowed value.\n","title":"V1UnoDataBackfillJobsJobIdPutRequestBodyContentApplicationJsonSchemaStatus"},"V1UnoDataBackfillListjobsGetResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"V1UnoDataBackfillListjobsGetResponsesContentApplicationJsonSchemaReasonsItems"},"Data_Backfill_GET_ListDataBackfillJobs_Response_200":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/V1UnoDataBackfillListjobsGetResponsesContentApplicationJsonSchemaReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"jobs":{"type":"array","items":{"$ref":"#/components/schemas/DataBackfillJob"}}},"title":"Data Backfill_GET_ListDataBackfillJobs_Response_200"},"V1UnoDataBackfillPropagationJobsGetResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"V1UnoDataBackfillPropagationJobsGetResponsesContentApplicationJsonSchemaReasonsItems"},"Data_Backfill_GET_listAutoBackfillJob_Response_200":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/V1UnoDataBackfillPropagationJobsGetResponsesContentApplicationJsonSchemaReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"jobs":{"type":"array","items":{"$ref":"#/components/schemas/GETAutoBackfillJobResponse"}}},"title":"Data Backfill_GET_listAutoBackfillJob_Response_200"},"V1UnoDataBackfillPropagationJobsPostRequestBodyContentApplicationJsonSchemaType":{"type":"string","enum":["RatePlanCharge","OrderLineItem"],"title":"V1UnoDataBackfillPropagationJobsPostRequestBodyContentApplicationJsonSchemaType"},"V1UnoDataBackfillPropagationJobsPostResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"V1UnoDataBackfillPropagationJobsPostResponsesContentApplicationJsonSchemaReasonsItems"},"Data_Backfill_POST_CreateAutoBackfillJob_Response_200":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/V1UnoDataBackfillPropagationJobsPostResponsesContentApplicationJsonSchemaReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"jobId":{"type":"string","description":"String of 32 characters that identifies the auto backfill job. \nThe id is generated before the backfill job is processed. \nYou can use the id to get the auto backfill job result.\n"}},"title":"Data Backfill_POST_CreateAutoBackfillJob_Response_200"},"V1UnoDataBackfillPropagationJobsJobIdGetResponsesContentApplicationJsonSchemaReasonsItems":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response\n"}},"title":"V1UnoDataBackfillPropagationJobsJobIdGetResponsesContentApplicationJsonSchemaReasonsItems"},"Data_Backfill_GET_AutoBackfillJobById_Response_200":{"type":"object","properties":{"processId":{"type":"string","description":"The ID of the process that handles the operation.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/V1UnoDataBackfillPropagationJobsJobIdGetResponsesContentApplicationJsonSchemaReasonsItems"},"description":"The container of the error code and message. This field is available only if the `success` field is `false`.\n"},"requestId":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"description":"Unique identifier of the request.\n"},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"},"job":{"$ref":"#/components/schemas/GETAutoBackfillJobResponse"}},"title":"Data Backfill_GET_AutoBackfillJobById_Response_200"},"V1UnoDataBackfillPropagationJobsJobIdPutRequestBodyContentApplicationJsonSchemaStatus":{"type":"string","enum":["Stopping"],"description":"`Stopping` is currently the only allowed value.\n","title":"V1UnoDataBackfillPropagationJobsJobIdPutRequestBodyContentApplicationJsonSchemaStatus"},"RegenerateBookingRequestType":{"type":"string","enum":["Subscription","OrderLineItem","DynamicUsageCharge"],"description":"The type of business object for which you want to generate the transactions.\n","title":"RegenerateBookingRequestType"},"RegenerateBookingRequest":{"type":"object","properties":{"itemNumber":{"type":"string","description":"The item number.\n"},"orderLineItemId":{"type":"string","description":"The order line item ID.\n"},"orderNumber":{"type":"string","description":"The order number.\n"},"subscriptionId":{"type":"string","description":"The subscription ID.\n"},"subscriptionName":{"type":"string","description":"The subscription name.\n"},"subscriptionVersion":{"type":"integer","description":"The subscription version.\n"},"ratePlanChargeId":{"type":"string","description":"The rate plan charge ID of dynamic usage charge.\n"},"chargeNumber":{"type":"string","description":"The charge number of dynamic usage charge.\n"},"type":{"$ref":"#/components/schemas/RegenerateBookingRequestType","description":"The type of business object for which you want to generate the transactions.\n"}},"title":"RegenerateBookingRequest"},"ResponseReasons":{"type":"object","properties":{"code":{"type":"string","description":"The error code of response.\n"},"message":{"type":"string","description":"The detail information of the error response.\n"}},"title":"ResponseReasons"},"RegenerateTransactionObjectResponse":{"type":"object","properties":{"idList":{"type":"array","items":{"type":"string"},"description":"A list of the IDs for the business objects for which you generate the transactions. \n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ResponseReasons"}},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"RegenerateTransactionObjectResponse"},"RegenerateBillingRequestType":{"type":"string","enum":["Invoice","CreditMemo","DebitMemo","InvoiceItemAdjustment"],"description":"The type of business object for which you want to generate the transactions.\n","title":"RegenerateBillingRequestType"},"RegenerateBillingRequest":{"type":"object","properties":{"id":{"type":"string","description":"ID of Invoice, CreditMemo, DebitMemo, or InvoiceItemAdjustment.\n"},"number":{"type":"string","description":"Number of Invoice, CreditMemo, DebitMemo, or InvoiceItemAdjustment.\n"},"type":{"$ref":"#/components/schemas/RegenerateBillingRequestType","description":"The type of business object for which you want to generate the transactions.\n"}},"title":"RegenerateBillingRequest"},"V1UnoRegenerateRevRecEventsPostParametersMode":{"type":"string","enum":["Incremental","Full"],"default":"Incremental","title":"V1UnoRegenerateRevRecEventsPostParametersMode"},"RegenerateRevRecEventsResponse":{"type":"object","properties":{"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ResponseReasons"}},"success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"RegenerateRevRecEventsResponse"},"DailyConsumptionRevRecRequest":{"type":"object","properties":{"chargeSegmentNumber":{"type":"string","description":"Rate plan charge number.\n"},"fundId":{"type":"string","description":"Fund ID. For more information about fund, 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"},"originalChargeId":{"type":"string","description":"Original rate plan charge ID.\n"}},"required":["originalChargeId"],"title":"DailyConsumptionRevRecRequest"},"TestEnvironmentResponseDataCopyType":{"type":"string","enum":["FULL","CONFIGURATION"],"description":"The data copy approach for the Test Environment","title":"TestEnvironmentResponseDataCopyType"},"TestEnvironmentResponseEnvironmentType":{"type":"string","enum":["TEST","ENTERPRISE","TRIAL","DEMO","DEVELOPER"],"description":"The type of tenant for the Test Environment","title":"TestEnvironmentResponseEnvironmentType"},"TestEnvironmentResponseStatus":{"type":"string","enum":["ACTIVE","PROCESSING","INACTIVE","DEACTIVATED","DELETED"],"description":"The current status of the Test Environment","title":"TestEnvironmentResponseStatus"},"TestEnvironmentResponse":{"type":"object","properties":{"createTime":{"type":"string","format":"date-time","description":"The date and time when the Test Environment was first synced to self-service"},"createdById":{"type":"string","description":"The automatically generated ID of the Zuora user who created the Test Environment object"},"dataCopyType":{"$ref":"#/components/schemas/TestEnvironmentResponseDataCopyType","description":"The data copy approach for the Test Environment"},"deactivationTime":{"type":"string","format":"date-time","description":"The date and time when the Test Environment will be deactivated"},"environmentType":{"$ref":"#/components/schemas/TestEnvironmentResponseEnvironmentType","description":"The type of tenant for the Test Environment"},"id":{"type":"string","description":"The unique ID (UUID) of the Test Environment"},"lastRefreshTime":{"type":"string","format":"date-time","description":"The date and time when the Test Environment was last refreshed"},"nextRefreshTime":{"type":"string","format":"date-time","description":"The date and time when the Test Environment can be refreshed again"},"provisionTime":{"type":"string","format":"date-time","description":"The date and time when the Test Environment was provisioned"},"revenueTenantId":{"type":"string","description":"The revenue tenant ID if a revenue sandbox is attached"},"revenueTenantName":{"type":"string","description":"The revenue tenant name if a revenue sandbox is attached"},"sourceTenantId":{"type":"string","description":"The source tenant ID from which the Test Environment was created"},"status":{"$ref":"#/components/schemas/TestEnvironmentResponseStatus","description":"The current status of the Test Environment"},"tenantId":{"type":"string","description":"The tenant ID of the Test Environment"},"tenantName":{"type":"string","description":"The tenant name of the Test Environment"},"updateTime":{"type":"string","format":"date-time","description":"The date and time when the Test Environment was last synced to self-service"},"updatedById":{"type":"string","description":"The automatically generated ID of the Zuora user who updated the Test Environment object"}},"description":"The response containing details about the Test Environment","title":"TestEnvironmentResponse"},"TestEnvironmentArrayResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/TestEnvironmentResponse"},"description":"Array of objects"},"size":{"type":"integer"}},"description":"Container for array of objects","title":"TestEnvironmentArrayResponse"},"JobResponseJobType":{"type":"string","enum":["REFRESH","CREATE","DELETE"],"description":"The type of Test Environment job being performed","title":"JobResponseJobType"},"JobResponseStatus":{"type":"string","enum":["NEW","SCHEDULED","QUEUED","INITIATED","PROVISIONING","DEPROVISIONING","EXPORTING","SCRUBBING","RESETTING","IMPORTING","FINALIZING","CANCELLING","COMPLETED","FAILED","CANCELLED"],"description":"The status of the Test Environment job","title":"JobResponseStatus"},"JobResponse":{"type":"object","properties":{"createTime":{"type":"string","format":"date-time","description":"The date and time when the job was first synced to self service"},"createdById":{"type":"string","description":"The automatically generated ID of the Zuora user who created the job object"},"estimatedCompletionTime":{"type":"string","format":"date-time","description":"The date and time when the job is estimated to be completed"},"id":{"type":"string","description":"The unique ID (UUID) of the Test Environment job"},"jobEndTime":{"type":"string","format":"date-time","description":"The date and time when the job completed"},"jobStartTime":{"type":"string","format":"date-time","description":"The date and time when the job was started"},"jobType":{"$ref":"#/components/schemas/JobResponseJobType","description":"The type of Test Environment job being performed"},"progressPercentage":{"type":"integer","description":"The progress percentage of the job"},"scheduledRefreshTime":{"type":"string","format":"date-time","description":"The optional date and time for scheduling a job"},"status":{"$ref":"#/components/schemas/JobResponseStatus","description":"The status of the Test Environment job"},"testEnvironmentId":{"type":"string","description":"The Test Environment to which this job belongs"},"updateTime":{"type":"string","format":"date-time","description":"The date and time when the job was last synced to self-service"},"updatedById":{"type":"string","description":"The automatically generated ID of the Zuora user who updated the job object"}},"description":"The job response","title":"JobResponse"},"JobArrayResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/JobResponse"},"description":"Array of objects"},"size":{"type":"integer"}},"description":"Container for array of objects","title":"JobArrayResponse"},"GetAllJobsOfTestEnvironmentRequestBadRequestError":{"type":"object","properties":{},"title":"GetAllJobsOfTestEnvironmentRequestBadRequestError"},"JobRequestJobType":{"type":"string","enum":["REFRESH"],"description":"The type of workflow job to be performed on the Test Environment","title":"JobRequestJobType"},"JobRequest":{"type":"object","properties":{"jobType":{"$ref":"#/components/schemas/JobRequestJobType","description":"The type of workflow job to be performed on the Test Environment"},"scheduledRefreshTime":{"type":"string","format":"date-time","description":"Optional date for scheduling a job"}},"required":["jobType"],"description":"Request for creating test environment job","title":"JobRequest"},"CreateTestEnvironmentJobRequestBadRequestError":{"type":"object","properties":{},"title":"CreateTestEnvironmentJobRequestBadRequestError"},"JobActionRequestJobAction":{"type":"string","enum":["CANCEL"],"description":"The action to perform against the workflow job","title":"JobActionRequestJobAction"},"JobActionRequest":{"type":"object","properties":{"jobAction":{"$ref":"#/components/schemas/JobActionRequestJobAction","description":"The action to perform against the workflow job"}},"required":["jobAction"],"description":"Request for invoking a certain action on a workflow job","title":"JobActionRequest"},"TestEnvironmentNotificationResponse":{"type":"object","properties":{"address":{"type":"string","description":"The email address to receive notifications for the Test Environment when a refresh job has been completed or cancelled"},"id":{"type":"string","description":"The unique id (UUID) of the Test Environment notification"},"name":{"type":"string","description":"The name of the recipient who will receive notifications for the Test Environment"},"testEnvironmentId":{"type":"string","description":"The unique id (UUID) of the Test Environment"}},"description":"The notification response for a Test Environment","title":"TestEnvironmentNotificationResponse"},"TestEnvironmentNotificationArrayResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/TestEnvironmentNotificationResponse"},"description":"Array of objects"},"size":{"type":"integer"}},"description":"Container for array of objects","title":"TestEnvironmentNotificationArrayResponse"},"TestEnvironmentNotificationRequest":{"type":"object","properties":{"address":{"type":"string","description":"The email address to receive notifications for the Test Environment when a refresh job has been completed or cancelled"},"name":{"type":"string","description":"The name of the recipient who will receive notifications for the Test Environment"}},"description":"Request to create a notification record for the test environment","title":"TestEnvironmentNotificationRequest"},"CreateTestEnvironmentNotificationRequestBadRequestError":{"type":"object","properties":{},"title":"CreateTestEnvironmentNotificationRequestBadRequestError"},"UpdateTestEnvironmentNotificationRequestBadRequestError":{"type":"object","properties":{},"title":"UpdateTestEnvironmentNotificationRequestBadRequestError"},"zObject":{"type":"object","properties":{},"title":"zObject"},"ProxyActioncreateRequest":{"type":"object","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/zObject"}},"type":{"type":"string"}},"required":["objects","type"],"title":"ProxyActioncreateRequest"},"ActionsErrorResponse":{"type":"object","properties":{"Code":{"type":"string"},"Message":{"type":"string"}},"title":"ActionsErrorResponse"},"SaveResult":{"type":"object","properties":{"Errors":{"type":"array","items":{"$ref":"#/components/schemas/ActionsErrorResponse"}},"Id":{"type":"string"},"Success":{"type":"boolean"}},"title":"SaveResult"},"ProxyActiondeleteRequest":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"},"description":"A list of one or more IDs for the objects you want to delete.\n"},"type":{"type":"string","description":"The type of object that you are deleting.\n"}},"required":["ids","type"],"title":"ProxyActiondeleteRequest"},"DeleteResult":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ActionsErrorResponse"},"description":"If the delete failed, this contains an array of Error objects.\n"},"id":{"type":"string","description":"ID of the deleted object.\n"},"success":{"type":"boolean","description":"A boolean field indicating the success of the delete operation. If the delete was successful, it is `true`. Otherwise, `false`.\n"}},"title":"DeleteResult"},"ProxyActionqueryRequestConf":{"type":"object","properties":{"batchSize":{"type":"integer","description":"Defines the batch size of the query result. The range is 1 - 2000 (inclusive). If a value higher than 2000 is submitted, only 2000 results are returned.\n"}},"description":"Configuration of the query result.","title":"ProxyActionqueryRequestConf"},"ProxyActionqueryRequest":{"type":"object","properties":{"conf":{"$ref":"#/components/schemas/ProxyActionqueryRequestConf","description":"Configuration of the query result."},"queryString":{"type":"string","description":"[ZOQL](https://knowledgecenter.zuora.com/DC_Developers/K_Zuora_Object_Query_Language) expression that specifies the object to query, the fields to retrieve, and any filters.\n\n**Note:** When querying one time charges from ProductRatePlanCharge, you need to specify the `ChargeType` value as `One-Time` rather than `OneTime`.\n"}},"required":["queryString"],"title":"ProxyActionqueryRequest"},"ProxyActionqueryResponse":{"type":"object","properties":{"done":{"type":"boolean","description":"Indicates whether the returned records contain all the query results.\n* If the `queryLocator` field is returned, this field is set to `false`.\n* If no `queryLocator` field is returned, this field is set to `true`.\n"},"queryLocator":{"type":"string","description":"A marker passed to QueryMore to get the next set of results. For more information, see [QueryMore](https://developer.zuora.com/api-references/api/operation/Action_POSTqueryMore/)."},"records":{"type":"array","items":{"$ref":"#/components/schemas/zObject"},"description":"A list of queried results."},"size":{"type":"integer","description":"The number of the returned query results."}},"title":"ProxyActionqueryResponse"},"ProxyActionqueryMoreRequestConf":{"type":"object","properties":{"batchSize":{"type":"integer","description":"Defines the batch size of the query result. The range is 1 - 2000 (inclusive). If a value higher than 2000 is submitted, only 2000 results are returned.\n"}},"description":"Configuration of the query result.","title":"ProxyActionqueryMoreRequestConf"},"ProxyActionqueryMoreRequest":{"type":"object","properties":{"conf":{"$ref":"#/components/schemas/ProxyActionqueryMoreRequestConf","description":"Configuration of the query result."},"queryLocator":{"type":"string","description":"A marker passed to QueryMore to get the next set of results."}},"required":["queryLocator"],"title":"ProxyActionqueryMoreRequest"},"ProxyActionqueryMoreResponse":{"type":"object","properties":{"done":{"type":"boolean","description":"Indicates whether the returned records contain all the query results.\n* If the `queryLocator` field is returned, this field is set to `false`.\n* If no `queryLocator` field is returned, this field is set to `true`.\n"},"queryLocator":{"type":"string","description":"A marker passed to QueryMore to get the next set of results."},"records":{"type":"array","items":{"$ref":"#/components/schemas/zObject"},"description":"A list of queried results."},"size":{"type":"integer","description":"The number of the returned query results."}},"title":"ProxyActionqueryMoreResponse"},"zObject_update":{"type":"object","properties":{"Id":{"type":"string"},"fieldsToNull":{"type":"array","items":{"type":"string"},"description":"Used to set a list of fields to null.\n"}},"required":["Id"],"title":"zObject_update"},"ProxyActionupdateRequest":{"type":"object","properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/zObject_update"}},"type":{"type":"string"}},"required":["objects","type"],"title":"ProxyActionupdateRequest"},"BodyInSettingValueRequest":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Request payload if any","title":"BodyInSettingValueRequest"},"ChildrenSettingValueRequestMethod":{"type":"string","enum":["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS","TRACE"],"description":"One of the HTTP methods supported by the setting endpoint, for example, GET,PUT,POST or DELETE.\n","title":"ChildrenSettingValueRequestMethod"},"ChildrenSettingValueRequest":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/BodyInSettingValueRequest"},"id":{"type":"string","description":"The id of the request. You can set it to any string. It must be unique within the whole batch.\n"},"method":{"$ref":"#/components/schemas/ChildrenSettingValueRequestMethod","description":"One of the HTTP methods supported by the setting endpoint, for example, GET,PUT,POST or DELETE.\n"},"url":{"type":"string","description":"The relative URL of the setting. It is the same as in the `pathPattern` field in the response body of [Listing all settings](https://developer.zuora.com/api-references/api/operation/GET_ListAllSettings). For example, `/billing-rules`.\n"}},"title":"ChildrenSettingValueRequest"},"SettingValueRequestMethod":{"type":"string","enum":["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS","TRACE"],"description":"One of the HTTP methods supported by the setting endpoint, for example, GET,PUT,POST or DELETE.\n","title":"SettingValueRequestMethod"},"SettingValueRequest":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/BodyInSettingValueRequest"},"children":{"type":"array","items":{"$ref":"#/components/schemas/ChildrenSettingValueRequest"},"description":"An array of requests that can only be executed after its parent request has been executed successfully.\n"},"id":{"type":"string","description":"The id of the request. You can set it to any string. It must be unique within the whole batch.\n"},"method":{"$ref":"#/components/schemas/SettingValueRequestMethod","description":"One of the HTTP methods supported by the setting endpoint, for example, GET,PUT,POST or DELETE.\n"},"url":{"type":"string","description":"The relative URL of the setting. It is the same as in the `pathPattern` field in the response body of [Listing all Settings](https://developer.zuora.com/api-references/api/operation/GET_ListAllSettings). For example, `/billing-rules`.\n"}},"title":"SettingValueRequest"},"SettingsBatchRequest":{"type":"object","properties":{"requests":{"type":"array","items":{"$ref":"#/components/schemas/SettingValueRequest"}}},"title":"SettingsBatchRequest"},"SettingValueResponseWrapperMethod":{"type":"string","enum":["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS","TRACE"],"description":"The HTTP method. It is the same as that of the corresponding request.\n","title":"SettingValueResponseWrapperMethod"},"BodyInSettingValueReponse":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Response body if the request is executed successfully.","title":"BodyInSettingValueReponse"},"SettingValueResponse":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/BodyInSettingValueReponse"},"errorMessages":{"type":"array","items":{"type":"string"},"description":"An array of error messages if errors occur when executing the request.\n"},"status":{"type":"string","description":"User readable response status, for example, 502 BAD_GATEWAY.\n"}},"title":"SettingValueResponse"},"SettingValueResponseWrapper":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the corresponding request.\n"},"method":{"$ref":"#/components/schemas/SettingValueResponseWrapperMethod","description":"The HTTP method. It is the same as that of the corresponding request.\n"},"response":{"$ref":"#/components/schemas/SettingValueResponse"},"url":{"type":"string","description":"The url as specified in the corresponding request.\n"}},"title":"SettingValueResponseWrapper"},"SettingsBatchResponse":{"type":"object","properties":{"responses":{"type":"array","items":{"$ref":"#/components/schemas/SettingValueResponseWrapper"}}},"title":"SettingsBatchResponse"},"SettingItemWithOperationsInformationContext":{"type":"string","enum":["Tenant","Entity","User","None"],"description":"The context where this setting item is effective.","title":"SettingItemWithOperationsInformationContext"},"SettingItemHttpOperationMethod":{"type":"string","enum":["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS","TRACE"],"description":"One of the HTTP methods supported by the setting endpoint, for example, GET,PUT,POST or DELETE.","title":"SettingItemHttpOperationMethod"},"SettingItemHttpRequestParameter":{"type":"object","properties":{"description":{"type":"string","description":"The description of the paramter."},"name":{"type":"string","description":"The name of the parameter."}},"title":"SettingItemHttpRequestParameter"},"SettingItemHttpOperationRequestType":{"type":"object","properties":{},"description":"JSON Schema for the request body of this operation.","title":"SettingItemHttpOperationRequestType"},"SettingItemHttpOperationResponseType":{"type":"object","properties":{},"description":"JSON Schema for the response body of this operation.","title":"SettingItemHttpOperationResponseType"},"SettingItemHttpOperation":{"type":"object","properties":{"method":{"$ref":"#/components/schemas/SettingItemHttpOperationMethod","description":"One of the HTTP methods supported by the setting endpoint, for example, GET,PUT,POST or DELETE."},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/SettingItemHttpRequestParameter"},"description":"An array of paramters required by this operation."},"requestType":{"$ref":"#/components/schemas/SettingItemHttpOperationRequestType","description":"JSON Schema for the request body of this operation."},"responseType":{"$ref":"#/components/schemas/SettingItemHttpOperationResponseType","description":"JSON Schema for the response body of this operation."},"url":{"type":"string","description":"The endpoint url of the operation method. For example, `/settings/billing-rules`."}},"title":"SettingItemHttpOperation"},"SettingItemWithOperationsInformation":{"type":"object","properties":{"context":{"$ref":"#/components/schemas/SettingItemWithOperationsInformationContext","description":"The context where this setting item is effective."},"description":{"type":"string","description":"The description of the setting item as you see from Zuora UI."},"httpOperations":{"type":"array","items":{"$ref":"#/components/schemas/SettingItemHttpOperation"},"description":"An array of HTTP operation methods that are supported on this setting endpoint."},"key":{"type":"string","description":"The unique key to distinguish the setting item."},"pathPattern":{"type":"string","description":"The path pattern of the setting endpoint, relative to `/settings`. For example, `/billing-rules`."}},"title":"SettingItemWithOperationsInformation"},"ListAllSettingsResponse":{"type":"object","properties":{"settings":{"type":"array","items":{"$ref":"#/components/schemas/SettingItemWithOperationsInformation"}}},"title":"ListAllSettingsResponse"},"Files_GET_Files_Response_200":{"type":"object","properties":{},"description":"Empty response body","title":"Files_GET_Files_Response_200"},"RestoreFileStatus":{"type":"string","enum":["ACTIVE","ARCHIVING","ARCHIVED","RESTORE_ACCEPTED","RESTORE_IN_PROGRESS","RESTORED"],"description":"The status of the file restore operation.\n","title":"RestoreFileStatus"},"RestoreFile":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n\nReturns `false` if the quota limit is exceeded, and you will see an error message in the response body.\n\nFor example,\n\n\"Your file restoration request can not be processed currently due to reaching the maximum daily limit of 1000 files as of 2024-04-01 14:12. Please wait for the limit to be refreshed or reach out to Zuora support if the request is urgent.\"\n\nIn such cases, wait for a limit refresh or submit a request at [Zuora Global Support](https://support.zuora.com/).\n"},"fileId":{"type":"string","description":"The unique ID of the file.\n"},"status":{"$ref":"#/components/schemas/RestoreFileStatus","description":"The status of the file restore operation.\n"}},"title":"RestoreFile"},"RetrieveFileStatusStatus":{"type":"string","enum":["ACTIVE","ARCHIVING","ARCHIVED","RESTORE_ACCEPTED","RESTORE_IN_PROGRESS","RESTORED"],"description":"The status of the file restore operation.\n","title":"RetrieveFileStatusStatus"},"RetrieveFileStatus":{"type":"object","properties":{"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"accessible":{"type":"boolean","description":"Returns `true` if the file is accessible.\n"},"status":{"$ref":"#/components/schemas/RetrieveFileStatusStatus","description":"The status of the file restore operation.\n"}},"title":"RetrieveFileStatus"},"V1ObjectImportPostRequestBodyContentMultipartFormDataSchemaImportType":{"type":"string","enum":["Usage","Payment","Quote","TaxationDetail","UpdateAccountingCode","CreateRevenueSchedule","UpdateRevenueSchedule","DeleteRevenueSchedule","ImportFXRate"],"description":"The type of data to import.\n","title":"V1ObjectImportPostRequestBodyContentMultipartFormDataSchemaImportType"},"ProxyPostImport":{"type":"object","properties":{"Id":{"type":"string","description":"The ID of the Import object that was created.\n"},"Success":{"type":"boolean","description":"Indicates whether the call succeeded.\n"}},"title":"ProxyPostImport"},"ProxyGetImport":{"type":"object","properties":{"CreatedById":{"type":"string","description":" The user ID of the person who created the import.\n\n**Character limit**: 32\n\n**Values**: automatically generated "},"CreatedDate":{"type":"string","format":"date-time","description":" The date when the import was created.\n\n**Character limit**: 29\n\n**Values**: automatically generated "},"Id":{"type":"string","description":"Object identifier."},"ImportType":{"type":"string","description":" The type of item imported.\n\n**Character limit**: 7\n\n**Values**: Usage "},"ImportedCount":{"type":"integer","description":"The number of records successfully imported.\n\n**Values**: automatically generated "},"Md5":{"type":"string","description":" A check to validate the import file's integrity.\n\n**Character limit:** 32\n\n**System-generated:** no\n\n**Values**: a string of 32 characters or fewer "},"Name":{"type":"string","description":" A descriptive name for the import.\n\n**Character limit:** 100\n\n**Values:** one of the following:\n\n- a string of 100 characters or fewer\n- if NULL default is: `import <ImportType_value>`\n"},"OriginalResourceUrl":{"type":"string","description":" The URL for your import file, which contains your records for upload. When you upload the file, Zuora assigns it to this address.\n\n**Values:** automatic dynamically-generated URL "},"ResultResourceUrl":{"type":"string","description":" The URL for the import result file, which is a zipped CSV file.\n\n**Values**: automatic dynamically-generated URL "},"Status":{"type":"string","description":"The status of the import process.\n\n**Values**: automatically generated using one of the following values:\n\n- Pending\n- Processing\n- Completed\n- Failed\n"},"StatusReason":{"type":"string","description":" The reason for the system-generated status. Use this information if the import fails.\n\n**Character limit**: 2000\n\n**Values**: automatically generated error message "},"TotalCount":{"type":"integer","description":" The number of records in the import file.\n\n**Character limit**:\n\n**Values**: automatically generated "},"UpdatedById":{"type":"string","description":" The ID of the user who last updated the import.\n\n**Character limit**: 32\n\n**Values**: automatically generated "},"UpdatedDate":{"type":"string","format":"date-time","description":" The date when the import was last updated.\n**Character limit**: 29 **Values**: automatically generated "}},"title":"ProxyGetImport"},"GetCustomExchangeRatesTypeRates":{"type":"object","properties":{"providerExchangeRateDate":{"type":"string","format":"date","description":"The date of the exchange rate used. The date is in `yyyy-mm-dd` format.\n\nCorresponds to the value specified in the Provider Exchange Rate Date column in the Import Foreign Exchange Rates template when you uploaded the rates through the Mass Updater.\n"}},"description":"Container for exchange rate information on a given date. The field name is a  date in the `yyyy-mm-dd` format. For example, `2024-01-15`.\n","title":"GetCustomExchangeRatesTypeRates"},"GETCustomExchangeRatesType":{"type":"object","properties":{"inverse":{"type":"boolean","description":"- If `true`, the exchange rate in the response is an inverse exchange rate.\n- If `false`, the exchange rate in the response is not an inverse exchange rate.\nThe value is determined by the **Use inverse rate** checkbox in your Zuora Finance Manage Currency Conversion settings.\n"},"rateSetName":{"type":"string","description":"The name of the exchange rate set.\n\nYou can specify the exchange rate set only when **Exchange Rate Set** permission is available. To enable the **Exchange Rate Set** option, submit a request at [Zuora Global Support](http://support.zuora.com/).\n"},"rates":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/GetCustomExchangeRatesTypeRates"},"description":"Container for exchange rate data. Contains a set of fields that provide exchange rate data for each day between the specified `startDate` and `endDate` (inclusive). \n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETCustomExchangeRatesType"},"V1AttachmentsPostParametersAssociatedObjectType":{"type":"string","enum":["Account","Invoice","Subscription","CreditMemo","DebitMemo"],"title":"V1AttachmentsPostParametersAssociatedObjectType"},"POSTAttachmentResponseType":{"type":"object","properties":{"fileId":{"type":"string","description":"ID to identify the attached file. Use this file ID with [Get files](https://developer.zuora.com/api-references/api/operation/GET_Files) to download the file.\n"},"id":{"type":"string","description":"Attachment id.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"POSTAttachmentResponseType"},"GETAttachmentResponseType":{"type":"object","properties":{"createdBy":{"type":"string","description":"Zuora user id who added this attachment to the object.\n"},"createdOn":{"type":"string","description":"Date and time when the attachment was added to the object.\n"},"description":{"type":"string","description":"Description of the attachment.\n"},"fileContentType":{"type":"string","description":"File type.\n"},"fileId":{"type":"string","description":"File ID of the attached file. Use this file ID with [Get files](https://developer.zuora.com/api-references/api/operation/GET_Files) to download the file.\n"},"fileName":{"type":"string","description":"Attachment file name.\n"},"id":{"type":"string","description":"Id of this attachment.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"},"updatedBy":{"type":"string","description":"Zuora user id who last updated the attachment.\n"},"updatedOn":{"type":"string","description":"Date and time when the attachment was last updated.\n"}},"title":"GETAttachmentResponseType"},"PUTAttachmentType":{"type":"object","properties":{"description":{"type":"string","description":"Description of the attachment.\n"},"fileName":{"type":"string","description":"File name of the attachment. The value should not contain the file extension. Only the file name without the extension can be edited.\n"}},"title":"PUTAttachmentType"},"V1AttachmentsObjectTypeObjectKeyGetParametersObjectType":{"type":"string","enum":["account","invoice","subscription","creditmemo","debitmemo"],"title":"V1AttachmentsObjectTypeObjectKeyGetParametersObjectType"},"GETAttachmentResponseWithoutSuccessType":{"type":"object","properties":{"createdBy":{"type":"string","description":"Zuora user id of who added this attachment to the object.\n"},"createdOn":{"type":"string","description":"Date and time when the attachment was added to the object.\n"},"description":{"type":"string","description":"Description of the attachment.\n"},"fileContentType":{"type":"string","description":"Attachment file type.\n"},"fileId":{"type":"string","description":"File ID of the attached file. Use this file ID with [Get files](https://developer.zuora.com/api-references/api/operation/GET_Files) to download the file.\n"},"fileName":{"type":"string","description":"Attachment file name.\n"},"id":{"type":"string","description":"Zuora id of this attachement.\n"},"organizationLabel":{"type":"string","description":"The organization that this object belongs to.\n\nNote: This field is available only when the Multi-Org feature is enabled.\n"},"updatedBy":{"type":"string","description":"Zuora user id who last updated the attachment.\n"},"updatedOn":{"type":"string","description":"Date and time when the attachment was last updated.\n"}},"title":"GETAttachmentResponseWithoutSuccessType"},"GETAttachmentsResponseType":{"type":"object","properties":{"attachments":{"type":"array","items":{"$ref":"#/components/schemas/GETAttachmentResponseWithoutSuccessType"},"description":"Container for one or more attachments.\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETAttachmentsResponseType"},"ObjectMetadataGetParametersContext":{"type":"string","enum":["DQ","OQ"],"title":"ObjectMetadataGetParametersContext"},"GetObjectSummary":{"type":"object","properties":{"objectName":{"type":"string","description":"Canonical object name from Metastore (DQ/OQ). Casing matches the provider (often lowercase\n`objectType`); not normalized to PascalCase.\n"},"label":{"type":"string","description":"Human-readable label"},"category":{"type":"string","description":"Object category (DQ/OQ contexts only)"},"supportCustomField":{"type":"boolean","description":"Whether this object supports custom fields"},"href":{"type":"string","description":"Path to the describe endpoint for this object. The path segment uses the same casing as\n`objectName`.\nThe server returns this path **without** a `/v1` prefix; combine with the API base URL\n(e.g. `https://rest.zuora.com`).\n"}},"required":["objectName","label","supportCustomField"],"title":"GetObjectSummary"},"ErrorReason":{"type":"object","properties":{"code":{"type":"integer","description":"Zuora reason code (RRRRRRCC format)"},"message":{"type":"string","description":"Human-readable explanation for this reason"}},"required":["code","message"],"description":"A single Zuora reason entry (code + message).","title":"ErrorReason"},"MetadataApiError":{"type":"object","properties":{"reasons":{"type":"array","items":{"$ref":"#/components/schemas/ErrorReason"}},"requestId":{"type":"string","description":"Request correlation id (Zuora IT id from the gateway when available; otherwise a generated UUID).\n"}},"required":["reasons","requestId"],"description":"Zuora v1 REST error envelope returned by this API: `reasons` plus `requestId`.\nThe HTTP status is indicated by the response status line only; there are no top-level\n`code`, `category`, or `message` fields in the JSON body.\n","title":"MetadataApiError"},"ObjectMetadataObjectNameGetParametersContext":{"type":"string","enum":["DQ","OQ","DSE","AQUA"],"title":"ObjectMetadataObjectNameGetParametersContext"},"GetJsonSchemaType":{"type":"string","enum":["object"],"description":"Schema type (always 'object' for Zuora objects)","title":"GetJsonSchemaType"},"FieldSchemaType":{"type":"string","enum":["string","number","integer","boolean","array","object"],"description":"JSON Schema type","title":"FieldSchemaType"},"FieldSchemaFormat":{"type":"string","enum":["date","date-time","uuid"],"description":"JSON Schema format hint","title":"FieldSchemaFormat"},"InlineRelationshipSchemaCardinality":{"type":"string","enum":["manyToOne","oneToMany"],"description":"Relationship cardinality","title":"InlineRelationshipSchemaCardinality"},"InlineRelationshipSchema":{"type":"object","properties":{"object":{"type":"string","description":"Related object name"},"cardinality":{"$ref":"#/components/schemas/InlineRelationshipSchemaCardinality","description":"Relationship cardinality"},"fields":{"type":"object","additionalProperties":{"type":"string"},"description":"Foreign key field mappings"}},"required":["object","cardinality","fields"],"description":"Inline relationship metadata attached to foreign key fields (DQ/OQ only).\n\nProvides quick access to relationship information without parsing\nthe top-level `x-zuora-relationships` array.\n","title":"InlineRelationshipSchema"},"FieldSchema":{"type":"object","properties":{"type":{"oneOf":[{"$ref":"#/components/schemas/FieldSchemaType"},{"type":"null"}],"description":"JSON Schema type"},"format":{"$ref":"#/components/schemas/FieldSchemaFormat","description":"JSON Schema format hint"},"description":{"type":"string","description":"Field description"},"readOnly":{"type":"boolean","description":"Present only when true (read-only fields)"},"maxLength":{"type":"integer","description":"Maximum string length"},"minimum":{"type":"number","format":"double","description":"Minimum numeric value"},"maximum":{"type":"number","format":"double","description":"Maximum numeric value"},"enum":{"type":"array","items":{"type":"string"},"description":"Allowed values for picklist fields"},"default":{"description":"Default value"},"x-zuora-type":{"type":"string","description":"Original Zuora type name"},"x-zuora-filterable":{"type":"boolean","description":"Whether field can be filtered (DQ/OQ/DSE)"},"x-zuora-sortable":{"type":"boolean","description":"Whether field can be sorted (DQ/OQ)"},"x-zuora-indexed":{"type":"boolean","description":"Whether field is indexed (DQ/OQ)"},"x-zuora-unique":{"type":"boolean","description":"Whether field values must be unique (DQ/OQ)"},"x-zuora-object-key":{"type":"boolean","description":"Whether field is the object's primary key (DQ/OQ)"},"x-zuora-custom-field":{"type":"boolean","description":"Whether this is a custom field"},"x-zuora-selectable":{"type":"boolean","description":"Whether field can be selected in queries (DSE/AQUA)"},"x-zuora-createable":{"type":"boolean","description":"Whether field can be set on create (DSE/AQUA)"},"x-zuora-updateable":{"type":"boolean","description":"Whether field can be updated (DSE/AQUA)"},"x-zuora-relationship":{"$ref":"#/components/schemas/InlineRelationshipSchema"}},"required":["type"],"description":"Field definition with JSON Schema core properties and Zuora extensions.\n\nBoolean `x-zuora-*` flags are emitted only when true; if a flag is absent, treat it as false.\n\nExtensions vary by context:\n- DQ/OQ: filterable, sortable, indexed, unique, object-key, inline relationships\n- DSE/AQUA: selectable, createable, updateable, relationship metadata\n","title":"FieldSchema"},"GetJsonSchemaXZuoraContext":{"type":"string","enum":["DQ","OQ","DSE","AQUA"],"description":"Data context","title":"GetJsonSchemaXZuoraContext"},"RelationshipSchemaCardinality":{"type":"string","enum":["manyToOne","oneToMany","manyToMany"],"description":"Relationship cardinality","title":"RelationshipSchemaCardinality"},"RelationshipSchema":{"type":"object","properties":{"object":{"type":"string","description":"Related object name"},"cardinality":{"$ref":"#/components/schemas/RelationshipSchemaCardinality","description":"Relationship cardinality"},"fields":{"type":"object","additionalProperties":{"type":"string"},"description":"Foreign key field mappings (local field -> remote field)"},"label":{"type":"string","description":"Human-readable relationship label (DSE/AQUA only)"},"directRelationship":{"type":"boolean","description":"Whether this is a direct relationship (DSE/AQUA only)"},"path":{"type":"string","description":"Relationship path (DSE/AQUA only)"}},"required":["object","cardinality"],"description":"Relationship metadata describing how this object relates to another.\n\nFormat varies by context:\n- DQ/OQ: Basic cardinality and field mappings\n- DSE/AQUA: Additional label, directRelationship, and path metadata\n","title":"RelationshipSchema"},"GetJsonSchema":{"type":"object","properties":{"$schema":{"type":"string","description":"JSON Schema dialect"},"$id":{"type":"string","format":"uri","description":"Stable schema URI (canonical object name suffix; not the REST URL for this endpoint)"},"title":{"type":"string","description":"Canonical object name from upstream (same segment as in `$id`)"},"description":{"type":"string","description":"Object description"},"type":{"$ref":"#/components/schemas/GetJsonSchemaType","description":"Schema type (always 'object' for Zuora objects)"},"properties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FieldSchema"},"description":"Field definitions keyed by field name"},"required":{"type":"array","items":{"type":"string"},"description":"List of required field names"},"x-zuora-context":{"$ref":"#/components/schemas/GetJsonSchemaXZuoraContext","description":"Data context"},"x-zuora-category":{"type":"string","description":"Object category (DQ/OQ only)"},"x-zuora-support-custom-field":{"type":"boolean","description":"Whether object supports custom fields"},"x-zuora-relationships":{"type":"array","items":{"$ref":"#/components/schemas/RelationshipSchema"},"description":"Relationships to other objects"}},"required":["$schema","$id","type"],"description":"JSON Schema Draft 2020-12 with Zuora extensions.\n\nSee https://json-schema.org/draft/2020-12/schema for core schema.\n\nZuora extensions (x-zuora-*) provide additional metadata about\nfields and relationships specific to Zuora's data platform.\n\n`$id` is `https://api.zuora.com/schemas/{name}` where `{name}` is the **canonical object name**\nfrom the provider (same as `title`), with **no** forced PascalCase rewrite. It does not encode\nthe REST URL of this request or the `context` query parameter.\n","title":"GetJsonSchema"},"ProxyCreateProductItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyCreateProductItemTypeNs"},"ProxyCreateProduct":{"type":"object","properties":{"AllowFeatureChanges":{"type":"boolean","description":"Controls whether to allow your users to add or remove features while creating or amending a subscription.\n\n**Values**: true, false (default)\n"},"Category":{"type":"string","maxLength":100,"description":"Category of the product. Used by Zuora Quotes Guided Product Selector.\n\n**Values**: \n  - Base Products\n  - Add On Services\n  - Miscellaneous Products\n"},"Description":{"type":"string","maxLength":500,"description":"A description of the product. \n"},"EffectiveEndDate":{"type":"string","format":"date","description":"The date when the product expires and can't be subscribed to anymore, in `yyyy-mm-dd` format.\n"},"EffectiveStartDate":{"type":"string","format":"date","description":"The date when the product becomes available and can be subscribed to, in `yyyy-mm-dd` format.\n"},"Name":{"type":"string","maxLength":100,"description":"The name of the product. This information is displayed in the product catalog pages in the web-based UI.\n"},"ProductNumber":{"type":"string","maxLength":100,"description":"The natural key of the product.\n\n**Values**: \n  - leave null for automatically generated string\n  - an alphanumeric string of 100 characters or fewer\n\n**Note**: This field is only available if you set the `X-Zuora-WSDL-Version` request header to `133` or later.\n"},"SKU":{"type":"string","maxLength":50,"description":"The unique SKU for the product.\n\n**Values**: \n  - leave null for automatically generated string\n  - an alphanumeric string of 50 characters or fewer\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/ProxyCreateProductItemTypeNs","description":"Type of item that is created in NetSuite for the product. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["EffectiveEndDate","EffectiveStartDate","Name"],"description":"Container for custom fields of a Product object.\n","title":"ProxyCreateProduct"},"ProxyGetProductItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyGetProductItemTypeNs"},"ProxyGetProduct":{"type":"object","properties":{"AllowFeatureChanges":{"type":"boolean","description":"Controls whether to allow your users to add or remove features while creating or amending a subscription.\n\n**Values**: true, false (default)\n"},"Category":{"type":"string","maxLength":100,"description":"Category of the product. Used by Zuora Quotes Guided Product Selector.\n\n**Values**:\n  - Base Products\n  - Add On Services\n  - Miscellaneous Products\n"},"CreatedById":{"type":"string","maxLength":32,"description":"The automatically generated ID of the Zuora user who created the `Product` object.\n"},"CreatedDate":{"type":"string","format":"date-time","description":"The date when the `Product` object was created.\n"},"Description":{"type":"string","maxLength":500,"description":"A description of the product. \n"},"EffectiveEndDate":{"type":"string","format":"date","description":"The date when the product expires and can't be subscribed to anymore, in `yyyy-mm-dd` format.\n"},"EffectiveStartDate":{"type":"string","format":"date","description":"The date when the product becomes available and can be subscribed to, in `yyyy-mm-dd` format.\n"},"Id":{"type":"string","description":"Object identifier."},"Name":{"type":"string","maxLength":100,"description":"The name of the product. This information is displayed in the product catalog pages in the web-based UI.\n"},"SKU":{"type":"string","maxLength":50,"description":"The unique SKU for the product.\n"},"UpdatedById":{"type":"string","maxLength":32,"description":"The ID of the last user to update the object.\n"},"UpdatedDate":{"type":"string","format":"date-time","description":"The date when the object was last updated.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/ProxyGetProductItemTypeNs","description":"Type of item that is created in NetSuite for the product. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Product object.\n","title":"ProxyGetProduct"},"ProxyModifyProductItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyModifyProductItemTypeNs"},"ProxyModifyProduct":{"type":"object","properties":{"AllowFeatureChanges":{"type":"boolean","description":"Controls whether to allow your users to add or remove features while creating or amending a subscription.\n\n**Values**: true, false (default)\n"},"Category":{"type":"string","maxLength":100,"description":"Category of the product. Used by Zuora Quotes Guided Product Selector.\n\n**Values**:\n  - Base Products\n  - Add On Services\n  - Miscellaneous Products\n"},"Description":{"type":"string","maxLength":500,"description":"A description of the product. \n"},"EffectiveEndDate":{"type":"string","format":"date","description":"The date when the product expires and can't be subscribed to anymore, in `yyyy-mm-dd` format.\n"},"EffectiveStartDate":{"type":"string","format":"date","description":"The date when the product becomes available and can be subscribed to, in `yyyy-mm-dd` format.\n"},"Name":{"type":"string","maxLength":100,"description":"The name of the product. This information is displayed in the product catalog pages in the web-based UI.\n"},"ProductNumber":{"type":"string","maxLength":100,"description":"The natural key of the product. \n\nFor existing Product objects that are created before this field is introduced, this field will be null. Use this field to specify a value for only these objects. Zuora also provides a tool to help you automatically backfill this field with tenant ID for your existing product catalog. If you want to use this backfill tool, contact [Zuora Global Support](https://support.zuora.com/).\n\n**Note**: This field is only available if you set the `X-Zuora-WSDL-Version` request header to `133` or later.\n"},"SKU":{"type":"string","maxLength":50,"description":"The unique SKU for the product.\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/ProxyModifyProductItemTypeNs","description":"Type of item that is created in NetSuite for the product. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Product object.\n","title":"ProxyModifyProduct"},"GetProductTypeOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"GetProductTypeOrganizationLabelsItems"},"GetProductFeatureType":{"type":"object","properties":{"code":{"type":"string","description":"Feature code, up to 255 characters long.\n"},"description":{"type":"string","description":"Feature description.\n"},"id":{"type":"string","description":"Feature ID.\n"},"name":{"type":"string","description":"Feature name, up to 255 characters long.\n"},"status":{"type":"string"}},"description":"Container for custom fields of a Product Feature object.\n","title":"GetProductFeatureType"},"GetProductTypeItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetProductTypeItemTypeNs"},"GETProductType":{"type":"object","properties":{"category":{"type":"string","description":"Category of the product. Used by Zuora Quotes Guided Product Selector.\n\nPossible values are:\n  - Base Products\n  - Add On Services\n  - Miscellaneous Products\n"},"description":{"type":"string","description":"Optional product description.\n"},"effectiveEndDate":{"type":"string","format":"date","description":"The date when the product expires and cannot be subscribed to anymore, as `yyyy-mm-dd`.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"The date when the product becomes available and can be subscribed to, as `yyyy-mm-dd`.\n"},"id":{"type":"string","description":"Product ID.\n"},"name":{"type":"string","description":"Product name, up to 100 characters.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetProductTypeOrganizationLabelsItems"},"description":"The organization(s) that the object belongs to. \n\nNote: This field is available only when the Multi-Org feature is enabled.            \n"},"productFeatures":{"type":"array","items":{"$ref":"#/components/schemas/GetProductFeatureType"},"description":"Container for one or more product features. Only available when the following settings are enabled:\n- The Entitlements feature in your tenant\n- The Enable Feature Specification in Product and Subscriptions setting in Settings > Billing\n"},"productNumber":{"type":"string","description":"The natural key of the product.\n"},"productRatePlans":{"type":"string","format":"URL","description":"URL to retrieve information about all product rate plans of a specific product. For example, `/v1/rateplan/40289f466463d683016463ef8b7301a0/productRatePlan`. \n\n**Note**: The value of this field is a URL only if you are on the latest API version of the Zuora API or set the `Zuora-Version` request header to `230.0` or [a later available version](https://developer.zuora.com/v1-api-reference/api-versions/#minor-version).\n\nZuora recommends that you use the latest behavior to retrieve product information.\nIf you set this header to `229.0` or earlier, the value of this field is an array of product rate plan details. \n"},"sku":{"type":"string","description":"Unique product SKU, up to 50 characters.\n"},"tags":{"type":"string"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/GetProductTypeItemTypeNs","description":"Type of item that is created in NetSuite for the product. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Product object.\n","title":"GETProductType"},"GETCatalogType":{"type":"object","properties":{"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"products":{"type":"array","items":{"$ref":"#/components/schemas/GETProductType"},"description":"Container for one or more products:\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETCatalogType"},"GetCatalogGroupProductRatePlanResponseOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"GetCatalogGroupProductRatePlanResponseOrganizationLabelsItems"},"GetCatalogGroupProductRatePlanResponseStatus":{"type":"string","enum":["Active","Expired","NotStarted"],"description":"The status of the product rate plan.\n","title":"GetCatalogGroupProductRatePlanResponseStatus"},"GETCatalogGroupProductRatePlanResponse":{"type":"object","properties":{"description":{"type":"string","description":"The description of the product rate plan.\n"},"effectiveEndDate":{"type":"string","description":"The effective end Date of the product rate plan.\n"},"effectiveStartDate":{"type":"string","description":"The effective start date of the product rate plan.\n"},"grade":{"type":"number","format":"double","description":"The grade of the product rate plan.\n"},"id":{"type":"string","description":"The ID of the product rate plan.\n"},"name":{"type":"string","description":"The name of the product rate plan.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetCatalogGroupProductRatePlanResponseOrganizationLabelsItems"},"description":"The organization(s) that the object belongs to. \n\nNote: This field is available only when the Multi-Org feature is enabled.            \n"},"status":{"$ref":"#/components/schemas/GetCatalogGroupProductRatePlanResponseStatus","description":"The status of the product rate plan.\n"}},"title":"GETCatalogGroupProductRatePlanResponse"},"CatalogGroupResponseType":{"type":"string","enum":["Grading","Display"],"description":"The type of the catalog group.\n","title":"CatalogGroupResponseType"},"CatalogGroupResponse":{"type":"object","properties":{"catalogGroupNumber":{"type":"string","description":"The automatically generated number of the catalog group with the CG- perfix. For example, CG-00000001.\n"},"description":{"type":"string","description":"The description of the catalog group.\n"},"id":{"type":"string","description":"The ID of the catalog group.\n"},"name":{"type":"string","description":"The name of the catalog group.\n"},"productRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/GETCatalogGroupProductRatePlanResponse"},"description":"The list of product rate plans in the catalog group.\n"},"type":{"$ref":"#/components/schemas/CatalogGroupResponseType","description":"The type of the catalog group.\n"}},"title":"CatalogGroupResponse"},"ListAllCatalogGroupsResponse":{"type":"object","properties":{"catalogGroups":{"type":"array","items":{"$ref":"#/components/schemas/CatalogGroupResponse"},"description":"The list of catalog groups that are retrieved..\n"},"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"}},"title":"ListAllCatalogGroupsResponse"},"POSTorPUTCatalogGroupAddProductRatePlan":{"type":"object","properties":{"grade":{"type":"number","format":"double","description":"The grade that is assigned for the product rate plan. The value of this field must be a positive integer. The greater the value, the higher the grade.\n\nA product rate plan to be added to a Grading catalog group must have one grade. You can specify a grade for a product rate plan in this request or update the product rate plan individually. \n"},"id":{"type":"string","description":"The unique ID of the product rate plan.\n"}},"title":"POSTorPUTCatalogGroupAddProductRatePlan"},"PostCatalogGroupRequestType":{"type":"string","enum":["Grading","Display"],"default":"Grading","description":"The type of the catalog group. \n","title":"PostCatalogGroupRequestType"},"POSTCatalogGroupRequest":{"type":"object","properties":{"description":{"type":"string","description":"The description of the catalog group.\n"},"name":{"type":"string","description":"The unique name of the catalog group.\n"},"productRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/POSTorPUTCatalogGroupAddProductRatePlan"},"description":"The list of product rate plans to be added to the catalog group.\n"},"type":{"$ref":"#/components/schemas/PostCatalogGroupRequestType","default":"Grading","description":"The type of the catalog group. \n"}},"title":"POSTCatalogGroupRequest"},"PUTCatalogGroupRemoveProductRatePlan":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the product rate plan to be removed from the catalog group.\n"}},"title":"PUTCatalogGroupRemoveProductRatePlan"},"PUTCatalogGroup":{"type":"object","properties":{"add":{"type":"array","items":{"$ref":"#/components/schemas/POSTorPUTCatalogGroupAddProductRatePlan"},"description":"The list of product rate plans to be added to the catalog group.\n"},"description":{"type":"string","description":"The description of the catalog group.\n"},"name":{"type":"string","description":"The unique name of the catalog group.\n"},"remove":{"type":"array","items":{"$ref":"#/components/schemas/PUTCatalogGroupRemoveProductRatePlan"},"description":"The list of product rate plans to be removed from the catalog group.\n"}},"title":"PUTCatalogGroup"},"GetProductRatePlanChargeTypeChargeFunction":{"type":"string","enum":["Standard","Prepayment","CommitmentTrueUp","Drawdown","CreditCommitment","DrawdownAndCreditCommitment"],"description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"GetProductRatePlanChargeTypeChargeFunction"},"GetProductRatePlanChargeTypeCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"GetProductRatePlanChargeTypeCommitmentType"},"GetProductRatePlanChargeTypeChargeModelConfigurations":{"type":"object","properties":{},"description":"This field is for Zuora Internal Use only. See the **pricing** field for the same information as this field.","title":"GetProductRatePlanChargeTypeChargeModelConfigurations"},"GetProductRatePlanChargeTypeCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information. \n","title":"GetProductRatePlanChargeTypeCreditOption"},"GetProductRatePlanChargeDeliveryScheduleFrequency":{"type":"string","enum":["Weekly"],"description":"The frequency of the delivery. Only supports weekly now\n","title":"GetProductRatePlanChargeDeliveryScheduleFrequency"},"GETProductRatePlanChargeDeliverySchedule":{"type":"object","properties":{"frequency":{"$ref":"#/components/schemas/GetProductRatePlanChargeDeliveryScheduleFrequency","description":"The frequency of the delivery. Only supports weekly now\n"},"friday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Friday\n"},"monday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Monday\n"},"saturday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Saturday\n"},"sunday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Sunday\n"},"thursday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Thursday\n"},"tuesday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Tuesday\n"},"wendesday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Wendesday\n"}},"description":"The delivery schedule information of this charge. Only when this charge is using Delivery Pricing charge model\n","title":"GETProductRatePlanChargeDeliverySchedule"},"GetProductRatePlanChargeTypeFinanceInformation":{"type":"object","properties":{"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code for adjustment liability. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled. \n"},"adjustmentLiabilityAccountingCodeType":{"type":"string","description":"The type associated with the adjustment liability accounting code. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code for adjustment revenue. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled. \n"},"adjustmentRevenueAccountingCodeType":{"type":"string","description":"The type associated with the adjustment revenue accounting code. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code for contract asset. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled. \n"},"contractAssetAccountingCodeType":{"type":"string","description":"The type associated with the contract asset accounting code. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code for contract liability. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled. \n"},"contractLiabilityAccountingCodeType":{"type":"string","description":"The type associated with the contract liability accounting code. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for contract recognized revenue. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled. \n"},"contractRecognizedRevenueAccountingCodeType":{"type":"string","description":"The type associated with the contract recognized revenue accounting code. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled.\n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for deferred revenue, such as Monthly Recurring Liability. \n"},"deferredRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the deferred revenue accounting code, such as Deferred Revenue. \n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for recognized revenue, such as Monthly Recurring Charges or Overage Charges. \n"},"recognizedRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the recognized revenue accounting code, such as Sales Revenue or Sales Discount. \n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code for unbilled receivables. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled. \n"},"unbilledReceivablesAccountingCodeType":{"type":"string","description":"The type associated with the unbilled receivables accounting code. \n\n**Note**: This field is only available if you have the RevPro Integration feature enabled.\n"}},"description":"Container for finance information of a rate plan charge.\n","title":"GetProductRatePlanChargeTypeFinanceInformation"},"GetProductRatePlanChargeTypeListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year","Per_Specific_Months"],"description":"The list price base for the product rate plan charge.\n\nThis field is only applicable for recurring charges.\n","title":"GetProductRatePlanChargeTypeListPriceBase"},"GetProductRatePlanChargeTypePrepaidOperationType":{"type":"string","enum":["topup","drawdown"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n","title":"GetProductRatePlanChargeTypePrepaidOperationType"},"GETProductRatePlanChargePricingTierType":{"type":"object","properties":{"endingUnit":{"type":"string","format":"decimal","description":"Decimal defining end of tier range.\n"},"price":{"type":"string","format":"decimal","description":"The decimal value of the tiered charge model. If the charge model is not a tiered type then this price field will be null and the price field directly under the productRatePlanCharges applies.\n"},"priceFormat":{"type":"string","description":"Tier price format.\n\nAllowed values:\n- flat fee \n- per unit\n"},"startingUnit":{"type":"string","format":"decimal","description":"Decimal defining start of tier range.\n"},"tier":{"type":"integer","format":"int64","description":"Unique number of the tier.\n"}},"title":"GETProductRatePlanChargePricingTierType"},"GETProductRatePlanChargePricingType":{"type":"object","properties":{"currency":{"type":"string","description":"Currency used by the charge model. For example: USD or EUR\n"},"discountAmount":{"type":"string","format":"decimal","description":"Value subtracted from price in currency specified. Used only when the charge model is DiscountFixedAmount.\n"},"discountPercentage":{"type":"string","format":"decimal","description":"Percent discount applied to the price. Used only when the charge model is DiscountPercentage.\n"},"includedUnits":{"type":"string","format":"decimal","description":"Specifies the number of units in the base set of units when the charge model is Overage.\n"},"overagePrice":{"type":"string","format":"decimal","description":"Price per unit when base set of units is exceeded. Used only when charge model is Overage or Tiered with Overage.\n"},"price":{"type":"string","format":"decimal","description":"The decimal value that applies when the charge model is not tiered\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/GETProductRatePlanChargePricingTierType"},"description":"Container for one or many defined tier ranges with distinct pricing.  Applies when model is `Tiered`, `TieredWithOverage`, or `Volume`\n"}},"title":"GETProductRatePlanChargePricingType"},"GETProductDiscountApplyDetailsType":{"type":"object","properties":{"appliedProductRatePlanChargeId":{"type":"string","description":"The ID of the product rate plan charge that the discount product rate plan charge applies to.\n"},"appliedProductRatePlanId":{"type":"string","description":"The ID of the product rate plan that the discount product rate plan charge applies to.\n"}},"title":"GETProductDiscountApplyDetailsType"},"GetProductRatePlanChargeTypeRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"Specifies when revenue recognition begins.\n","title":"GetProductRatePlanChargeTypeRevRecTriggerCondition"},"GetProductRatePlanChargeTypeRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"GetProductRatePlanChargeTypeRolloverApply"},"GetProductRatePlanChargeTypeTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Specifies how to define taxation for the charge; used by Zuora Tax.\n","title":"GetProductRatePlanChargeTypeTaxMode"},"GetProductRatePlanChargeTypeUpToPeriodsType":{"type":"string","enum":["Billing_Periods","Days","Weeks","Months","Years"],"description":"The period type used to define when the charge ends.\n","title":"GetProductRatePlanChargeTypeUpToPeriodsType"},"GetProductRatePlanChargeTypeValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n","title":"GetProductRatePlanChargeTypeValidityPeriodType"},"GetProductRatePlanChargeTypeIncludeChildrenNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetProductRatePlanChargeTypeIncludeChildrenNs"},"GetProductRatePlanChargeTypeItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product rate plan charge. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetProductRatePlanChargeTypeItemTypeNs"},"GetProductRatePlanChargeTypeRevRecEndNs":{"type":"string","enum":["Charge Period Start","Rev Rec Trigger Date","Use NetSuite Rev Rec Template"],"description":"End date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetProductRatePlanChargeTypeRevRecEndNs"},"GetProductRatePlanChargeTypeRevRecStartNs":{"type":"string","enum":["Charge Period Start","Rev Rec Trigger Date","Use NetSuite Rev Rec Template"],"description":"Start date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetProductRatePlanChargeTypeRevRecStartNs"},"GETProductRatePlanChargeType":{"type":"object","properties":{"applyDiscountTo":{"type":"string","description":"Specifies where (to what charge type) the discount will be applied. These field values are case-sensitive.\n\nPermissible values:\n- RECURRING\n- USAGE\n- ONETIMERECURRING\n- ONETIMEUSAGE\n- RECURRINGUSAGE\n- ONETIMERECURRINGUSAGE\n"},"billingDay":{"type":"string","description":"The bill cycle day (BCD) for the charge. The BCD determines which day of the month or week the customer is billed. The BCD value in the account can override the BCD in this object.\n"},"billingPeriod":{"type":"string","description":"The billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).\n\nValues:\n- Month\n- Quarter\n- Annual\n- Semi_Annual\n- Specific Months\n- Week\n- Specific_Weeks\n"},"billingPeriodAlignment":{"type":"string","description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n\nPossible values:\n- AlignToCharge\n- AlignToSubscriptionStart\n- AlignToTermStart\n"},"billingTiming":{"type":"string","description":"The billing timing for the charge. You can choose to bill for charges in advance or in arrears.\n\nValues:\n- In Advance\n- In Arrears\n\n**Note:** This feature is in Limited Availability. If you wish to have access to the feature, submit a request at [Zuora Global Support](https://support.zuora.com). \n"},"chargeFunction":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeChargeFunction","description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"commitmentType":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeCommitmentType","description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"chargeModelConfigurations":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeChargeModelConfigurations","description":"This field is for Zuora Internal Use only. See the **pricing** field for the same information as this field."},"creditOption":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeCreditOption","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information. \n"},"defaultQuantity":{"type":["string","null"],"format":"decimal","description":"The default quantity of units.  This field is required if you use a per-unit charge model.\n"},"deliverySchedule":{"$ref":"#/components/schemas/GETProductRatePlanChargeDeliverySchedule"},"description":{"type":"string","description":"Usually a brief line item summary of the Rate Plan Charge.\n"},"discountClass":{"type":["string","null"],"description":"The class that the discount belongs to. The discount class defines the order in which discount product rate plan charges are applied.\n\nFor more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).\n"},"discountLevel":{"type":["string","null"],"description":"The level of the discount. \n\nValues:\n- RatePlan\n- Subscription\n- Account\n"},"drawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"drawdownUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nUnit of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).\n"},"endDateCondition":{"type":"string","description":"Defines when the charge ends after the charge trigger date. If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.\n\nValues:\n- Subscription_End\n- Fixed_Period\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"financeInformation":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeFinanceInformation","description":"Container for finance information of a rate plan charge.\n"},"formula":{"type":"string","description":"The pricing formula to calculate the actual rating amount for each usage record.\n\nThis field is only available for the usage-based charges that use the Multi-Attribute Pricing charge model. The charge model 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.\n"},"id":{"type":"string","description":"Unique product rate-plan charge ID.\n"},"includedUnits":{"type":"string","format":"decimal","description":"Specifies the number of units in the base set of units when the charge model is Overage.\n"},"isAllocationEligible":{"type":"boolean","description":"This field is used to identify if the charge segment is allocation\neligible in revenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isPrepaid":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nIndicates whether this charge is a prepayment (topup) charge or a drawdown charge. Values: `true` or `false`.\n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe value is either \"true\" or \"false\". It determines whether the rollover fields are needed.\n"},"isStackedDiscount":{"type":"boolean","description":"**Note**: This field is only applicable to the Discount - Percentage charge model.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.\n\nThis field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:\n\n- `true`: This is a stacked discount, which should be calculated by stacking with other discounts.\n\n- `false`: This is not a stacked discount, which should be calculated in sequence with other discounts.\n\nFor more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).\n"},"isUnbilled":{"type":"boolean","description":"This field is used to dictate how to perform the accounting during\nrevenue recognition.\n\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"listPriceBase":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeListPriceBase","description":"The list price base for the product rate plan charge.\n\nThis field is only applicable for recurring charges.\n"},"maxQuantity":{"type":"string","format":"decimal","description":"Specifies the maximum number of units for this charge. Use this field and the `minQuantity` field to create a range of units allowed in a product rate plan charge.\n"},"minQuantity":{"type":"string","format":"decimal","description":"Specifies the minimum number of units for this charge. Use this field and the `maxQuantity` field to create a range of units allowed in a product rate plan charge.\n"},"model":{"type":"string","description":"Charge model which determines how charges are calculated. Charge models must be individually activated in Zuora Billing administration. \n\nPossible values are:\n- `FlatFee`\n- `PerUnit`\n- `Overage`\n- `Volume`\n- `Tiered`\n- `TieredWithOverage`\n- `DiscountFixedAmount`\n- `DiscountPercentage`\n- `Delivery` (available only if you have the Delivery Pricing charge model enabled)\n- `MultiAttributePricing` (available only if you have the Multi-Attribute Pricing charge model enabled. The charge model 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.)\n- `PreratedPerUnit` (available only if you have the Pre-rated Per Unit Pricing charge model enabled. The charge model 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.)\n- `PreratedPricing` (available only if you have the Pre-rated Pricing charge model enabled. The charge model 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.)\n- `HighWatermarkVolumePricing` (available only if you have the High Water Mark Volume Pricing charge model enabled. The charge model 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.)\n- `HighWatermarkTieredPricing` (available only if you have the High Water Mark Tiered Pricing charge model enabled. The charge model 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.)\n\nThe value of the `pricing` field contains details about these charge models and the value of `pricingSummary` field contains their associated pricing summary values.\n"},"name":{"type":"string","description":"Name of the product rate-plan charge. (Not required to be unique.)\n"},"numberOfPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model. This field is ued when overage smoothing model is `RollingWindow` or `Rollover`.\n"},"overageCalculationOption":{"type":["string","null"],"description":"Value specifies when to calculate overage charges.\n\nValues:\n- EndOfSmoothingPeriod\n- PerBillingPeriod\n- null\n"},"overageUnusedUnitsCreditOption":{"type":["string","null"],"description":"Determines whether to credit the customer with unused units of usage.\n\nValues:\n- NoCredit\n- CreditBySpecificRate\n"},"prepaidOperationType":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeTypePrepaidOperationType"},{"type":"null"}],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n"},"prepaidQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaidTotalQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe total amount of units that end customers can use during a validity period when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"prepaidUom":{"type":["string","null"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nUnit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"prepayPeriods":{"type":["integer","null"],"format":"int64","description":"The number of periods to which prepayment is set. \n\n**Note:** This field is only available if you already have the prepayment feature enabled. The prepayment feature is deprecated and available only for backward compatibility. Zuora does not support enabling this feature anymore.\n"},"priceChangeOption":{"type":["string","null"],"description":"Applies an automatic price change when a termed subscription is renewed and the following applies:\n\n1. AutomatedPriceChange setting is on\n2. Charge type is not one-time\n3. Charge model is not discount fixed amount\n\nValues:\n- NoChange (default)\n- SpecificPercentageValue\n- UseLatestProductCatalogPricing\n"},"priceIncreasePercentage":{"type":["string","null"],"format":"decimal","description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the `PriceChangeOption` value to `SpecificPercentageValue`.\n\n1. AutomatedPriceChange setting is on\n2. Charge type is not one-time\n3. Charge model is not discount fixed amount\n\nValues: a decimal between -100 and 100\n"},"pricing":{"type":"array","items":{"$ref":"#/components/schemas/GETProductRatePlanChargePricingType"},"description":"One or more price charge models with attributes that further describe the model. \nSome attributes show as null values when not applicable.\n"},"pricingSummary":{"type":"array","items":{"type":"string"},"description":"A concise description of the charge model and pricing that is suitable to show to your customers. \nWhen the rate plan charge model is `Tiered` and multi-currency is enabled, this field includes an array of string of each currency, and each string of currency includes tier price description separated by comma.\n\nWhen the rate plan charge model is `DiscountPercentage`, this field does not include currency.\n\nWhen the rate plan charge model is not `DiscountPercentage`, this field includes the currency.\n\nFor the following charge models, the value of this field is an empty string:\n- Multi-Attribute Pricing\n- High Water Mark Tiered Pricing\n- High Water Mark Volume Pricing\n- Pre-Rated Per Unit Pricing\n- Pre-Rated Pricing\n\nThe charge models are 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.\n"},"productChargeDefinitions":{"type":"string","description":"A link to retrieve product charge definitions of this charge.\n"},"productDiscountApplyDetails":{"type":"array","items":{"$ref":"#/components/schemas/GETProductDiscountApplyDetailsType"},"description":"Container for the application details about a discount product rate plan charge. \n\nOnly discount product rate plan charges have values in this field.\n"},"productRatePlanChargeNumber":{"type":"string","description":"The natural key of the product rate plan charge.\n"},"ratingGroup":{"type":["string","null"],"description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:\n\n- `ByBillingPeriod` (default): The rating is based on all the usages in a billing period.\n- `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n- `ByUsageRecord`: The rating is based on each usage record.\n- `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n- `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Note:** \n- The `ByBillingPeriod` value can be applied for all charge models. \n- The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n- The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n- Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n"},"revRecCode":{"type":["string","null"],"maxLength":70,"description":"Associates this product rate plan charge with a specific revenue recognition code. The value is a valid revenue recognition code.\n"},"revRecTriggerCondition":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeRevRecTriggerCondition"},{"type":"null"}],"description":"Specifies when revenue recognition begins.\n"},"revenueRecognitionRuleName":{"type":"string","description":"The name of the revenue recognition rule governing the revenue schedule.\n"},"rolloverApply":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"rolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"smoothingModel":{"type":["string","null"],"description":"Specifies the smoothing model for an overage smoothing charge model or an tiered with overage model, which is an advanced type of a usage model that avoids spikes in usage charges. If a customer's usage spikes in a single period, then an overage smoothing model eases overage charges by considering usage and multiple periods.\n\nOne of the following values shows which smoothing model will be applied to the charge when `Overage` or `Tiered with Overage` is used:\n\n- `RollingWindow` considers a number of periods to smooth usage. The rolling window starts and increments forward based on billing frequency. When allowed usage is met, then period resets and a new window begins.\n- `Rollover` considers a fixed number of periods before calculating usage. The net balance at the end of a period is unused usage, which is carried over to the next period's balance.\n"},"specificBillingPeriod":{"type":["integer","null"],"format":"int64","description":"When the billing period is set to `Specific` Months then this positive integer reflects the number of months for billing period charges.\n"},"specificListPriceBase":{"type":["integer","null"],"description":"The number of months for the list price base of the charge. The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"},"taxCode":{"type":"string","description":"Specifies the tax code for taxation rules; used by Zuora Tax.\n"},"taxMode":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeTaxMode"},{"type":"null"}],"description":"Specifies how to define taxation for the charge; used by Zuora Tax.\n"},"taxable":{"type":"boolean","description":"Specifies whether the charge is taxable; used by Zuora Tax. Possible values are:`true`, `false`.\n"},"triggerEvent":{"type":"string","description":"Specifies when to start billing the customer for the charge.\n\nValues: one of the following:\n- `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n- `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n- `CustomerAcceptance` is when the customer accepts the services or products for a subscription. \n- `SpecificDate` is the date specified.\n"},"type":{"type":"string","description":"The type of charge. Possible values are: `OneTime`, `Recurring`, `Usage`.\n"},"uom":{"type":["string","null"],"description":"Describes the Units of Measure (uom) configured in **Settings > Billing** for the productRatePlanCharges.\n\nValues: `Each`, `License`, `Seat`, or `null`\n"},"upToPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.\nIf the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge end date will change accordingly up to the original period end.\n"},"upToPeriodsType":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeUpToPeriodsType"},{"type":"null"}],"description":"The period type used to define when the charge ends.\n"},"usageRecordRatingOption":{"type":["string","null"],"description":"Determines how Zuora processes usage records for per-unit usage charges. \n"},"useDiscountSpecificAccountingCode":{"type":["boolean","null"],"description":"Determines whether to define a new accounting code for the new discount charge.\nValues: `true`, `false`\n"},"useTenantDefaultForPriceChange":{"type":"boolean","description":"Shows the tenant-level percentage uplift value for an automatic price change to a termed subscription's renewal. You set the tenant uplift value in the web-based UI: **Settings > Billing > Define Default Subscription Settings**.\n\nValues: `true`, `false`\n"},"validityPeriodType":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeValidityPeriodType","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Class associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"DeferredRevAccount__NS":{"type":"string","maxLength":255,"description":"Deferrred revenue account associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Department associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IncludeChildren__NS":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeIncludeChildrenNs","description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product rate plan charge's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeItemTypeNs","description":"Type of item that is created in NetSuite for the product rate plan charge. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Location associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RecognizedRevAccount__NS":{"type":"string","maxLength":255,"description":"Recognized revenue account associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecEnd__NS":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeRevRecEndNs","description":"End date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecStart__NS":{"$ref":"#/components/schemas/GetProductRatePlanChargeTypeRevRecStartNs","description":"Start date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecTemplateType__NS":{"type":"string","maxLength":255,"description":"Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Subsidiary associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product rate plan charge was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Product Rate Plan Charge object.\n","title":"GETProductRatePlanChargeType"},"GetProductRatePlanTypeStatus":{"type":"string","enum":["Active","Expired","NotStarted"],"description":"The status of the product rate plan.\n","title":"GetProductRatePlanTypeStatus"},"GetProductRatePlanTypeBillingPeriodNs":{"type":"string","enum":["Monthly","Quarterly","Annual","Semi-Annual"],"description":"Billing period associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetProductRatePlanTypeBillingPeriodNs"},"GetProductRatePlanTypeIncludeChildrenNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetProductRatePlanTypeIncludeChildrenNs"},"GetProductRatePlanTypeItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product rate plan. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"GetProductRatePlanTypeItemTypeNs"},"GETProductRatePlanType":{"type":"object","properties":{"description":{"type":"string","description":"Rate plan description.\n"},"effectiveEndDate":{"type":"string","format":"date","description":"Final date the rate plan is active, as `yyyy-mm-dd`. After this date, the rate plan status is `Expired`.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"First date the rate plan is active (i.e., available to be subscribed to), as `yyyy-mm-dd`.  Before this date, the status is `NotStarted`.\n"},"grade":{"type":"number","format":"double","description":"The grade of the product rate plan.\n\n**Note**: This field 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"},"id":{"type":"string","description":"Unique product rate-plan ID.\n"},"name":{"type":"string","description":"Name of the product rate-plan charge. (Not required to be unique.)\n"},"productRatePlanCharges":{"type":"array","items":{"$ref":"#/components/schemas/GETProductRatePlanChargeType"},"description":"Field attributes describing the product rate plan charges:\n"},"productRatePlanNumber":{"type":"string","description":"The natural key of the product rate plan.  \n"},"status":{"$ref":"#/components/schemas/GetProductRatePlanTypeStatus","description":"The status of the product rate plan.\n"},"BillingPeriod__NS":{"$ref":"#/components/schemas/GetProductRatePlanTypeBillingPeriodNs","description":"Billing period associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Class associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Department associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IncludeChildren__NS":{"$ref":"#/components/schemas/GetProductRatePlanTypeIncludeChildrenNs","description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product rate plan's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/GetProductRatePlanTypeItemTypeNs","description":"Type of item that is created in NetSuite for the product rate plan. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Location associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"MultiCurrencyPrice__NS":{"type":"string","maxLength":255,"description":"Multi-currency price associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Price__NS":{"type":"string","maxLength":255,"description":"Price associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Subsidiary associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product rate plan was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Product Rate Plan object.\n","title":"GETProductRatePlanType"},"GETProductRatePlansResponse":{"type":"object","properties":{"nextPage":{"type":"string","format":"URL","description":"URL to retrieve the next page of the response if it exists; otherwise absent.\n"},"productRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/GETProductRatePlanType"},"description":"Container for one or more products.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETProductRatePlansResponse"},"GetProductRatePlanWithExternalIdResponseOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"GetProductRatePlanWithExternalIdResponseOrganizationLabelsItems"},"GetProductRatePlanWithExternalIdResponseStatus":{"type":"string","enum":["Active","Expired","NotStarted"],"description":"The status of the product rate plan. \n","title":"GetProductRatePlanWithExternalIdResponseStatus"},"GETProductRatePlanWithExternalIdResponse":{"type":"object","properties":{"ExternalIdSourceSystem":{"type":"string","description":"The combination of `externallyManagedPlanId` and `externalIdSourceSystem` is the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"description":{"type":"string","description":"The short description of the product rate plan.\n"},"effectiveEndDate":{"type":"string","format":"date","description":"The end date of the product rate plan.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"The start date of the product rate plan.\n"},"externallyManagedPlanIds":{"type":"array","items":{"type":"string"},"description":"The unique identifier for the product rate plan in a third-party store. This field is used to represent a rate plan created through third-party stores.\n"},"grade":{"type":"number","format":"double","description":"The grade of the product rate plan.\n\n**Note**: This field 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"},"id":{"type":"string","description":"The unique product rate plan ID.\n"},"name":{"type":"string","description":"The name of the product rate plan.\n"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetProductRatePlanWithExternalIdResponseOrganizationLabelsItems"},"description":"The organization(s) that the object belongs to. \n\nNote: This field is available only when the Multi-Org feature is enabled.            \n"},"productRatePlanNumber":{"type":"string","description":"The natural key of the product rate plan.\n"},"status":{"$ref":"#/components/schemas/GetProductRatePlanWithExternalIdResponseStatus","description":"The status of the product rate plan. \n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETProductRatePlanWithExternalIdResponse"},"GetProductRatePlanWithExternalIdMultiResponseProductRatePlansItemsStatus":{"type":"string","enum":["Active","Expired","NotStarted"],"description":"The status of the product rate plan. \n","title":"GetProductRatePlanWithExternalIdMultiResponseProductRatePlansItemsStatus"},"GetProductRatePlanWithExternalIdMultiResponseProductRatePlansItemsOrganizationLabelsItems":{"type":"object","properties":{"organizationId":{"type":"string","description":"The organization ID.\n"},"organizationName":{"type":"string","description":"The organization name.\n"}},"title":"GetProductRatePlanWithExternalIdMultiResponseProductRatePlansItemsOrganizationLabelsItems"},"GetProductRatePlanWithExternalIdMultiResponseProductRatePlansItems":{"type":"object","properties":{"id":{"type":"string","description":"The unique product rate plan ID.\n"},"status":{"$ref":"#/components/schemas/GetProductRatePlanWithExternalIdMultiResponseProductRatePlansItemsStatus","description":"The status of the product rate plan. \n"},"name":{"type":"string","description":"The name of the product rate plan.\n"},"description":{"type":"string","description":"The short description of the product rate plan.\n"},"effectiveStartDate":{"type":"string","format":"date","description":"The start date of the product rate plan.\n"},"effectiveEndDate":{"type":"string","format":"date","description":"The end date of the product rate plan.\n"},"externalIdSourceSystem":{"type":"string","description":"The combination of `externallyManagedPlanId` and `externalIdSourceSystem` is the unique identifier for the rate plan purchased on a third-party store. This field is used to represent a subscription rate plan created through third-party stores.\n"},"externallyManagedPlanIds":{"type":"array","items":{"type":"string"},"description":"The unique identifier for the product rate plan in a third-party store. This field is used to represent a rate plan created through third-party stores.\n"},"productRatePlanNumber":{"type":"string","description":"A unique, human-readable identifier for the product rate plan. This value is typically auto-generated by Zuora but can also be set explicitly by the customer.\nThis field is required and should never be null.\n"},"grade":{"type":"number","format":"double","description":"The grade of the product rate plan.\n\n**Note**: This field 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"},"organizationLabels":{"type":"array","items":{"$ref":"#/components/schemas/GetProductRatePlanWithExternalIdMultiResponseProductRatePlansItemsOrganizationLabelsItems"},"description":"The organization(s) that the object belongs to. \n\nNote: This field is available only when the Multi-Org feature is enabled.            \n"}},"title":"GetProductRatePlanWithExternalIdMultiResponseProductRatePlansItems"},"GETProductRatePlanWithExternalIdMultiResponse":{"type":"object","properties":{"productRatePlans":{"type":"array","items":{"$ref":"#/components/schemas/GetProductRatePlanWithExternalIdMultiResponseProductRatePlansItems"},"description":"A list of product rate plans associated with the product. \nEach rate plan defines a set of charges and billing conditions that determine how a product is priced and billed.\n"},"success":{"type":"boolean","description":"Returns `true` if the request was processed successfully.\n"}},"title":"GETProductRatePlanWithExternalIdMultiResponse"},"ProxyCreateProductRatePlanBillingPeriodNs":{"type":"string","enum":["Monthly","Quarterly","Annual","Semi-Annual"],"description":"Billing period associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyCreateProductRatePlanBillingPeriodNs"},"ProxyCreateProductRatePlanIncludeChildrenNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyCreateProductRatePlanIncludeChildrenNs"},"ProxyCreateProductRatePlanItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product rate plan. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyCreateProductRatePlanItemTypeNs"},"ProxyCreateProductRatePlan":{"type":"object","properties":{"ActiveCurrencies":{"type":"array","items":{"type":"string"},"description":"A list of 3-letter currency codes representing active currencies for the product rate plan. Use a comma to separate each currency code.\n\nWhen creating a product rate plan, you can use this field to specify default currency and at most four other active currencies.\n"},"Description":{"type":"string","maxLength":500,"description":"A description of the product rate plan.\n"},"EffectiveEndDate":{"type":"string","format":"date","description":"The date when the product rate plan expires and can't be subscribed to, in `yyyy-mm-dd` format.\n"},"EffectiveStartDate":{"type":"string","format":"date","description":"The date when the product rate plan becomes available and can be subscribed to, in `yyyy-mm-dd` format.\n"},"ExternalIdSourceSystem":{"type":"string","description":"The ID of the external source system.\n\n**Note:** To use this field, you must set the `X-Zuora-WSDL-Version` request header to `130` or later. Otherwise, an error occurs.\n"},"ExternalRatePlanIds":{"type":"string","description":"An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. \nIf you want to update to multiple values, use a comma separated string.\n\n**Note:** To use this field, you must set the `X-Zuora-WSDL-Version` request header to `130` or later. Otherwise, an error occurs.\n"},"Grade":{"type":"number","format":"double","description":"The grade that is assigned for the product rate plan. The value of this field must be a positive integer. The greater the value, the higher the grade.\n\nA product rate plan to be added to a Grading catalog group must have one grade. You can specify a grade for a product rate plan in this request or update the product rate plan individually.\n\n**Notes**: \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `116` or later. Otherwise, an error occurs.\n  - This field 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"},"Name":{"type":"string","maxLength":255,"description":"The name of the product rate plan. The name doesn't have to be unique in a Product Catalog, but the name has to be unique within a product.\n"},"ProductId":{"type":"string","maxLength":32,"description":"The ID of the product that contains the product rate plan.\n"},"ProductRatePlanNumber":{"type":"string","maxLength":100,"description":"The natural key of the product rate plan.\n\n**Possible values**:\n\n  - leave null for automatically generated string\n  - an alphanumeric string of 100 characters or fewer\n\n**Note**: This field is only available if you set the `X-Zuora-WSDL-Version` request header to `133` or later.\n"},"BillingPeriod__NS":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanBillingPeriodNs","description":"Billing period associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Class associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Department associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IncludeChildren__NS":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanIncludeChildrenNs","description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product rate plan's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanItemTypeNs","description":"Type of item that is created in NetSuite for the product rate plan. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Location associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"MultiCurrencyPrice__NS":{"type":"string","maxLength":255,"description":"Multi-currency price associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Price__NS":{"type":"string","maxLength":255,"description":"Price associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Subsidiary associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product rate plan was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["Name","ProductId"],"description":"Container for custom fields of a Product Rate Plan object.\n","title":"ProxyCreateProductRatePlan"},"ProxyGetProductRatePlanBillingPeriodNs":{"type":"string","enum":["Monthly","Quarterly","Annual","Semi-Annual"],"description":"Billing period associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyGetProductRatePlanBillingPeriodNs"},"ProxyGetProductRatePlanIncludeChildrenNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyGetProductRatePlanIncludeChildrenNs"},"ProxyGetProductRatePlanItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product rate plan. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyGetProductRatePlanItemTypeNs"},"ProxyGetProductRatePlan":{"type":"object","properties":{"ActiveCurrencies":{"type":"array","items":{"type":"string"},"description":"A list of 3-letter currency codes representing active currencies for the product rate plan. \n\nThis field cannot be queried in conjunction with any other fields except `id` at the same time. \n"},"CreatedById":{"type":"string","maxLength":32,"description":"The automatically generated ID of the Zuora user who created the `ProductRatePlan` object.\n"},"CreatedDate":{"type":"string","format":"date-time","description":"The date when the `ProductRatePlan` object was created.\n"},"Description":{"type":"string","maxLength":500,"description":"A description of the product rate plan.\n"},"EffectiveEndDate":{"type":"string","format":"date","description":"The date when the product rate plan expires and can't be subscribed to, in `yyyy-mm-dd` format.\n"},"EffectiveStartDate":{"type":"string","format":"date","description":"The date when the product rate plan becomes available and can be subscribed to, in `yyyy-mm-dd` format.\n"},"Grade":{"type":"number","format":"double","description":"The grade that is assigned for the product rate plan.\n\n**Notes**: \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `116` or later. Otherwise, an error occurs.\n  - This field 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"},"Id":{"type":"string","description":"Object identifier."},"Name":{"type":"string","maxLength":255,"description":"The name of the product rate plan. The name doesn't have to be unique in a Product Catalog, but the name has to be unique within a product.\n"},"ProductId":{"type":"string","maxLength":32,"description":"The ID of the product that contains the product rate plan.\n"},"UpdatedById":{"type":"string","maxLength":32,"description":"The automatically generated ID of the last user to update the object.\n"},"UpdatedDate":{"type":"string","format":"date-time","description":"The date when the object was last updated.\n"},"BillingPeriod__NS":{"$ref":"#/components/schemas/ProxyGetProductRatePlanBillingPeriodNs","description":"Billing period associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Class associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Department associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IncludeChildren__NS":{"$ref":"#/components/schemas/ProxyGetProductRatePlanIncludeChildrenNs","description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product rate plan's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/ProxyGetProductRatePlanItemTypeNs","description":"Type of item that is created in NetSuite for the product rate plan. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Location associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"MultiCurrencyPrice__NS":{"type":"string","maxLength":255,"description":"Multi-currency price associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Price__NS":{"type":"string","maxLength":255,"description":"Price associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Subsidiary associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product rate plan was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Product Rate Plan object.\n","title":"ProxyGetProductRatePlan"},"ProxyModifyProductRatePlanBillingPeriodNs":{"type":"string","enum":["Monthly","Quarterly","Annual","Semi-Annual"],"description":"Billing period associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyModifyProductRatePlanBillingPeriodNs"},"ProxyModifyProductRatePlanIncludeChildrenNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyModifyProductRatePlanIncludeChildrenNs"},"ProxyModifyProductRatePlanItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product rate plan. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyModifyProductRatePlanItemTypeNs"},"ProxyModifyProductRatePlan":{"type":"object","properties":{"ActiveCurrencies":{"type":"array","items":{"type":"string"},"description":"A list of 3-letter currency codes representing active currencies for the product rate plan. Use a comma to separate each currency code.\n\nIf the request body contains this field, the value of this field must contain the desired list of active currencies. The new list can never have more than four differences from the existing list.\n\nThis field cannot be used to modify the status of more than four currencies in a single request. For example, in a single request, you can only activate four currencies, or deactivate four currencies, or activate two and deactivate two. Making more than four changes to currencies always requires more than one call.\n\nWhen specifying this field in the update request, you must provide the full list of active currencies you want, not just incremental changes. For each active currency update, provide the following currencies in the list:\n\nCurrent active currencies + at most four changes (additions or deletions)\n"},"Description":{"type":"string","maxLength":500,"description":"A description of the product rate plan.\n"},"EffectiveEndDate":{"type":"string","format":"date","description":"The date when the product rate plan expires and can't be subscribed to, in `yyyy-mm-dd` format.\n"},"EffectiveStartDate":{"type":"string","format":"date","description":"The date when the product rate plan becomes available and can be subscribed to, in `yyyy-mm-dd` format.\n"},"ExternalIdSourceSystem":{"type":"string","description":"The ID of the external source system.\n\n**Note:** To use this field, you must set the `X-Zuora-WSDL-Version` request header to `130` or later. Otherwise, an error occurs.\n"},"ExternalRatePlanIds":{"type":"string","description":"An external ID of the product rate plan to be added. You can use this field to specify a product rate plan that is imported from an external system. \nIf you want to update to multiple values, use a comma separated string.\n\n**Note:** To use this field, you must set the `X-Zuora-WSDL-Version` request header to `130` or later. Otherwise, an error occurs.\n"},"Grade":{"type":"number","format":"double","description":"The grade that is assigned for the product rate plan. The value of this field must be a positive integer. The greater the value, the higher the grade.\n\nA product rate plan to be added to a Grading catalog group must have one grade. You can specify a grade for a product rate plan in this request or update the product rate plan individually.\n\n**Notes**: \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `116` or later. Otherwise, an error occurs.\n  - This field 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"},"Name":{"type":"string","maxLength":255,"description":"The name of the product rate plan. The name doesn't have to be unique in a Product Catalog, but the name has to be unique within a product.\n"},"ProductId":{"type":"string","maxLength":32,"description":"The ID of the product that contains the product rate plan.\n"},"ProductRatePlanNumber":{"type":"string","maxLength":100,"description":"The natural key of the product rate plan. \n\nFor existing Product Rate Plan objects that are created before this field is introduced, this field will be null. Use this field to specify a value for only these objects. Zuora also provides a tool to help you automatically backfill this field with tenant ID for your existing product catalog. If you want to use this backfill tool, contact [Zuora Global Support](https://support.zuora.com/).\n\n**Note**: This field is only available if you set the `X-Zuora-WSDL-Version` request header to `133` or later.\n"},"BillingPeriod__NS":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanBillingPeriodNs","description":"Billing period associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Class associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Department associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IncludeChildren__NS":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanIncludeChildrenNs","description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product rate plan's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanItemTypeNs","description":"Type of item that is created in NetSuite for the product rate plan. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Location associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"MultiCurrencyPrice__NS":{"type":"string","maxLength":255,"description":"Multi-currency price associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Price__NS":{"type":"string","maxLength":255,"description":"Price associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Subsidiary associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product rate plan was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Product Rate Plan object.\n","title":"ProxyModifyProductRatePlan"},"GetProductRatePlanDefinitionsResponseProductRatePlanDefinitionsItems":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the product rate plan definition.\n"},"productRatePlanChargeId":{"type":"string","description":"The unique ID of the product charge in this rate plan definition.\n"},"productRatePlanChargeName":{"type":"string","description":"Th name of the product charge in this rate plan definition.\n"},"productRatePlanChargeNumber":{"type":"string","description":"The unique number (natural key) of the product charge in this rate plan definition.\n"},"productRatePlanId":{"type":"string","description":"The unique ID of the product rate plan that uses this rate plan definition.\n"},"productRatePlanName":{"type":"string","description":"Th name of the product rate plan that uses this rate plan definition.\n"},"productRatePlanNumber":{"type":"string","description":"The unique number (natural key) of the product rate plan that uses this rate plan definition.\n"}},"title":"GetProductRatePlanDefinitionsResponseProductRatePlanDefinitionsItems"},"GETProductRatePlanDefinitionsResponse":{"type":"object","properties":{"productRatePlanDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/GetProductRatePlanDefinitionsResponseProductRatePlanDefinitionsItems"},"description":"The list of the product rate plan definitions that are retrieved.\n"},"success":{"type":"boolean","description":"Indicates whether the request succeeded.\n"}},"title":"GETProductRatePlanDefinitionsResponse"},"POSTRatePlanDefinitionRequest":{"type":"object","properties":{"productRatePlanChargeId":{"type":"string","description":"The unique ID of the product rate plan charge to be used in the product rate plan.\n"},"productRatePlanChargeNumber":{"type":"string","description":"The unique number (natural key) of the product rate plan charge to be used in the product rate plan.\n"},"productRatePlanId":{"type":"string","description":"The unique ID of the product rate plan that uses this rate plan definition.\n"},"productRatePlanNumber":{"type":"string","description":"The unique number (natural key) of the product rate plan that uses this rate plan definition.\n"}},"title":"POSTRatePlanDefinitionRequest"},"POSTRatePlanDefinitionResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the product charge definition.\n"},"success":{"type":"boolean","description":"Indicates whether the request succeeded.\n"}},"title":"POSTRatePlanDefinitionResponse"},"GETProductRatePlanDefinitionResponse":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the product rate plan definition.\n"},"productRatePlanChargeId":{"type":"string","description":"The unique ID of the product charge in this rate plan definition.\n"},"productRatePlanChargeName":{"type":"string","description":"Th name of the product charge in this rate plan definition.\n"},"productRatePlanChargeNumber":{"type":"string","description":"The unique number (natural key) of the product charge in this rate plan definition.\n"},"productRatePlanId":{"type":"string","description":"The unique ID of the product rate plan that uses this rate plan definition.\n"},"productRatePlanName":{"type":"string","description":"Th name of the product rate plan that uses this rate plan definition.\n"},"productRatePlanNumber":{"type":"string","description":"The unique number (natural key) of the product rate plan that uses this rate plan definition.\n"},"success":{"type":"boolean","description":"Indicates whether the request succeeded.\n"}},"title":"GETProductRatePlanDefinitionResponse"},"GetProductRatePlanChargeResponseApplyDiscountTo":{"type":"string","enum":["ONETIME","RECURRING","USAGE","ONETIMERECURRING","ONETIMEUSAGE","RECURRINGUSAGE","ONETIMERECURRINGUSAGE"],"description":"Indicates which type of charge the discount charge applies to.\n","title":"GetProductRatePlanChargeResponseApplyDiscountTo"},"GetProductRatePlanChargeResponseBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart","AlignToTermEnd"],"description":"The billing period alignment setting for this charge.\n","title":"GetProductRatePlanChargeResponseBillingPeriodAlignment"},"GetProductRatePlanChargeResponseBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"The billing timing for this charge.\n","title":"GetProductRatePlanChargeResponseBillingTiming"},"GetProductRatePlanChargeResponseChargeFunction":{"type":"string","enum":["Standard","Prepayment","CommitmentTrueUp","Drawdown","CreditCommitment","DrawdownAndCreditCommitment"],"description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"GetProductRatePlanChargeResponseChargeFunction"},"GetProductRatePlanChargeResponseCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"GetProductRatePlanChargeResponseCommitmentType"},"ProductRatePlanChargeObjectCustomFields":{"type":"object","properties":{},"description":"Container for custom fields of a Product Rate Plan Charge object.\n","title":"ProductRatePlanChargeObjectCustomFields"},"GetDeliveryScheduleFrequency":{"type":"string","enum":["Weekly"],"description":"The frequency of the delivery. Only weekly delivery is supported now.\n","title":"GetDeliveryScheduleFrequency"},"GETDeliverySchedule":{"type":"object","properties":{"frequency":{"$ref":"#/components/schemas/GetDeliveryScheduleFrequency","description":"The frequency of the delivery. Only weekly delivery is supported now.\n"},"friday":{"type":"boolean","description":"The flag to indicate whether the delivery happens on Friday.\n"},"monday":{"type":"boolean","description":"The flag to indicate whether the delivery happens on Monday.\n"},"saturday":{"type":"boolean","description":"The flag to indicate whether the delivery happens on Saturday.\n"},"sunday":{"type":"boolean","description":"The flag to indicate whether the delivery happens on Sunday.\n"},"thursday":{"type":"boolean","description":"The flag to indicate whether the delivery happens on Thursday.\n"},"tuesday":{"type":"boolean","description":"The flag to indicate whether the delivery happens on Tuesday.\n"},"wednesday":{"type":"boolean","description":"The flag to indicate whether the delivery happens on Wendesday.\n"}},"title":"GETDeliverySchedule"},"GetProductRatePlanChargeResponseDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"The application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"GetProductRatePlanChargeResponseDiscountLevel"},"GetProductRatePlanChargeResponseEndDateCondition":{"type":"string","enum":["Subscription_End","One_Time","Fixed_Period","Specific_End_Date"],"description":"The end date condition for this charge.\n","title":"GetProductRatePlanChargeResponseEndDateCondition"},"GetProductRatePlanChargeResponseProrationOption":{"type":"string","enum":["NoProration","TimeBasedProration","DefaultFromTenantSetting","ChargeFullPeriod"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `135` or higher. Otherwise, an error occurs.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n","title":"GetProductRatePlanChargeResponseProrationOption"},"GetProductRatePlanChargeResponseRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"GetProductRatePlanChargeResponseRevenueRecognitionTiming"},"GetProductRatePlanChargeResponseRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"GetProductRatePlanChargeResponseRevenueAmortizationMethod"},"GetProductRatePlanChargeResponseFinanceInformation":{"type":"object","properties":{"accountsReceivableAccountingCode":{"type":["string","null"],"description":"The accounting code for accounts receivable.\n"},"accountsReceivableAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code for accounts receivable.\n"},"adjustmentLiabilityAccountingCode":{"type":["string","null"],"description":"The accounting code for adjustment liability. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"adjustmentLiabilityAccountingCodeType":{"type":["string","null"],"description":"The type associated with the adjustment liability accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"adjustmentRevenueAccountingCode":{"type":["string","null"],"description":"The accounting code for adjustment revenue. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"adjustmentRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the adjustment revenue accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractAssetAccountingCode":{"type":["string","null"],"description":"The accounting code for contract asset. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractAssetAccountingCodeType":{"type":["string","null"],"description":"The type associated with the contract asset accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractLiabilityAccountingCode":{"type":["string","null"],"description":"The accounting code for contract liability. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractLiabilityAccountingCodeType":{"type":["string","null"],"description":"The type associated with the contract liability accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":["string","null"],"description":"The accounting code for contract recognized revenue. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the contract recognized revenue accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"deferredRevenueAccountingCode":{"type":["string","null"],"description":"The accounting code for deferred revenue, such as Monthly Recurring Liability.\n"},"deferredRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the deferred revenue accounting code, such as Deferred Revenue. \n"},"recognizedRevenueAccountingCode":{"type":["string","null"],"description":"The accounting code for recognized revenue, such as Monthly Recurring Charges or Overage Charges. \n"},"recognizedRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the recognized revenue accounting code, such as Sales Revenue or Sales Discount.\n"},"unbilledReceivablesAccountingCode":{"type":["string","null"],"description":"The accounting code for unbilled receivables. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"unbilledReceivablesAccountingCodeType":{"type":["string","null"],"description":"The type associated with the unbilled receivables accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"}},"description":"Container for the finance information of a product rate plan charge.\n","title":"GetProductRatePlanChargeResponseFinanceInformation"},"GetProductRatePlanChargeResponseListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year"],"description":"The base of list price. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n","title":"GetProductRatePlanChargeResponseListPriceBase"},"GetProductRatePlanChargeResponseModel":{"type":"string","enum":["DiscountFixedAmount","DiscountPercentage","FlatFee","PerUnit","Overage","Tiered","TieredwithOverage","Volume","Delivery","MultiAttributePricing","PreratedPerUnit","PreratedPricing","HighWatermarkVolumePricing","HighWatermarkTieredPricing"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n","title":"GetProductRatePlanChargeResponseModel"},"GetProductRatePlanChargeResponseOverageCalculationOption":{"type":"string","enum":["EndOfSmoothingPeriod","PerBillingPeriod"],"description":"Determines when to calculate overage charges. If the value of the `smoothingMode` field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n","title":"GetProductRatePlanChargeResponseOverageCalculationOption"},"GetProductRatePlanChargeResponseOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Determines whether to credit the customer with unused units of usage.\n","title":"GetProductRatePlanChargeResponseOverageUnusedUnitsCreditOption"},"GetProductRatePlanChargeResponsePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"GetProductRatePlanChargeResponsePriceChangeOption"},"GetProductRatePlanChargeResponsePriceIncreaseOption":{"type":"string","enum":["FromTenantPercentageValue","SpecificPercentageValue"],"description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"GetProductRatePlanChargeResponsePriceIncreaseOption"},"GetRatePlanChargePricingTierItems":{"type":"object","properties":{"currency":{"type":"string","description":"The code corresponding to the currency for the price tier.\n"},"discountAmount":{"type":"number","format":"double","description":"The specific amount for a fixed discount. This field is applicable for charges based on the Discount-Fixed Amount charge model.\n"},"discountPercentage":{"type":"number","format":"double","description":"The percentage of discount for a percentage discount. This field is applicable for charges based on the Discount-Percentage charge model.\n"},"endingUnit":{"type":"number","format":"double","description":"The end number of a range of units for the tier. This field is applicable for charges based on the Tiered Pricing or Tiered with Overage Pricing charge model.\n"},"overagePrice":{"type":"number","format":"double","description":"Indicates whether the price is an overage price, which is the price when usage surpasses the last defined tier.\n"},"price":{"type":"number","format":"double","description":"The price of the tier if the charge is a flat fee, or the price of each unit in the tier if the charge model is tiered pricing.\n"},"startingUnit":{"type":"number","format":"double","description":"The starting number of a range of units for the tier. This field is applicable for charges based on the Tiered Pricing or Tiered with Overage Pricing charge model.\n"}},"title":"GetRatePlanChargePricingTierItems"},"GETRatePlanChargePricingTier":{"type":"array","items":{"$ref":"#/components/schemas/GetRatePlanChargePricingTierItems"},"description":"Array of product rate plan charge tiers.\n\nYou should specify all relevant fields of all tiers, including pricing information for each currency.\n\nFor each currency, ensure that the tiers appear in ascending order of `StartingUnit`.\n\nFor example:\n\n```\n[\n  {\n    \"StartingUnit\": \"1\",\n    \"EndingUnit\": \"150\",\n    \"Currency\": \"USD\",\n    \"Price\": 1.95,\n    \"PriceFormat\": \"Per Unit\"\n  },\n  {\n    \"StartingUnit\": \"151\",\n    \"EndingUnit\": \"300\",\n    \"Currency\": \"USD\",\n    \"Price\": 1.45,\n    \"PriceFormat\": \"Per Unit\"\n  },\n  {\n    \"StartingUnit\": \"1\",\n    \"EndingUnit\": \"150\",\n    \"Currency\": \"EUR\",\n    \"Price\": 1.75,\n    \"PriceFormat\": \"Per Unit\"\n  },\n  {\n    \"StartingUnit\": \"151\",\n    \"EndingUnit\": \"300\",\n    \"Currency\": \"EUR\",\n    \"Price\": 1.30,\n    \"PriceFormat\": \"Per Unit\"\n  }\n]\n```\n","title":"GETRatePlanChargePricingTier"},"GETRatePlanChargePricing":{"type":"object","properties":{"currency":{"type":"string","description":"The currency for the price.\n"},"discountAmount":{"type":["number","null"],"format":"double","description":"The specific amount for a fixed discount. This field is applicable for charges based on the Discount-Fixed Amount charge model.\n"},"discountPercentage":{"type":["number","null"],"format":"double","description":"The percentage of discount for a percentage discount. This field is applicable for charges based on the Discount-Percentage charge model.\n"},"includedUnits":{"type":["number","null"],"format":"double","description":"The number of units included in this price item. \n\nThis field is only applicable for charges based on the Overage Pricing charge model.\n"},"overagePrice":{"type":["number","null"],"format":"double","description":"The overage price of the price item. \n\nThis field is only applicable for charges based on the Overage Pricing or Tiered with Overage Pricing charge model.\n"},"price":{"type":"number","format":"double","description":"The price. \n\nThis field is only applicable for charges based on the following charge models:\n  - Flat Fee\n  - Per Unit\n  - Delivery Pricing\n"},"tiers":{"type":["array","null"],"items":{"$ref":"#/components/schemas/GETRatePlanChargePricingTier"},"description":"Container for the tiers of the price item. \n\nThis field is only applicable for charges based on the following charge models:\n  - Tiered Pricing\n  - Volume Pricing\n  - Tiered with Overage Pricing\n"}},"title":"GETRatePlanChargePricing"},"GetProductRatePlanChargeResponseRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload","ByGroupId"],"default":"ByBillingPeriod","description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:                \n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period. \n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Notes:** \n  - The `ByBillingPeriod` value can be applied for all charge models. \n  - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n  - The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n  - Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n","title":"GetProductRatePlanChargeResponseRatingGroup"},"GetProductRatePlanChargeResponseRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"Specifies when revenue recognition begins.\n","title":"GetProductRatePlanChargeResponseRevRecTriggerCondition"},"GetProductRatePlanChargeResponseRevenueRecognitionRuleName":{"type":"string","enum":["Recognize upon invoicing","Recognize daily over time"],"description":"Determines when to recognize the revenue for this charge.\n","title":"GetProductRatePlanChargeResponseRevenueRecognitionRuleName"},"GetProductRatePlanChargeResponseSmoothingModel":{"type":"string","enum":["RollingWindow","Rollover"],"description":"Specifies the smoothing model for an overage smoothing charge model.\n","title":"GetProductRatePlanChargeResponseSmoothingModel"},"GetProductRatePlanChargeResponseTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Determines how to define taxation for the charge. This field is required when the `taxable` field is set to `true`.\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n","title":"GetProductRatePlanChargeResponseTaxMode"},"GetProductRatePlanChargeResponseTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance"],"description":"Specifies when to start billing the customer for the charge.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n","title":"GetProductRatePlanChargeResponseTriggerEvent"},"GetProductRatePlanChargeResponseType":{"type":"string","enum":["OneTime","Recurring","Usage"],"description":"Specifies the type of charge.\n","title":"GetProductRatePlanChargeResponseType"},"GetProductRatePlanChargeResponseUpToPeriodsType":{"type":"string","enum":["Billing_Periods","Days","Weeks","Months","Years"],"description":"The up-to-periods type setting for this charge.\n","title":"GetProductRatePlanChargeResponseUpToPeriodsType"},"GetProductRatePlanChargeResponseUsageRecordRatingOption":{"type":"string","enum":["EndOfBillingPeriod","OnDemand"],"default":"EndOfBillingPeriod","description":"Determines how Zuora processes usage records for per-unit usage charges.\n","title":"GetProductRatePlanChargeResponseUsageRecordRatingOption"},"GetProductRatePlanChargeResponsePrepaidOperationType":{"type":"string","enum":["topup","drawdown"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n","title":"GetProductRatePlanChargeResponsePrepaidOperationType"},"GetProductRatePlanChargeResponseValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n","title":"GetProductRatePlanChargeResponseValidityPeriodType"},"GetProductRatePlanChargeResponseCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information. \n","title":"GetProductRatePlanChargeResponseCreditOption"},"GetProductRatePlanChargeResponseRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"GetProductRatePlanChargeResponseRolloverApply"},"GETProductRatePlanChargeResponse":{"type":"object","properties":{"applyDiscountTo":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseApplyDiscountTo"},{"type":"null"}],"description":"Indicates which type of charge the discount charge applies to.\n"},"billingDay":{"type":"string","description":"The bill cycle type for this charge.\n"},"billingPeriod":{"type":"string","description":"The billing period for this charge.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseBillingPeriodAlignment","description":"The billing period alignment setting for this charge.\n"},"billingTiming":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseBillingTiming","description":"The billing timing for this charge.\n"},"chargeFunction":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseChargeFunction","description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"commitmentType":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseCommitmentType","description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"customFields":{"$ref":"#/components/schemas/ProductRatePlanChargeObjectCustomFields"},"defaultQuantity":{"type":["number","null"],"format":"double","description":"The default quantity. \n\nThis field is applicable only for one-time and recurring charges.\n"},"deliverySchedule":{"$ref":"#/components/schemas/GETDeliverySchedule"},"description":{"type":"string","description":"The description for this charge.\n"},"discountClass":{"type":["string","null"],"description":"The class that the discount belongs to. The discount class defines the order in which discount product rate plan charges are applied.\n\nFor more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).\n"},"discountLevel":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseDiscountLevel"},{"type":"null"}],"description":"The application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"endDateCondition":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseEndDateCondition","description":"The end date condition for this charge.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"isAllocationEligible":{"type":"boolean","description":"Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isUnbilled":{"type":"boolean","description":"Specifies how to perform the accounting during revenue recognition. The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.    \n"},"productCategory":{"type":"string","description":"This field is used to maintain the product category for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.    \n"},"productClass":{"type":"string","description":"This field is used to maintain the product class for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.    \n"},"productFamily":{"type":"string","description":"This field is used to maintain the product family for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.\n"},"productLine":{"type":"string","description":"This field is used to maintain the product line for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.\n"},"prorationOption":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseProrationOption","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `135` or higher. Otherwise, an error occurs.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n"},"reflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `reflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `reflectDiscountInNetAmount` field to `true`, you must also set both the `excludeItemBookingFromRevenueAccounting` and `excludeItemBillingFromRevenueAccounting` fields to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `reflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `reflectDiscountInNetAmount` field to `true`.      \n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"numberOfPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model.\nThis field is ued when overage smoothing model is `RollingWindow` or `Rollover`.\n"},"financeInformation":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseFinanceInformation","description":"Container for the finance information of a product rate plan charge.\n"},"id":{"type":"string","description":"The unique ID of the product rate plan charge.\n"},"isStackedDiscount":{"type":"boolean","description":"**Note**: This field is only applicable to the Discount - Percentage charge model.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.\n\nThis field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:\n  - `true`: This is a stacked discount, which should be calculated by stacking with other discounts.\n  - `false`: This is not a stacked discount, which should be calculated in sequence with other discounts.\n\nFor more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).\n"},"listPriceBase":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseListPriceBase","description":"The base of list price. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n"},"model":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n"},"name":{"type":"string","description":"The name of the product rate plan charge.\n"},"numberOfPeriod":{"type":"integer","format":"int64","description":"Indicates the number of periods to use when calculating charges in an overage smoothing charge model. The valid value is a positive whole number.\n"},"overageCalculationOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseOverageCalculationOption"},{"type":"null"}],"description":"Determines when to calculate overage charges. If the value of the `smoothingMode` field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n"},"overageUnusedUnitsCreditOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseOverageUnusedUnitsCreditOption"},{"type":"null"}],"description":"Determines whether to credit the customer with unused units of usage.\n"},"priceChangeOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponsePriceChangeOption"},{"type":"null"}],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"priceIncreaseOption":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponsePriceIncreaseOption","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"priceIncreasePercentage":{"type":["number","null"],"format":"double","description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the `priceIncreaseOption` field to `SpecificPercentageValue`.\n\n**Character limit**: 16\n\n**Values**: a decimal value between -100 and 100\n"},"pricing":{"type":"array","items":{"$ref":"#/components/schemas/GETRatePlanChargePricing"},"description":"Container for the prices of the product rate plan charge.\n"},"pricingSummary":{"type":"array","items":{"type":"string"},"description":"A concise description of the charge model and pricing that is suitable to show to your customers. \n\nWhen the rate plan charge model is `Tiered` and multi-currency is enabled, this field includes an array of string of each currency, and each string of currency includes tier price description separated by comma.\n\nWhen the rate plan charge model is `DiscountPercentage`, this field does not include currency.\n\nWhen the rate plan charge model is not `DiscountPercentage`, this field includes the currency.\n    \n\nFor the following charge models, the value of this field is an empty string:\n- Multi-Attribute Pricing\n- High Water Mark Tiered Pricing\n- High Water Mark Volume Pricing\n- Pre-Rated Per Unit Pricing\n- Pre-Rated Pricing\n\nThe charge models are 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.\n"},"productChargeDefinitions":{"type":"string","description":"A link to retrieve product charge definitions of this charge.\n"},"productDiscountApplyDetails":{"type":"array","items":{"$ref":"#/components/schemas/GETProductDiscountApplyDetailsType"},"description":"Container for the application details about a discount product rate plan charge. \n\nOnly discount product rate plan charges have values in this field.\n"},"productRatePlanChargeNumber":{"type":["string","null"],"description":"The number of this product rate plan charge.\n"},"ratingGroup":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseRatingGroup"},{"type":"null"}],"default":"ByBillingPeriod","description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:                \n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period. \n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Notes:** \n  - The `ByBillingPeriod` value can be applied for all charge models. \n  - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n  - The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n  - Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n"},"recognizedRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the recognized revenue account for this charge.\n  - Required when the Allow Blank Accounting Code setting is No.\n  - Optional when the Allow Blank Accounting Code setting is Yes.\n\n  This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n"},"revRecCode":{"type":["string","null"],"maxLength":70,"description":"Associates this product rate plan charge with a specific revenue recognition code.\n"},"revRecTriggerCondition":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseRevRecTriggerCondition"},{"type":"null"}],"description":"Specifies when revenue recognition begins.\n"},"revenueRecognitionRuleName":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseRevenueRecognitionRuleName","description":"Determines when to recognize the revenue for this charge.\n"},"smoothingModel":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseSmoothingModel"},{"type":"null"}],"description":"Specifies the smoothing model for an overage smoothing charge model.\n"},"specificBillingPeriod":{"type":["number","null"],"format":"double","description":"The specific number of billing periods for this charge.\n"},"specificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. The value of this field is `null` if you do not set the value of the `listPriceBase` field to `Per_Specific_Months`.\n"},"success":{"type":"boolean","description":"Indicates whether the request succeeded.\n"},"taxCode":{"type":"string","maxLength":64,"description":"Specifies the tax code for taxation rules. This field is required when the `taxable` field is set to `true`.\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n"},"taxMode":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseTaxMode"},{"type":"null"}],"description":"Determines how to define taxation for the charge. This field is required when the `taxable` field is set to `true`.\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n"},"taxable":{"type":"boolean","description":"Determines whether the charge is taxable. When set to `true`, the `taxMode` and `taxCode` fields are required when creating or updating th Product Rate Plan Charge object.\n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n"},"triggerEvent":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseTriggerEvent","description":"Specifies when to start billing the customer for the charge.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n"},"type":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseType","description":"Specifies the type of charge.\n"},"uom":{"type":["string","null"],"description":"Indicates the units of measure (UOM) that is configured in **Settings > Billing** for the product rate plan charge.\n"},"upToPeriods":{"type":["number","null"],"format":"double","description":"The number of up-to-periods value for this charge.\n"},"upToPeriodsType":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseUpToPeriodsType"},{"type":"null"}],"description":"The up-to-periods type setting for this charge.\n"},"usageRecordRatingOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseUsageRecordRatingOption"},{"type":"null"}],"default":"EndOfBillingPeriod","description":"Determines how Zuora processes usage records for per-unit usage charges.\n"},"useDiscountSpecificAccountingCode":{"type":["boolean","null"],"description":"Determines whether to define a new accounting code for the new discount charge.\n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n"},"useTenantDefaultForPriceChange":{"type":"boolean","description":"Applies the tenant-level percentage uplift value for an automatic price change to a termed subscription's renewal. \n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n"},"applyToBillingPeriodPartially":{"type":"boolean","description":"Allow the discount duration to be aligned with the billing period partially.\n\n**Note**: You must enable the [Enhanced Discount](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"isPrepaid":{"type":"boolean","description":"Indicates whether this charge is a prepayment (topup) charge or a\ndrawdown charge.\n\n**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n**Values**: `true` or `false`.\n"},"prepaidOperationType":{"oneOf":[{"$ref":"#/components/schemas/GetProductRatePlanChargeResponsePrepaidOperationType"},{"type":"null"}],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n"},"prepaidQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number (>0).\n"},"prepaidTotalQuantity":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe total amount of units that end customers can use during a validity period when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"prepaidUom":{"type":["string","null"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nUnit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"validityPeriodType":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseValidityPeriodType","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"drawdownRate":{"type":["number","null"],"format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). Must be a positive number (>0).\n"},"drawdownUom":{"type":["string","null"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nUnit of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge).\n"},"creditOption":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseCreditOption","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information. \n"},"isRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThe value is either \"true\" or \"false\". It determines whether the rollover fields are needed.\n"},"rolloverApply":{"$ref":"#/components/schemas/GetProductRatePlanChargeResponseRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"rolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"rolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"formula":{"type":"string","description":"The price lookup formula defined for the product rate plan charge, which is used to identify\nthe correct and relevant charge definition based on the context.\n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute-based_pricing/Price_lookup_in_Attribute-based_Pricing\"  target=\"_blank\">Price lookup in Attribute-based Pricing</a>.\n\n\n**Note**: This field is available only if the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute-based_pricing\" target=\"_blank\">Attribute-based Pricing</a> feature is enabled.\n"}},"title":"GETProductRatePlanChargeResponse"},"ProxyCreateProductRatePlanChargeApplyDiscountTo":{"type":"string","enum":["ONETIME (1)","RECURRING (2)","USAGE (4)","ONETIMERECURRING (3)","ONETIMEUSAGE (5)","RECURRINGUSAGE (6)","ONETIMERECURRINGUSAGE (7)"],"description":"Specifies the type of charges that you want a specific discount to apply to. All field values are case sensitive and in all-caps.\n","title":"ProxyCreateProductRatePlanChargeApplyDiscountTo"},"ProxyCreateProductRatePlanChargeBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek","TermStartDay","TermEndDay"],"description":"Specifies how to determine the billing day for the charge. \n\n**Notes**:\n  - If you set this field to `SpecificDayofMonth`, you must specify which day of the month as the billing day for the charge in the BillCycleDay field. \n  - If you set this field to `SpecificDayofWeek`, you must specify which day of the week as the billing day for the charge in the WeeklyBillCycleDay field. \n  - By default, `TermStartDay` and `TermEndDay` are only available for prepayment charges. But you can reach out to Zuora Global Support to request enabling it for non-prepaid recurring charges. Meanwhile, note the following rules applies to these options:\n    - The Term End Day option of the Billing Day field must be coupled with the Align to Term End option of the Billing Period Alignment field.\n    - For prepaid charges, the Term Start Day option of the Billing Day field must be coupled with the existing Align to Term Start option of the Billing Period Alignment field.\n    - For non-prepaid recurring charges: If Billing Day is set to Term Start Day, Billing Period Alignment must be Align to Term Start; If Billing Day is set to Term End Day, Billing Period Alignment can be set to other values.\n","title":"ProxyCreateProductRatePlanChargeBillCycleType"},"ProxyCreateProductRatePlanChargeBillingPeriod":{"type":"string","enum":["Month","Quarter","Annual","Semi-Annual","Specific Months","Subscription Term","Week","Specific Weeks","Specific Days"],"description":"The billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).\n\n**Notes**:\n  - Specify the number of months or weeks in the SpecificBillingPeriod field if you set this field to `Specific Months` or `Specific Weeks`.\n  - The `Subscription Term` value is in **Limited Availability**.\n","title":"ProxyCreateProductRatePlanChargeBillingPeriod"},"ProxyCreateProductRatePlanChargeBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart","AlignToTermEnd"],"description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n\n**Note:** The `AlignToTermEnd` value is only available for prepayment charges by default. Reach out to Zuora Global Support to enable it for non-prepaid recurring charges.\n","title":"ProxyCreateProductRatePlanChargeBillingPeriodAlignment"},"ProxyCreateProductRatePlanChargeBillingTiming":{"type":"string","enum":["In Advance","In Arrears"],"description":"The billing timing for the charge. You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n","title":"ProxyCreateProductRatePlanChargeBillingTiming"},"ProxyCreateProductRatePlanChargeChargeFunction":{"type":"string","enum":["Standard","Prepayment","CommitmentTrueUp","Drawdown","CreditCommitment","DrawdownAndCreditCommitment"],"description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"ProxyCreateProductRatePlanChargeChargeFunction"},"ProxyCreateProductRatePlanChargeCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n\nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"ProxyCreateProductRatePlanChargeCommitmentType"},"ProxyCreateProductRatePlanChargeChargeModel":{"type":"string","enum":["Discount-Fixed Amount","Discount-Percentage","Flat Fee Pricing","Per Unit Pricing","Overage Pricing","Tiered Pricing","Tiered with Overage Pricing","Volume Pricing","Delivery Pricing","MultiAttributePricing","PreratedPerUnit","PreratedPricing`","HighWatermarkVolumePricing","HighWatermarkTieredPricing"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n\n**Notes:**\n  - The `Delivery Pricing` value is available only if you have the Delivery Pricing charge model enabled. The minimal required WSDL version is 128.\n  - The `MultiAttributePricing` value is available only if you have the Multi-Attribute Pricing charge model enabled. The charge model 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. The minimal required WSDL version is 102.      \n  - The `PreratedPerUnit` and  value is available only if you have the Pre-rated Per Unit Pricing charge model enabled. The charge model 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. The minimal required WSDL version is 102.      \n  - The `PreratedPricing` value is available only if you have the Pre-rated Pricing charge model enabled. The charge model 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. The minimal required WSDL version is 102.    \n  - The `HighWatermarkVolumePricing`value is available only if you have the High Water Mark Volume Pricing charge model enabled. The charge model 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. The minimal required WSDL version is 102.      \n  - The `HighWatermarkTieredPricing` value is available only if you have the High Water Mark Tiered Pricing charge model enabled. The charge model 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. The minimal required WSDL version is 102.\n","title":"ProxyCreateProductRatePlanChargeChargeModel"},"ProxyCreateOrModifyProductRatePlanChargeChargeModelConfigurationItem":{"type":"object","properties":{"Key":{"type":"string","description":"The name of the field that is specified for a specific charge model.\n\nConfiguration keys supported are as follows:\n\n* `formula` (only available if you have the Multi-Attribute Pricing charge model enabled. The charge model 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.)\n* `customFieldPerUnitRate` (only available if you have the Pre-Rated Per Unit Pricing charge model enabled. The charge model 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.)\n* `customFieldTotalAmount` (only available if you have the Pre-Rated Pricing model enabled. The charge model 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.)\n"},"Value":{"type":"string","description":"The value of the field that is specified in the `Key` field.\n\nPossible values are follows:\n\n* A valid pricing formula to calculate actual rating amount for each usage record. For example, `usageQuantity()*10`. Use it with Key `formula` when the Multi-Attribute Pricing charge model is used. The charge model 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.\n* A name of a usage custom field that carries the per-unit rate for a usage record. For example, `perUnitRate__c`. Use it with Key `customFieldPerUnitRate` when the Pre-Rated Per Unit Pricing charge model is used. The charge model 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.\n* A name of a usage custom field that carries the total amount for a usage record. For example, `totalAmount__c`. Use it with Key `customFieldTotalAmount` when the Pre-Rated Pricing model is used. The charge model 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.\n"}},"required":["Key","Value"],"title":"ProxyCreateOrModifyProductRatePlanChargeChargeModelConfigurationItem"},"ProxyCreateOrModifyProductRatePlanChargeChargeModelConfiguration":{"type":"object","properties":{"ConfigurationItem":{"type":"array","items":{"$ref":"#/components/schemas/ProxyCreateOrModifyProductRatePlanChargeChargeModelConfigurationItem"},"description":"An array of Charge Model Configuration Key-Value pairs.\n"}},"description":"Container for charge model configuration data.\n\n**Notes**:\n  - This field is only available if you have the Pre-Rated Pricing or Multi-Attribute Pricing charge models enabled. These charge models are 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.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `102` or later. Otherwise, an error occurs with \"Code: INVALID_VALUE\".\n","title":"ProxyCreateOrModifyProductRatePlanChargeChargeModelConfiguration"},"ProxyCreateProductRatePlanChargeChargeType":{"type":"string","enum":["OneTime","Recurring","Usage"],"description":"Specifies the type of charge.\n","title":"ProxyCreateProductRatePlanChargeChargeType"},"ProxyCreateProductRatePlanChargeCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information. \n","title":"ProxyCreateProductRatePlanChargeCreditOption"},"ProxyCreateOrModifyDeliveryScheduleFrequency":{"type":"string","enum":["Weekly"],"description":"The frequency of the delivery. Only supports weekly now\n","title":"ProxyCreateOrModifyDeliveryScheduleFrequency"},"ProxyCreateOrModifyDeliverySchedule":{"type":"object","properties":{"frequency":{"$ref":"#/components/schemas/ProxyCreateOrModifyDeliveryScheduleFrequency","description":"The frequency of the delivery. Only supports weekly now\n"},"friday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Friday\n"},"monday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Monday\n"},"saturday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Saturday\n"},"sunday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Sunday\n"},"thursday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Thursday\n"},"tuesday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Tuesday\n"},"wendesday":{"type":"boolean","description":"The flag to indicate should the delivery happen on Wendesday\n"}},"title":"ProxyCreateOrModifyDeliverySchedule"},"ProxyCreateProductRatePlanChargeDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"Specifies if the discount applies to just the product rate plan, the entire subscription, or to any activity in the account.\n","title":"ProxyCreateProductRatePlanChargeDiscountLevel"},"ProxyCreateProductRatePlanChargeEndDateCondition":{"type":"string","enum":["SubscriptionEnd","FixedPeriod"],"default":"SubscriptionEnd","description":"Defines when the charge ends after the charge trigger date.\n\n**Values**: \n  - `SubscriptionEnd`: The charge ends on the subscription end date after a specified period based on the trigger date of the charge.  \n  - `FixedPeriod`: The charge ends after a specified period based on the trigger date of the charge. If you set this field to `FixedPeriod`, you must specify the length of the period and a period type by defining the `UpToPeriods` and `UpToPeriodsType` fields. \n\n  \n**Note**: If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.\n","title":"ProxyCreateProductRatePlanChargeEndDateCondition"},"ProxyCreateProductRatePlanChargeListPriceBase":{"type":"string","enum":["Per Billing Period","Per Month","Per Week","Per Year","Per Specific Months"],"description":"The list price base for the product rate plan charge.\n\n**Note**: If the `ListBasePrice` field is not set in the request, the system will use the `BillingPeriod` value as the default value.\n","title":"ProxyCreateProductRatePlanChargeListPriceBase"},"ProxyCreateProductRatePlanChargeOverageCalculationOption":{"type":"string","enum":["EndOfSmoothingPeriod","PerBillingPeriod"],"description":"Determines when to calculate overage charges. If the value of the SmoothingMode field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n","title":"ProxyCreateProductRatePlanChargeOverageCalculationOption"},"ProxyCreateProductRatePlanChargeOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Determines whether to credit the customer with unused units of usage.\n","title":"ProxyCreateProductRatePlanChargeOverageUnusedUnitsCreditOption"},"ProxyCreateProductRatePlanChargePrepaidOperationType":{"type":"string","enum":["topup","drawdown"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n","title":"ProxyCreateProductRatePlanChargePrepaidOperationType"},"ProxyCreateProductRatePlanChargePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"ProxyCreateProductRatePlanChargePriceChangeOption"},"ProxyCreateProductRatePlanChargePriceIncreaseOption":{"type":"string","enum":["FromTenantPercentageValue","SpecificPercentageValue"],"description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"ProxyCreateProductRatePlanChargePriceIncreaseOption"},"ProxyCreateProductRatePlanChargeRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"ProxyCreateProductRatePlanChargeRevenueRecognitionTiming"},"ProxyCreateProductRatePlanChargeRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"ProxyCreateProductRatePlanChargeRevenueAmortizationMethod"},"ProxyCreateOrModifyProductRatePlanChargeTierDataProductRatePlanChargeTierItemsPriceFormat":{"type":"string","enum":["Flat Fee","Per Unit"],"description":"Indicates if pricing is a flat fee or is per unit. This field is for tiered and volume pricing models only.\n","title":"ProxyCreateOrModifyProductRatePlanChargeTierDataProductRatePlanChargeTierItemsPriceFormat"},"ProxyCreateOrModifyProductRatePlanChargeTierDataProductRatePlanChargeTierItems":{"type":"object","properties":{"Currency":{"type":"string","description":"The code corresponding to the currency for the tier's price.\n"},"DiscountAmount":{"type":"number","format":"double","description":"The specific amount for a fixed discount. Required if the charge model of the product rate plan charge is `Discount-Fixed Amount`.\n"},"DiscountPercentage":{"type":"number","format":"double","description":"The percentage of discount for a percentage discount. Required if the charge model of the product rate plan charge is `Discount-Percentage`.\n"},"EndingUnit":{"type":"number","format":"double","description":"The end number of a range of units for the tier. Required if the charge model of the product rate plan charge is `Tiered Pricing` or `Tiered with Overage Pricing`.\n"},"IsOveragePrice":{"type":"boolean","description":"Indicates if the price is an overage price, which is the price when usage surpasses the last defined tier.\n"},"Price":{"type":"number","format":"double","description":"The price of the tier if the charge is a flat fee, or the price of each unit in the tier if the charge model is tiered pricing.\n"},"PriceFormat":{"$ref":"#/components/schemas/ProxyCreateOrModifyProductRatePlanChargeTierDataProductRatePlanChargeTierItemsPriceFormat","description":"Indicates if pricing is a flat fee or is per unit. This field is for tiered and volume pricing models only.\n"},"StartingUnit":{"type":"number","format":"double","description":"The starting number of a range of units for the tier. Required if the charge model of the product rate plan charge is `Tiered Pricing` or `Tiered with Overage Pricing`.\n"}},"title":"ProxyCreateOrModifyProductRatePlanChargeTierDataProductRatePlanChargeTierItems"},"ProxyCreateOrModifyProductRatePlanChargeTierData":{"type":"object","properties":{"ProductRatePlanChargeTier":{"type":"array","items":{"$ref":"#/components/schemas/ProxyCreateOrModifyProductRatePlanChargeTierDataProductRatePlanChargeTierItems"},"description":"Array of product rate plan charge tiers.\n\nYou should specify all relevant fields of all tiers, including pricing information for each currency.\n\nFor each currency, ensure that the tiers appear in ascending order of `StartingUnit`.\n\nFor example:\n\n```\n[\n  {\n    \"StartingUnit\": \"1\",\n    \"EndingUnit\": \"150\",\n    \"Currency\": \"USD\",\n    \"Price\": 1.95,\n    \"PriceFormat\": \"Per Unit\"\n  },\n  {\n    \"StartingUnit\": \"151\",\n    \"EndingUnit\": \"300\",\n    \"Currency\": \"USD\",\n    \"Price\": 1.45,\n    \"PriceFormat\": \"Per Unit\"\n  },\n  {\n    \"StartingUnit\": \"1\",\n    \"EndingUnit\": \"150\",\n    \"Currency\": \"EUR\",\n    \"Price\": 1.75,\n    \"PriceFormat\": \"Per Unit\"\n  },\n  {\n    \"StartingUnit\": \"151\",\n    \"EndingUnit\": \"300\",\n    \"Currency\": \"EUR\",\n    \"Price\": 1.30,\n    \"PriceFormat\": \"Per Unit\"\n  }\n]\n```\n"}},"description":"Container for pricing information associated with the product rate plan charge.\n","title":"ProxyCreateOrModifyProductRatePlanChargeTierData"},"ProxyCreateProductRatePlanChargeProrationOption":{"type":"string","enum":["NoProration","TimeBasedProration","DefaultFromTenantSetting","ChargeFullPeriod"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `135` or higher. Otherwise, an error occurs.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n","title":"ProxyCreateProductRatePlanChargeProrationOption"},"ProxyCreateProductRatePlanChargeRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload","ByGroupId"],"default":"ByBillingPeriod","description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:                \n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period. \n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Notes:** \n  - The `ByBillingPeriod` value can be applied for all charge models. \n  - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n  - The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n  - Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n","title":"ProxyCreateProductRatePlanChargeRatingGroup"},"ProxyCreateProductRatePlanChargeRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"Specifies when revenue recognition begins.\n","title":"ProxyCreateProductRatePlanChargeRevRecTriggerCondition"},"ProxyCreateProductRatePlanChargeRevenueRecognitionRuleName":{"type":"string","enum":["Recognize upon invoicing","Recognize daily over time"],"description":"Determines when to recognize the revenue for this charge.\n","title":"ProxyCreateProductRatePlanChargeRevenueRecognitionRuleName"},"ProxyCreateProductRatePlanChargeRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"ProxyCreateProductRatePlanChargeRolloverApply"},"ProxyCreateProductRatePlanChargeSmoothingModel":{"type":"string","enum":["RollingWindow","Rollover"],"description":"Specifies the smoothing model for an overage smoothing charge model.\n","title":"ProxyCreateProductRatePlanChargeSmoothingModel"},"ProxyCreateProductRatePlanChargeTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Determines how to define taxation for the charge. Required when the Taxable field is set to `True`.\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n","title":"ProxyCreateProductRatePlanChargeTaxMode"},"ProxyCreateProductRatePlanChargeTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance"],"description":"Specifies when to start billing the customer for the charge.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n","title":"ProxyCreateProductRatePlanChargeTriggerEvent"},"ProxyCreateProductRatePlanChargeUpToPeriodsType":{"type":"string","enum":["Billing Periods","Days","Weeks","Months","Years"],"default":"Billing Periods","description":"The period type used to define when the charge ends.\n\n**Notes**: \n - You must use this field together with the `UpToPeriods` field to specify the time period.\n - This field is applicable only when the `EndDateCondition` field is set to `FixedPeriod`. \n","title":"ProxyCreateProductRatePlanChargeUpToPeriodsType"},"ProxyCreateProductRatePlanChargeUsageRecordRatingOption":{"type":"string","enum":["EndOfBillingPeriod","OnDemand"],"default":"EndOfBillingPeriod","description":"Determines how Zuora processes usage records for per-unit usage charges. \n","title":"ProxyCreateProductRatePlanChargeUsageRecordRatingOption"},"ProxyCreateProductRatePlanChargeValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n","title":"ProxyCreateProductRatePlanChargeValidityPeriodType"},"ProxyCreateProductRatePlanChargeWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Specifies which day of the week as the bill cycle day (BCD) for the charge.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n","title":"ProxyCreateProductRatePlanChargeWeeklyBillCycleDay"},"ProxyCreateProductRatePlanChargeIncludeChildrenNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyCreateProductRatePlanChargeIncludeChildrenNs"},"ProxyCreateProductRatePlanChargeItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product rate plan charge. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyCreateProductRatePlanChargeItemTypeNs"},"ProxyCreateProductRatePlanChargeRevRecEndNs":{"type":"string","enum":["Charge Period Start","Rev Rec Trigger Date","Use NetSuite Rev Rec Template"],"description":"End date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyCreateProductRatePlanChargeRevRecEndNs"},"ProxyCreateProductRatePlanChargeRevRecStartNs":{"type":"string","enum":["Charge Period Start","Rev Rec Trigger Date","Use NetSuite Rev Rec Template"],"description":"Start date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyCreateProductRatePlanChargeRevRecStartNs"},"ProxyCreateProductRatePlanCharge":{"type":"object","properties":{"AccountingCode":{"type":"string","maxLength":100,"description":"The accounting code for the charge. Accounting codes group transactions that contain similar accounting attributes.\n"},"ApplyDiscountTo":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeApplyDiscountTo","description":"Specifies the type of charges that you want a specific discount to apply to. All field values are case sensitive and in all-caps.\n"},"BillCycleDay":{"type":"integer","description":"Sets the bill cycle day (BCD) for the charge. The BCD determines which day of the month customer is billed. The BCD value in the account can override the BCD in this object.\n\n**Character limit**: 2\n\n**Values**: a valid BCD integer, 1 - 31\n"},"BillCycleType":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeBillCycleType","description":"Specifies how to determine the billing day for the charge. \n\n**Notes**:\n  - If you set this field to `SpecificDayofMonth`, you must specify which day of the month as the billing day for the charge in the BillCycleDay field. \n  - If you set this field to `SpecificDayofWeek`, you must specify which day of the week as the billing day for the charge in the WeeklyBillCycleDay field. \n  - By default, `TermStartDay` and `TermEndDay` are only available for prepayment charges. But you can reach out to Zuora Global Support to request enabling it for non-prepaid recurring charges. Meanwhile, note the following rules applies to these options:\n    - The Term End Day option of the Billing Day field must be coupled with the Align to Term End option of the Billing Period Alignment field.\n    - For prepaid charges, the Term Start Day option of the Billing Day field must be coupled with the existing Align to Term Start option of the Billing Period Alignment field.\n    - For non-prepaid recurring charges: If Billing Day is set to Term Start Day, Billing Period Alignment must be Align to Term Start; If Billing Day is set to Term End Day, Billing Period Alignment can be set to other values.\n"},"BillingPeriod":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeBillingPeriod","description":"The billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).\n\n**Notes**:\n  - Specify the number of months or weeks in the SpecificBillingPeriod field if you set this field to `Specific Months` or `Specific Weeks`.\n  - The `Subscription Term` value is in **Limited Availability**.\n"},"BillingPeriodAlignment":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeBillingPeriodAlignment","description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n\n**Note:** The `AlignToTermEnd` value is only available for prepayment charges by default. Reach out to Zuora Global Support to enable it for non-prepaid recurring charges.\n"},"BillingTiming":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeBillingTiming","description":"The billing timing for the charge. You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"ChargeFunction":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeChargeFunction","description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"CommitmentType":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeCommitmentType","description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n\nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"ChargeModel":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeChargeModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n\n**Notes:**\n  - The `Delivery Pricing` value is available only if you have the Delivery Pricing charge model enabled. The minimal required WSDL version is 128.\n  - The `MultiAttributePricing` value is available only if you have the Multi-Attribute Pricing charge model enabled. The charge model 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. The minimal required WSDL version is 102.      \n  - The `PreratedPerUnit` and  value is available only if you have the Pre-rated Per Unit Pricing charge model enabled. The charge model 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. The minimal required WSDL version is 102.      \n  - The `PreratedPricing` value is available only if you have the Pre-rated Pricing charge model enabled. The charge model 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. The minimal required WSDL version is 102.    \n  - The `HighWatermarkVolumePricing`value is available only if you have the High Water Mark Volume Pricing charge model enabled. The charge model 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. The minimal required WSDL version is 102.      \n  - The `HighWatermarkTieredPricing` value is available only if you have the High Water Mark Tiered Pricing charge model enabled. The charge model 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. The minimal required WSDL version is 102.\n"},"ChargeModelConfiguration":{"$ref":"#/components/schemas/ProxyCreateOrModifyProductRatePlanChargeChargeModelConfiguration"},"ChargeType":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeChargeType","description":"Specifies the type of charge.\n"},"CreditOption":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeCreditOption","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information. \n"},"DefaultQuantity":{"type":"number","format":"double","description":"The default quantity of units, such as the number of authors in a hosted wiki service. This field is required if you use a per-unit pricing model. \n\n**Character limit**: 16\n\n**Values**: a valid quantity value. \n\n**Note:** When the `ChargeModel` field is set to `Tiered Pricing` or `Volume Pricing`, if this field is not specified, the value will default to `0`.\n"},"DeferredRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the deferred revenue account for this charge.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"DeliverySchedule":{"$ref":"#/components/schemas/ProxyCreateOrModifyDeliverySchedule"},"Description":{"type":"string","maxLength":500,"description":"A description of the charge.\n"},"DiscountLevel":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeDiscountLevel","description":"Specifies if the discount applies to just the product rate plan, the entire subscription, or to any activity in the account.\n"},"DrawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). See [Fields related to Prepaid with Drawdown](https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/ProductRatePlanCharge#Fields_related_to_Prepaid_with_Drawdown) for more information.\n"},"DrawdownUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nUnit of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). \n"},"EndDateCondition":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeEndDateCondition","default":"SubscriptionEnd","description":"Defines when the charge ends after the charge trigger date.\n\n**Values**: \n  - `SubscriptionEnd`: The charge ends on the subscription end date after a specified period based on the trigger date of the charge.  \n  - `FixedPeriod`: The charge ends after a specified period based on the trigger date of the charge. If you set this field to `FixedPeriod`, you must specify the length of the period and a period type by defining the `UpToPeriods` and `UpToPeriodsType` fields. \n\n  \n**Note**: If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.\n"},"ExcludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Notes**: \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `115` or later. Otherwise, an error occurs.\n  - This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"ExcludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Notes**: \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `115` or later. Otherwise, an error occurs.\n  - This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"IncludedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units.\n\n**Character limit**: 16\n\n**Values**: a positive decimal value\n"},"IsAllocationEligible":{"type":"boolean","description":"Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `False`.\n\n**Values**: `True`, `False`\n\n**Notes**: \n  - The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later. \n"},"IsPrepaid":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nIndicates whether this charge is a prepayment (topup) charge or a drawdown charge. \n\n**Values**: `true` or `false`.\n"},"IsRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nThe value is either \"True\" or \"False\". It determines whether the rollover fields are needed.\n"},"IsStackedDiscount":{"type":"boolean","description":"**Note**: This field is only applicable to the Discount - Percentage charge model.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.\n\nThis field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:\n  - `True`: This is a stacked discount, which should be calculated by stacking with other discounts.\n  - `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.\n\nFor more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).\n"},"IsUnbilled":{"type":"boolean","description":"Specifies how to perform the accounting during revenue recognition. The default value is `False`.\n\n**Values**: `True`, `False`\n\n**Notes**: \n  - The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.    \n"},"LegacyRevenueReporting":{"type":"boolean"},"ListPriceBase":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeListPriceBase","description":"The list price base for the product rate plan charge.\n\n**Note**: If the `ListBasePrice` field is not set in the request, the system will use the `BillingPeriod` value as the default value.\n"},"MaxQuantity":{"type":"number","format":"double","description":"Specifies the maximum number of units for this charge. Use this field and the `MinQuantity` field to create a range of units allowed in a product rate plan charge.\n\n**Character limit**: 16\n\n**Values**: a positive decimal value\n"},"MinQuantity":{"type":"number","format":"double","description":"Specifies the minimum number of units for this charge. Use this field and the `MaxQuantity` field to create a range of units allowed in a product rate plan charge.\n\n**Character limit**: 16\n\n**Values**: a positive decimal value\n"},"Name":{"type":"string","maxLength":100,"description":"The name of the product rate plan charge.\n"},"NumberOfPeriod":{"type":"integer","format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model. The valid value is a positive whole number.\n"},"OverageCalculationOption":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeOverageCalculationOption","description":"Determines when to calculate overage charges. If the value of the SmoothingMode field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n"},"OverageUnusedUnitsCreditOption":{"oneOf":[{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeOverageUnusedUnitsCreditOption"},{"type":"null"}],"description":"Determines whether to credit the customer with unused units of usage.\n"},"PrepaidOperationType":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargePrepaidOperationType","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe type of this charge. It is either a prepayment (topup) charge or a drawdown charge. \n"},"PrepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number.\n"},"PrepaidTotalQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe total amount of units that end customers can use during a validity period when they subscribe to a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"PrepaidUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nUnit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"PriceChangeOption":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargePriceChangeOption","default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"PriceIncreaseOption":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargePriceIncreaseOption","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"PriceIncreasePercentage":{"type":["number","null"],"format":"double","description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the value to `SpecificPercentageValue`.\n\n**Character limit**: 16\n\n**Values**: a decimal value between -100 and 100\n"},"ProductCategory":{"type":"string","description":"This field is used to maintain the product category for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later. \n"},"ProductClass":{"type":"string","description":"This field is used to maintain the product class for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later. \n"},"ProductFamily":{"type":"string","description":"This field is used to maintain the product family for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later. \n"},"ProductLine":{"type":"string","description":"This field is used to maintain the product line for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.         \n"},"ReflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `ReflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `ReflectDiscountInNetAmount` field to `true`, you must also set both the `ExcludeItemBookingFromRevenueAccounting` and `ExcludeItemBillingFromRevenueAccounting` fields to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `ReflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration does not support discounts on the preceding charges.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `ReflectDiscountInNetAmount` field to `true`.\n"},"RevenueRecognitionTiming":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"RevenueAmortizationMethod":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"ProductRatePlanChargeNumber":{"type":"string","maxLength":100,"description":"The natural key of the product rate plan charge.\n\n**Values**:\n\n  - leave null for automatically generated string\n  - an alphanumeric string of 100 characters or fewer\n\n**Note**: This field is only available if you set the `X-Zuora-WSDL-Version` request header to `133` or later.\n"},"ProductRatePlanChargeTierData":{"$ref":"#/components/schemas/ProxyCreateOrModifyProductRatePlanChargeTierData"},"ProductRatePlanId":{"type":"string","maxLength":32,"description":"The ID of the product rate plan associated with this product rate plan charge.\n"},"ProrationOption":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeProrationOption","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `135` or higher. Otherwise, an error occurs.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n"},"RatingGroup":{"oneOf":[{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeRatingGroup"},{"type":"null"}],"default":"ByBillingPeriod","description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:                \n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period. \n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Notes:** \n  - The `ByBillingPeriod` value can be applied for all charge models. \n  - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n  - The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n  - Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n"},"RecognizedRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the recognized revenue account for this charge.\n  - Required when the Allow Blank Accounting Code setting is No.\n  - Optional when the Allow Blank Accounting Code setting is Yes.\n\n  This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"RevRecCode":{"type":["string","null"],"maxLength":70,"description":"Associates this product rate plan charge with a specific revenue recognition code.\n"},"RevRecTriggerCondition":{"oneOf":[{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeRevRecTriggerCondition"},{"type":"null"}],"description":"Specifies when revenue recognition begins.\n"},"RevenueRecognitionRuleName":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeRevenueRecognitionRuleName","description":"Determines when to recognize the revenue for this charge.\n"},"RolloverApply":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"RolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"SmoothingModel":{"oneOf":[{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeSmoothingModel"},{"type":"null"}],"description":"Specifies the smoothing model for an overage smoothing charge model.\n"},"SpecificBillingPeriod":{"type":["integer","null"],"format":"int64","description":"Customizes the number of months or weeks for the charges billing period. This field is required if you set the value of the BillingPeriod field to `Specific Months` or `Specific Weeks`.\nThe valid value is a positive integer.\n"},"SpecificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":120,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `ListPriceBase` field to `Per Specific Months`. The value must be a positive integer between **1** and **120** inclusive.\n\n**Notes**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `129` or later. Otherwise, an error occurs.\n  - The value of this field is `null` if you do not set the value of the `ListPriceBase` field to `Per Specific Months`.\n"},"TaxCode":{"type":"string","maxLength":64,"description":"Specifies the tax code for taxation rules. Required when the Taxable field is set to `True`.\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n"},"TaxMode":{"oneOf":[{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeTaxMode"},{"type":"null"}],"description":"Determines how to define taxation for the charge. Required when the Taxable field is set to `True`.\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n"},"Taxable":{"type":"boolean","description":"Determines whether the charge is taxable. When set to `True`, the TaxMode and TaxCode fields are required when creating or updating th ProductRatePlanCharge object.\n\n**Character limit**: 5\n\n**Values**: `True`, `False`\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n"},"TriggerEvent":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeTriggerEvent","description":"Specifies when to start billing the customer for the charge.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n"},"UOM":{"type":["string","null"],"maxLength":25,"description":"Specifies a configured unit to measure usage. \n\n**Note**: You must specify this field when creating the following charge models:\n  - Per Unit Pricing\n  - Volume Pricing\n  - Overage Pricing\n  - Tiered Pricing\n  - Tiered with Overage Pricing\n"},"UpToPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.\n\n**Character limit**: 5\n\n**Values**: a whole number between 0 and 65535, exclusive\n\n**Notes**:\n  - You must use this field together with the `UpToPeriodsType` field to specify the time period. This field is applicable only when the `EndDateCondition` field is set to `FixedPeriod`. \n  - If the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge end date will change accordingly up to the original period end.\n"},"UpToPeriodsType":{"oneOf":[{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeUpToPeriodsType"},{"type":"null"}],"default":"Billing Periods","description":"The period type used to define when the charge ends.\n\n**Notes**: \n - You must use this field together with the `UpToPeriods` field to specify the time period.\n - This field is applicable only when the `EndDateCondition` field is set to `FixedPeriod`. \n"},"UsageRecordRatingOption":{"oneOf":[{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeUsageRecordRatingOption"},{"type":"null"}],"default":"EndOfBillingPeriod","description":"Determines how Zuora processes usage records for per-unit usage charges. \n"},"UseDiscountSpecificAccountingCode":{"type":["boolean","null"],"description":"Determines whether to define a new accounting code for the new discount charge.\n\n**Character limit**: 5\n\n**Values**: `True`, `False`\n"},"UseTenantDefaultForPriceChange":{"type":"boolean","description":"Applies the tenant-level percentage uplift value for an automatic price change to a termed subscription's renewal. \n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n"},"ValidityPeriodType":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeValidityPeriodType","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"WeeklyBillCycleDay":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeWeeklyBillCycleDay","description":"Specifies which day of the week as the bill cycle day (BCD) for the charge.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"ApplyToBillingPeriodPartially":{"type":"boolean","description":"Allow the discount duration to be aligned with the billing period partially.\n\n**Note**: You must enable the [Enhanced Discount](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"RolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request\nheader to 137 or higher. Otherwise, an error occurs.\n\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"Formula":{"type":"string","description":"The price lookup formula defined for the product rate plan charge, which is used to identify the correct and relevant charge definition based on the context.\n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute-based_pricing/Price_lookup_in_Attribute-based_Pricing\"  target=\"_blank\">Price lookup in Attribute-based Pricing</a>.\n\n**Notes**: \n  - This field is available only if the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute-based_pricing\" target=\"_blank\">Attribute-based Pricing</a> feature is enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 138 or higher.\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Class associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"DeferredRevAccount__NS":{"type":"string","maxLength":255,"description":"Deferrred revenue account associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Department associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IncludeChildren__NS":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeIncludeChildrenNs","description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product rate plan charge's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeItemTypeNs","description":"Type of item that is created in NetSuite for the product rate plan charge. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Location associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RecognizedRevAccount__NS":{"type":"string","maxLength":255,"description":"Recognized revenue account associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecEnd__NS":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeRevRecEndNs","description":"End date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecStart__NS":{"$ref":"#/components/schemas/ProxyCreateProductRatePlanChargeRevRecStartNs","description":"Start date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecTemplateType__NS":{"type":"string","maxLength":255,"description":"Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Subsidiary associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product rate plan charge was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["BillCycleType","BillingPeriod","ChargeModel","ChargeType","Name","ProductRatePlanChargeTierData","ProductRatePlanId","TriggerEvent","UseDiscountSpecificAccountingCode"],"description":"Container for custom fields of a Product Rate Plan Charge object.\n","title":"ProxyCreateProductRatePlanCharge"},"ProxyGetProductRatePlanChargeApplyDiscountTo":{"type":"string","enum":["ONETIME (1)","RECURRING (2)","USAGE (4)","ONETIMERECURRING (3)","ONETIMEUSAGE (5)","RECURRINGUSAGE (6)","ONETIMERECURRINGUSAGE (7)"],"description":"Specifies the type of charges that you want a specific discount to apply to. All field values are case sensitive and in all-caps.\n","title":"ProxyGetProductRatePlanChargeApplyDiscountTo"},"ProxyGetProductRatePlanChargeBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek","TermStartDay","TermEndDay"],"description":"Specifies how to determine the billing day for the charge.               \n","title":"ProxyGetProductRatePlanChargeBillCycleType"},"ProxyGetProductRatePlanChargeBillingPeriod":{"type":"string","enum":["Month","Quarter","Annual","Semi-Annual","Specific Months","Subscription Term","Week","Specific Weeks","Specific Days"],"description":"The billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).\n","title":"ProxyGetProductRatePlanChargeBillingPeriod"},"ProxyGetProductRatePlanChargeBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart","AlignToTermEnd"],"description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n","title":"ProxyGetProductRatePlanChargeBillingPeriodAlignment"},"ProxyGetProductRatePlanChargeBillingTiming":{"type":"string","enum":["In Advance","In Arrears"],"description":"The billing timing for the charge. You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n","title":"ProxyGetProductRatePlanChargeBillingTiming"},"ProxyGetProductRatePlanChargeChargeFunction":{"type":"string","enum":["Standard","Prepayment","CommitmentTrueUp","Drawdown","CreditCommitment","DrawdownAndCreditCommitment"],"description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"ProxyGetProductRatePlanChargeChargeFunction"},"ProxyGetProductRatePlanChargeCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"ProxyGetProductRatePlanChargeCommitmentType"},"ProxyGetProductRatePlanChargeChargeModel":{"type":"string","enum":["Discount-Fixed Amount","Discount-Percentage","Flat Fee Pricing","Per Unit Pricing","Overage Pricing","Tiered Pricing","Tiered with Overage Pricing","Volume Pricing","Delivery Pricing","MultiAttributePricing","PreratedPerUnit","PreratedPricing`","HighWatermarkVolumePricing","HighWatermarkTieredPricing"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n","title":"ProxyGetProductRatePlanChargeChargeModel"},"ProxyGetProductRatePlanChargeChargeType":{"type":"string","enum":["OneTime","Recurring","Usage"],"description":"Specifies the type of charge.\n","title":"ProxyGetProductRatePlanChargeChargeType"},"ProxyGetProductRatePlanChargeDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"Specifies if the discount applies to just the product rate plan, the entire subscription, or to any activity in the account.\n","title":"ProxyGetProductRatePlanChargeDiscountLevel"},"ProxyGetProductRatePlanChargeEndDateCondition":{"type":"string","enum":["SubscriptionEnd","FixedPeriod"],"default":"SubscriptionEnd","description":"Defines when the charge ends after the charge trigger date.\n\n**Values**: \n  - `SubscriptionEnd`: The charge ends on the subscription end date after a specified period based on the trigger date of the charge. \n  - `FixedPeriod`: The charge ends after a specified period based on the trigger date of the charge. If you set this field to `FixedPeriod`, you must specify the length of the period and a period type by defining the `UpToPeriods` and `UpToPeriodsType` fields. \n\n  **Note**: If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.\n","title":"ProxyGetProductRatePlanChargeEndDateCondition"},"ProxyGetProductRatePlanChargeListPriceBase":{"type":"string","enum":["Per Billing Period","Per Month","Per Week","Per Year","Per Specific Months"],"description":"The list price base for the product rate plan charge.\n","title":"ProxyGetProductRatePlanChargeListPriceBase"},"ProxyGetProductRatePlanChargeOverageCalculationOption":{"type":"string","enum":["EndOfSmoothingPeriod","PerBillingPeriod"],"description":"Determines when to calculate overage charges. If the value of the SmoothingMode field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n","title":"ProxyGetProductRatePlanChargeOverageCalculationOption"},"ProxyGetProductRatePlanChargeOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Determines whether to credit the customer with unused units of usage.\n","title":"ProxyGetProductRatePlanChargeOverageUnusedUnitsCreditOption"},"ProxyGetProductRatePlanChargePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"ProxyGetProductRatePlanChargePriceChangeOption"},"ProxyGetProductRatePlanChargeProrationOption":{"type":"string","enum":["NoProration","TimeBasedProration","DefaultFromTenantSetting","ChargeFullPeriod"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `135` or higher. Otherwise, an error occurs.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n","title":"ProxyGetProductRatePlanChargeProrationOption"},"ProxyGetProductRatePlanChargeRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload","ByGroupId"],"description":"A rating group based on which usage records are rated. Only applicable to Usage charges.\n\nPossible values:\n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period.\n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\nFor more information, see [Usage rating by group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group).\n","title":"ProxyGetProductRatePlanChargeRatingGroup"},"ProxyGetProductRatePlanChargeRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"Specifies when revenue recognition begins.\n","title":"ProxyGetProductRatePlanChargeRevRecTriggerCondition"},"ProxyGetProductRatePlanChargeRevenueRecognitionRuleName":{"type":"string","enum":["Recognize upon invoicing","Recognize daily over time"],"description":"Determines when to recognize the revenue for this charge.\n","title":"ProxyGetProductRatePlanChargeRevenueRecognitionRuleName"},"ProxyGetProductRatePlanChargeSmoothingModel":{"type":"string","enum":["RollingWindow","Rollover"],"description":"Specifies the smoothing model for an overage smoothing charge model.\n","title":"ProxyGetProductRatePlanChargeSmoothingModel"},"ProxyGetProductRatePlanChargeTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Determines how to define taxation for the charge. Required when the Taxable field is set to `True`.\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n","title":"ProxyGetProductRatePlanChargeTaxMode"},"ProxyGetProductRatePlanChargeTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance"],"description":"Specifies when to start billing the customer for the charge.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n","title":"ProxyGetProductRatePlanChargeTriggerEvent"},"ProxyGetProductRatePlanChargeUpToPeriodsType":{"type":"string","enum":["Billing Periods","Days","Weeks","Months","Years"],"default":"Billing Periods","description":"The period type used to define when the charge ends.\n\n**Notes**: \n - You must use this field together with the `UpToPeriods` field to specify the time period.\n - This field is applicable only when the `EndDateCondition` field is set to `FixedPeriod`. \n","title":"ProxyGetProductRatePlanChargeUpToPeriodsType"},"ProxyGetProductRatePlanChargeWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Specifies which day of the week as the bill cycle day (BCD) for the charge.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n","title":"ProxyGetProductRatePlanChargeWeeklyBillCycleDay"},"ProxyGetProductRatePlanChargeRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"ProxyGetProductRatePlanChargeRevenueRecognitionTiming"},"ProxyGetProductRatePlanChargeRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"ProxyGetProductRatePlanChargeRevenueAmortizationMethod"},"ProxyGetProductRatePlanChargeIncludeChildrenNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyGetProductRatePlanChargeIncludeChildrenNs"},"ProxyGetProductRatePlanChargeItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product rate plan charge. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyGetProductRatePlanChargeItemTypeNs"},"ProxyGetProductRatePlanChargeRevRecEndNs":{"type":"string","enum":["Charge Period Start","Rev Rec Trigger Date","Use NetSuite Rev Rec Template"],"description":"End date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyGetProductRatePlanChargeRevRecEndNs"},"ProxyGetProductRatePlanChargeRevRecStartNs":{"type":"string","enum":["Charge Period Start","Rev Rec Trigger Date","Use NetSuite Rev Rec Template"],"description":"Start date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyGetProductRatePlanChargeRevRecStartNs"},"ProxyGetProductRatePlanCharge":{"type":"object","properties":{"AccountingCode":{"type":"string","maxLength":100,"description":"The accounting code for the charge. Accounting codes group transactions that contain similar accounting attributes.\n"},"ApplyDiscountTo":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeApplyDiscountTo","description":"Specifies the type of charges that you want a specific discount to apply to. All field values are case sensitive and in all-caps.\n"},"BillCycleDay":{"type":"integer","description":"Sets the bill cycle day (BCD) for the charge. The BCD determines which day of the month customer is billed. The BCD value in the account can override the BCD in this object.\n\n**Character limit**: 2\n\n**Values**: a valid BCD integer, 1 - 31\n"},"BillCycleType":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeBillCycleType","description":"Specifies how to determine the billing day for the charge.               \n"},"BillingPeriod":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeBillingPeriod","description":"The billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).\n"},"BillingPeriodAlignment":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeBillingPeriodAlignment","description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n"},"BillingTiming":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeBillingTiming","description":"The billing timing for the charge. You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"ChargeFunction":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeChargeFunction","description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"CommitmentType":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeCommitmentType","description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n  \nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"ChargeModel":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeChargeModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n"},"ChargeType":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeChargeType","description":"Specifies the type of charge.\n"},"CreatedById":{"type":"string","maxLength":32,"description":"The automatically generated ID of the Zuora user who created the `ProductRatePlanCharge` object.\n"},"CreatedDate":{"type":"string","format":"date-time","description":"The date when the `ProductRatePlanCharge` object was created.\n"},"DefaultQuantity":{"type":"number","format":"double","description":"The default quantity of units, such as the number of authors in a hosted wiki service. This field is required if you use a per-unit pricing model.\n\n**Character limit**: 16\n\n**Values**: a valid quantity value.\n\n**Note**: When `ChargeModel` is `Tiered Pricing` or `Volume Pricing`, if this field is not specified, the value will default to `0`.\n"},"DeferredRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the deferred revenue account for this charge.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"Description":{"type":"string","maxLength":500,"description":"A description of the charge.\n"},"DiscountLevel":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeDiscountLevel","description":"Specifies if the discount applies to just the product rate plan, the entire subscription, or to any activity in the account.\n"},"EndDateCondition":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeEndDateCondition","default":"SubscriptionEnd","description":"Defines when the charge ends after the charge trigger date.\n\n**Values**: \n  - `SubscriptionEnd`: The charge ends on the subscription end date after a specified period based on the trigger date of the charge. \n  - `FixedPeriod`: The charge ends after a specified period based on the trigger date of the charge. If you set this field to `FixedPeriod`, you must specify the length of the period and a period type by defining the `UpToPeriods` and `UpToPeriodsType` fields. \n\n  **Note**: If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.\n"},"ExcludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Notes**: \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `115` or later. Otherwise, an error occurs.\n  - This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"ExcludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"The flag to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Notes**: \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `115` or later. Otherwise, an error occurs.\n  - This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"Id":{"type":"string","description":"Object identifier."},"IncludedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units.\n\n**Character limit**: 16\n\n**Values**: a positive decimal value\n"},"LegacyRevenueReporting":{"type":"boolean"},"ListPriceBase":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeListPriceBase","description":"The list price base for the product rate plan charge.\n"},"MaxQuantity":{"type":"number","format":"double","description":"Specifies the maximum number of units for this charge. Use this field and the `MinQuantity` field to create a range of units allowed in a product rate plan charge.\n\n**Character limit**: 16\n\n**Values**: a positive decimal value\n"},"MinQuantity":{"type":"number","format":"double","description":"Specifies the minimum number of units for this charge. Use this field and the `MaxQuantity` field to create a range of units allowed in a product rate plan charge.\n\n**Character limit**: 16\n\n**Values**: a positive decimal value\n"},"Name":{"type":"string","maxLength":100,"description":"The name of the product rate plan charge.\n"},"NumberOfPeriod":{"type":"integer","format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model. The valid value is a positive whole number.\n"},"OverageCalculationOption":{"oneOf":[{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeOverageCalculationOption"},{"type":"null"}],"description":"Determines when to calculate overage charges. If the value of the SmoothingMode field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n"},"OverageUnusedUnitsCreditOption":{"oneOf":[{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeOverageUnusedUnitsCreditOption"},{"type":"null"}],"description":"Determines whether to credit the customer with unused units of usage.\n"},"PriceChangeOption":{"oneOf":[{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargePriceChangeOption"},{"type":"null"}],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"PriceIncreasePercentage":{"type":["number","null"],"format":"double","description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the value to `SpecificPercentageValue`.\n\n**Character limit**: 16\n\n**Values**: a decimal value between -100 and 100\n"},"ProductRatePlanId":{"type":"string","maxLength":32,"description":"The ID of the product rate plan associated with this product rate plan charge.\n"},"ProrationOption":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeProrationOption","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `135` or higher. Otherwise, an error occurs.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n"},"RatingGroup":{"oneOf":[{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeRatingGroup"},{"type":"null"}],"description":"A rating group based on which usage records are rated. Only applicable to Usage charges.\n\nPossible values:\n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period.\n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\nFor more information, see [Usage rating by group](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Usage/Usage_Rating_by_Group).\n"},"RecognizedRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the recognized revenue account for this charge.\n  - Required when the Allow Blank Accounting Code setting is No.\n  - Optional when the Allow Blank Accounting Code setting is Yes.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"RevRecCode":{"type":["string","null"],"maxLength":70,"description":"Associates this product rate plan charge with a specific revenue recognition code.\n"},"RevRecTriggerCondition":{"oneOf":[{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeRevRecTriggerCondition"},{"type":"null"}],"description":"Specifies when revenue recognition begins.\n"},"RevenueRecognitionRuleName":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeRevenueRecognitionRuleName","description":"Determines when to recognize the revenue for this charge.\n"},"SmoothingModel":{"oneOf":[{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeSmoothingModel"},{"type":"null"}],"description":"Specifies the smoothing model for an overage smoothing charge model.\n"},"SpecificBillingPeriod":{"type":["integer","null"],"format":"int64","description":"Customizes the number of months or weeks for the charges billing period. This field is required if you set the value of the BillingPeriod field to `Specific Months` or `Specific Weeks`.\nThe valid value is a positive integer.\n"},"SpecificListPriceBase":{"type":["integer","null"],"description":"The number of months for the list price base of the charge. The value of this field is `null` if you do not set the value of the `ListPriceBase` field to `Per Specific Months`.\n\n**Notes**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `129` or later. Otherwise, an error occurs.\n  - The value of this field is `null` if you do not set the value of the `ListPriceBase` field to `Per Specific Months`.\n"},"TaxCode":{"type":"string","maxLength":64,"description":"Specifies the tax code for taxation rules. Required when the Taxable field is set to `True`.\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n"},"TaxMode":{"oneOf":[{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeTaxMode"},{"type":"null"}],"description":"Determines how to define taxation for the charge. Required when the Taxable field is set to `True`.\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n"},"Taxable":{"type":"boolean","description":"Determines whether the charge is taxable. When set to `True`, the TaxMode and TaxCode fields are required when creating or updating th ProductRatePlanCharge object.\n\n**Character limit**: 5\n\n**Values**: `True`, `False`\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n"},"TriggerEvent":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeTriggerEvent","description":"Specifies when to start billing the customer for the charge.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n"},"UOM":{"type":["string","null"],"maxLength":25,"description":"Specifies the units to measure usage. \n\n**Note**: You must specify this field when creating the following charge models:\n  - Per Unit Pricing\n  - Volume Pricin\n  - Overage Pricing\n  - Tiered Pricing\n  - Tiered with Overage Pricing\n"},"UpToPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.\n\n**Character limit**: 5\n\n**Values**: a whole number between 0 and 65535, exclusive\n\n**Notes**:\n  - You must use this field together with the `UpToPeriodsType` field to specify the time period. This field is applicable only when the `EndDateCondition` field is set to `FixedPeriod`. \n  - If the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge end date will change accordingly up to the original period end.\n"},"UpToPeriodsType":{"oneOf":[{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeUpToPeriodsType"},{"type":"null"}],"default":"Billing Periods","description":"The period type used to define when the charge ends.\n\n**Notes**: \n - You must use this field together with the `UpToPeriods` field to specify the time period.\n - This field is applicable only when the `EndDateCondition` field is set to `FixedPeriod`. \n"},"UpdatedById":{"type":"string","maxLength":32,"description":"The ID of the last user to update the object.\n"},"UpdatedDate":{"type":"string","format":"date-time","description":"The date when the object was last updated.\n"},"UseDiscountSpecificAccountingCode":{"type":["boolean","null"],"description":"Determines whether to define a new accounting code for the new discount charge.\n\n**Character limit**: 5\n\n**Values**: `True`, `False`\n"},"UseTenantDefaultForPriceChange":{"type":"boolean","description":"Applies the tenant-level percentage uplift value for an automatic price change to a termed subscription's renewal. \n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n"},"WeeklyBillCycleDay":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeWeeklyBillCycleDay","description":"Specifies which day of the week as the bill cycle day (BCD) for the charge.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"IsAllocationEligible":{"type":"boolean","description":"Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `False`.\n\n**Values**: `True`, `False`\n\n**Notes**: \n  - The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.\n"},"IsUnbilled":{"type":"boolean","description":"Specifies how to perform the accounting during revenue recognition. The default value is `False`.\n\n**Values**: `True`, `False`\n\n**Notes**: \n  - The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.   \n"},"ProductCategory":{"type":"string","description":"This field is used to maintain the product category for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.\n"},"ProductClass":{"type":"string","description":"This field is used to maintain the product class for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled. \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.   \n"},"ProductFamily":{"type":"string","description":"This field is used to maintain the product family for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.\n"},"ProductLine":{"type":"string","description":"This field is used to maintain the product line for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled. \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.           \n"},"ReflectDiscountInNetAmount":{"type":"boolean","default":false,"description":"When you apply percentage discounts to either of the following charges, you need to set the `ReflectDiscountInNetAmount` field on your discount charge to `true`, to enable calculating and displaying the net amount of the following charges in Zuora Revenue.\n* delivery pricing charge\n* prepayment charge\n* drawdown charge\n\nNote the following:\n* If you are an <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> customer, when you set the `ReflectDiscountInNetAmount` field to `true`, you must also set both the `ExcludeItemBookingFromRevenueAccounting` and `ExcludeItemBillingFromRevenueAccounting` fields to `true`. \n* If you are a <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> customer, you must set the `ReflectDiscountInNetAmount` field to `false`, otherwise an error will be returned. Billing - Revenue Integration customers are not supported with net amount.\n* If you are a Zuora Billing customer who does not enable the Order to Revenue or Billing - Revenue Integration feature, when you apply percentage discounts to the preceding charges, you also need to set the `ReflectDiscountInNetAmount` field to `true`.\n"},"RevenueRecognitionTiming":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"RevenueAmortizationMethod":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"ApplyToBillingPeriodPartially":{"type":"boolean","description":"Allow the discount duration to be aligned with the billing period partially.\n\n**Note**: You must enable the [Enhanced Discount](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"Formula":{"type":"string","description":"The price lookup formula defined for the product rate plan charge, which is used to identify\nthe correct and relevant charge definition based on the context.\n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute-based_pricing/Price_lookup_in_Attribute-based_Pricing\"  target=\"_blank\">Price lookup in Attribute-based Pricing</a>.\n\n\n**Notes**: \n  - This field is available only if the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute-based_pricing\" target=\"_blank\">Attribute-based Pricing</a> feature is enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 138 or higher.\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Class associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"DeferredRevAccount__NS":{"type":"string","maxLength":255,"description":"Deferrred revenue account associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Department associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IncludeChildren__NS":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeIncludeChildrenNs","description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product rate plan charge's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeItemTypeNs","description":"Type of item that is created in NetSuite for the product rate plan charge. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Location associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RecognizedRevAccount__NS":{"type":"string","maxLength":255,"description":"Recognized revenue account associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecEnd__NS":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeRevRecEndNs","description":"End date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecStart__NS":{"$ref":"#/components/schemas/ProxyGetProductRatePlanChargeRevRecStartNs","description":"Start date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecTemplateType__NS":{"type":"string","maxLength":255,"description":"Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Subsidiary associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product rate plan charge was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"description":"Container for custom fields of a Product Rate Plan Charge object.\n","title":"ProxyGetProductRatePlanCharge"},"ProxyModifyProductRatePlanChargeApplyDiscountTo":{"type":"string","enum":["ONETIME (1)","RECURRING (2)","USAGE (4)","ONETIMERECURRING (3)","ONETIMEUSAGE (5)","RECURRINGUSAGE (6)","ONETIMERECURRINGUSAGE (7)"],"description":"Specifies the type of charges that you want a specific discount to apply to. All field values are case sensitive and in all-caps.\n","title":"ProxyModifyProductRatePlanChargeApplyDiscountTo"},"ProxyModifyProductRatePlanChargeBillCycleType":{"type":"string","enum":["DefaultFromCustomer","SpecificDayofMonth","SubscriptionStartDay","ChargeTriggerDay","SpecificDayofWeek","TermStartDay","TermEndDay"],"description":"Specifies how to determine the billing day for the charge.\n\n**Notes**:\n  - If you set this field to `SpecificDayofMonth`, you must specify which day of the month as the billing day for the charge in the BillCycleDay field. \n  - If you set this field to `SpecificDayofWeek`, you must specify which day of the week as the billing day for the charge in the WeeklyBillCycleDay field. \n  - By default, `TermStartDay` and `TermEndDay` are only available for prepayment charges. But you can reach out to Zuora Global Support to request enabling it for non-prepaid recurring charges. Meanwhile, note the following rules applies to these options:\n    - The Term End Day option of the Billing Day field must be coupled with the Align to Term End option of the Billing Period Alignment field.\n    - For prepaid charges, the Term Start Day option of the Billing Day field must be coupled with the existing Align to Term Start option of the Billing Period Alignment field.\n    - For non-prepaid recurring charges: If Billing Day is set to Term Start Day, Billing Period Alignment must be Align to Term Start; If Billing Day is set to Term End Day, Billing Period Alignment can be set to other values.\n","title":"ProxyModifyProductRatePlanChargeBillCycleType"},"ProxyModifyProductRatePlanChargeBillingPeriod":{"type":"string","enum":["Month","Quarter","Annual","Semi-Annual","Specific Months","Subscription Term","Week","Specific Weeks","Specific Days"],"description":"The billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).\n\n**Notes**:\n  - Specify the number of months or weeks in the SpecificBillingPeriod field if you set this field to `Specific Months` or `Specific Weeks`.\n  - The `Subscription Term` value is in **Limited Availability**.\n","title":"ProxyModifyProductRatePlanChargeBillingPeriod"},"ProxyModifyProductRatePlanChargeBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart","AlignToTermEnd"],"description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n\n**Note:** The `AlignToTermEnd` value is only available for prepayment charges by default. Reach out to Zuora Global Support to enable it for non-prepaid recurring charges.\n","title":"ProxyModifyProductRatePlanChargeBillingPeriodAlignment"},"ProxyModifyProductRatePlanChargeBillingTiming":{"type":"string","enum":["In Advance","In Arrears"],"description":"The billing timing for the charge. You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n","title":"ProxyModifyProductRatePlanChargeBillingTiming"},"ProxyModifyProductRatePlanChargeChargeFunction":{"type":"string","enum":["Standard","Prepayment","CommitmentTrueUp","Drawdown","CreditCommitment","DrawdownAndCreditCommitment"],"description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n","title":"ProxyModifyProductRatePlanChargeChargeFunction"},"ProxyModifyProductRatePlanChargeCommitmentType":{"type":"string","enum":["UNIT","CURRENCY"],"description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n\nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n","title":"ProxyModifyProductRatePlanChargeCommitmentType"},"ProxyModifyProductRatePlanChargeChargeModel":{"type":"string","enum":["Discount-Fixed Amount","Discount-Percentage","Flat Fee Pricing","Per Unit Pricing","Overage Pricing","Tiered Pricing","Tiered with Overage Pricing","Volume Pricing","Delivery Pricing","MultiAttributePricing","PreratedPerUnit","PreratedPricing`","HighWatermarkVolumePricing","HighWatermarkTieredPricing"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n\n**Notes:**\n  - The `Delivery Pricing` value is available only if you have the Delivery Pricing charge model enabled.\n  - The `MultiAttributePricing` value is available only if you have the Multi-Attribute Pricing charge model enabled. The charge model 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.       \n  - The `PreratedPerUnit` and  value is available only if you have the Pre-rated Per Unit Pricing charge model enabled. The charge model 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.       \n  - The `PreratedPricing` value is available only if you have the Pre-rated Pricing charge model enabled. The charge model 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.     \n  - The `HighWatermarkVolumePricing`value is available only if you have the High Water Mark Volume Pricing charge model enabled. The charge model 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.       \n  - The `HighWatermarkTieredPricing` value is available only if you have the High Water Mark Tiered Pricing charge model enabled. The charge model 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.\n","title":"ProxyModifyProductRatePlanChargeChargeModel"},"ProxyModifyProductRatePlanChargeCreditOption":{"type":"string","enum":["TimeBased","ConsumptionBased","FullCreditBack"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information. \n","title":"ProxyModifyProductRatePlanChargeCreditOption"},"ProxyModifyProductRatePlanChargeDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"Specifies if the discount applies to just the product rate plan, the entire subscription, or to any activity in the account.\n","title":"ProxyModifyProductRatePlanChargeDiscountLevel"},"ProxyModifyProductRatePlanChargeEndDateCondition":{"type":"string","enum":["SubscriptionEnd","FixedPeriod"],"default":"SubscriptionEnd","description":"Defines when the charge ends after the charge trigger date.\n\n**Values**:\n  - `SubscriptionEnd`: The charge ends on the subscription end date after a specified period based on the trigger date of the charge.  \n  - `FixedPeriod`: The charge ends after a specified period based on the trigger date of the charge. If you set this field to `FixedPeriod`, you must specify the length of the period and a period type by defining the `UpToPeriods` and `UpToPeriodsType` fields. \n\n  **Note**: If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.\n","title":"ProxyModifyProductRatePlanChargeEndDateCondition"},"ProxyModifyProductRatePlanChargeListPriceBase":{"type":"string","enum":["Per Billing Period","Per Month","Per Week","Per Year","Per Specific Months"],"description":"The list price base for the product rate plan charge.\n","title":"ProxyModifyProductRatePlanChargeListPriceBase"},"ProxyModifyProductRatePlanChargeOverageCalculationOption":{"type":"string","enum":["EndOfSmoothingPeriod","PerBillingPeriod"],"description":"Determines when to calculate overage charges. If the value of the SmoothingMode field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n","title":"ProxyModifyProductRatePlanChargeOverageCalculationOption"},"ProxyModifyProductRatePlanChargeOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Determines whether to credit the customer with unused units of usage.\n","title":"ProxyModifyProductRatePlanChargeOverageUnusedUnitsCreditOption"},"ProxyModifyProductRatePlanChargePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"ProxyModifyProductRatePlanChargePriceChangeOption"},"ProxyModifyProductRatePlanChargePriceIncreaseOption":{"type":"string","enum":["FromTenantPercentageValue","SpecificPercentageValue"],"description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"ProxyModifyProductRatePlanChargePriceIncreaseOption"},"ProxyModifyProductRatePlanChargeProrationOption":{"type":"string","enum":["NoProration","TimeBasedProration","DefaultFromTenantSetting","ChargeFullPeriod"],"description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to  `135` or higher. Otherwise, an error occurs.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n","title":"ProxyModifyProductRatePlanChargeProrationOption"},"ProxyModifyProductRatePlanChargeRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 140 or higher. Otherwise, an error occurs.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"ProxyModifyProductRatePlanChargeRevenueRecognitionTiming"},"ProxyModifyProductRatePlanChargeRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 140 or higher. Otherwise, an error occurs.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"ProxyModifyProductRatePlanChargeRevenueAmortizationMethod"},"ProxyModifyProductRatePlanChargeRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload","ByGroupId"],"default":"ByBillingPeriod","description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:\n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period. \n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Note:** \n  - The `ByBillingPeriod` value can be applied for all charge models. \n  - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n  - The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n  - Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n","title":"ProxyModifyProductRatePlanChargeRatingGroup"},"ProxyModifyProductRatePlanChargeRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"Specifies when revenue recognition begins.\n","title":"ProxyModifyProductRatePlanChargeRevRecTriggerCondition"},"ProxyModifyProductRatePlanChargeRevenueRecognitionRuleName":{"type":"string","enum":["Recognize upon invoicing","Recognize daily over time"],"description":"Determines when to recognize the revenue for this charge.\n","title":"ProxyModifyProductRatePlanChargeRevenueRecognitionRuleName"},"ProxyModifyProductRatePlanChargeRolloverApply":{"type":"string","enum":["ApplyFirst","ApplyLast"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nThis field defines the priority of rollover, which is either first or last.\n","title":"ProxyModifyProductRatePlanChargeRolloverApply"},"ProxyModifyProductRatePlanChargeSmoothingModel":{"type":"string","enum":["RollingWindow","Rollover"],"description":"Specifies the smoothing model for an overage smoothing charge model.\n","title":"ProxyModifyProductRatePlanChargeSmoothingModel"},"ProxyModifyProductRatePlanChargeTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Determines how to define taxation for the charge. Required when the Taxable field is set to `True`.\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n","title":"ProxyModifyProductRatePlanChargeTaxMode"},"ProxyModifyProductRatePlanChargeTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance"],"description":"Specifies when to start billing the customer for the charge.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n","title":"ProxyModifyProductRatePlanChargeTriggerEvent"},"ProxyModifyProductRatePlanChargeUpToPeriodsType":{"type":"string","enum":["Billing Periods","Days","Weeks","Months","Years"],"default":"Billing Periods","description":"The period type used to define when the charge ends.\n\n**Notes**: \n - You must use this field together with the `UpToPeriods` field to specify the time period.\n - This field is applicable only when the `EndDateCondition` field is set to `FixedPeriod`. \n","title":"ProxyModifyProductRatePlanChargeUpToPeriodsType"},"ProxyModifyProductRatePlanChargeUsageRecordRatingOption":{"type":"string","enum":["EndOfBillingPeriod","OnDemand"],"default":"EndOfBillingPeriod","description":"Determines how Zuora processes usage records for per-unit usage charges. \n","title":"ProxyModifyProductRatePlanChargeUsageRecordRatingOption"},"ProxyModifyProductRatePlanChargeValidityPeriodType":{"type":"string","enum":["SUBSCRIPTION_TERM","ANNUAL","SEMI_ANNUAL","QUARTER","MONTH"],"description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n","title":"ProxyModifyProductRatePlanChargeValidityPeriodType"},"ProxyModifyProductRatePlanChargeWeeklyBillCycleDay":{"type":"string","enum":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"description":"Specifies which day of the week as the bill cycle day (BCD) for the charge.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n","title":"ProxyModifyProductRatePlanChargeWeeklyBillCycleDay"},"ProxyModifyProductRatePlanChargeIncludeChildrenNs":{"type":"string","enum":["Yes","No"],"description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyModifyProductRatePlanChargeIncludeChildrenNs"},"ProxyModifyProductRatePlanChargeItemTypeNs":{"type":"string","enum":["Inventory","Non Inventory","Service"],"description":"Type of item that is created in NetSuite for the product rate plan charge. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyModifyProductRatePlanChargeItemTypeNs"},"ProxyModifyProductRatePlanChargeRevRecEndNs":{"type":"string","enum":["Charge Period Start","Rev Rec Trigger Date","Use NetSuite Rev Rec Template"],"description":"End date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyModifyProductRatePlanChargeRevRecEndNs"},"ProxyModifyProductRatePlanChargeRevRecStartNs":{"type":"string","enum":["Charge Period Start","Rev Rec Trigger Date","Use NetSuite Rev Rec Template"],"description":"Start date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n","title":"ProxyModifyProductRatePlanChargeRevRecStartNs"},"ProxyModifyProductRatePlanCharge":{"type":"object","properties":{"AccountingCode":{"type":"string","maxLength":100,"description":"The accounting code for the charge. Accounting codes group transactions that contain similar accounting attributes.\n"},"ApplyDiscountTo":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeApplyDiscountTo","description":"Specifies the type of charges that you want a specific discount to apply to. All field values are case sensitive and in all-caps.\n"},"BillCycleDay":{"type":"integer","description":"Sets the bill cycle day (BCD) for the charge. The BCD determines which day of the month customer is billed. The BCD value in the account can override the BCD in this object.\n\n**Character limit**: 2 **Values**: a valid BCD integer, 1 - 31\n"},"BillCycleType":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeBillCycleType","description":"Specifies how to determine the billing day for the charge.\n\n**Notes**:\n  - If you set this field to `SpecificDayofMonth`, you must specify which day of the month as the billing day for the charge in the BillCycleDay field. \n  - If you set this field to `SpecificDayofWeek`, you must specify which day of the week as the billing day for the charge in the WeeklyBillCycleDay field. \n  - By default, `TermStartDay` and `TermEndDay` are only available for prepayment charges. But you can reach out to Zuora Global Support to request enabling it for non-prepaid recurring charges. Meanwhile, note the following rules applies to these options:\n    - The Term End Day option of the Billing Day field must be coupled with the Align to Term End option of the Billing Period Alignment field.\n    - For prepaid charges, the Term Start Day option of the Billing Day field must be coupled with the existing Align to Term Start option of the Billing Period Alignment field.\n    - For non-prepaid recurring charges: If Billing Day is set to Term Start Day, Billing Period Alignment must be Align to Term Start; If Billing Day is set to Term End Day, Billing Period Alignment can be set to other values.\n"},"BillingPeriod":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeBillingPeriod","description":"The billing period for the charge. The start day of the billing period is also called the bill cycle day (BCD).\n\n**Notes**:\n  - Specify the number of months or weeks in the SpecificBillingPeriod field if you set this field to `Specific Months` or `Specific Weeks`.\n  - The `Subscription Term` value is in **Limited Availability**.\n"},"BillingPeriodAlignment":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeBillingPeriodAlignment","description":"Aligns charges within the same subscription if multiple charges begin on different dates.\n\n**Note:** The `AlignToTermEnd` value is only available for prepayment charges by default. Reach out to Zuora Global Support to enable it for non-prepaid recurring charges.\n"},"BillingTiming":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeBillingTiming","description":"The billing timing for the charge. You can choose to bill in advance or in arrears for recurring charge types. This field is not used in one-time or usage based charge types.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"ChargeFunction":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeChargeFunction","description":"**Note**: This field is only available if you have the Prepaid with Drawdown or Minimum Commitment feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `141` or higher. Otherwise, an error occurs.\n\nThis field defines what type of charge it is:\n* Standard: Normal charge with no Prepayment or Commitment or Drawdown.\n* Prepayment: For recurring charges. Unit or currency based prepaid charge.\n* CommitmentTrueUp: For recurring charges. Currency based minimum commitment charge.\n* Drawdown: For usage charges. Drawdown from prepaid funds.\n* DrawdownAndCreditCommitment: For usage charges. Drawdown from prepaid funds and then credit to minimum commitment funds.\n* CreditCommitment: For usage charges. Credit to minimum commitment funds.\n"},"CommitmentType":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeCommitmentType","description":"**Note**: This field is only available if you have the <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> feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to `133` or higher. Otherwise, an error occurs. \n\nThis field defines the type of commitment. A prepaid charge can be `UNIT` or `CURRENCY`. A minimum commitment(in-arrears) charge can only be `CURRENCY` type. For topup(recurring or one-time) charges, this field indicates what type of funds are created. \n* If UNIT, it will create a fund with given prepaidUom.\n* If CURRENCY, it will create a fund with the currency amount calculated in list price.\n\nFor drawdown(usage) charges, this field indicates what type of funds are drawdown from that created from topup charges.\n"},"ChargeModel":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeChargeModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n\n**Notes:**\n  - The `Delivery Pricing` value is available only if you have the Delivery Pricing charge model enabled.\n  - The `MultiAttributePricing` value is available only if you have the Multi-Attribute Pricing charge model enabled. The charge model 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.       \n  - The `PreratedPerUnit` and  value is available only if you have the Pre-rated Per Unit Pricing charge model enabled. The charge model 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.       \n  - The `PreratedPricing` value is available only if you have the Pre-rated Pricing charge model enabled. The charge model 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.     \n  - The `HighWatermarkVolumePricing`value is available only if you have the High Water Mark Volume Pricing charge model enabled. The charge model 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.       \n  - The `HighWatermarkTieredPricing` value is available only if you have the High Water Mark Tiered Pricing charge model enabled. The charge model 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.\n"},"ChargeModelConfiguration":{"$ref":"#/components/schemas/ProxyCreateOrModifyProductRatePlanChargeChargeModelConfiguration"},"CreditOption":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeCreditOption","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe way to calculate credit. See [Credit Option](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge#Credit_Option) for more information. \n"},"DefaultQuantity":{"type":"number","format":"double","description":"The default quantity of units, such as the number of authors in a hosted wiki service. This field is required if you use a per-unit pricing model. \n\n**Character limit**: 16\n\n**Values**: a valid quantity value. \n\n**Note:** When the `ChargeModel` field is set to `Tiered Pricing` or `Volume Pricing`, if this field is not specified, the value will default to `0`.\n"},"DeferredRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the deferred revenue account for this charge.\n\n**Note**: `AccountingCode` value is mandatory to update this field. Specify the same accounting code name as given in the `AccountingCode`. \n"},"DeliverySchedule":{"$ref":"#/components/schemas/ProxyCreateOrModifyDeliverySchedule"},"Description":{"type":"string","maxLength":500,"description":"A description of the charge.\n"},"DiscountLevel":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeDiscountLevel","description":"Specifies if the discount applies to just the product rate plan, the entire subscription, or to any activity in the account.\n"},"DrawdownRate":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nThe [conversion rate](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge#UOM_Conversion) between Usage UOM and Drawdown UOM for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). See [Fields related to Prepaid with Drawdown](https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/ProductRatePlanCharge#Fields_related_to_Prepaid_with_Drawdown) for more information.\n"},"DrawdownUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nUnit of measurement for a [drawdown charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_drawdown_charge). \n"},"EndDateCondition":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeEndDateCondition","default":"SubscriptionEnd","description":"Defines when the charge ends after the charge trigger date.\n\n**Values**:\n  - `SubscriptionEnd`: The charge ends on the subscription end date after a specified period based on the trigger date of the charge.  \n  - `FixedPeriod`: The charge ends after a specified period based on the trigger date of the charge. If you set this field to `FixedPeriod`, you must specify the length of the period and a period type by defining the `UpToPeriods` and `UpToPeriodsType` fields. \n\n  **Note**: If the subscription ends before the charge end date, the charge ends when the subscription ends. But if the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge will end on the charge end date.\n"},"ExcludeItemBillingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Notes**: \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `115` or later. Otherwise, an error occurs.\n  - This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"ExcludeItemBookingFromRevenueAccounting":{"type":"boolean","default":false,"description":"The flag to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Notes**: \n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `115` or later. Otherwise, an error occurs.\n  - This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"IncludedUnits":{"type":"number","format":"double","description":"Specifies the number of units in the base set of units.\n\n**Character limit**: 16\n\n**Values**: a positive decimal value\n"},"IsAllocationEligible":{"type":"boolean","description":"Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `False`.\n\n**Values**: `True`, `False`\n\n**Notes**: \n  - The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.\n"},"IsPrepaid":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nIndicates whether this charge is a prepayment (topup) charge or a drawdown charge. \n\n**Values**: `true` or `false`.\n"},"IsRollover":{"type":"boolean","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nThe value is either \"True\" or \"False\". It determines whether the rollover fields are needed.\n"},"IsStackedDiscount":{"type":"boolean","description":"**Note**: This field is only applicable to the Discount - Percentage charge model.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.\n\nThis field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:\n  - `True`: This is a stacked discount, which should be calculated by stacking with other discounts.\n  - `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.\n\nFor more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).      \n"},"IsUnbilled":{"type":"boolean","description":"Specifies how to perform the accounting during revenue recognition. The default value is `False`.\n\n**Values**: `True`, `False`\n\n**Notes**: \n  - The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.\n"},"LegacyRevenueReporting":{"type":"boolean"},"ListPriceBase":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeListPriceBase","description":"The list price base for the product rate plan charge.\n"},"MaxQuantity":{"type":"number","format":"double","description":"Specifies the maximum number of units for this charge. Use this field and the `MinQuantity` field to create a range of units allowed in a product rate plan charge.\n\n**Character limit**: 16\n\n**Values**: a positive decimal value\n"},"MinQuantity":{"type":"number","format":"double","description":"Specifies the minimum number of units for this charge. Use this field and the `MaxQuantity` field to create a range of units allowed in a product rate plan charge.\n\n**Character limit**: 16\n\n**Values**: a positive decimal value\n"},"Name":{"type":"string","maxLength":100,"description":"The name of the product rate plan charge.\n"},"NumberOfPeriod":{"type":"integer","format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model. The valid value must be a positive whole number.\n"},"OverageCalculationOption":{"oneOf":[{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeOverageCalculationOption"},{"type":"null"}],"description":"Determines when to calculate overage charges. If the value of the SmoothingMode field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n"},"OverageUnusedUnitsCreditOption":{"oneOf":[{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeOverageUnusedUnitsCreditOption"},{"type":"null"}],"description":"Determines whether to credit the customer with unused units of usage.\n"},"PrepaidQuantity":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe number of units included in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge). Must be a positive number.\n"},"PrepaidUom":{"type":"string","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nUnit of measurement for a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"PriceChangeOption":{"oneOf":[{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargePriceChangeOption"},{"type":"null"}],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"PriceIncreaseOption":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargePriceIncreaseOption","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"PriceIncreasePercentage":{"type":["number","null"],"format":"double","description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the value to `SpecificPercentageValue`.\n\n**Character limit**: 16\n\n**Values**: a decimal value between -100 and 100\n"},"ProductCategory":{"type":"string","description":"This field is used to maintain the product category for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later. \n"},"ProductClass":{"type":"string","description":"This field is used to maintain the product class for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.\n"},"ProductFamily":{"type":"string","description":"This field is used to maintain the product family for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.\n"},"ProductLine":{"type":"string","description":"This field is used to maintain the product line for integration with Zuora Revenue. \n\n**Notes**: \n  - This field is available only if you have the Additional Revenue Fields property enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 132 or later.              \n"},"ProrationOption":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeProrationOption","description":"**Note**: This field is only available if you have the Charge Level Proration feature enabled. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Unbilled_Usage/Usage_charge_proration\" target=\"_blank\">Usage charge proration</a> and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Set_up_product_catalog/Create_product_rate_plan_charges#Charge_level_proration_option_for_a_recurring_charge\" target=\"_blank\">Charge level proration option for a recurring charge</a>.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to  `135` or higher. Otherwise, an error occurs.\n\nYou can use this field to specify the charge-level proration option for a usage charge or recurring charge. The tenant-level proration option will be overridden.\n  * `NoProration`: charge-level proration option that you can set for a usage charge. This option means to not use any proration, which is the default current system behavior for a usage charge.\n  * `TimeBasedProration`: charge-level proration option that you can set for a usage charge. This option means to prorate the usage charge amount using the actual number of days if the billing period is a partial period.\n  * `DefaultFromTenantSetting`: charge-level proration option that you can set for a recurring charge. This option means to follow the customer billing rule proration setting.\n  * `ChargeFullPeriod`: charge-level proration option that you can set for a recurring charge. This options means to charge the full period amount for a partial billing period. Note that this setting means that there is no proration for either collecting or refunding. Even if you cancel the recurring charge in the middle of a billing period, there is no refund for this billing period.\n"},"RevenueRecognitionTiming":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 140 or higher. Otherwise, an error occurs.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"RevenueAmortizationMethod":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 140 or higher. Otherwise, an error occurs.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"ProductRatePlanChargeNumber":{"type":"string","maxLength":100,"description":"The natural key of the product rate plan charge. \n\nFor existing Product Rate Plan Charge objects that are created before this field is introduced, this field will be null. Use this field to specify a value for only these objects. Zuora also provides a tool to help you automatically backfill this field with tenant ID for your existing product catalog. If you want to use this backfill tool, contact [Zuora Global Support](https://support.zuora.com/).\n\n**Note**: This field is only available if you set the `X-Zuora-WSDL-Version` request header to `133` or later.\n"},"ProductRatePlanChargeTierData":{"$ref":"#/components/schemas/ProxyCreateOrModifyProductRatePlanChargeTierData"},"ProductRatePlanId":{"type":"string","maxLength":32,"description":"The ID of the product rate plan associated with this product rate plan charge.\n"},"RatingGroup":{"oneOf":[{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeRatingGroup"},{"type":"null"}],"default":"ByBillingPeriod","description":"Specifies a rating group based on which usage records are rated.\n\nPossible values:\n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period. \n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Note:** \n  - The `ByBillingPeriod` value can be applied for all charge models. \n  - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for per unit, volume pricing, and tiered pricing charge models. \n  - The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n  - Use this field only for Usage charges. One-Time Charges and Recurring Charges return `NULL`.\n"},"RecognizedRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the recognized revenue account for this charge.\n  - Required when the Allow Blank Accounting Code setting is No.\n  - Optional when the Allow Blank Accounting Code setting is Yes.\n\n  This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"RevRecCode":{"type":["string","null"],"maxLength":70,"description":"Associates this product rate plan charge with a specific revenue recognition code.\n"},"RevRecTriggerCondition":{"oneOf":[{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeRevRecTriggerCondition"},{"type":"null"}],"description":"Specifies when revenue recognition begins.\n"},"RevenueRecognitionRuleName":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeRevenueRecognitionRuleName","description":"Determines when to recognize the revenue for this charge.\n"},"RolloverApply":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeRolloverApply","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nThis field defines the priority of rollover, which is either first or last.\n"},"RolloverPeriods":{"type":"number","format":"double","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs.\n\nThis field defines the number of rollover periods, it is restricted to 3.\n"},"SmoothingModel":{"oneOf":[{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeSmoothingModel"},{"type":"null"}],"description":"Specifies the smoothing model for an overage smoothing charge model.\n"},"SpecificBillingPeriod":{"type":["integer","null"],"format":"int64","description":"Customizes the number of months or weeks for the charges billing period. This field is required if you set the value of the BillingPeriod field to `Specific Months` or `Specific Weeks`.\nThe valid value is a positive integer.\n"},"SpecificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge. This field is required if you set the value of the `ListPriceBase` field to `Per Specific Months`.\n\n**Notes**: \n  - This field is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to `129` or later. Otherwise, an error occurs.\n  - The value of this field is `null` if you do not set the value of the `ListPriceBase` field to `Per Specific Months`.\n"},"TaxCode":{"type":"string","maxLength":64,"description":"Specifies the tax code for taxation rules. Required when the Taxable field is set to `True`.\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n"},"TaxMode":{"oneOf":[{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeTaxMode"},{"type":"null"}],"description":"Determines how to define taxation for the charge. Required when the Taxable field is set to `True`.\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n"},"Taxable":{"type":"boolean","description":"Determines whether the charge is taxable. When set to `True`, the TaxMode and TaxCode fields are required when creating or updating th ProductRatePlanCharge object.\n\n**Character limit**: 5\n\n**Values**: `True`, `False`\n\n**Note**: This value affects the tax calculation of rate plan charges that come from the `ProductRatePlanCharge`.\n"},"TriggerEvent":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeTriggerEvent","description":"Specifies when to start billing the customer for the charge.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n"},"UOM":{"type":["string","null"],"maxLength":25,"description":"Specifies the units to measure usage. \n\n**Note**: You must specify this field when creating the following charge models:\n  - Per Unit Pricing\n  - Volume Pricing\n  - Overage Pricing\n  - Tiered Pricing\n  - Tiered with Overage Pricing\n"},"UpToPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the length of the period during which the charge is active. If this period ends before the subscription ends, the charge ends when this period ends.\n\n**Character limit**: 5\n\n**Values**: a whole number between 0 and 65535, exclusive\n\n**Notes**:\n  - You must use this field together with the `UpToPeriodsType` field to specify the time period. This field is applicable only when the `EndDateCondition` field is set to `FixedPeriod`. \n  - If the subscription end date is subsequently changed through a Renewal, or Terms and Conditions amendment, the charge end date will change accordingly up to the original period end.\n"},"UpToPeriodsType":{"oneOf":[{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeUpToPeriodsType"},{"type":"null"}],"default":"Billing Periods","description":"The period type used to define when the charge ends.\n\n**Notes**: \n - You must use this field together with the `UpToPeriods` field to specify the time period.\n - This field is applicable only when the `EndDateCondition` field is set to `FixedPeriod`. \n"},"UsageRecordRatingOption":{"oneOf":[{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeUsageRecordRatingOption"},{"type":"null"}],"default":"EndOfBillingPeriod","description":"Determines how Zuora processes usage records for per-unit usage charges. \n"},"UseDiscountSpecificAccountingCode":{"type":["boolean","null"],"description":"Determines whether to define a new accounting code for the new discount charge.\n\n**Character limit**: 5\n\n**Values**: `True`, `False`\n"},"UseTenantDefaultForPriceChange":{"type":"boolean","description":"Applies the tenant-level percentage uplift value for an automatic price change to a termed subscription's renewal. \n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n"},"ValidityPeriodType":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeValidityPeriodType","description":"**Note**: This field is only available if you have the [Prepaid with Drawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown) feature enabled.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 114 or higher. Otherwise, an error occurs. \n\nThe period in which the prepayment units are valid to use as defined in a [prepayment charge](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown/Create_prepayment_charge).\n"},"WeeklyBillCycleDay":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeWeeklyBillCycleDay","description":"Specifies which day of the week as the bill cycle day (BCD) for the charge.\n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/). \n"},"ApplyToBillingPeriodPartially":{"type":"boolean","description":"Allow the discount duration to be aligned with the billing period partially.\n\n**Note**: You must enable the [Enhanced Discount](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Basic_concepts_and_terms/B_Charge_Models/D_Manage_Enhanced_Discount) feature to access this field.\n"},"RolloverPeriodLength":{"type":"integer","default":null,"description":"**Note**: This field is only available if you have the [Prepaid with\nDrawdown](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Prepaid_with_Drawdown)\nfeature enabled.\n\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request\nheader to 137 or higher. Otherwise, an error occurs.\n\n\nUse this field when you want to set the rollover fund's period length shorter than the prepayment charge's validity period. In this case, you must set the `rolloverPeriods` field to 1. For example, you can define the rollover fund's period length as 5 months, shorter than the prepayment charge's validity period: a year.\n"},"Formula":{"type":"string","description":"The price lookup formula defined for the product rate plan charge, which is used to identify\nthe correct and relevant charge definition based on the context.\n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute-based_pricing/Price_lookup_in_Attribute-based_Pricing\"  target=\"_blank\">Price lookup in Attribute-based Pricing</a>.\n\n\n**Notes**: \n  - This field is available only if the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute-based_pricing\" target=\"_blank\">Attribute-based Pricing</a> feature is enabled.\n  - To use this field, you must set the `X-Zuora-WSDL-Version` request header to 138 or higher.\n"},"Class__NS":{"type":"string","maxLength":255,"description":"Class associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"DeferredRevAccount__NS":{"type":"string","maxLength":255,"description":"Deferrred revenue account associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Department__NS":{"type":"string","maxLength":255,"description":"Department associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IncludeChildren__NS":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeIncludeChildrenNs","description":"Specifies whether the corresponding item in NetSuite is visible under child subsidiaries. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationId__NS":{"type":"string","maxLength":255,"description":"ID of the corresponding object in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"IntegrationStatus__NS":{"type":"string","maxLength":255,"description":"Status of the product rate plan charge's synchronization with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"ItemType__NS":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeItemTypeNs","description":"Type of item that is created in NetSuite for the product rate plan charge. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Location__NS":{"type":"string","maxLength":255,"description":"Location associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RecognizedRevAccount__NS":{"type":"string","maxLength":255,"description":"Recognized revenue account associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecEnd__NS":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeRevRecEndNs","description":"End date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecStart__NS":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeRevRecStartNs","description":"Start date condition of the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"RevRecTemplateType__NS":{"type":"string","maxLength":255,"description":"Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"Subsidiary__NS":{"type":"string","maxLength":255,"description":"Subsidiary associated with the corresponding item in NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"},"SyncDate__NS":{"type":"string","maxLength":255,"description":"Date when the product rate plan charge was synchronized with NetSuite. Only available if you have installed the [Zuora Connector for NetSuite](https://www.zuora.com/connect/app/?appId=265).\n"}},"required":["BillCycleType","BillingPeriod","ChargeModel","ProductRatePlanChargeTierData","ProductRatePlanId","TriggerEvent","UseDiscountSpecificAccountingCode"],"description":"Container for custom fields of a Product Rate Plan Charge object.\n","title":"ProxyModifyProductRatePlanCharge"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsApplyDiscountTo":{"type":"string","enum":["ONETIME","RECURRING","USAGE","ONETIMERECURRING","ONETIMEUSAGE","RECURRINGUSAGE","ONETIMERECURRINGUSAGE"],"description":"Indicates which type of charge the discount charge applies to.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsApplyDiscountTo"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart","AlignToTermEnd"],"description":"The billing period alignment setting for the charge.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsBillingPeriodAlignment"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"The billing timing setting for the product charge definition.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsBillingTiming"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsChargeModel":{"type":"string","enum":["DiscountFixedAmount","DiscountPercentage","FlatFee","PerUnit","Overage","Tiered","TieredWithOverage","Volume","Delivery","MultiAttributePricing","PreratedPerUnit","PreratedPricing","HighWatermarkVolumePricing","HighWatermarkTieredPricing"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsChargeModel"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsChargeType":{"type":"string","enum":["OneTime","Recurring","Usage"],"description":"Indicates the type of charge.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsChargeType"},"ProductChargeDefinitionObjectCustomFields":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Container for custom fields of a Product Charge Definition object.\n","title":"ProductChargeDefinitionObjectCustomFields"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"The application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsDiscountLevel"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsEndDateCondition":{"type":"string","enum":["Subscription_End","One_Time","Fixed_Period","Specific_End_Date"],"description":"The end date condition for this charge.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsEndDateCondition"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevenueRecognitionTiming"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevenueAmortizationMethod"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsFinanceInformation":{"type":"object","properties":{"accountsReceivableAccountingCode":{"type":["string","null"],"description":"The accounting code for accounts receivable.\n"},"accountsReceivableAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code for accounts receivable.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code for adjustment liability. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"adjustmentLiabilityAccountingCodeType":{"type":["string","null"],"description":"The type associated with the adjustment liability accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code for adjustment revenue. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"adjustmentRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the adjustment revenue accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code for contract asset. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractAssetAccountingCodeType":{"type":"string","description":"The type associated with the contract asset accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code for contract liability. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractLiabilityAccountingCodeType":{"type":"string","description":"The type associated with the contract liability accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for contract recognized revenue. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCodeType":{"type":"string","description":"The type associated with the contract recognized revenue accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for deferred revenue, such as Monthly Recurring Liability.\n"},"deferredRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the deferred revenue accounting code, such as Deferred Revenue. \n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"recognizedRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the recognized revenue accounting code, such as Sales Revenue or Sales Discount.\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code for unbilled receivables. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"unbilledReceivablesAccountingCodeType":{"type":"string","description":"The type associated with the unbilled receivables accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"}},"description":"Container for finance information of the rate plan charge.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsFinanceInformation"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year"],"description":"The list price base. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsListPriceBase"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsOverageCalculationOption":{"type":"string","enum":["EndOfSmoothingPeriod","PerBillingPeriod"],"description":"Determines when to calculate overage charges. If the value of the `SmoothingMode` field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsOverageCalculationOption"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Determines whether to credit the customer with unused units of usage.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsOverageUnusedUnitsCreditOption"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsPriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsPriceChangeOption"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsPriceIncreaseOption":{"type":"string","enum":["FromTenantPercentageValue","SpecificPercentageValue"],"description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsPriceIncreaseOption"},"GetChargeDefinitionPricingTierItems":{"type":"object","properties":{"currency":{"type":"string","description":"The code corresponding to the currency for the tier's price.\n"},"discountAmount":{"type":"number","format":"double","description":"The specific amount for a fixed discount. The field is applicable only for charges based on the Discount-Fixed Amount charge model.\n"},"discountPercentage":{"type":"number","format":"double","description":"The percentage of discount for a percentage discount. The field is applicable only for charges based on the Discount-Percentage charge model.\n"},"endingUnit":{"type":"number","format":"double","description":"The end number of a range of units for the tier. The field is applicable only for charges based on the Tiered Pricing or Tiered with Overage Pricing charge model.\n"},"overagePrice":{"type":"number","format":"double","description":"Indicates whether the price is an overage price, which is the price when usage surpasses the last defined tier.\n"},"price":{"type":"number","format":"double","description":"The price of the tier if the price format is flat fee, or the price of each unit in the tier if the price format is per unit.\n"},"startingUnit":{"type":"number","format":"double","description":"The starting number of a range of units for the tier. The field is applicable only for charges based on the Tiered Pricing or Tiered with Overage Pricing charge model.\n"}},"title":"GetChargeDefinitionPricingTierItems"},"GETChargeDefinitionPricingTier":{"type":"array","items":{"$ref":"#/components/schemas/GetChargeDefinitionPricingTierItems"},"description":"An array of charge pricing tiers.\n","title":"GETChargeDefinitionPricingTier"},"GETProductChargeDefinitionPricing":{"type":"object","properties":{"currency":{"type":"string","description":"The currency for the price.\n"},"discountAmount":{"type":"number","format":"double","description":"The specific amount for a fixed discount. The field is applicable only for charges based on the Discount-Fixed Amount charge model.\n"},"discountPercentage":{"type":"number","format":"double","description":"The percentage of discount for a percentage discount. The field is applicable only for charges based on the Discount-Percentage charge model.\n"},"includedUnits":{"type":"number","format":"double","description":"The number of units included in this price item. \n\nThis field is only applicable for charges based on the Overage Pricing charge model.\n"},"overagePrice":{"type":"number","format":"double","description":"The overage price of the price item. \n\nThis field is only applicable for charges based on the Overage Pricing or Tiered with Overage Pricing charge model.\n"},"price":{"type":"number","format":"double","description":"The price of this item. \n\nThis field is only applicable for charges based on the following charge models:\n  - Flat Fee\n  - Per Unit\n  - Delivery Pricing\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/GETChargeDefinitionPricingTier"},"description":"Container for the tiers of the price item. \n\nThis field is only applicable for charges based on the following charge models:\n  - Tiered Pricing\n  - Volume Pricing\n  - Tiered with Overage Pricing\n"}},"title":"GETProductChargeDefinitionPricing"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload","ByGroupId"],"default":"ByBillingPeriod","description":"The rating group based on which usage records are rated.\n\nPossible values:                \n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period. \n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Notes:** \n  - The `ByBillingPeriod` value can be applied for all charge models. \n  - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for Per Unit, Volume Pricing, and Tiered Pricing charge models. \n  - The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n  - Use this field only for Usage charges. One-time charges and recurring charges return `NULL`.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsRatingGroup"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"Indicates when revenue recognition begins.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevRecTriggerCondition"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevenueRecognitionRuleName":{"type":"string","enum":["Recognize upon invoicing","Recognize daily over time"],"description":"Determines when to recognize the revenue for this charge.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevenueRecognitionRuleName"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsSmoothingModel":{"type":"string","enum":["RollingWindow","Rollover"],"description":"Indicates the smoothing model for an overage smoothing charge model.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsSmoothingModel"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Determines how to define taxation for the charge.\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsTaxMode"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"The period type for the subscription term that is eligible for this charge definition.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsTermPeriodType"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"The type of the subscription that is eligible for this charge definition.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsTermType"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance"],"description":"Specifies when to start billing the customer for the charge definition.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsTriggerEvent"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsUpToPeriodsType":{"type":"string","enum":["Billing_Periods","Days","Weeks","Months","Years"],"description":"The up-to-periods type for this charge.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsUpToPeriodsType"},"GetProductChargeDefinitionsResponseChargeDefinitionsItemsUsageRecordRatingOption":{"type":"string","enum":["EndOfBillingPeriod","OnDemand"],"default":"EndOfBillingPeriod","description":"Determines how Zuora processes usage records for per-unit usage charges.\n","title":"GetProductChargeDefinitionsResponseChargeDefinitionsItemsUsageRecordRatingOption"},"GetProductChargeDefinitionsResponseChargeDefinitionsItems":{"type":"object","properties":{"applyDiscountTo":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsApplyDiscountTo"},{"type":"null"}],"description":"Indicates which type of charge the discount charge applies to.\n"},"billingDay":{"type":"string","description":"The bill cycle type for the charge.\n"},"billingPeriod":{"type":"string","description":"The billing period for the product charge definition.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsBillingPeriodAlignment","description":"The billing period alignment setting for the charge.\n"},"billingTiming":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsBillingTiming","description":"The billing timing setting for the product charge definition.\n"},"chargeModel":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsChargeModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n"},"chargeType":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsChargeType","description":"Indicates the type of charge.\n"},"customFields":{"$ref":"#/components/schemas/ProductChargeDefinitionObjectCustomFields"},"defaultQuantity":{"type":["number","null"],"format":"double","description":"The default quantity. \n\nThis field is applicable only for one-time and recurring charges.\n"},"deliverySchedule":{"$ref":"#/components/schemas/GETDeliverySchedule"},"description":{"type":"string","description":"The description for the charge.\n"},"discountClass":{"type":["string","null"],"description":"The class that the discount belongs to. The discount class defines the order in which discount product rate plan charges are applied.\n\nFor more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).\n"},"discountLevel":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsDiscountLevel"},{"type":"null"}],"description":"The application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"effectiveEndDate":{"type":"string","format":"date-time","description":"The effective end date of the product charge definition.\n"},"effectiveStartDate":{"type":"string","format":"date-time","description":"The effective start date of the product charge definition.\n"},"endDateCondition":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsEndDateCondition","description":"The end date condition for this charge.\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"isAllocationEligible":{"type":"boolean","description":"Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isUnbilled":{"type":"boolean","description":"Specifies how to perform the accounting during revenue recognition. The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.    \n"},"productCategory":{"type":"string","description":"This field is used to maintain the product category for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.    \n"},"productClass":{"type":"string","description":"This field is used to maintain the product class for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.    \n"},"productFamily":{"type":"string","description":"This field is used to maintain the product family for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.\n"},"productLine":{"type":"string","description":"This field is used to maintain the product line for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"numberOfPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model.\nThis field is ued when overage smoothing model is `RollingWindow` or `Rollover`.\n"},"financeInformation":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsFinanceInformation","description":"Container for finance information of the rate plan charge.\n"},"isDefault":{"type":"boolean","description":"Indicates whether this charge definition is the default one for the charge.\n"},"isStackedDiscount":{"type":"boolean","description":"**Note**: This field is only applicable to the Discount - Percentage charge model.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.\n\nThis field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:\n  - `True`: This is a stacked discount, which should be calculated by stacking with other discounts.\n  - `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.\n\nFor more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).\n"},"listPriceBase":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsListPriceBase","description":"The list price base. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n"},"numberOfPeriod":{"type":"integer","format":"int64","description":"Indicates the number of periods to use when calculating charges in an overage smoothing charge model. The valid value is a positive whole number.\n"},"overageCalculationOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsOverageCalculationOption"},{"type":"null"}],"description":"Determines when to calculate overage charges. If the value of the `SmoothingMode` field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n"},"overageUnusedUnitsCreditOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsOverageUnusedUnitsCreditOption"},{"type":"null"}],"description":"Determines whether to credit the customer with unused units of usage.\n"},"priceChangeOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsPriceChangeOption"},{"type":"null"}],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"priceIncreaseOption":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsPriceIncreaseOption","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"priceIncreasePercentage":{"type":["number","null"],"format":"double","description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the `priceIncreaseOption` value to `SpecificPercentageValue`.\n\n**Character limit**: 16\n\n**Values**: a decimal value between -100 and 100\n"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/GETProductChargeDefinitionPricing"},"description":"Container for the prices of the product charge definition.\n"},"productChargeDefinitionId":{"type":"string","description":"The unique ID of the product charge definition.\n"},"productChargeDefinitionNumber":{"type":"string","description":"The unique number (natural key) of the product charge definition.\n"},"productDiscountApplyDetails":{"type":"array","items":{"$ref":"#/components/schemas/GETProductDiscountApplyDetailsType"},"description":"Container for the application details about a discount product rate plan charge. \n\nOnly discount product rate plan charges have values for this field.\n"},"productRatePlanChargeId":{"type":"string","description":"The unique ID of the product charge of the charge definition.\n"},"productRatePlanChargeNumber":{"type":["string","null"],"description":"The unique number (natural key) of the product charge of the charge definition.\n"},"productRatePlanId":{"type":["string","null"],"description":"The unique ID of the product rate plan that uses this charge definition.\n"},"productRatePlanName":{"type":["string","null"],"description":"Th name of the product rate plan that uses this charge definition.\n"},"productRatePlanNumber":{"type":["string","null"],"description":"The unique number (natural key) of the product rate plan that uses this charge definition.\n"},"ratingGroup":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsRatingGroup"},{"type":"null"}],"default":"ByBillingPeriod","description":"The rating group based on which usage records are rated.\n\nPossible values:                \n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period. \n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Notes:** \n  - The `ByBillingPeriod` value can be applied for all charge models. \n  - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for Per Unit, Volume Pricing, and Tiered Pricing charge models. \n  - The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n  - Use this field only for Usage charges. One-time charges and recurring charges return `NULL`.\n"},"recognizedRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the recognized revenue account for this charge.\n  - Required when the Allow Blank Accounting Code setting is No.\n  - Optional when the Allow Blank Accounting Code setting is Yes.\n\n  This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n"},"revRecCode":{"type":["string","null"],"maxLength":70,"description":"Associates this product rate plan charge with a specific revenue recognition code.\n"},"revRecTriggerCondition":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevRecTriggerCondition"},{"type":"null"}],"description":"Indicates when revenue recognition begins.\n"},"revenueRecognitionRuleName":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsRevenueRecognitionRuleName","description":"Determines when to recognize the revenue for this charge.\n"},"smoothingModel":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsSmoothingModel"},{"type":"null"}],"description":"Indicates the smoothing model for an overage smoothing charge model.\n"},"specificBillingPeriod":{"type":["number","null"],"format":"double","description":"The specific number of billing period for the product charge definition.\n"},"specificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge definition.  \nThis field is `null` if the `listPriceBase` field is not set to `Per_Specific_Months`.\n"},"taxCode":{"type":"string","maxLength":64,"description":"Specifies the tax code for taxation rules.\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n"},"taxMode":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsTaxMode"},{"type":"null"}],"description":"Determines how to define taxation for the charge.\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n"},"taxable":{"type":"boolean","description":"Determines whether the charge definition is taxable.\n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n"},"term":{"type":["number","null"],"format":"double","description":"The number of periods of a termed subscription that is eligible for this charge definition. This field is applicable when the `termType` field is set to `TERMED`, \nand is to be used together with the `termPeriodType` field.\n"},"termPeriodType":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsTermPeriodType"},{"type":"null"}],"description":"The period type for the subscription term that is eligible for this charge definition.\n"},"termType":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsTermType"},{"type":"null"}],"description":"The type of the subscription that is eligible for this charge definition.\n"},"triggerEvent":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsTriggerEvent","description":"Specifies when to start billing the customer for the charge definition.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n"},"uom":{"type":["string","null"],"description":"Indicates the unit of measure (UOM) that is configured in **Settings > Billing** for the product rate plan charge.\n"},"upToPeriods":{"type":["number","null"],"format":"double","description":"The number of up-to periods for this charge.\n"},"upToPeriodsType":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsUpToPeriodsType"},{"type":"null"}],"description":"The up-to-periods type for this charge.\n"},"usageRecordRatingOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItemsUsageRecordRatingOption"},{"type":"null"}],"default":"EndOfBillingPeriod","description":"Determines how Zuora processes usage records for per-unit usage charges.\n"},"useDiscountSpecificAccountingCode":{"type":["boolean","null"],"description":"Determines whether to define a new accounting code for the new discount charge.\n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n"},"useTenantDefaultForPriceChange":{"type":"boolean","description":"Applies the tenant-level percentage uplift value for an automatic price change to a termed subscription's renewal. \n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n"}},"title":"GetProductChargeDefinitionsResponseChargeDefinitionsItems"},"GETProductChargeDefinitionsResponse":{"type":"object","properties":{"chargeDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/GetProductChargeDefinitionsResponseChargeDefinitionsItems"},"description":"The list of the product charge definitions that are retrieved.\n"},"success":{"type":"boolean","description":"Indicates whether the request succeeded.\n"}},"title":"GETProductChargeDefinitionsResponse"},"PostChargeDefinitionRequestBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"The billing timing setting for the product charge definition.\n","title":"PostChargeDefinitionRequestBillingTiming"},"PostChargeDefinitionRequestChargeModel":{"type":"string","enum":["DiscountFixedAmount","DiscountPercentage","FlatFee","PerUnit","Tiered","Volume","Delivery"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n","title":"PostChargeDefinitionRequestChargeModel"},"PostChargeDefinitionRequestListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year"],"description":"The list price base. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n","title":"PostChargeDefinitionRequestListPriceBase"},"PostChargeDefinitionPricingTierItemsPriceFormat":{"type":"string","enum":["Flat Fee","Per Unit"],"description":"The price format of the tier.\n","title":"PostChargeDefinitionPricingTierItemsPriceFormat"},"PostChargeDefinitionPricingTierItems":{"type":"object","properties":{"currency":{"type":"string","description":"The code corresponding to the currency for the tier's price.\n"},"endingUnit":{"type":"number","format":"double","description":"The end number of a range of units for the tier. This field is required for charges based on the Tiered Pricing or Tiered with Overage Pricing charge model.\n"},"price":{"type":"number","format":"double","description":"The price of the tier if the price format is flat fee, or the price of each unit in the tier if the price format is per unit.\n"},"priceFormat":{"$ref":"#/components/schemas/PostChargeDefinitionPricingTierItemsPriceFormat","description":"The price format of the tier.\n"},"startingUnit":{"type":"number","format":"double","description":"The starting number of a range of units for the tier. This field is required for charges based on the Tiered Pricing or Tiered with Overage Pricing charge model.\n"}},"title":"PostChargeDefinitionPricingTierItems"},"POSTChargeDefinitionPricingTier":{"type":"array","items":{"$ref":"#/components/schemas/PostChargeDefinitionPricingTierItems"},"description":"An array of charge pricing tier.\n","title":"POSTChargeDefinitionPricingTier"},"POSTProductChargeDefinitionPricing":{"type":"object","properties":{"currency":{"type":"string","description":"The currency for the price.\n"},"discountAmount":{"type":"number","format":"double","description":"The specific amount for a fixed discount. The field is applicable only for charges based on the Discount-Fixed Amount charge model.\n"},"discountPercentage":{"type":"number","format":"double","description":"The percentage of discount for a percentage discount. The field is applicable only for charges based on the Discount-Percentage charge model.\n"},"price":{"type":"number","format":"double","description":"The price of this item. \n\nThis field is only applicable for charges based on the following charge models:\n  - Flat Fee\n  - Per Unit\n  - Delivery Pricing\n"},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/POSTChargeDefinitionPricingTier"},"description":"Container for the tiers of the price item. \n\nThis field is only applicable for charges based on the following charge models:\n  - Tiered Pricing\n  - Volume Pricing\n\nYou must specify all relevant fields of all tiers, including pricing information for each currency.\nFor each currency, ensure that the tiers appear in ascending order of `StartingUnit`.\n\nFor example:\n\n```\n[\n  {\n    \"startingUnit\": \"1\",\n    \"endingUnit\": \"150\",\n    \"currency\": \"USD\",\n    \"price\": 1.95,\n    \"priceFormat\": \"Per Unit\"\n  },\n  {\n    \"startingUnit\": \"151\",\n    \"endingUnit\": \"300\",\n    \"currency\": \"USD\",\n    \"price\": 1.45,\n    \"priceFormat\": \"Per Unit\"\n  },\n  {\n    \"startingUnit\": \"1\",\n    \"endingUnit\": \"150\",\n    \"currency\": \"EUR\",\n    \"price\": 1.75,\n    \"priceFormat\": \"Per Unit\"\n  },\n  {\n    \"startingUnit\": \"151\",\n    \"endingUnit\": \"300\",\n    \"currency\": \"EUR\",\n    \"price\": 1.30,\n    \"priceFormat\": \"Per Unit\"\n  }\n]\n```    \n"}},"title":"POSTProductChargeDefinitionPricing"},"PostChargeDefinitionRequestTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Determines how to define taxation for the charge. This field is required when the `Taxable` field is set to `True`.\n\n**Note**: This value affects the tax calculation of the charge.\n","title":"PostChargeDefinitionRequestTaxMode"},"PostChargeDefinitionRequestTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Specifies the period type for the subscription term that is eligible for this charge definition.\n","title":"PostChargeDefinitionRequestTermPeriodType"},"PostChargeDefinitionRequestTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"The type of the subscription that is eligible for this charge definition.\n","title":"PostChargeDefinitionRequestTermType"},"POSTChargeDefinitionRequest":{"type":"object","properties":{"billingPeriod":{"type":"string","description":"The billing period for the product charge definition.\n"},"billingTiming":{"$ref":"#/components/schemas/PostChargeDefinitionRequestBillingTiming","description":"The billing timing setting for the product charge definition.\n"},"chargeModel":{"$ref":"#/components/schemas/PostChargeDefinitionRequestChargeModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n"},"defaultQuantity":{"type":["number","null"],"format":"double","description":"The default quantity. \n\nThis field is applicable only for one-time and recurring charges.\n"},"effectiveEndDate":{"type":"string","format":"date-time","description":"The effective end date of the product charge definition.\n"},"effectiveStartDate":{"type":"string","format":"date-time","description":"The effective start date of the product charge definition.\n"},"listPriceBase":{"$ref":"#/components/schemas/PostChargeDefinitionRequestListPriceBase","description":"The list price base. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/POSTProductChargeDefinitionPricing"},"description":"Container for the prices of the product charge definition.\n"},"productRatePlanChargeId":{"type":"string","description":"The unique ID of the charge of the charge definition.\n"},"productRatePlanChargeNumber":{"type":"string","description":"The unique number (natural key) of the charge of the charge definition.\n"},"productRatePlanId":{"type":"string","description":"The unique ID of the product rate plan that uses this charge definition.\n"},"productRatePlanNumber":{"type":"string","description":"The unique number (natural key) of the product rate plan that uses this charge definition.\n"},"specificBillingPeriod":{"type":["number","null"],"format":"double","description":"The specific number of billing periods for the product charge definition.\n"},"specificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge definition. \nThis field is `null` if the `listPriceBase` field is not set to `Per_Specific_Months`.\n"},"taxCode":{"type":"string","maxLength":64,"description":"Specifies the tax code for taxation rules. This field is required when the `Taxable` field is set to `True`.\n\n**Note**: This value affects the tax calculation of the charge.\n"},"taxMode":{"oneOf":[{"$ref":"#/components/schemas/PostChargeDefinitionRequestTaxMode"},{"type":"null"}],"description":"Determines how to define taxation for the charge. This field is required when the `Taxable` field is set to `True`.\n\n**Note**: This value affects the tax calculation of the charge.\n"},"taxable":{"type":"boolean","description":"Determines whether the charge definition is taxable. When this field is set to `True`, the `TaxMode` and `TaxCode` fields are required.\n\n**Character limit**: 5\n\n**Values**: `True`, `False`\n\n**Note**: This value affects the tax calculation of the charge.\n"},"term":{"type":["number","null"],"format":"double","description":"The number of periods of a termed subscription that is eligible for this charge definition. This field is applicable when the `termType` field is set to `TERMED`, \nand is to be used together with the `termPeriodType` field.\n"},"termPeriodType":{"oneOf":[{"$ref":"#/components/schemas/PostChargeDefinitionRequestTermPeriodType"},{"type":"null"}],"description":"Specifies the period type for the subscription term that is eligible for this charge definition.\n"},"termType":{"oneOf":[{"$ref":"#/components/schemas/PostChargeDefinitionRequestTermType"},{"type":"null"}],"description":"The type of the subscription that is eligible for this charge definition.\n"},"uom":{"type":["string","null"],"description":"Describes the unit of measure (UOM) configured in **Settings > Billing** for the charge.\n"}},"title":"POSTChargeDefinitionRequest"},"POSTChargeDefinitionResponse":{"type":"object","properties":{"chargeDefinitionId":{"type":"string","description":"The unique ID of the product charge definition.\n"},"chargeDefinitionNumber":{"type":"string","description":"The unique number (natural key) of the product charge definition.\n"},"success":{"type":"boolean","description":"Indicates whether the request succeeded.\n"}},"title":"POSTChargeDefinitionResponse"},"POSTChargeDefinitionRequestBulk":{"type":"object","properties":{"productChargeDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/POSTChargeDefinitionRequest"},"description":"Container for the array of product charge definition.\n"}},"title":"POSTChargeDefinitionRequestBulk"},"PostChargeDefinitionBulkResponseSummary":{"type":"object","properties":{"successCount":{"type":"integer","description":"The number of product charge definitions successfully created.\n"},"failureCount":{"type":"integer","description":"The number of product charge definitions that are not created.\n"},"failures":{"type":"array","items":{"type":"integer"},"description":"An array containing the index of each failed charge definition.\nEach index is zero-based, and refers to the position of the invalid product charge definition in the bulk payload.\n"}},"description":"Summary of the results of the bulk operation.\n","title":"PostChargeDefinitionBulkResponseSummary"},"PostChargeDefinitionBulkResponseResultsItemsReasonsItems":{"type":"object","properties":{"message":{"type":"string","description":"Message explaining the reason for the error."},"code":{"type":"string","description":"Specifies the error code associated with the error."}},"title":"PostChargeDefinitionBulkResponseResultsItemsReasonsItems"},"PostChargeDefinitionBulkResponseResultsItems":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the charge definition is successfully created."},"chargeDefinitionId":{"type":"string","description":"The unique ID of the product charge definition. \nThis value is available only if this product charge definition is successfully created.\n"},"chargeDefinitionNumber":{"type":"string","description":"The unique number (natural key) of the product charge definition. \nThis value is available only if this product charge definition is successfully created.\n"},"processId":{"type":"string","description":"The ID of the process that handles the operation. \nThis value is available only if this product charge definition is not created.\n"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PostChargeDefinitionBulkResponseResultsItemsReasonsItems"},"description":"Array of data containing the error code and reasons for failure. \nThis value is available only if this product charge definition is not created.\n"}},"title":"PostChargeDefinitionBulkResponseResultsItems"},"POSTChargeDefinitionBulkResponse":{"type":"object","properties":{"summary":{"$ref":"#/components/schemas/PostChargeDefinitionBulkResponseSummary","description":"Summary of the results of the bulk operation.\n"},"results":{"type":"array","items":{"$ref":"#/components/schemas/PostChargeDefinitionBulkResponseResultsItems"},"description":"The list of newly created product charge definitions or errors.\n"},"success":{"type":"boolean","description":"Indicates whether the request succeeded.\n"}},"title":"POSTChargeDefinitionBulkResponse"},"PutBulkProductChargeDefinitionRequestBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"The override value of the billingTiming for the product charge definition.\n","title":"PutBulkProductChargeDefinitionRequestBillingTiming"},"PutBulkProductChargeDefinitionRequestChargeModel":{"type":"string","enum":["DiscountFixedAmount","DiscountPercentage","FlatFee","PerUnit","Tiered","Volume","Delivery"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n","title":"PutBulkProductChargeDefinitionRequestChargeModel"},"PutBulkProductChargeDefinitionRequestListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year"],"description":"The list price base. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n","title":"PutBulkProductChargeDefinitionRequestListPriceBase"},"PutBulkProductChargeDefinitionRequestTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Determines how to define taxation for the charge. This field is equired when the `taxable` field is set to `true`.\n\n**Note**: This value affects the tax calculation of the charge.\n","title":"PutBulkProductChargeDefinitionRequestTaxMode"},"PutBulkProductChargeDefinitionRequestTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Specifies the period type for the subscription term that is eligible for this charge definition.\n","title":"PutBulkProductChargeDefinitionRequestTermPeriodType"},"PutBulkProductChargeDefinitionRequestTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"The type of the subscription that is eligible for this charge definition.\n","title":"PutBulkProductChargeDefinitionRequestTermType"},"PUTBulkProductChargeDefinitionRequest":{"type":"object","properties":{"billingPeriod":{"type":"string","description":"The override value of the billingPeriod for the product charge definition.\n"},"billingTiming":{"$ref":"#/components/schemas/PutBulkProductChargeDefinitionRequestBillingTiming","description":"The override value of the billingTiming for the product charge definition.\n"},"chargeModel":{"$ref":"#/components/schemas/PutBulkProductChargeDefinitionRequestChargeModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n"},"defaultQuantity":{"type":"number","format":"double","description":"The default quantity. \n\nThis field is applicable only for one-time and recurring charges.\n"},"listPriceBase":{"$ref":"#/components/schemas/PutBulkProductChargeDefinitionRequestListPriceBase","description":"The list price base. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/POSTProductChargeDefinitionPricing"},"description":"Container for the new prices to override the existing prices of the product charge definition.\n"},"productChargeDefinitionKey":{"type":"string","description":"The unique number or ID of the product charge definition to be updated.\n"},"specificBillingPeriod":{"type":["number","null"],"format":"double","description":"The override value of the specificBillingPeriod for the product charge definition.\n"},"specificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge definition. \nThe field is `null` if the `listPriceBase` field is not set to `Per_Specific_Months`.\n"},"taxCode":{"type":"string","maxLength":64,"description":"Specifies the tax code for taxation rules. This field is equired when the `Taxable` field is set to `True`.\n\n**Note**: This value affects the tax calculation of the charge.\n"},"taxMode":{"oneOf":[{"$ref":"#/components/schemas/PutBulkProductChargeDefinitionRequestTaxMode"},{"type":"null"}],"description":"Determines how to define taxation for the charge. This field is equired when the `taxable` field is set to `true`.\n\n**Note**: This value affects the tax calculation of the charge.\n"},"taxable":{"type":"boolean","description":"Determines whether the charge definition is taxable. When this field is set to `true`, the `taxMode` and `taxCode` fields are required.\n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n\n**Note**: This value affects the tax calculation of the charge.\n"},"term":{"type":["number","null"],"format":"double","description":"The number of periods of a termed subscription that is eligible for this charge definition. This field is applicable when the `termType` field is set to `TERMED`, \nand is to be used together with the `termPeriodType` field.\n"},"termPeriodType":{"oneOf":[{"$ref":"#/components/schemas/PutBulkProductChargeDefinitionRequestTermPeriodType"},{"type":"null"}],"description":"Specifies the period type for the subscription term that is eligible for this charge definition.\n"},"termType":{"oneOf":[{"$ref":"#/components/schemas/PutBulkProductChargeDefinitionRequestTermType"},{"type":"null"}],"description":"The type of the subscription that is eligible for this charge definition.\n"},"uom":{"type":["string","null"],"description":"Describes the unit of measure (UOM) configured in **Settings > Billing**.\n\n**Values**: `Each`, `License`, `Seat`, or `null`\n"}},"title":"PUTBulkProductChargeDefinitionRequest"},"PUTProductChargeDefinitionBulkRequest":{"type":"object","properties":{"productChargeDefinitions":{"type":"array","items":{"$ref":"#/components/schemas/PUTBulkProductChargeDefinitionRequest"},"description":"The list of updated product charge definitions.\n"}},"title":"PUTProductChargeDefinitionBulkRequest"},"GetProductChargeDefinitionResponseApplyDiscountTo":{"type":"string","enum":["ONETIME","RECURRING","USAGE","ONETIMERECURRING","ONETIMEUSAGE","RECURRINGUSAGE","ONETIMERECURRINGUSAGE"],"description":"Indicates which type of charge the discount charge applies to.\n","title":"GetProductChargeDefinitionResponseApplyDiscountTo"},"GetProductChargeDefinitionResponseBillingPeriodAlignment":{"type":"string","enum":["AlignToCharge","AlignToSubscriptionStart","AlignToTermStart","AlignToTermEnd"],"description":"The billing period alignment setting for the charge.\n","title":"GetProductChargeDefinitionResponseBillingPeriodAlignment"},"GetProductChargeDefinitionResponseBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"The billing timing setting for the product charge definition.\n","title":"GetProductChargeDefinitionResponseBillingTiming"},"GetProductChargeDefinitionResponseChargeModel":{"type":"string","enum":["DiscountFixedAmount","DiscountPercentage","FlatFee","PerUnit","Overage","Tiered","TieredWithOverage","Volume","Delivery","MultiAttributePricing","PreratedPerUnit","PreratedPricing","HighWatermarkVolumePricing","HighWatermarkTieredPricing"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n","title":"GetProductChargeDefinitionResponseChargeModel"},"GetProductChargeDefinitionResponseChargeType":{"type":"string","enum":["OneTime","Recurring","Usage"],"description":"Indicates the type of charge.\n","title":"GetProductChargeDefinitionResponseChargeType"},"GetProductChargeDefinitionResponseDiscountLevel":{"type":"string","enum":["rateplan","subscription","account"],"description":"The application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n","title":"GetProductChargeDefinitionResponseDiscountLevel"},"GetProductChargeDefinitionResponseEndDateCondition":{"type":"string","enum":["Subscription_End","One_Time","Fixed_Period","Specific_End_Date"],"description":"The end date condition for this charge.\n","title":"GetProductChargeDefinitionResponseEndDateCondition"},"GetProductChargeDefinitionResponseFinanceInformation":{"type":"object","properties":{"accountsReceivableAccountingCode":{"type":["string","null"],"description":"The accounting code for accounts receivable.\n"},"accountsReceivableAccountingCodeType":{"type":["string","null"],"description":"The type of the accounting code for accounts receivable.\n"},"adjustmentLiabilityAccountingCode":{"type":"string","description":"The accounting code for adjustment liability. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"adjustmentLiabilityAccountingCodeType":{"type":"string","description":"The type associated with the adjustment liability accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"adjustmentRevenueAccountingCode":{"type":"string","description":"The accounting code for adjustment revenue. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"adjustmentRevenueAccountingCodeType":{"type":"string","description":"The type associated with the adjustment revenue accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractAssetAccountingCode":{"type":"string","description":"The accounting code for contract asset. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractAssetAccountingCodeType":{"type":"string","description":"The type associated with the contract asset accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractLiabilityAccountingCode":{"type":"string","description":"The accounting code for contract liability. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractLiabilityAccountingCodeType":{"type":"string","description":"The type associated with the contract liability accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for contract recognized revenue. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"contractRecognizedRevenueAccountingCodeType":{"type":"string","description":"The type associated with the contract recognized revenue accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"deferredRevenueAccountingCode":{"type":"string","description":"The accounting code for deferred revenue, such as Monthly Recurring Liability.\n"},"deferredRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the deferred revenue accounting code, such as Deferred Revenue. \n"},"recognizedRevenueAccountingCode":{"type":"string","description":"The accounting code for recognized revenue, such as Monthly Recurring Charges or Overage Charges.\n"},"recognizedRevenueAccountingCodeType":{"type":["string","null"],"description":"The type associated with the recognized revenue accounting code, such as Sales Revenue or Sales Discount.\n"},"unbilledReceivablesAccountingCode":{"type":"string","description":"The accounting code for unbilled receivables. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"},"unbilledReceivablesAccountingCodeType":{"type":"string","description":"The type associated with the unbilled receivables accounting code. \n\n**Note**: This field is only available if you have the Zuora Billing - Revenue Integration feature enabled.\n"}},"description":"Container for finance information of the rate plan charge.\n","title":"GetProductChargeDefinitionResponseFinanceInformation"},"GetProductChargeDefinitionResponseListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year"],"description":"The list price base. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n","title":"GetProductChargeDefinitionResponseListPriceBase"},"GetProductChargeDefinitionResponseOverageCalculationOption":{"type":"string","enum":["EndOfSmoothingPeriod","PerBillingPeriod"],"description":"Determines when to calculate overage charges. If the value of the `SmoothingMode` field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n","title":"GetProductChargeDefinitionResponseOverageCalculationOption"},"GetProductChargeDefinitionResponseOverageUnusedUnitsCreditOption":{"type":"string","enum":["NoCredit","CreditBySpecificRate"],"description":"Determines whether to credit the customer with unused units of usage.\n","title":"GetProductChargeDefinitionResponseOverageUnusedUnitsCreditOption"},"GetProductChargeDefinitionResponsePriceChangeOption":{"type":"string","enum":["NoChange","SpecificPercentageValue","UseLatestProductCatalogPricing"],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"GetProductChargeDefinitionResponsePriceChangeOption"},"GetProductChargeDefinitionResponsePriceIncreaseOption":{"type":"string","enum":["FromTenantPercentageValue","SpecificPercentageValue"],"description":"Applies an automatic price change when a termed subscription is renewed.\n","title":"GetProductChargeDefinitionResponsePriceIncreaseOption"},"GetProductChargeDefinitionResponseRatingGroup":{"type":"string","enum":["ByBillingPeriod","ByUsageStartDate","ByUsageRecord","ByUsageUpload","ByGroupId"],"default":"ByBillingPeriod","description":"The rating group based on which usage records are rated.\n\nPossible values:                \n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period. \n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Notes:** \n  - The `ByBillingPeriod` value can be applied for all charge models. \n  - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for Per Unit, Volume Pricing, and Tiered Pricing charge models. \n  - The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n  - Use this field only for Usage charges. One-time charges and recurring charges return `NULL`.\n","title":"GetProductChargeDefinitionResponseRatingGroup"},"GetProductChargeDefinitionResponseRevRecTriggerCondition":{"type":"string","enum":["ContractEffectiveDate","ServiceActivationDate","CustomerAcceptanceDate"],"description":"Indicates when revenue recognition begins.\n","title":"GetProductChargeDefinitionResponseRevRecTriggerCondition"},"GetProductChargeDefinitionResponseRevenueRecognitionRuleName":{"type":"string","enum":["Recognize upon invoicing","Recognize daily over time"],"description":"Determines when to recognize the revenue for this charge.\n","title":"GetProductChargeDefinitionResponseRevenueRecognitionRuleName"},"GetProductChargeDefinitionResponseSmoothingModel":{"type":"string","enum":["RollingWindow","Rollover"],"description":"Indicates the smoothing model for an overage smoothing charge model.\n","title":"GetProductChargeDefinitionResponseSmoothingModel"},"GetProductChargeDefinitionResponseTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Determines how to define taxation for the charge.\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n","title":"GetProductChargeDefinitionResponseTaxMode"},"GetProductChargeDefinitionResponseTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"The period type for the subscription term that is eligible for this charge definition.\n","title":"GetProductChargeDefinitionResponseTermPeriodType"},"GetProductChargeDefinitionResponseTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"The type of the subscription that is eligible for this charge definition.\n","title":"GetProductChargeDefinitionResponseTermType"},"GetProductChargeDefinitionResponseTriggerEvent":{"type":"string","enum":["ContractEffective","ServiceActivation","CustomerAcceptance"],"description":"Specifies when to start billing the customer for the charge definition.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n","title":"GetProductChargeDefinitionResponseTriggerEvent"},"GetProductChargeDefinitionResponseUpToPeriodsType":{"type":"string","enum":["Billing_Periods","Days","Weeks","Months","Years"],"description":"The up-to-periods type for this charge.\n","title":"GetProductChargeDefinitionResponseUpToPeriodsType"},"GetProductChargeDefinitionResponseUsageRecordRatingOption":{"type":"string","enum":["EndOfBillingPeriod","OnDemand"],"default":"EndOfBillingPeriod","description":"Determines how Zuora processes usage records for per-unit usage charges.\n","title":"GetProductChargeDefinitionResponseUsageRecordRatingOption"},"GetProductChargeDefinitionResponseRevenueRecognitionTiming":{"type":"string","enum":["Upon Billing Document Posting Date","Upon Order Activation Date"],"description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"GetProductChargeDefinitionResponseRevenueRecognitionTiming"},"GetProductChargeDefinitionResponseRevenueAmortizationMethod":{"type":"string","enum":["Immediate","Ratable Using Start And End Dates"],"description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n","title":"GetProductChargeDefinitionResponseRevenueAmortizationMethod"},"GETProductChargeDefinitionResponse":{"type":"object","properties":{"applyDiscountTo":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseApplyDiscountTo"},{"type":"null"}],"description":"Indicates which type of charge the discount charge applies to.\n"},"billingDay":{"type":"string","description":"The bill cycle type for the charge.\n"},"billingPeriod":{"type":"string","description":"The billing period for the product charge definition.\n"},"billingPeriodAlignment":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseBillingPeriodAlignment","description":"The billing period alignment setting for the charge.\n"},"billingTiming":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseBillingTiming","description":"The billing timing setting for the product charge definition.\n"},"chargeModel":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseChargeModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n"},"chargeType":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseChargeType","description":"Indicates the type of charge.\n"},"customFields":{"$ref":"#/components/schemas/ProductChargeDefinitionObjectCustomFields"},"defaultQuantity":{"type":["number","null"],"format":"double","description":"The default quantity. \n\nThis field is applicable only for one-time and recurring charges.\n"},"deliverySchedule":{"$ref":"#/components/schemas/GETDeliverySchedule"},"description":{"type":"string","description":"The description for the charge.\n"},"discountClass":{"type":["string","null"],"description":"The class that the discount belongs to. The discount class defines the order in which discount product rate plan charges are applied.\n\nFor more information, see [Manage Discount Classes](https://knowledgecenter.zuora.com/BC_Subscription_Management/Product_Catalog/B_Charge_Models/Manage_Discount_Classes).\n"},"discountLevel":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseDiscountLevel"},{"type":"null"}],"description":"The application scope of the discount charge. For example, if the value of this field is `subscription` and the value of the `applyDiscountTo` field is `RECURRING`, the discount charge applies to all recurring charges in the same subscription as the discount charge.\n"},"effectiveEndDate":{"type":"string","format":"date-time","description":"The effective end date of the product charge definition.\n"},"effectiveStartDate":{"type":"string","format":"date-time","description":"The effective start date of the product charge definition.\n"},"endDateCondition":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseEndDateCondition","description":"The end date condition for this charge.\n"},"financeInformation":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseFinanceInformation","description":"Container for finance information of the rate plan charge.\n"},"isDefault":{"type":"boolean","description":"Indicates whether this charge definition is the default one for the charge.\n"},"isStackedDiscount":{"type":"boolean","description":"**Note**: This field is only applicable to the Discount - Percentage charge model.\n\nTo use this field, you must set the `X-Zuora-WSDL-Version` request header to 130 or higher. Otherwise, an error occurs.\n\nThis field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:\n  - `True`: This is a stacked discount, which should be calculated by stacking with other discounts.\n  - `False`: This is not a stacked discount, which should be calculated in sequence with other discounts.\n\nFor more information, see [Stacked discounts](https://knowledgecenter.zuora.com/Zuora_Billing/Products/Product_Catalog/B_Charge_Models/B_Discount_Charge_Models).\n"},"numberOfPeriods":{"type":["integer","null"],"format":"int64","description":"Specifies the number of periods to use when calculating charges in an overage smoothing charge model.\nThis field is ued when overage smoothing model is `RollingWindow` or `Rollover`.\n"},"listPriceBase":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseListPriceBase","description":"The list price base. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n"},"numberOfPeriod":{"type":"integer","format":"int64","description":"Indicates the number of periods to use when calculating charges in an overage smoothing charge model. The valid value is a positive whole number.\n"},"overageCalculationOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseOverageCalculationOption"},{"type":"null"}],"description":"Determines when to calculate overage charges. If the value of the `SmoothingMode` field is not specified, the value of this field is ignored.\n\n**Values**: \n  - `EndOfSmoothingPeriod`: This option is used by default. The overage is charged at the end of the smoothing period.\n  - `PerBillingPeriod`: The overage is charged on-demand rather than waiting until the end of the smoothing period.\n"},"overageUnusedUnitsCreditOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseOverageUnusedUnitsCreditOption"},{"type":"null"}],"description":"Determines whether to credit the customer with unused units of usage.\n"},"priceChangeOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponsePriceChangeOption"},{"type":"null"}],"default":"NoChange","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"priceIncreaseOption":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponsePriceIncreaseOption","description":"Applies an automatic price change when a termed subscription is renewed.\n"},"priceIncreasePercentage":{"type":["number","null"],"format":"double","description":"Specifies the percentage to increase or decrease the price of a termed subscription's renewal. Use this field if you set the `priceIncreaseOption` value to `SpecificPercentageValue`.\n\n**Character limit**: 16\n\n**Values**: a decimal value between -100 and 100\n"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/GETProductChargeDefinitionPricing"},"description":"Container for the prices of the product charge definition.\n"},"productChargeDefinitionId":{"type":"string","description":"The unique ID of the product charge definition.\n"},"productChargeDefinitionNumber":{"type":"string","description":"The unique number (natural key) of the product charge definition.\n"},"productDiscountApplyDetails":{"type":"array","items":{"$ref":"#/components/schemas/GETProductDiscountApplyDetailsType"},"description":"Container for the application details about a discount product rate plan charge. \n\nOnly discount product rate plan charges have values for this field.\n"},"productRatePlanChargeId":{"type":"string","description":"The unique ID of the product charge of the charge definition.\n"},"productRatePlanChargeNumber":{"type":["string","null"],"description":"The unique number (natural key) of the product charge of the charge definition.\n"},"productRatePlanId":{"type":["string","null"],"description":"The unique ID of the product rate plan that uses this charge definition.\n"},"productRatePlanName":{"type":["string","null"],"description":"Th name of the product rate plan that uses this charge definition.\n"},"productRatePlanNumber":{"type":["string","null"],"description":"The unique number (natural key) of the product rate plan that uses this charge definition.\n"},"ratingGroup":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseRatingGroup"},{"type":"null"}],"default":"ByBillingPeriod","description":"The rating group based on which usage records are rated.\n\nPossible values:                \n  - `ByBillingPeriod`: The rating is based on all the usages in a billing period. \n  - `ByUsageStartDate`: The rating is based on all the usages on the same usage start date. \n  - `ByUsageRecord`: The rating is based on each usage record.\n  - `ByUsageUpload`: The rating is based on all the  usages in a uploaded usage file (`.xls` or `.csv`).\n  - `ByGroupId`: The rating is based on all the usages in a custom group.\n\n**Notes:** \n  - The `ByBillingPeriod` value can be applied for all charge models. \n  - The `ByUsageStartDate`, `ByUsageRecord`, and `ByUsageUpload` values can only be applied for Per Unit, Volume Pricing, and Tiered Pricing charge models. \n  - The `ByGroupId` value is only available if you have the Active Rating feature enabled.\n  - Use this field only for Usage charges. One-time charges and recurring charges return `NULL`.\n"},"recognizedRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the recognized revenue account for this charge.\n  - Required when the Allow Blank Accounting Code setting is No.\n  - Optional when the Allow Blank Accounting Code setting is Yes.\n\n  This feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at [Zuora Global Support](http://support.zuora.com/).\n"},"revRecCode":{"type":["string","null"],"maxLength":70,"description":"Associates this product rate plan charge with a specific revenue recognition code.\n"},"revRecTriggerCondition":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseRevRecTriggerCondition"},{"type":"null"}],"description":"Indicates when revenue recognition begins.\n"},"revenueRecognitionRuleName":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseRevenueRecognitionRuleName","description":"Determines when to recognize the revenue for this charge.\n"},"smoothingModel":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseSmoothingModel"},{"type":"null"}],"description":"Indicates the smoothing model for an overage smoothing charge model.\n"},"specificBillingPeriod":{"type":["number","null"],"format":"double","description":"The specific number of billing period for the product charge definition.\n"},"specificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge definition.  \nThis field is `null` if the `listPriceBase` field is not set to `Per_Specific_Months`.\n"},"success":{"type":"boolean","description":"Indicates whether the request succeeded.\n"},"taxCode":{"type":"string","maxLength":64,"description":"Specifies the tax code for taxation rules.\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n"},"taxMode":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseTaxMode"},{"type":"null"}],"description":"Determines how to define taxation for the charge.\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n"},"taxable":{"type":"boolean","description":"Determines whether the charge definition is taxable.\n\n**Character limit**: 5\n\n**Values**: `True`, `False`\n\n**Note**: This value affects the tax calculation of the rate plan charge.\n"},"term":{"type":["number","null"],"format":"double","description":"The number of periods of a termed subscription that is eligible for this charge definition. This field is applicable when the `termType` field is set to `TERMED`, \nand is to be used together with the `termPeriodType` field.\n"},"termPeriodType":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseTermPeriodType"},{"type":"null"}],"description":"The period type for the subscription term that is eligible for this charge definition.\n"},"termType":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseTermType"},{"type":"null"}],"description":"The type of the subscription that is eligible for this charge definition.\n"},"triggerEvent":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseTriggerEvent","description":"Specifies when to start billing the customer for the charge definition.\n\n**Values**:\n  - `ContractEffective` is the date when the subscription's contract goes into effect and the charge is ready to be billed.\n  - `ServiceActivation` is the date when the services or products for a subscription have been activated and the customers have access.\n  - `CustomerAcceptance` is when the customer accepts the services or products for a subscription.\n"},"uom":{"type":["string","null"],"description":"Indicates the unit of measure (UOM) that is configured in **Settings > Billing** for the product rate plan charge.\n"},"upToPeriods":{"type":["number","null"],"format":"double","description":"The number of up-to periods for this charge.\n"},"upToPeriodsType":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseUpToPeriodsType"},{"type":"null"}],"description":"The up-to-periods type for this charge.\n"},"usageRecordRatingOption":{"oneOf":[{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseUsageRecordRatingOption"},{"type":"null"}],"default":"EndOfBillingPeriod","description":"Determines how Zuora processes usage records for per-unit usage charges.\n"},"useDiscountSpecificAccountingCode":{"type":["boolean","null"],"description":"Determines whether to define a new accounting code for the new discount charge.\n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n"},"useTenantDefaultForPriceChange":{"type":"boolean","description":"Applies the tenant-level percentage uplift value for an automatic price change to a termed subscription's renewal. \n\n**Character limit**: 5\n\n**Values**: `true`, `false`\n"},"excludeItemBillingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled. \n"},"excludeItemBookingFromRevenueAccounting":{"type":"boolean","description":"Indicates whether to exclude the related rate plan charges and order line items from revenue accounting.\n\n**Note**: This field is only available if you have the Order to Revenue or Billing - Revenue Integration feature enabled.\n"},"isAllocationEligible":{"type":"boolean","description":"Indicates whether the charge segment is allocation eligible in revenue recognition. The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n"},"isUnbilled":{"type":"boolean","description":"Specifies how to perform the accounting during revenue recognition. The default value is `false`.\n\n**Values**: `true`, `false`\n\n**Note**: The field is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/set-up-zuora-billing/enable-order-to-revenue/overview-of-order-to-revenue\" target=\"_blank\">Order to Revenue</a> feature enabled. To enable this field, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.   \n"},"productCategory":{"type":"string","description":"This field is used to maintain the product category for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.    \n"},"productClass":{"type":"string","description":"This field is used to maintain the product class for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.    \n"},"productFamily":{"type":"string","description":"This field is used to maintain the product family for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.\n"},"productLine":{"type":"string","description":"This field is used to maintain the product line for integration with Zuora Revenue. \n\n**Note**: This field is available only if you have the Additional Revenue Fields property enabled.\n"},"revenueRecognitionTiming":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseRevenueRecognitionTiming","description":"Specifies the type of revenue recognition timing.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"},"revenueAmortizationMethod":{"$ref":"#/components/schemas/GetProductChargeDefinitionResponseRevenueAmortizationMethod","description":"Specifies the type of revenue amortization method.\n\nPredefined options are listed as enum values in this API Reference. \nOther options might also be avaliable depending on \nthe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue/Configure_revenue_settings/Configure_revenue_recognition_policy\" target=\"_blank\">revenue recognition policy configuration</a> in the Zuora Billing UI.\n\n**Note**: This field is only available if you have the Order to Revenue feature enabled. \n"}},"title":"GETProductChargeDefinitionResponse"},"PutProductChargeDefinitionRequestBillingTiming":{"type":"string","enum":["IN_ADVANCE","IN_ARREARS"],"description":"The override value of the billingTiming for the product charge definition.\n","title":"PutProductChargeDefinitionRequestBillingTiming"},"PutProductChargeDefinitionRequestChargeModel":{"type":"string","enum":["DiscountFixedAmount","DiscountPercentage","FlatFee","PerUnit","Tiered","Volume","Delivery"],"description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n","title":"PutProductChargeDefinitionRequestChargeModel"},"PutProductChargeDefinitionRequestListPriceBase":{"type":"string","enum":["Per_Billing_Period","Per_Month","Per_Week","Per_Year"],"description":"The list price base. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n","title":"PutProductChargeDefinitionRequestListPriceBase"},"PutProductChargeDefinitionRequestTaxMode":{"type":"string","enum":["TaxExclusive","TaxInclusive"],"description":"Determines how to define taxation for the charge. This field is equired when the `Taxable` field is set to `True`.\n\n**Note**: This value affects the tax calculation of the charge.\n","title":"PutProductChargeDefinitionRequestTaxMode"},"PutProductChargeDefinitionRequestTermPeriodType":{"type":"string","enum":["Month","Year","Day","Week"],"description":"Specifies the period type for the subscription term that is eligible for this charge definition.\n","title":"PutProductChargeDefinitionRequestTermPeriodType"},"PutProductChargeDefinitionRequestTermType":{"type":"string","enum":["TERMED","EVERGREEN"],"description":"The type of the subscription that is eligible for this charge definition.\n","title":"PutProductChargeDefinitionRequestTermType"},"PUTProductChargeDefinitionRequest":{"type":"object","properties":{"billingPeriod":{"type":"string","description":"The override value of the billingPeriod for the product charge definition.\n"},"billingTiming":{"$ref":"#/components/schemas/PutProductChargeDefinitionRequestBillingTiming","description":"The override value of the billingTiming for the product charge definition.\n"},"chargeModel":{"$ref":"#/components/schemas/PutProductChargeDefinitionRequestChargeModel","description":"Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.\n"},"defaultQuantity":{"type":["number","null"],"format":"double","description":"The default quantity. \n\nThis field is applicable only for one-time and recurring charges.\n"},"effectiveEndDate":{"type":"string","format":"date-time","description":"The effective end date of the product charge definition.\n"},"effectiveStartDate":{"type":"string","format":"date-time","description":"The effective start date of the product charge definition.\n"},"listPriceBase":{"$ref":"#/components/schemas/PutProductChargeDefinitionRequestListPriceBase","description":"The list price base. \n\nThis field is applicable only for recurring charges.\n\n**Note**: The `Per_Year` enum value is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Product_Catalog/I_Annual_List_Price\" target=\"_blank\">Annual List Price</a> feature enabled.\n"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/POSTProductChargeDefinitionPricing"},"description":"Container for the new prices to override the existing prices of the product charge definition.\n"},"specificBillingPeriod":{"type":["number","null"],"format":"double","description":"The override value of the specificBillingPeriod for the product charge definition.\n"},"specificListPriceBase":{"type":["integer","null"],"minimum":1,"maximum":200,"description":"The number of months for the list price base of the charge definition. \nThe field is `null` if the `listPriceBase` field is not set to `Per_Specific_Months`.\n"},"taxCode":{"type":"string","maxLength":64,"description":"Specifies the tax code for taxation rules. This field is equired when the `Taxable` field is set to `True`.\n\n**Note**: This value affects the tax calculation of the charge.\n"},"taxMode":{"oneOf":[{"$ref":"#/components/schemas/PutProductChargeDefinitionRequestTaxMode"},{"type":"null"}],"description":"Determines how to define taxation for the charge. This field is equired when the `Taxable` field is set to `True`.\n\n**Note**: This value affects the tax calculation of the charge.\n"},"taxable":{"type":"boolean","description":"Determines whether the charge definition is taxable. When this field is set to `True`, the `TaxMode` and `TaxCode` fields are required.\n\n**Character limit**: 5\n\n**Values**: `True`, `False`\n\n**Note**: This value affects the tax calculation of the charge.\n"},"term":{"type":["number","null"],"format":"double","description":"The number of periods of a termed subscription that is eligible for this charge definition. This field is applicable when the `termType` field is set to `TERMED`, \nand is to be used together with the `termPeriodType` field.\n"},"termPeriodType":{"oneOf":[{"$ref":"#/components/schemas/PutProductChargeDefinitionRequestTermPeriodType"},{"type":"null"}],"description":"Specifies the period type for the subscription term that is eligible for this charge definition.\n"},"termType":{"oneOf":[{"$ref":"#/components/schemas/PutProductChargeDefinitionRequestTermType"},{"type":"null"}],"description":"The type of the subscription that is eligible for this charge definition.\n"},"uom":{"type":["string","null"],"description":"Describes the unit of measure (UOM) configured in **Settings > Billing**.\n\n**Values**: `Each`, `License`, `Seat`, or `null`\n"}},"title":"PUTProductChargeDefinitionRequest"},"ProxyGetProductRatePlanChargeTier":{"type":"object","properties":{"CreatedById":{"type":"string","maxLength":32,"description":"The ID of the Zuora user who created the ProductRatePlanChargeTier object.\n"},"CreatedDate":{"type":"string","format":"date-time","description":"The date when the ProductRatePlanChargeTier object was created.\n"},"Currency":{"type":"string","maxLength":3,"description":"The valid code corresponding to the currency for the tier's price.\n"},"EndingUnit":{"type":"number","format":"double","description":"The end number of a range of units for the tier.\n\n**Character limit**: 16\n\n**Values**: any positive decimal value\n"},"Id":{"type":"string","description":"Object identifier."},"Price":{"type":"number","format":"double","description":"The price of the tier if the charge is a flat fee, or the price of each unit in the tier if the charge model is tiered pricing.\n\n**Character limit**: 16\n\n**Values**: a valid currency value\n"},"PriceFormat":{"type":"string","maxLength":8,"description":"Indicates if pricing is a flat fee or is per unit. This field is for tiered and volume pricing models only.\n\n**Values**: `FlatFee`, `PerUnit`\n\n**Note:** The values `Flat Fee` and `Per Unit` (with spaces) is valid for create or update calls.\n"},"StartingUnit":{"type":"number","format":"double","description":"The starting number of a range of units for the tier.\n\n**Character limit**: 16\n\n**Values**: any positive decimal value\n"},"Tier":{"type":"integer","description":"A unique number that identifies the tier that the price applies to.\n\n**Character limit**: 20\n\n**Values**: automatically generated\n"},"UpdatedById":{"type":"string","maxLength":32,"description":"The ID of the user who last updated the product rate plan charge tier.\n"},"UpdatedDate":{"type":"string","format":"date-time","description":"The date when the product rate plan charge tier was last updated.\n"}},"title":"ProxyGetProductRatePlanChargeTier"},"ProxyModifyProductRatePlanChargeTierPriceFormat":{"type":"string","enum":["Flat Fee","Per Unit"],"description":"Indicates if pricing is a flat fee or is per unit. This field is for tiered and volume pricing models only.\n\n**Note:** The values `Flat Fee` and `Per Unit` (with spaces) is valid for create or update calls.\n","title":"ProxyModifyProductRatePlanChargeTierPriceFormat"},"ProxyModifyProductRatePlanChargeTier":{"type":"object","properties":{"Price":{"type":"number","format":"double","description":"The price of the tier if the charge is a flat fee, or the price of each unit in the tier if the charge model is tiered pricing.\n"},"PriceFormat":{"$ref":"#/components/schemas/ProxyModifyProductRatePlanChargeTierPriceFormat","description":"Indicates if pricing is a flat fee or is per unit. This field is for tiered and volume pricing models only.\n\n**Note:** The values `Flat Fee` and `Per Unit` (with spaces) is valid for create or update calls.\n"},"DiscountPercentage":{"type":"number","format":"double","exclusiveMinimum":-100,"exclusiveMaximum":100,"description":"The percentage of discount for a percentage discount. This field is required if the value for `ProductRatePlanCharge.ChargeModel` is `Discount-Percentage`.\n \n\n**Values:** A decimal value between -100 and 100, exclusive\n"},"DiscountAmount":{"type":"number","format":"double","description":"The specific amount for a fixed discount. This field is required if the value for `ProductRatePlanCharge.ChargeModel` is `Discount-Fixed Amount`.\n\n**Values:** Any positive decimal value.  \n"}},"title":"ProxyModifyProductRatePlanChargeTier"},"RevproAccountingCodes":{"type":"object","properties":{"adjustmentLiabilityAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Adjustment Liability\"."},"adjustmentRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Adjustment Revenue\"."},"contractAssetAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Contract Asset\"."},"contractLiabilityAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Contract Liability\"."},"productRatePlanChargeId":{"type":"string","description":"The ID of your product rate plan charge."},"recognizedRevenueAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Recognized Revenue\"."},"unbilledReceivablesAccount":{"type":"string","maxLength":100,"description":"The name of the account where the Account Type is \"Unbilled Receivables\"."}},"required":["adjustmentLiabilityAccount","adjustmentRevenueAccount","contractAssetAccount","contractLiabilityAccount","productRatePlanChargeId","recognizedRevenueAccount","unbilledReceivablesAccount"],"title":"RevproAccountingCodes"},"PUTRevproAccCodeResponse":{"type":"object","properties":{"success":{"type":"boolean"}},"title":"PUTRevproAccCodeResponse"}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Use `Bearer {{token}}` in the `Authorization` header for authentication.\n"},"basicAuth":{"type":"http","scheme":"basic","description":"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.\n"}}}}